CodePaste Logo
New Snippet New Recent Snippets Recent Snippets My Snippets My Snippets My Favorites Favorites Web Code Search Snippets Search
Sign inor Register
Format:
Recent Snippets
Shader "Custom/AlphaTextureHeight" {
	Properties {
		
		_MainTex ("Albedo (RGB)", 2D) = "white" {}
		_MaskTex ("Mask (RGB)", 2D) = "white" {}
	}
	 SubShader {
      Tags { "RenderType" = "Opaque" }
      CGPROGRAM
      #pragma surface surf Lambert alpha
Today @ 12:04am
Tags:
3 Views
no comments
 
#include<stdio.h>
#include<stdlib.h>

int main(){

char s[40];
printf("enter string:");
scanf("%s",s);

int i;
Yesterday @ 11:34pm
Tags:
4 Views
no comments
 
using System;

public class Program
{
   static void Main()
   {
      Console.WriteLine("Hello World");
   }
}
Yesterday @ 11:16pm
Tags:
6 Views
no comments
 
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Scanner;


public class Cipher {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		boolean encrypt = true;
Yesterday @ 10:50pm
Tags:
6 Views
no comments
 
{"text":"This is a test message","channel":"#test","username":"Alfred","mrkdwn":true,"link_names":true,"unfurl_links":false,"unfurl_media":false,"attachments":{"fallback":"New ticket from Andrea Lee - Ticket #1943: Can't rest my password - https:\/\/groove.hq\/path\/to\/ticket\/1943","pretext":"New ticket from Andrea Lee","title":"Ticket #1943: Can't reset my password","title_link":"https:\/\/groove.hq\/path\/to\/ticket\/1943","text":"Help! I tried to reset my password but nothing happened!","color":"#7CD197"}}
Yesterday @ 10:46pm
Tags:
7 Views
no comments
 
public class Block {
	
	Flat[] flats;

	// inner class
	class Flat {
		
		Room[] rooms;

		// inner class
Yesterday @ 10:44pm
Tags:
9 Views
no comments
 
import java.io.FileInputStream;
import java.io.FileOutputStream;


public class Cipher {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		boolean encrypt = true;
		String filename1 = "C:\\Users\\dolph\\workspace\\Caesar\\src\\Hello.txt"; //path to Hello.txt
Yesterday @ 10:41pm
Tags:
6 Views
no comments
 
public class BusStopInfoEvt {
    public List<EventList> EventListLst;

    private class EventList{
        public String Name;
        public List<Block> BlockLst;
        public Reaction Reaction;
    }

    private class Block{
Yesterday @ 10:40pm
Tags:
8 Views
no comments
 
package com.subler.thedarkexile.server.domain;

import java.io.Serializable;

import com.subler.thedarkexile.server.domain.user.UserCharacter;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
Yesterday @ 10:05pm
Tags:
7 Views
no comments
 
@RequestMapping(value="", method=RequestMethod.POST, produces="application/json")
public ResponseEntity<UserLoginViewModel> login(User user){
	UserLoginViewModel model = new UserLoginViewModel();
	model.username = user.getUsername();
	model.email = user.getEmail();
	return new ResponseEntity<>(model, HttpStatus.OK);
}

@SuppressWarnings("unused")
private static class UserLoginViewModel {
Yesterday @ 9:57pm
Tags:
9 Views
no comments
 
public class BusStopInfoEvt {
    private List<EventList> EventListLst;

    public List<EventList> getEventListLst() {
        return EventListLst;
    }

    public void setEventListLst(List<EventList> eventListLst) {
        EventListLst = eventListLst;
    }
Yesterday @ 9:47pm
Tags:
8 Views
no comments
 
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
Yesterday @ 9:34pm
Tags:
13 Views
no comments
 
xml
<eventlist ver="1.0">
	<name>6:Тенистый-Институт ФСИН</name>
	<block order="seq">
		<event>
			<name>Туб</name>
			<zone shape="circle">
				<point lat="51.60433" lon="39.03767"/>
				<radius>40</radius>
			</zone>
			<reaction logic="one">
Yesterday @ 8:48pm
Tags:
9 Views
no comments
 
To locate a decent hostile to  cream that'll really perform, its critical that you simply check the fixings thoroughly before getting. partner uncommon wrinkle item goes to not be troublesome all alone skin, ne'er strong. it'll create the skin delicate and well. Get something you read next and it'd look higher to singularly take after the advertisements on television. however skin health management advancing isn't drained of jokes and methods to offer hostile to maturing item.

Get More On Official Website==>> http://absoluterejuvennow.com/revlante/
by leontores   Yesterday @ 7:20pm
Tags: Revlante
8 Views
no comments
 
// Check the user is at the bottom of the element
if($(window).scrollTop() + $(window).height() > $this.height() && !busy) {
                         
    // Now we are working, so busy is true
    busy = true;
                         
    // Tell the user we're loading posts
    $this.find('.loading-bar').html('Loading Posts');
             
    // Run the function to fetch the data inside a delay
Yesterday @ 6:11pm
Tags:
12 Views
no comments
 
(function(g, v) {
    function ta() {
        ea();
        setInterval(ea, 18E4);
        B = S = document.getElementById("canvas");
        d = B.getContext("2d");
        B.onmousedown = function(a) {
            if (fa) {
                var b = a.clientX - (5 + n / 5 / 2),
                    c = a.clientY - (5 + n / 5 / 2);
Yesterday @ 5:07pm
Tags:
8 Views
no comments
 
Consumers in the U.S. and the UK are increasingly adopting mobile and online banking, according to a 2014 survey by Cognitive Biometrics Firm BioCatch.

In both countries, the survey reveals that more users are performing banking transactions over the web and through a mobile device, at 36 per cent and 29 per cent respectively, which shows an over take from traditional means such as telephone and branch banking.

“We’ve seen an uptick in online and mobile adoption rates among banking customers over the past few years and expect this trend to continue at a rapid pace as banks continue to improve their functionality,” BioCatch VP of Products Oren Kedem said.

But while this is a positive development in the online banking space, the study also shows that a number of consumers who have not yet delved into online banking are experiencing a number of pain points in using such services. 46 per cent cited limited functionality and 36 per cent listed inconvenient login and authentication processes.

A lack of security is also an issue and is considered as one of the greatest obstacles to adoption: 61 per cent indicated that fear of hacking was their main reason for avoiding online banking.

7 Views
no comments
 
Da Aztec Group seinen Betrieb im Jahr 1981 begann, hat es die gleichen Ziele erhalten, die es gesetzt hat, um im Namen seiner institutionellen und unternehmerische Immobilienkunden, nämlich zu erreichen:

-Mit Kapital auszustatten Immobilienentwickler und Investoren
-Zu dienen und zu fördern-Investitionsniveau Immobilientransaktionen

Als führendes Unternehmen in Florida weiterhin Aztec exzellenten Service für viele Kunden in der Immobilienwirtschaft durch seine große Erfahrung des Teams von Fachleuten verfügen über umfassendes Verständnis des Marktes und haben vielfältige institutionelle und Entwicklungsstörungen Dienstlisten anwenden. Aztec ist anerkannt, dass Erfolg ergibt sich aus den hoch spezialisierte, kreativen Ansatz zum Aufbau von Immobilien-Transaktionen, die von Investment Grade sind.

Aztec Group  versteht, dass die primäre Notwendigkeit eines Clients die Hauptstadt zu initiieren oder ein vorhandenes Immobilien-Projekt zu verfolgen. Aber Hauptstadt wird nicht ausreichen, um den Erfolg eines Unternehmens zu sichern. Sogar mit weniger als das benötigte Kapital können einige Unternehmen die notwendigen marketing-Ansätze in Immobilienwirtschaft, z. B. vor Vertriebs- und anderen marketing-Strategien durch die jüngsten Entwicklungen zur Verfügung gestellt um ein Projekt wenden. Schließlich benötigt ein Minimum an Kapital, ein Projekt marktfähig zu setzen. Aztec füllt sich diese Notwendigkeit für ihre Kunden, die dieses Bedürfnis haben.

Darüber hinaus Aztec sieht es Job als effektiver zu sein, wenn es integraler Bestandteil des Kunden-Team wird; Das heißt, die Perspektive des Mitarbeiters oder der Entwickler selbst zu sehen. Trotz der Tatsache, dass die Azteken die Entschädigung Gebühr auf den Erfolg der Transaktion basiert bietet Blick auf die Probleme in der Sicht des Clients ein aus erster Hand-Konzept für die Ankunft auf positive Lösungen und enge Verwaltung der Transaktion. Kein echter Profi würde weniger im Hinblick auf die mit einem voll Verständnis für die Probleme und die verfügbaren Antworten auf ein bestimmtes Unterfangen haben möchte.
8 Views
no comments
 
All human organizations, whether it be a business corporation, a religious denomination or a government institution, have commonstructural and operational features that we can almost look at them asliving organism that portray a set of behavioural patterns. As such, the task of programming or managing the function of an organization can be accomplished using certain principles that apply within the dynamic systems and processes involved in an organization.

Elliott and Associates has grown to become a reputable Organizational Development Consultant  (ODC), a unique and responsive resource for the modern organization. As an ODC, therefore, Elliott and Associates can provide its clients consultation and problem-solving services related to their organization and its human-resources requirements.

A staff of experienced professionals from Elliott and Associates stands ready with the skills to provide specialized assistance needed to achieve positive results in organizational development, leading to a more efficient and more productive organization. Thus, Elliott has taken on the title of a specialist in "Organizational Fitness", one that it rightly deserves.

With its more than two decades of track record in helping organizations thrive and operate successfully, Elliott and Associates has been given many opportunities to demonstrate the value of its services in various employment situations. To name a few, schools, banks, social agencies, medical schools, government offices, hospitals and manufacturing companies have seen the positive results of applying the knowhow and the services of ODCs.

People make a world of difference. Ultimately, technology merely provides us with tools while humans provide us with the internal motivation and the primary resources that make for a truly beneficial organization that can serve the multifarious needs of society.

7 Views
no comments
 
xml
<configuration>
  <system.diagnostics>
    <trace autoflush="true" />

    <sources>

      <source name="System.Net" >
        <listeners>
          <add name="SmtpTrace"/>
        </listeners>
by Rick Strahl   Yesterday @ 1:58pm
Tags:
105 Views
no comments
 
<div style="font-weight: 600; padding-left: 150px; position: absolute; margin-left: 40px; top: 40px; width: 100%; padding: 15px; border: 0px solid black; background-color: orange; color: white;">
    
<b>
<center>
    Testing Announcement Bar</center>
</b>
	</div>
by Christian2 (Banned as Christian...)   Yesterday @ 11:32am
Tags:
11 Views
no comments
 
package com.sinan.cet.barkod;

import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;



Yesterday @ 10:43am
Tags:
11 Views
no comments
 
package com.sinan.cet.barkod;

import android.app.AlertDialog;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
Yesterday @ 10:42am
Tags:
11 Views
no comments
 
traceroute to 210.51.7.1 (210.51.7.1), 30 hops max, 60 byte packets
 1  82.211.4.1 (82.211.4.1)  0.264 ms  0.268 ms  0.208 ms
 2  fra3.xe-0-0-0.accelerated.de (84.200.230.82)  0.349 ms  0.368 ms  0.363 ms
 3  87.190.233.113 (87.190.233.113)  0.477 ms  0.422 ms  0.464 ms
 4  217.239.43.2 (217.239.43.2)  34.775 ms  34.649 ms  34.592 ms
 5  80.156.162.218 (80.156.162.218)  167.752 ms  167.641 ms  167.585 ms
 6  218.105.7.5 (218.105.7.5)  167.950 ms  167.945 ms  168.946 ms
 7  218.105.0.2 (218.105.0.2)  167.912 ms  167.857 ms  167.946 ms
 8  218.105.4.253 (218.105.4.253)  168.695 ms  168.643 ms  168.586 ms
 9  218.105.5.66 (218.105.5.66)  168.532 ms  168.475 ms  168.419 ms
Yesterday @ 10:11am
Tags:
11 Views
no comments
 
#include <iostream>

using namespace std;



class hero

{
protected:
Yesterday @ 9:00am
Tags:
13 Views
no comments
 
   org     $8000

        clr     $b0
        lda     $a0     ;naložimo prvo število
        add     $a1     ;prištejemo drugo, rezultat je v A
        rol     $b0     ;prensemo C v MSB       
        add     $a2     ;prištejemo tretje
        sta     $b1     ;shrani lsb
        bcc     konc    ;če je C=0, je že vse urejeno
        inc     $b0     ;če je C=1 poveča MSB
Yesterday @ 8:44am
Tags:
13 Views
no comments
 
#include <graphics.h>
#include <stdlib.h>
#include <stdio.h>
#include <conio.h>
#include<dos.h>

int main()
{
    /* request auto detection */
    int gdriver = DETECT, gmode, errorcode;
by Md. Faisal Alam Biplob   Yesterday @ 8:29am
16 Views
no comments
 
#include <iostream>
#include<vector>
#include <GL/freeglut.h>
using namespace std;
float kat = 0;
float pozycjaX = 0, pozycjaY = 0;
vector<double> punktyX{ pozycjaX + 0.5, pozycjaX + 0.5, pozycjaX + -0.5, pozycjaX + -0.5 };
vector<double> punktyY{ pozycjaY + 0.25, pozycjaY - 0.25, pozycjaY + 0.25, pozycjaY - 0.25 };
float szerokosc= 1;
float dlugosc = 0.5;
Yesterday @ 8:14am
Tags:
12 Views
no comments
 
#include <iostream>

using namespace std;

class general
{
protected:
    int **matrix;
public:

Yesterday @ 8:12am
Tags:
12 Views
no comments
 
Program denklem
      Real::A,B,C,X1,X2,D
      Read*,A,B,C
      Call Kok(A,B,C X1,X2,D)
       If(D<0)then
        Print*,"K”kler sanal"
       Else
        Print*,X1,X2
       End if
      Contains
Yesterday @ 8:12am
Tags:
12 Views
no comments
 
/*******************************************************/
/*Uniform Search                                       */
/*******************************************************/
/*Searches the input data using a kd-tree, performs the*/
/*sum on the data within the Hypercube defined by the  */
/*tree using a uniform kernel.                         */
/*******************************************************/
/*Pre:                                                 */
/*      - gt is a possibly NULL pointer to a kd tree   */
/*      - Mh_ptr is a pointer to the mean shift vector */
Yesterday @ 7:33am
Tags:
13 Views
no comments
 
public Expr normalize(){
		
	if(this.isNorm()){
		return this;
	}
	
	Expr ret = this;
	if(op == Op.PRODUCT){
		if(r.getLeft() != null){
			r = r.normalize();
Yesterday @ 7:19am
Tags:
14 Views
no comments
 
http://fadermusic.de









Yesterday @ 7:15am
Tags:
13 Views
no comments
 
some notes....









Yesterday @ 7:12am
Tags:
12 Views
no comments
 
from urllib.request import urlopen
from urllib.parse import urlencode
import uuid, hashlib, random
TRACKING_URI = 'https://ssl.google-analytics.com/collect'
USERVALUE = 'NOT_ALLOCATED_{}'.format(random.randint(100000000, 999999999))
EVENT_CAT = 'Uncategorized'
EVENT_ACTION = 'Start'
DATASOURCE = ''
ANALYTICSPROP = 'UA-49403905-17'
def generate_uuid(basedata = None):
by Luca Bernstein   Yesterday @ 7:10am
Tags:
12 Views
no comments
 
//
//  main.cpp
//  Sudoku
//
//  Created by Pongsakorn Jaiban on 5/4/15.
//  Copyright (c) 2015 Pongsakorn Jaiban. All rights reserved.
//

#include <iostream>
#include <stdio.h>
by IAMGBR   Yesterday @ 6:23am
21 Views
no comments
 
Array
(
    [text] => This is a test message
    [channel] => #test
    [username] => Alfred
    [mrkdwn] => 1
    [link_names] => 1
    [unfurl_links] => 
    [unfurl_media] => 
Yesterday @ 5:35am
Tags:
15 Views
no comments
 
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class Server {

Yesterday @ 5:34am
Tags:
13 Views
no comments
 
void Analyzer::check_operation(){
    enumToken tok1, tok2, operation;
    enumToken t = token_integer, r = token_boolean, s = token_real, v = token_str;
    
    tok1 = token_stack.pop();
    operation = token_stack.pop();;
    tok2 = token_stack.pop();
    
    if ((operation == token_add) || (operation == token_sub) || (operation == token_mod)
        || (operation == token_mul) || (operation == token_ddiv) || (operation == token_div)){
Yesterday @ 5:20am
Tags:
18 Views
no comments
 
static public int Sum_Character(string str)
       {
          // int[] Count = new int[Int32.MaxValue];
           int Sum = 0;
           str.ToCharArray();

           for (int i = 0; i < str.Length; i++)
           {
               int Count = 1;
               for (int j = i + 1; j < str.Length; j++)
Yesterday @ 5:11am
Tags:
15 Views
no comments
 
#include <iostream>
#include <cstdlib>
#include <iomanip>

using namespace std;

bool isLeapYear (int); //good check for leap years
int firstDayofnewyearMonth (int );
int numOfDaysInMonth (int, bool); // takes the number of the month, a flag saying whether year is leap
void printHeader (int); // takes the number of the month, and the first day, prints, and updates
Yesterday @ 4:32am
Tags:
13 Views
no comments
 
// mam pole (lookup tabulku) - funkcia weight16 vrati pole s prvkami 0 - 65535 s priradenymi hodnotami
ushort *table16 = weight16(); 

// potom itererujem cez opencv matice a pocitam... 
cv::MatIterator_<float> itw;
cv::MatIterator_<cv::Vec3s> it, end;

for( it = images[j].begin<cv::Vec3s>(), itw = w.begin<float>(), end = images[j].end<cv::Vec3s>(); it != end; ++it, ++itw) {
       *itw = (float)((table16[(*it)[0]] + table16[(*it)[1]] + table16[(*it)[2]]) / 3.0);
} 
by XXX   Yesterday @ 4:06am
Tags:
14 Views
no comments
 
public static class ChannelBlend
{
	public static Color Normal(Color Base)
	{
		return Base;
	}

	public static Color Lighten(Color Base, Color Blend)
	{
		Color ret = new Color();
Yesterday @ 4:01am
Tags:
25 Views
no comments
 
— Мы, большевики, — рассуждал Сталин, расхаживая перед камином, — мы не должны забывать, что русские цари сделали одно большое дело — они сколотили огромное государство от Варшавы до Камчатки. И мы получили это государство в наследство. Так что же — разбазаривать? Продавать? Затевать гешефты? Дескать, на наш век хватит. Нет, эта политика вредная. Подлая, я бы сказал!

Горький напомнил о Портсмутском мире: отдали и Курилы, и половину Сахалина.

Иосиф Виссарионович поморщился:

— Никудышный был царишка. Не на свое место сел. Ему бы отказаться от престола ещё в году... в году... Да лет пяток бы поцарствовал и хватит! И для него лучше вышло бы, и для...

Не договорив, он махнул рукой.

Yesterday @ 4:01am
Tags:
14 Views
no comments
 
/* spuštění testů*/
Test Name:	TestServiceGetAll
Test FullName:	CookBook.Services.Tests.ServicesTestsRecipes.TestServiceGetAll
Test Source:	c:\Users\jchatrny\Source\Workspaces\iw5projekt\CookBook\CookBook.Services.Tests\ServicesTestsRecipes.cs : line 47
Test Outcome:	Failed
Test Duration:	0:00:00,081958

Result Message:	Initialization method CookBook.Services.Tests.ServicesTestsRecipes.InitDb threw exception. System.Data.Entity.Migrations.Infrastructure.AutomaticDataLossException: System.Data.Entity.Migrations.Infrastructure.AutomaticDataLossException: Automatic migration was not applied because it would result in data loss. Set AutomaticMigrationDataLossAllowed to 'true' on your DbMigrationsConfiguration to allow application of automatic migrations even if they might cause data loss. Alternately, use Update-Database with the '-Force' option, or scaffold an explicit migration..
Result StackTrace:	
at System.Data.Entity.Migrations.DbMigrator.AutoMigrate(String migrationId, VersionedModel sourceModel, VersionedModel targetModel, Boolean downgrading)
Yesterday @ 3:34am
Tags: c sharp
14 Views
no comments
 
$(function () {
$('.reports').on('click', '.jq-report', function(){
    if (!$(this).attr('data-toggled') || $(this).attr('data-toggled') == 'off'){
          $(this).attr('data-toggled','on');

          var curEl = $( this ).parents(".report") 
          var pos = curEl.position();
          $('.wrap').scrollTo(curEl, 1000);
          var clone = curEl.clone().addClass('report-clone');
          curEl.before(clone);
Yesterday @ 1:32am
Tags:
15 Views
no comments
 
da8: 40.000 mb/s transfares
da8: attempt to query device size failed: not ready, medium not present
no B_DEVMAGIC (bootdev=0)
Device Mapper Version 4.16 loaded
dm_target_error: succesfully initialized 
dm_target_zero:  successfully initialized
Mounting root from ufs:da8s1a
no disk named "da8s1a"
setrootbyname failed
ffs_mountroot:can't find rootvp
Yesterday @ 1:11am
20 Views
no comments
 
<?php

/**
 * Extension to {@link DataObject} to enable tracking comments.
 *
 * @package comments
 */
class CommentsExtension extends DataExtension {
	/**
	 * Default configuration values
Yesterday @ 12:07am
Tags:
15 Views
no comments
 
public function getlink(){
       
       return singleton('FacebookControllerExtension')->getFacebookLoginLink();
   }
Yesterday @ 12:01am
Tags:
15 Views
no comments
 
php
///////////// getFacebookLoginLink() is here//////

use Facebook\FacebookSession;
use Facebook\FacebookRequest;
use Facebook\GraphUser;
use Facebook\FacebookRequestException;

/**
 * Main controller class to handle Facebook Connect implementations. Extends the 
 * built in SilverStripe controller to add addition template functionality.
Sunday @ 11:42pm
Tags:
17 Views
no comments
 
brought to you by:
West Wind Techologies