New paste›Public feed

Public feed

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

    939236·text·267 B·2008-03-12 03:56 UTC
    public String changeXY(String str) {
     int index = str.indexOf("x");
     if(index == -1) {
     return str;
     }
     String answer = str.substring(0, index) + "y"
     + str.s
  • Something

    939233·text·230 B·2008-03-12 03:50 UTC
    Given a string, compute recursively (no loops) a new string where all the lowercase 'x' chars have been changed to 'y' chars. 
    
    changeXY("codex") → "codey" 
    changeXY("xxhixx") → "yyhiyy" 
    changeXY
  • Someone

    939231·text·9.3 KB·2008-03-12 03:48 UTC
    Disgust, and the tangled mess of reasoning which follows closely behind. Somehow, it all ties into my current train of thought. The effects it has to let life just happen to you, indiscriminately. To
  • Someone

    939226·text·201 B·2008-03-12 03:43 UTC
    *** lib.py ***
    class Lib:
     def go(self):
     return "go go go!"
    
    *** prog.py ***
    from lib import *
    l = Lib();
    g = l.go()
    print g
    
    *** execution ***
    D:\108>python prog.py
    go go go!
    
    D:\108
  • Someone

    939223·text·198 B·2008-03-12 03:41 UTC
    *** lib.py ***
    class Lib:
     def go(self):
     return "go go go!"
    
    *** prog.py ***
    import lib
    l = lib.Lib();
    g = l.go()
    print g
    
    *** execution ***
    D:\108>python prog.py
    go go go!
    
    D:\108>
  • Anonymous

    939221·text·230 B·2008-03-12 03:38 UTC
    member IsMovingToCurrentPOI()
     {
     variable point3f Location=${Me.Location}
     if ${This.POIStr.Equal[${POI.Str}]}
     {
     if ${Math.Distance[${Me.Location},${Location}]}>0
     {
     return TRUE
  • Unnamed

    939220·text·155 B·2008-03-12 03:38 UTC
    public class MyPage extends WebPage {
     private int idN;
     public MyPage(int idN) {
     this.idN = idN;
     add(new Label("label", "a label"));
     }
    }
  • Stuff

    939219·text·1008 B·2008-03-12 03:34 UTC
    * Messages for package x11-drivers/nvidia-drivers-169.12-r10:
    
     * Please disable PARAVIRT in your kernel config, found at:
     *
     * Processor type and features
     * [*] Paravirtualized guest sup
  • Mine

    939217·text·76.3 KB·2008-03-12 03:30 UTC
    
        
  • Miscellany

    939216·text·20.0 KB·2008-03-12 03:29 UTC
    [diego@blackbird ~]$ sudo zpool status
     pool: dados
     state: ONLINE
     scrub: none requested
    config:
    
     NAME STATE READ WRITE CKSUM
     dados ONLINE 0 0 0
  • Something

    939215·text·819 B·2008-03-12 03:27 UTC
    CC=/Developer/Platforms/Aspen.platform/Developer/usr/bin/g++-4.0
    CFLAGS=-fsigned-char
    LDFLAGS=-Wl,-dead_strip -framework CoreFoundation -framework Foundation -framework UIKit -framework CoreGraphics
  • Miscellany

    939212·text·919 B·2008-03-12 03:19 UTC
    danyxxx sitting in seat 1 with $65.40
    - MP-TIGER sitting in seat 2 with $83.05
    - Isomorph sitting in seat 3 with $118.73
    - Invisigoth sitting in seat 4 with $131.68 [Dealer]
    - Freddoo sitting in s
  • Miscellany

    939210·text·877 B·2008-03-12 03:17 UTC
    Pruppen97 sitting in seat 1 with $92.13 [Sitting out]
    - Cirino83 sitting in seat 2 with $56.84
    - Isomorph sitting in seat 3 with $117.28
    - hardtoplease sitting in seat 4 with $101.83 [Dealer]
    - el
  • beck-o-saurus log

    939207·text·6.5 KB·2008-03-12 03:14 UTC
    (10:42:42 PM) Rebecca Gale: did u knoe kristen was in ricks room?
    (10:42:42 PM) camperdave614@gmail.com <AUTO-REPLY> : I'm not here right now
    (10:44:18 PM) Rebecca Gale: did u?
    (10:44:56 PM) campe
  • Unnamed

    939203·text·226 B·2008-03-12 03:02 UTC
    Given a string, compute recursively (no loops) a new string where all the lowercase 'x' chars have been moved to the end of the string. 
    
    endX("xxre") → "rexx" 
    endX("xxhixx") → "hixxxx" 
    endX("xh
  • Unnamed

    939200·text·1.9 KB·2008-03-12 03:00 UTC
    ccache g++ -c -pipe -march=pentiumpro -fomit-frame-pointer -O3 -Wall -Wno-switch -Wpointer-arith -Wredundant-decls -Wno-non-virtual-dtor -D__STDC_CONSTANT_MACROS -I/usr/include/directfb -D_REENTRANT -
  • Untitled

    939198·text·7.9 KB·2008-03-12 02:58 UTC
    <?php
    $src = file_get_contents("http://www.searchmash.com/results/blogs:%5Bquery%5D");
    
    $fail = json_decode($src);
    
    var_dump($fail);
    
    /*
    object(stdClass)#1 (6) {
     ["estimatedCount"]=>
     str
  • Anonymous

    939196·text·36.8 KB·2008-03-12 02:51 UTC
    
        
  • Something

    939195·text·225 B·2008-03-12 02:47 UTC
    <fieldset>
     <div>
     <div>Click here for more info: <a href="#">more</a></div>
     <div>Show and hide this content when the link is clicked, and change the link to say less when this is not hidden.</d
  • Miscellany

    939193·lua·575 B·2008-03-12 02:45 UTC
    function defenseCalc(item)
     for i = 0, item.stats:size() -1 do
     if item.stats[i].Stat.Stat == "armorclass" then
     basedef = item.stats[i].Value
     break
     end
     end

older pastes →