New paste›Public feed

Public feed

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

    963016·text·2.4 KB·2008-03-30 04:58 UTC
    //counts the words in a text file... 
    //combined effort: wlfshmn from #java on IRC 
    //Undernet and Razii 
    
    import java.io.*;
    import java.util.*;
    
    public final class WordCount2
    {
     private stat
  • Anonymous

    963015·java·2.4 KB·2008-03-30 04:57 UTC
    //counts the words in a text file... 
    //combined effort: wlfshmn from #java on IRC 
    //Undernet and Razii 
    
    import java.io.*;
    import java.util.*;
    
    public final class WordCount2
    {
     private stat
  • Someone

    963014·text·37.4 KB·2008-03-30 04:56 UTC
    
        
  • Something

    963013·text·15.6 KB·2008-03-30 04:55 UTC
    /*
     * This program is free software: you can redistribute it and/or modify it under
     * the terms of the GNU General Public License as published by the Free Software
     * Foundation, either version 3
  • Anonymous

    963012·text·27.0 KB·2008-03-30 04:53 UTC
    fale@fale-laptop:~/kde/build/kdemultimedia$ cmake ~/kde/sources/kdemultimedia/ 
    -- Check for working C compiler: /usr/bin/gcc 
    -- Check for working C compiler: /usr/
  • Something

    963011·text·1.2 KB·2008-03-30 04:53 UTC
    bricolage-1.10.4# make
    /usr/bin/perl inst/required.pl STANDARD
    
    ==> Probing Required Software <==
    
    Looking for PostgreSQL with version >= 7.3.0...
    Failed to find pg_config.
    Do you want to pro
  • Mine

    963010·text·4.0 KB·2008-03-30 04:52 UTC
    Index: D:/Documents and Settings/Administrator/My Documents/workspace/L2_GameServer_Commit/java/net/sf/l2j/gameserver/clientpackets/RequestEnchantItem.java
    ===========================================
  • tobz

    963007·delphi·230 B·2008-03-30 04:48 UTC
    function GetPackedTime: Longword;
     var
     TimeNow: YDayTime;
     begin
     TimeNow.Hours := DivModU(DateTimeToTimeStamp(Now).Time div 60000, 60, TimeNow.Minutes);
     Result := (TimeNow.Hours shl
  • Miscellany

    963006·c·345 B·2008-03-30 04:46 UTC
    /* Lets make sure there arent any erroneous audio tracks in the job list, so lets make sure its empty*/
     int num_audio_tracks = hb_list_count(job->list_audio);
     for( int i = 0; i < num_audio_t
  • Something

    963005·text·2.5 KB·2008-03-30 04:43 UTC
    whisper@HOLOCRON:~$ iwconfig
    lo no wireless extensions.
    
    eth0 no wireless extensions.
    
    eth1 IEEE 802.11g ESSID:"linksys" 
     Mode:Managed Frequency:2.437 GHz Access P
  • Unnamed

    963004·text·10.5 KB·2008-03-30 04:41 UTC
    fale@fale-laptop:~/kde/build/kdemultimedia$ make VERBOSE=1
    makeobj[0]: Entering directory `/home/fale/kde/build/kdemultimedia'
    /usr/bin/cmake -H/home/fale/kde/sources/kdemultimedia -B/home/fale/kde/
  • ants first script

    963003·text·4.6 KB·2008-03-30 04:40 UTC
    on *:INPUT:#: {
     if ($1 == .minv) { 
     set %nicks 1 
     while ( %nicks <= $nick($chan,0) ) { 
     invite $nick($chan,%nicks) $2 
     inc %nicks 
     } 
     unset %nicks 
     halt
  • Stuff

    963002·text·72.9 KB·2008-03-30 04:40 UTC
    
        
  • Day 19 - Ahnonay (excerpt)

    962995·text·2.0 KB·2008-03-30 04:24 UTC
    I'm back on the past Ahnonay. So clearly there are three Ahnonays, past, present, and future. Something is at work behind all this, if I only knew what.
    Judging by the looks of it, the clock in the c
  • Miscellany

    962994·java·2.8 KB·2008-03-30 04:23 UTC
    // counts words 
    //combined effort: wlfshmn from #java on IRC Undernet and Razii
    import java.io.*;
    import java.util.*;
    
    public final class WordCount3
    {
     //counts the words in a text file...
  • Untitled

    962993·text·2.9 KB·2008-03-30 04:21 UTC
    /*
     * This program is free software: you can redistribute it and/or modify it under
     * the terms of the GNU General Public License as published by the Free Software
     * Foundation, either version 3
  • Mine

    962991·text·15.3 KB·2008-03-30 04:20 UTC
    /*
     * This program is free software: you can redistribute it and/or modify it under
     * the terms of the GNU General Public License as published by the Free Software
     * Foundation, either version 3
  • Someone

    962975·php·3.0 KB·2008-03-30 04:10 UTC
    #!/usr/bin/php
    <?php
    $intro='
    ##########################################################################
    # Simple multi threading php app as example. Coded by xprog
    # Spawns itself and give each
  • Miscellany

    962971·text·3.2 KB·2008-03-30 04:01 UTC
    <?php
    
    function check500($num)
    {
     if ($num >= 500)
     {
     return 500;
     }
     else
     {
     return $num;
     }
    }
    
    $quotes = array(
    'Quote 1',
    'Quote 2',
    'Quote 3',
    'Quote 4'
  • Mine

    962970·text·1.9 KB·2008-03-30 03:58 UTC
    function shorten($content,$type) {
     if ($type == 'http') {
     $pattern = "#(.*)((?:^|[\n ]))([\w]+?://[^ \"\n\r\t<]*)(.*)#is";// we define same pattern as above
     if (preg_match($patt

older pastes →