All pastes›Public feed

Public feed

Pastes people chose to make public. Author names hidden.
  • FP to Default Parameter Fn

    1746649·cpp·341 B·2010-01-11 09:24 UTC
    /* Pointer to Functions with Default Parameters */
    #include <cstdio>
    
    void foo(int x = 0, int y = 0) {
     if(x && y); // Only to keep the compiler happy
     puts("void foo(int, int)");
    }
    
    vo
  • Function Pointer to Function wit

    1746643·text·266 B·2010-01-11 09:13 UTC
    #include <cstdio>
    
    void foo(int x = 0, int y = 0) {
     if(x && y); // To keep the compiler happy
     puts("void foo(int, int)");
    }
    
    void (*fp_int_int)(int, int) = foo;
    
    int main() {
     f
  • mama

    1746608·text·6.7 KB·2010-01-11 08:26 UTC
    !!################################
    !!ALSA Information Script v 0.4.58
    !!################################
    
    !!Script ran on: Mon Jan 11 08:26:09 UTC 2010
    
    !!Linux Distribution
    !!------------------
    
    Ub
  • Untitled

    1746605·text·948 B·2010-01-11 08:20 UTC
    0011010100110100001101100011100000110110001101010011001000110000
    
    0011011000110101001101110011100000110010011001000011010001100100
    
    0011010100110000001100100011000000110110011001100011011001100101
  • Discussion about UnionFS from #r

    1746603·text·3.1 KB·2010-01-11 08:12 UTC
    Discussion about UnionFS from #rockbox-community
    
    07:52 <JdGordon|> GodEater: dont say other filesystems are nodo :( ... i do sort of want to get NFS going on the mini2440 :p
    07:52 <JdGordon|> whic
  • root

    1746583·text·5.1 KB·2010-01-11 07:36 UTC
    !!################################
    !!ALSA Information Script v 0.4.58
    !!################################
    
    !!Script ran on: Mon Jan 11 07:36:51 UTC 2010
    
    !!Linux Distribution
    !!------------------
    
    Ub
  • root

    1746582·text·5.1 KB·2010-01-11 07:36 UTC
    !!################################
    !!ALSA Information Script v 0.4.58
    !!################################
    
    !!Script ran on: Mon Jan 11 07:35:49 UTC 2010
    
    !!Linux Distribution
    !!------------------
    
    Ub
  • Bordem At its Finest

    1746569·csharp·2.5 KB·2010-01-11 07:09 UTC
    private void updateimage()
     {
     Bitmap img = new Bitmap(pictureBox1.Width, pictureBox1.Height);
     Graphics g = Graphics.FromImage(img);
     Pen bg_col = new Pen(
  • leon

    1746564·text·29.1 KB·2010-01-11 06:50 UTC
    !!################################
    !!ALSA Information Script v 0.4.58
    !!################################
    
    !!Script ran on: Mon Jan 11 06:48:36 UTC 2010
    
    !!Linux Distribution
    !!------------------
    
    Ub
  • Stuff

    1746538·text·2.0 KB·2010-01-11 06:03 UTC
    execve("./rzscontrol", ["./rzscontrol", "/dev/ramzswap0", "--init"], [/* 29 vars */]) = 0
    brk(0) = 0x413000
    uname({sys="Linux", node="sgio2", ...}) = 0
    old_mmap(NUL
  • reportfiles.pl

    1746529·perl·2.4 KB·2010-01-11 05:48 UTC
    #!/usr/bin/perl
    
    use CGI;
    
    #change this to the full pathname to the bottom of the dir structure:
    my $dir = "/tmp/";
    
    print "Content-type: text/html\n\n";
    my $cgiin = CGI->new;
    my $letter = $c
  • ok

    1746523·text·990 B·2010-01-11 05:37 UTC
    #!/usr/bin/perl
    use CGI;
    
    my $base = "/tmp/";
    
    my $query = CGI->new;
    my $filename = $query->param('filename');
    
    if ($filename eq "") {
     $filename = $ARGV[0];
     print "Doing this from the comm
  • Something

    1746522·text·17.0 KB·2010-01-11 05:36 UTC
    Program: /usr/local/bin/warzone2100(warzone2100)
    Command line: "warzone2100" 
    Version: Version TRUNK r9128 (modified locally) - Built Jan 10 2010 - DEBUG
    Distributor: UNKNOWN
    Compiled on: Jan 10 2
  • raghurama

    1746517·text·29.4 KB·2010-01-11 05:28 UTC
    !!################################
    !!ALSA Information Script v 0.4.58
    !!################################
    
    !!Script ran on: Mon Jan 11 05:28:25 UTC 2010
    
    !!Linux Distribution
    !!------------------
    
    Ub
  • raghurama

    1746515·text·29.4 KB·2010-01-11 05:27 UTC
    !!################################
    !!ALSA Information Script v 0.4.58
    !!################################
    
    !!Script ran on: Mon Jan 11 05:27:16 UTC 2010
    
    !!Linux Distribution
    !!------------------
    
    Ub
  • TRY THIS

    1746504·perl·785 B·2010-01-11 05:10 UTC
    #!/usr/bin/perl
    use CGI;
    
    my $base = "/home/unixfu/core/";
    
    my $query = CGI->new;
    my $filename = $query->param('filename');
    $filename = s/\.\.//g;
    my $goodfilename = $base . $filename;
    opendi
  • guaranteed or your money back!

    1746480·perl·2.3 KB·2010-01-11 04:43 UTC
    #!/usr/bin/perl
    
    use CGI;
    
    #change this to the full pathname to the bottom of the dir structure:
    my $dir = "/tmp/";
    
    print "Content-type: text/html\n\n";
    my $cgiin = CGI->new;
    my $letter = $c
  • files listing script

    1746443·perl·1.6 KB·2010-01-11 04:02 UTC
    #!/usr/bin/perl
    
    use CGI;
    
    #change this to the full pathname to the bottom of the dir structure:
    my $dir = ".";
    
    print "Content-type: text/html\n\n";
    my $cgiin = CGI->new;
    my $letter = $cgiin
  • j-rock

    1746434·text·34.3 KB·2010-01-11 03:56 UTC
    
        
  • C

    1746433·c·4.6 KB·2010-01-11 03:55 UTC
    #include "gui.h"
    #include <stdlib.h>
    #include <time.h>
    #include "misc.h"
    #include <sys/types.h>
    #include <dirent.h>
    #include <string.h>
    
    #if !defined (get16bits)
    #define get16bits(d) ((((uint32_t)(((c

older pastes →