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
while (read(fd1[0],&t,1)){
			if (t!='\n'){
                if (t == 'a')
                    flag1 = 1;
                str=(char*)realloc(str,k++);
                str[i++]=t; 
			}
            if (t == '\n'){
                str=(char*)realloc(str,k++);
                str[i++]='\n';
Today @ 10:21am
Tags:
7 Views
no comments
 
https://github.com/copynotes/p1/issues/1
by https://github.com/copynotes/p1/issues/1   Today @ 8:27am
9 Views
no comments
 
http://architype.org/project/liverpool-v-arsenal-live-stream-today/
by http://architype.org/project/liverpool-v-arsenal-live-stream-today/   Today @ 7:59am
11 Views
no comments
 
#include <iostream>
#include <windows.h>
#include <cstdio>
#include <cstring>
#include <conio.h>

void encrypt( char *str, int key ){
	if( strlen(str) > 1){
		for(int i = strlen(str)-1,k=0; i>=strlen(str)/2; i--,k++){
			char a = str[i];
Today @ 6:09am
Tags:
13 Views
no comments
 
xml
<ListBox Height="576" HorizontalAlignment="Left" Margin="21,6,0,0" Name="songList" VerticalAlignment="Top" Width="413">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <StackPanel Orientation="Horizontal" Height="132">                            
                            <StackPanel Width="370">
                                <TextBlock Text="{Binding SongName}" Foreground="#FFC8AB14" FontSize="22" Width="300" TextWrapping="Wrap" MaxWidth="300" />
                                <TextBlock Text="{Binding ArtistName}" Foreground="#FFC8AB14" FontSize="22" Width="300" TextWrapping="Wrap" MaxWidth="300" />
                            </StackPanel>
                        </StackPanel>
                    </DataTemplate>
Today @ 6:07am
Tags:
11 Views
no comments
 
<ListBox Height="576" HorizontalAlignment="Left" Margin="21,6,0,0" Name="songList" VerticalAlignment="Top"
 
Width="413"> 
                     <ListBox.ItemTemplate>
               <DataTemplate>
                        <StackPanel Orientation="Horizontal" Height="132">
                            <Image Source="{Binding ImageSource}" Height="90" Width="90" VerticalAlignment="Top"
 
Margin="0,10,8,0"/>                          
                                <StackPanel Width="370">
Today @ 5:55am
Tags:
13 Views
no comments
 
#include <stdio.h>
#include <iostream>
#include <vector>
#include <queue>

using namespace std;

#define DEBUG 1

#if DEBUG
Today @ 3:28am
Tags:
14 Views
no comments
 
#include <stdio.h>
#include <iostream>
#include <vector>
#include <queue>

using namespace std;

#define DEBUG 1

#if DEBUG
Today @ 3:26am
Tags:
13 Views
no comments
 
https://www.google.cz/search?tbs=sbi:AMhZZishWhEOgVIWWM6s4SFZ--Pf7AFR1yfVruS53r4ZmqQMZxMFQuzjWlmbGbavZE_1aAvXGJhbrX7ctMoW6eE8G6Ct140AVM3OLPyMigwQRfP6qkmMjJqlcAH3ufpfrvjkCr6sB6Uv6r4GHoCMWITDADTXbOUc2xhXWSDiIweEPkiwsnBity4_1gs4krPR0h286A1Xm1V3erKojUkWDKOR1ODGED9g-vHFJ4FLdI4oeoJ-pe7hAdCLSXtcpAw5oC6OnTSTbvqdN3aW-CLDUruzf4_1aSbTlSSEt1Tb9weykj1tGaf6iv2-GUZb0Cv9LwZ_17BD8x1d_1PNuLxJ_1ACpZFoeHcYPUji-YihYSGpP_164v399YKWWdSJUfyWWPM4tjoG5Z4dcQFQTRJKev2TewfGtP6y42XFqpgQddUm1T92grCUf7wPOfF9aCdTtwQ83ErhMlPBhkEnO90kPD8PTpAXPiWjq6FQTAx_1F_1vi0pRAfknWzEasQApB_1oF20qXezh0-S6uGNRRDFuGXr2GmAX7kotX4u7fhSd1HCyqYmRubcsly18VBrZWkdRUvzZqKtJ2ZQcYfVJ2J5BQ0IUG1bm5vkU1vii2MG6Sqb5yhG9FDFs4eZstkbnhqv2YWPcltjS-O_18qlcJDCtZnEhTMETAtDKjl2tsZMKqSCmWIJ4x--IKHQxee2q59PtneyW9Bqp6aUd9yJJi7C_1zThiLHbqYMIFzT536ykO9AWFVZPoEOLeHfV_1rn_1K3cyKEAqD4iVfrWfZ8EVZALoel73YpclbOqB6nmO8LRcEpqSgk4YZhP1QsqhMlQ4D-AqGaAncWJT1eUJQcJBWfcFdZ7pd3leONY5oqi76U7o_1lE-5ZEzeFTXOc1LDysTJ4fBkfQwYnwYIoe_1B3h0LNjFK1P6d8QO67BxUbj_1pbDA5d3pgkizbLWpgSvoehN0gIEQv5kQ9lzr_1Rw5Bc2RdC7WoBHkKc9fqW4b1VDYncn2BUabdvuv4A4lHng4n0GFh6tW23iigR7yS1tg-X6eCNwkjvgRDGlUEDZwMxVSGTMbSUqZKyWFPVxp6k3HqPOhMfOSlX0DEwfoyUWby-p35MU3E2joX9rElMrqdweneGBqC7uLGjKJyj1X5joamESSnXvXqdxiIIf2ipgytmdszUjfJzEoDWEyc0UZ7ftukDcD-zQhU7BrctpVh0KuDE0vrzANtN0RoC2ZRt0KY4K2TIKxfYTBSLKV_1V7jjHCLvzTEGAqv-S5EeRHEYdwD10UgLCqMC7HtGoF_1a-KHhXas8nd05OzuqM2M1oOXFvgvLe7QFpjDWGasHW_1UraLLsXTavwbS-y2ata75v0PJsuiwTyweTjRR1LMDuP4a3NGeeaJhyDqA7OrjlewbWo4BI7aq6wLp3wO4IGNrVSgQ-2dlP4C-hVWB68dp9C6MdAfyOrtXA_1n7abooadclUKsCwXSZ_149VN-L1luR2chRfD8-lp09CmqEw6PY5Lkokm1w0X4brqFqHIHMPHKm4MJSwtP69jMpLnA&sourceid=opera&client=opera&gws_rd=cr&ei=RYmWVPaTHMu8ygO734KYCw
Today @ 12:56am
Tags:
22 Views
no comments
 
import random

sSantas = ['Karolina', 'Aneta', 'Jeanna', 'Kathrin', 'Florian', 'Ingrid', 'Magdalena', 'David', 'Daniel', 'Doreen',
           'Julie', 'Behiye', 'Alex', 'Maria', 'Mike', 'Konstantin', 'Cristina', 'Federico', 'Shiva', 'Marianne',
           'Lisa']


def valid(a, b):
    for i, j in zip(a, b):

Yesterday @ 10:06pm
Tags:
11 Views
no comments
 
Huolissaan ostoksia verkossa tänä jouluna?

Et ole yksin. Tietoverkkojen rikkomuksista suurten vähittäismyyjien vanavedessä monet ihmiset Älä tuntea olonsa turvalliseksi, monet ihmiset ole turvassa, vetämällä ulos luotto- tai debit korttinsa pelossa luottokortin petoksia tai identiteettivarkauksia..

Mutta asiantuntijat sanovat useimmat ostajat tulevat käyttämään rahaa kuten tavallista tänä jouluna, ja monet niistä tehdä asioita, jotka vaarantavat heidän henkilökohtaisia tietoja.

Seuraavassa on muutamia vinkkejä pitämään henkilökohtaisia ja maksutietoja tietoja mahdollisimman turvallinen, kun menet Kirjoita luottokorttinumero että yksinomainen Elsa nukke tai 60-tuumainen LED-TV varaamanne varten.

VARO MITÄ KLIKKAAT VARTEN

by Chrizzy Veine   Yesterday @ 10:00pm
20 Views
no comments
 
Climate degegates generating 29,000 tonnes of CO2: Group

Flights and hotels for the entire 9,000 delegates from 190 countries attending the UN climate confernece here will generate almost 29,000 tonnes of carbon dioxide, according to an estimate by a group campaigning on behalf of green energy developers.

According to Project Developer Forum, the 29,000 tonnes of carbon dioxide is roughly equivalent to the emissions produced by the entire Pacific island state of Kiribati in six months.

Benny Peiser, of the climate-sceptic Global Warming Policy Foundation described the 12-day climate summit in the Peruvian capital as the “green blob’s annual ritual” and “an expensive form of mass tourism, never mind the carbon footprint”.

“More importantly, the ritual gathering isn’t going to overcome the underlying deadlock,” he said.

14 Views
no comments
 
The beginnings of automation can be traced back to the industrial revolution in the eighteenth century, when people began to use machines to replace human labor and animal power. With advances in technology, electronics, computers, optical testing, and rapid developments in other areas, the concepts for machine control became more complex. Automation has gradually become an automatic operating system with integrated automatic detection, data transmission, judgment and control that are directly executed according to program instructions. Through advanced power electronics technology, industrial automation has reached a higher level. A complete set of industrial automation systems is able to carry out intelligent control and complete programming, while controlling and operating independently.

Delta has devoted itself to the industrial automation field over the past decade. With years of insight and experience in power electronics and automatic control, Delta launched its first AC motor drive products in 1995. Since then, Delta has continued expanding its product lines, developing programmable logic controls and entering the field of motion control. Delta's industrial automation products, systems and solutions are widely used in various fields worldwide today, including food, textiles, chemicals, electronics, rubber, plastics, pharmaceuticals, printing, metal machine tools, processing machines and automated manufacturing equipment, as well as smart air conditioning, water supply, energy-saving equipment and system solutions for factories and buildings. With a strong R & D capability, advanced technology and rapid global service, Delta Industrial Automation insists on quality, reliability and excellence and it brings you the best in "Automation for a Changing World"!

18 Views
no comments
 
import java.util.ArrayList;
import java.util.Random;
import java.util.Scanner;
/**
 * @author Nabil
 * 20/12/2014
 * V2
 */
public class JeuxCapitales {
by Nabil   Yesterday @ 4:49pm
16 Views
no comments
 
      chromosomes[iz]=utilities.Code(search.sol);
      MySolution xsD=new MySolution(MDVRPTW.instance,chromosomes[iz].getGenesAsStr());
      MyObjectiveFunction.evaluateAbsolutely(xsD);
      
      
      
 
        System.out.println("STAMPA SOL");
      for (int i=0;i<search.sol.getRoutes()[0].length;i++)
          System.out.println("route " + search.sol.getRoutes()[0][i].printRoute());
Yesterday @ 4:07pm
Tags:
17 Views
no comments
 
chromosomes[iz]=utilities.Code(search.sol);
       MySolution xsD=new MySolution(MDVRPTW.instance,chromosomes[iz].getGenesAsStr());
       MyObjectiveFunction.evaluateAbsolutely(xsD);
       
       
       
       System.out.println("searchsol  " + search.sol.getCost().travelTime);
       
       for (int i=0;i<search.sol.getRoutes()[0].length;i++)
           System.out.println("route " + search.sol.getRoutes()[0][i].printRoute());
Yesterday @ 4:06pm
Tags:
13 Views
no comments
 
import java.util.Random;
import java.util.Scanner;
/**
 * @author Nabil
 * 20/12/2014
 */
public class JeuxCapitales {
    public static void main(String[] args) {
        String pays[] = {"Afghanistan" , "Afrique du Sud" , "Albanie" , "Algérie" , "Allemagne" , "Andorre" , "Angleterre" , "Angola" , "Arabie Saoudite" , "Argentine" , "Arménie" , "Antigua-et-Barbuda" , "Australie" , "Autriche" , "Azerbaïdjan" , "Bahamas" , "Bahreïn" , "Bangladesh" , "Barbade" , "Belgique" , "Belize" , "Bénin" , "Bhoutan" , "Biélorussie" , "Birmanie" , "Bolivie" , "Bosnie-Herzégovine" , "Botswana" , "Brésil" , "Brunei" , "Bulgarie" , "Burkina Faso" , "Burundi" , "Cambodge" , "Cameroun" , "Canada" , "Cap-Vert" , "Chili" , "Chine" , "Chypre" , "Colombie" , "Comores" , "Congo" , "Corée du Nord" , "Corée du Sud" , "Costa Rica" , "Côte d'Ivoire" , "Croatie" , "Cuba" , "Danemark" , "Djibouti" , "Dominique" , "Ecosse" , "Egypte" , "Emirats Arabes Unis" , "Equateur" , "Erythrée" , "Espagne" , "Estonie" , "Etats-Unis" , "Ethiopie" , "Fidji" , "Finlande" , "France" , "Gabon" , "Gambie" , "Géorgie" , "Ghana" , "Grèce" , "Grenade" , "Guatemala" , "Guinée" , "Guinée équatoriale" , "Guinée-Bissau" , "Guyana" , "Haïti" , "Honduras" , "Hongrie" , "île Maurice" , "Inde" , "Indonésie" , "Irak" , "Iran" , "Irlande" , "Irlande du Nord" , "Islande" , "Israël" , "Italie" , "Jamaïque" , "Japon" , "Jordanie" , "Kazakhstan" , "Kenya" , "Kirghizistan" , "Kiribati" , "Kosovo" , "Koweït" , "Laos" , "Lesotho" , "Lettonie" , "Liban" , "Liberia" , "Libye" , "Liechtenstein" , "Lituanie" , "Luxembourg" , "Macédoine" , "Madagascar" , "Malaisie" , "Malawi" , "Maldives" , "Mali" , "Malte" , "Maroc" , "Marshall" , "Mauritanie" , "Mexique" , "Micronésie" , "Moldavie" , "Monaco" , "Mongolie" , "Monténégro" , "Mozambique" , "Namibie" , "Nauru" , "Népal" , "Nicaragua" , "Niger" , "Nigeria" , "Norvège" , "Nouvelle-Zélande" , "Oman" , "Ouganda" , "Ouzbékistan" , "Pakistan" , "Palaos" , "Panama" , "Papouasie-Nouvelle-Guinée" , "Paraguay" , "Pays de Galles" , "Pays-Bas" , "Pérou" , "Philippines" , "Pologne" , "Portugal" , "Qatar" , "République Centrafricaine" , "République Démocratique du Congo" , "République Dominicaine" , "République Tchèque" , "Roumanie" , "Russie" , "Rwanda" , "Sainte-Lucie" , "Saint-Kitts-et-Nevis" , "Saint-Marin" , "Saint-Vincent-et-les-Grenadines" , "Salomon" , "Salvador" , "Samoa" , "São Tomé et Príncipe" , "Sénégal" , "Serbie" , "Seychelles" , "Sierra Leone" , "Singapour" , "Slovaquie" , "Slovénie" , "Somalie" , "Soudan" , "Sri Lanka" , "Suède" , "Suisse" , "Suriname" , "Swaziland" , "Syrie" , "Tadjikistan" , "Taïwan" , "Tanzanie" , "Tchad" , "Thaïlande" , "Timor-Oriental" , "Togo" , "Tonga" , "Trinité-et-Tobago" , "Tunisie" , "Turkménistan" , "Turquie" , "Tuvalu" , "Ukraine" , "Uruguay" , "Vanuatu" , "Vatican" , "Venezuela" , "Viêt Nam" , "Yémen" , "Zambie" , "Zimbabwe"};
by Nabil   Yesterday @ 3:58pm
19 Views
no comments
 
traceroute to 109.236.82.120 (109.236.82.120), 30 hops max, 60 byte packets
 1  37.187.168.253 (37.187.168.253)  0.791 ms  0.787 ms  0.973 ms
 2  sbg-g2-a9.fr.eu (188.165.9.77)  0.838 ms  0.912 ms  0.956 ms
 3  fra-5-6k.fr.eu (91.121.128.83)  32.479 ms * *
 4  ve504.r1.fra2.de.atrato.net (80.81.194.66)  3.234 ms  10.526 ms  6.236 ms
 5  eth11-1.core1.ams1.nl.as5580.net (78.152.44.246)  13.242 ms  12.968 ms  12.8                                            87 ms
 6  eth3-4.edge2.ams5.nl.as5580.net (78.152.44.40)  18.486 ms  21.865 ms  22.039                                             ms
 7  eth3-4.edge1.rtd1.nl.as5580.net (78.152.54.184)  14.505 ms  14.321 ms  14.48                                            0 ms
 8  78.152.49.194 (78.152.49.194)  14.523 ms  14.421 ms worldstream-ic.rtd1.nl.a                                            trato.net (78.152.46.126)  13.949 ms
 9  109.236.95.194 (109.236.95.194)  16.730 ms  16.463 ms 109.236.95.215 (109.23                                            6.95.215)  16.515 ms
Yesterday @ 2:05pm
Tags:
15 Views
no comments
 
public final static void main(String[] args) throws Exception {

   int sure = 1000 * 60 * 10; // 10 dakika
   String dakika = "";
   String saniye = "";

   while (sure >= 0) {

      Calendar calendar = Calendar.getInstance();
      calendar.setTimeInMillis(sure);
Yesterday @ 1:42pm
25 Views
no comments
 
Oturum Başlatıldı: %s
 Sat Dec 20 21:45:01 2014
Ident Oturumu:  #X
* Bağlantınız Kesildi
Oturum Kapatıldı: %s
 Sat Dec 20 21:45:08 2014

Oturum Başlatıldı: %s
 Sat Dec 20 21:48:18 2014
Yesterday @ 12:54pm
Tags:
14 Views
no comments
 
<?
error_reporting(E_ALL);
include("veritabani.php");
include("fonksiyon.php");
$kullanici = $_COOKIE["kullanici"];
if (isset($kullanici)) {
$sql = ("select * from uye");
}
else {
header ("Location: giris.php");
Yesterday @ 9:14am
Tags:
13 Views
no comments
 
css
{ANILIST-COUNT}
{ANILIST-COVERS=LRG}


body 
{
  background:url(http://i.imgur.com/1WGl1zv.jpg) no-repeat fixed left -80px;
  background-position-x:-50px;
}

Yesterday @ 8:23am
Tags:
16 Views
no comments
 
var clickBody:Function = function(event:Event):void{
   bahisList.visible = false;
   limitList.visible = false;
   removeEventListener(MouseEvent.CLICK, clickBody);
}
bahis.addEventListener(MouseEvent.CLICK, function(evet:Event):void {
   bahisList.visible = !bahisList.visible;
   if(bahisList.visible) {
       addEventListener(MouseEvent.CLICK, clickBody);
   } else {
Yesterday @ 7:57am
Tags:
15 Views
no comments
 
void generovanie_usporiadane_pole(int dlzka,char *nazov,char *nazov1)
{
	int i,j=dlzka;

	int *z,*vz;                                                
 vz=(int *)malloc(dlzka*sizeof(int)); 
	z=(int *)malloc(dlzka*sizeof(int));
	
	for(i=0;i<dlzka;i++)
 {
Yesterday @ 7:07am
Tags:
21 Views
no comments
 
int TimeStamp = 0;

private void roll_cube_miss_remove(int line)
{
    if (Convert.ToInt32(Math.Floor(PastTime_ms * 100)) != TimeStamp)
    {
        TimeStamp = Convert.ToInt32(Math.Floor(PastTime_ms * 100));

        if (Terms[Convert.ToInt32((PastTime_ms - judge) / 100) - 1].Substring(line, 1) == "2")
        {
Yesterday @ 6:49am
Tags:
16 Views
no comments
 
brought to you by:
West Wind Techologies