All pastesPublic feed

Public feed

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

    2012399·text·231 B·2010-12-06 22:32 UTC
    #include <stdint.h>
    #include <unistd.h>
    
    uint32_t
    arc4random_uniform(uint32_t limit)
    {
     uint32_t val, rem;
    
     do {
     val = arc4random();
     rem = val % limit;
     } while (val - rem > UINT32_MAX
  • StatusNet build number

    2012388·bash·97 B·2010-12-06 22:15 UTC
    echo "<?php \$config['site']['build'] = '`date -u +%Y%m%dT%H%M%S`';" > /etc/statusnet/buildno.php
  • Anonymous

    2012381·text·1.2 KB·2010-12-06 22:09 UTC
    (21:28:04) (+jms1989) any of you know how to comment out a ruby line?
    (21:28:13) (+Peach) google it
    (21:28:33) (+jms1989) fu
    (21:28:40) • Joins: Konquerer (Konquerer@secfo-AC7B7C47.jax.bellsouth.ne
  • loomsen

    2012304·bash·799 B·2010-12-06 20:52 UTC
    #!/usr/bin/env bash
    #
    # This file echoes a bunch of color codes to the 
    # terminal to demonstrate what's available. Each 
    # line is the color code of one forground color,
    # out of 17 (default
  • Untitled

    2012281·text·3.6 KB·2010-12-06 20:30 UTC
    #
    # The MySQL database server configuration file.
    #
    # You can copy this to one of:
    # - "/etc/mysql/my.cnf" to set global options,
    # - "~/.my.cnf" to set user-specific options.
    # 
    # One can use
  • Someone

    2012156·text·1.4 KB·2010-12-06 18:17 UTC
    18:04 < Gucky> ha ha dave just went full panda :)
    18:10 < tyrion> ndonegan: sorry
    18:10 < gormanm> how?
    18:11 < tyrion> gormanm: this was cron'd to run every minute:
    18:11 < tyrion> #!/bin/bash
    1
  • psyhocky

    2012129·actionscript·111 B·2010-12-06 17:49 UTC
    Сильно хорошая новость. Автор делайте новости в том же духе.
  • daniel

    2012114·text·22.8 KB·2010-12-06 17:30 UTC
    !!################################
    !!ALSA Information Script v 0.4.59
    !!################################
    
    !!Script ran on: Mon Dec 6 17:29:58 UTC 2010
    
    !!Linux Distribution
    !!------------------
    
    Ub
  • XML Shader for irrlicht patch v0

    2012004·text·55.9 KB·2010-12-06 15:35 UTC
    
        
  • Stuff

    2011997·text·9.4 KB·2010-12-06 15:32 UTC
    #include<iostream>
    #include<fstream>
    #include<ctype.h>
    #include<stdio.h>
    #include<string.h>
    #include<process.h>
    using namespace std;
    class bookentery
    {
     int bookno;
     char name[30];
     char au
  • speccy

    2011987·text·12.1 KB·2010-12-06 15:28 UTC
    Summary
     Operating System
     MS Windows 7 Enterprise 64-bit
     CPU
     AMD Phenom II X4 955 25 C
     Deneb 45nm Technology
     RAM
     4.0GB Dual-Channel DDR3 @ 668MHz (9-9-9-24)
     Motherboard
  • Sort By Artist.py

    2011966·python·2.0 KB·2010-12-06 15:06 UTC
    #!/usr/bin/env python
    import os
    import shutil
    import re
    
    import ptab
    
    """
    Sort By Artist.py
    
    Changes for 2.0:
    * RENAMES FILES! Now songs are moved to Artist/Title.ptb as defined in their he
  • Someone

    2011916·text·13.3 KB·2010-12-06 13:50 UTC
    [3:08:43 PM] *** Michael Ramas added David Samuel Soltura, Khal ***
    [3:08:45 PM] *** Conference call ***
    [3:08:53 PM] Michael Ramas: bastos yang organizers ng CF
    [3:08:59 PM] Michael Ramas: kala ni
  • Jemand

    2011891·text·15.1 KB·2010-12-06 12:55 UTC
    //\\//\\//\\//\\//\\//\\//\\//
    
     /*SCRIPT VERSION [2.0] BY MARKUS
     
     COPYRIGHT (C) 2009 - 2010
    
     2009-11-25*/
     
     //\\//\\//\\//\\//\\//\\//\\//
  • Projecto IP

    2011826·text·6.7 KB·2010-12-06 11:10 UTC
    /**
     * @author Bruno Palma
     * Uma aplicacao que determina se um sistema fornecido pelo utilizador
     * e permeavel ou nao
     */
    
    import java.util.Scanner;
    
    public class Main {
    
     public static vo
  • MHP3rd Item Translation Referenc

    2011782·text·18.8 KB·2010-12-06 09:22 UTC
    調合書①入門編 => Book of Combos 1
    調合書②初級編 => Book of Combos 2
    調合書③中級編 => Book of Combos 3
    調合書④上級編 => Book of Combos 4
    調合書⑤達人編 => Book of Combos 5
    回復薬 => Potion
    回復薬グレート => Mega Potion
    栄養剤 => Nutrients
  • MHP3rd Item Translation Referenc

    2011781·text·18.8 KB·2010-12-06 09:22 UTC
    調合書①入門編 => Book of Combos 1
    調合書②初級編 => Book of Combos 2
    調合書③中級編 => Book of Combos 3
    調合書④上級編 => Book of Combos 4
    調合書⑤達人編 => Book of Combos 5
    回復薬 => Potion
    回復薬グレート => Mega Potion
    栄養剤 => Nutrients
  • Miscellany

    2011735·text·1.2 KB·2010-12-06 06:46 UTC
    .-. .-. . . . . . .-. .-. .-. .-. .-. .-. . . .-. .-. . . .-. .-. .-. .-. .-. .-. . .-. . . .-. .-. .-. . . 
     | |-| |\| | | | |- |-' |( |- | |- |\| | ) | |-| |-| |
  • StepMania online error handler e

    2011707·php·562 B·2010-12-06 05:07 UTC
    <?php
    $productID = $_POST['Product'];
    $version = $_POST['Version'];
    $arch = $_POST['Arch'];
    $report = $_POST['Report'];
    $reason = $_POST['Reason'];
    
    header("Content-type: text/xml");
    
    $err
  • eece 474 code

    2011670·c·8.0 KB·2010-12-06 03:31 UTC
    #include <Servo.h>
    
    // Sensor values
    int value_middle = 0;
    int value_right = 0;
    int value_left = 0;
    // Averaged Sensor values
    float value_middle_ave = 0;
    float value_right_ave = 0;
    float valu

older pastes →