New paste›Public feed

Public feed

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

    940499·php·387 B·2008-03-13 00:35 UTC
    <?
    session_start();
    
    require('functions.php');
    require('sql.php');
    
    // Database Instance
    $db = new Database;
    
    $requestPage = preg_replace('@[^a-z0-9_]@i', '', $_GET['page']);
    
    if(empty($req
  • Untitled

    940497·perl·1.3 KB·2008-03-13 00:34 UTC
    use strict;
    use warnings;
    use FileHandle;
    use File::Basename;
    use File::Copy;
    use File::Find;
    
    my @dirs;
    
    find({
     no_chdir => 1,
     wanted => sub {
     return unless -d;
     my $base = ba
  • Untitled

    940496·text·11.4 KB·2008-03-13 00:33 UTC
    /*
    
    COPYRIGHT (C) 1994 - 2002 Cay S. Horstmann. All Rights Reserved.
    
    NOTE TO STUDENTS: Do not attempt to study the contents of this file. You
    can, and should, use the services provided in this f
  • Stuff

    940495·text·424 B·2008-03-13 00:33 UTC
    class Learner
     def learn(text)
     words = text.split(/[^a-zA-Z]/)
     freqs = Hash.new(0)
     words.each { |word| freqs[word] += 1 }
     end
    end
    
    puts "Teach me something\n\n"
    Learner.new
    text = get
  • Stuff

    940493·text·627 B·2008-03-13 00:31 UTC
    mythbackend --version
    Please include all output in bug reports.
    MythTV Version : 16468
    MythTV Branch : tags/release-0-21
    Library API : 0.21.20080304-1
    Network Protocol : 40
    Options com
  • Untitled

    940492·text·72 B·2008-03-13 00:30 UTC
    def fib(n):
     if n <= 2: return 1
     else: return fib(n-1) + fib(n-2)
  • OmegaScript's Source Code v2.45

    940491·mirc·116.3 KB·2008-03-13 00:27 UTC
    
        
  • Something

    940488·text·1.0 KB·2008-03-13 00:24 UTC
    Plain scancodes xx (hex) versus keycodes (dec)
    for 1-83 (0x01-0x53) scancode equals keycode
    
     0x50: 80 81 82 83 99 0 86 87
     0x58: 88 117 0 0 95 183 184 185
     0x60: 0 0 0
  • Miscellany

    940485·text·2.3 KB·2008-03-13 00:23 UTC
    ;1. Write the procedure (dupla n L) that creates a list of 
    ; by replacing each data expression of L with n.
    ; ex. (dupla 'a '(1 2 3)) -> '(a a a)
    ; (dupla 'a '()) -> '()
    ; (dupla '(1
  • Hello

    940483·text·4 B·2008-03-13 00:21 UTC
    hi !
  • Unnamed

    940482·text·67.9 KB·2008-03-13 00:21 UTC
    
        
  • maaaaaadwifi

    940479·text·177 B·2008-03-13 00:20 UTC
    th_pci: driver unloaded
    wlan: driver unloaded
    ath_hal: driver unloaded
    ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
    wlan: 0.9.4
    ath_pci: 0.9.4
  • Someone

    940475·text·492 B·2008-03-13 00:13 UTC
    def learn(text)
     words = text.split(/[^a-zA-Z]/)
     freqs = Hash.new(0)
     words.each { |word| freqs[word] += 1 }
     freqs = freqs.sort_by {|x,y| y }
     freqs.reverse!
     freqs.each {|word, freq| puts wor
  • Mine

    940473·text·8.4 KB·2008-03-13 00:08 UTC
    Logfile of HijackThis v1.99.1
    Scan saved at 14:46:16, on 12/03/2008
    Platform: Unknown Windows (WinNT 6.00.1904)
    MSIE: Internet Explorer v7.00 (7.00.6000.16609)
    
    Running processes:
    C:\Windows\sys
  • Unnamed

    940472·text·389 B·2008-03-13 00:08 UTC
    def learn
     $text = text
     words = text.split(/[^a-zA-Z]/)
     freqs = Hash.new(0)
     words.each { |word| freqs[word] += 1 }
    end
    
    puts "Teach me something\n\n"
    text = gets.chomp
    learn
    
    #words =
  • genuse

    940471·text·2.2 KB·2008-03-13 00:06 UTC
    stage1/xgcc -Bstage1/ -B/usr/i686-pc-linux-gnu/bin/ -c -O2 -march=i686 -pipe -fprofile-generate -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long
  • Someone

    940470·java·734 B·2008-03-13 00:06 UTC
    import java.util.*;
    
    public class Cijferlijst
    {
     private ArrayList cl;
     private int aantal;
     private int voldoende;
     private int onvoldoende;
     private int cijfer;
     
     public Cij
  • Miscellany

    940469·text·6.9 KB·2008-03-13 00:02 UTC
    Logfile of Trend Micro HijackThis v2.0.2
    Scan saved at 4:59:12 PM, on 3/12/2008
    Platform: Windows XP SP2 (WinNT 5.01.2600)
    MSIE: Internet Explorer v7.00 (7.00.6000.16608)
    Boot mode: Normal
    
    Runn
  • Someone

    940468·text·5 B·2008-03-13 00:02 UTC
    wegeg
  • Someone

    940467·text·734 B·2008-03-13 00:01 UTC
    import java.util.*;
    
    public class Cijferlijst
    {
     private ArrayList cl;
     private int aantal;
     private int voldoende;
     private int onvoldoende;
     private int cijfer;
     
     public Cij

older pastes →