All pastesPublic feed

Public feed

Pastes people chose to make public. Author names hidden.
  • Mine

    2064559·cpp·199 B·2011-05-19 12:43 UTC
    n = a.length();
     int lo = 0, hi = n - 1, ret = 0;
     while(lo < hi)
     {
     while(lo < hi &&a[lo] == 'W') lo++;
     while(lo < hi && a[hi] == 'B') hi--;
     if(hi > lo) ret++;
     }
  • Someone

    2064544·bash·133 B·2011-05-19 12:21 UTC
    if ( -d $f ) then
     if ( `ls $f | wc -l` > 0 ) then
     foreach f1 ($f/*)
     # Whatever
     end
     endif
    endif
  • Mine

    2064542·text·307 B·2011-05-19 12:16 UTC
    download_rate=0
    upload_rate=0
    max_uploads=100
    max_peers=1000
    min_peers=200
    directory=/media/250/rtorrent
    session=/home/torrents/session
    schedule=omg_rss_sct,5,5,load_start=/home/torrents/watch/
  • Unnamed

    2064536·text·530 B·2011-05-19 12:10 UTC
    natalie@ubuntu:~/Downloads$ sudo dpkg -i install skype-ubuntu_2.2.0.25-1_i386.deb 
    dpkg: error processing install (--install):
     cannot access archive: No such file or directory
    Selecting previously
  • Unnamed

    2064513·text·443 B·2011-05-19 11:56 UTC
    Job {
     Name = "xen01-day"
     Type = Backup
     Client = xen01-fd
     JobDefs = "DefaultJob"
     FileSet = "xen01f-set"
     Schedule = "diff-day"
     Storage = Na
  • Miscellany

    2064509·php·213 B·2011-05-19 11:55 UTC
    echo "<a href=\"index.php?strona=gwarancje.php&id={$row['id']}\">{$i}. {$row['nazwa']}</a> <small>(do {$date})</small>";
    echo HTM::anchor("index.php?strona=gwarancje.php&id={$row['id']}", "{$i}. {$ro
  • Miscellany

    2064508·text·213 B·2011-05-19 11:54 UTC
    echo "<a href=\"index.php?strona=gwarancje.php&id={$row['id']}\">{$i}. {$row['nazwa']}</a> <small>(do {$date})</small>";
    echo HTM::anchor("index.php?strona=gwarancje.php&id={$row['id']}", "{$i}. {$ro
  • Mine

    2064426·text·4.4 KB·2011-05-19 11:06 UTC
    ### Eclipse Workspace Patch 1.0
    #P org.jboss.ide.eclipse.as.core
    Index: jbosscore/org/jboss/ide/eclipse/as/core/server/internal/LocalJBossBehaviorDelegate.java
    =====================================
  • First PY RPG

    2064425·python·10.3 KB·2011-05-19 11:06 UTC
    global level
    import time
    import random
    global exp
    global stre
    global agi
    global long_sword
    global long_sword_str
    global gold
    global exp_c
    global name
    global fist
    global fist_str
    global he
  • Someone

    2064415·c·516 B·2011-05-19 10:51 UTC
    // To sort array a[] of size n: qsort(a,0,n-1)
    
    void qsort(int a[], int lo, int hi) 
    {
     int h, l, p, t;
    
     if (lo < hi) {
     l = lo;
     h = hi;
     p = a[hi];
    
     do {
     while ((l
  • Someone

    2064407·cpp·1.4 KB·2011-05-19 10:48 UTC
    #include <cstdlib>
    #include <iostream>
    #include <vector>
    
    using namespace std;
    bool valid(vector <int> v)
    {
     bool val=true;
     for(int i=0; i<v.size(); i++)
     for(int k=i+1; k<v.siz
  • Someone

    2064387·text·7.7 KB·2011-05-19 10:37 UTC
    /***
    *SourceAnnotations.h - Source Annotation definitions
    *
    * Copyright (c) Microsoft Corporation. All rights reserved.
    *
    *Purpose:
    * Defines internal structures used by the Source C
  • Stuff

    2064345·text·1.9 KB·2011-05-19 10:06 UTC
    Le DD'ESSTIN, un groupe d'étudiant appartenant aux Cercles des Élèves de l'ESSTIN et engagé dans le développement durable, organise une conférence sur le thème : 
    " Dans quelle mesure l'Homme est-il
  • Stuff

    2064344·text·759 B·2011-05-19 10:05 UTC
    #colors6 off
    on *:input:*: {
     if ($left($1,1) != /) {
     say $colors6($1-)}
     halt
     }
    }
    #colors6 end
    menu * {
     &colors6
     .on:/enable #colors6
     .off:/disable #colors6
    }
    alias color
  • Anonymous

    2064332·php·261 B·2011-05-19 09:57 UTC
    $db = new mysqli('localhost','root','1988kedi','deneme');
    
    if ($db->error)
     exit();
    
    $stmt = $db->prepare("INSERT INTO deneme VALUES (?,?,?)");
    
    $stmt->bind_param('ssi',$adi,$soyadi,$no);
  • Untitled

    2064323·text·762 B·2011-05-19 09:47 UTC
    mvn clean install -U -B -fae -e -Plocal.site,as-bootstrap -Dskip.Download=true \
     -Dlocal.site=file:///home/rob/code/jbtools/jbosstools/trunk/build/target-platform/REPO/ \
     -Djbosstools.test.jbos
  • Ugly java code

    2064319·java·3.0 KB·2011-05-19 09:31 UTC
    public void run() {
     if (!hasGotTheLock())
     return;
    
     Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
     logger.info("SessionDailyTask running...");
  • Ugly java code

    2064316·java·1.6 KB·2011-05-19 09:26 UTC
    try {
     raTempFile = new RandomAccessFile(tempFile, "rw");
     while ((line = raTempFile.readLine()) != null) {
     dailyFile = new File(LogPat
  • Miscellany

    2064315·text·2.0 KB·2011-05-19 09:23 UTC
    make[4]: Entering directory `/tmp/SBo/AlephOne-20100424/Source_Files/Network/Metaserver'
    g++ -DHAVE_CONFIG_H -I. -I../../.. -I../../../Source_Files/CSeries -I../../../Source_Files/Files -I../../../So
  • Mine

    2064269·text·186 B·2011-05-19 09:08 UTC
    WebClient client = new WebClient();
    Uri uri = new Uri( op.faa_url[0]+op.airac_cycle+"/" + pdf);
    client.DownloadFileAsync(uri, path,ch);
    client.DownloadFileAsync(uri, "tmp\\"+path,ch);

older pastes →