All pastesPublic feed

Public feed

Pastes people chose to make public. Author names hidden.
  • danger scheme

    2133432·lua·1.7 KB·2012-03-28 22:48 UTC
    Ignore danger if it is further than specified distance (in meters): 
    
    ignore_distance = <number> { default: 150 } basic distance, if danger (no matter what type it is) is matched by value specified
  • Anonymous

    2133428·text·210 B·2012-03-28 22:22 UTC
    /* ADC -DAC conversion*/
    
    int value;
    int ADCpin = A0;
    
    void setup() { 
    DDRK = 0xFF;
    pinMode(ADCpin, INPUT);
    }
    
    void loop(){ 
     value = analogRead(ADCpin); 
     PORTK =
  • Anonymous

    2133427·text·1.5 KB·2012-03-28 22:08 UTC
    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    #include <gsl/gsl_rng.h>
    #include <omp.h>
    
    double d_t (struct timespec t1, struct timespec t2){
    
     return ((t2.tv_sec - t1.tv_sec) + (do
  • Someone

    2133423·text·667 B·2012-03-28 21:51 UTC
    <script type="text/javascript" src="/resource/CPStaticContent/scripts/jquery-1.5.2.min.js"></script>
    <script src="/js/dojo/0.4.1/dojo.js"></script>
    <script type="text/javascript">
    function injectCo
  • Untitled

    2133421·text·271 B·2012-03-28 21:36 UTC
    /* 10Hz Sine wave generator*/
    
    float time;
    int value;
    
    void setup() { 
    DDRK = 0xFF;
    }
    
    void loop(){ 
     time = millis()/50.0; //millis is amnt of time passed since beginning
  • Stuff

    2133418·text·545 B·2012-03-28 20:56 UTC
    class DVBCardNum: public SpinBoxSetting, public CCSetting
    {
     public:
     DVBCardNum(const CaptureCard& parent)
     : SpinBoxSetting(0,7,1), CCSetting(parent, "videodevice")
     {
     setL
  • Stuff

    2133417·text·832 B·2012-03-28 20:51 UTC
    Chain OUTPUT (policy ACCEPT)
    num target prot opt source destination 
    1 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0 tcp dpt:53 
    2 ACCEPT udp --
  • Someone

    2133416·text·938 B·2012-03-28 20:51 UTC
    Julia, queen of hearts
    Pleads to play the part
    The casualty of everything
    Fatal elve through the lark
    
    And the nightingale, with his offering
    Pleases not her heart
    The hum and ring of the broke
  • Stuff

    2133413·text·512 B·2012-03-28 20:39 UTC
    <?php
    Mage::log(__FILE__);
    
    class Company_RemoveCC_Model_Order_Status_After_Observer
    {
    
     public function removeCC($observer)
     {
     $order = $observer->getEvent()->getOrder();
  • Stuff

    2133404·text·519.6 KB·2012-03-28 20:08 UTC
    
        
  • Something

    2133403·text·84 B·2012-03-28 20:06 UTC
    #!/bin/sh
    
    xset b off
    
    eval `ssh-agent -s`
    ssh-add
    
    xscreensaver &
    
    fluxbox
  • Website

    2133401·text·36 B·2012-03-28 19:54 UTC
    Who wants to make a website with me?
  • Something

    2133398·text·35 B·2012-03-28 19:47 UTC
    Proving tos9 wrong all of the days.
  • Stuff

    2133397·text·35 B·2012-03-28 19:45 UTC
    Proving tos9 wrong all of the days.
  • Someone

    2133375·text·970 B·2012-03-28 19:02 UTC
    Tyranitar (F) @ Choice Band
    Trait: Sand Stream
    EVs: 176 HP / 252 Atk / 80 Spd
    Adamant Nature (+Atk, -SAtk)
    - Crunch
    - Pursuit
    - Stone Edge
    - Superpower
    
    Jirachi @ Choice Scarf
    Trait: Serene
  • I like pie

    2133372·text·970 B·2012-03-28 18:55 UTC
    Tyranitar (F) @ Choice Band
    Trait: Sand Stream
    EVs: 176 HP / 252 Atk / 80 Spd
    Adamant Nature (+Atk, -SAtk)
    - Crunch
    - Pursuit
    - Stone Edge
    - Superpower
    
    Jirachi @ Choice Scarf
    Trait: Serene
  • Unnamed

    2133368·php·1.4 KB·2012-03-28 18:29 UTC
    if (strpos($CURUSER['openclose'], "[latestforum]") === false) {
     $result6 = mysql_query("SELECT posts.body AS postbody, posts.id AS pid, posts.topicid, posts.userid AS userpost, posts.added, topics.
  • Miscellany

    2133366·text·1.9 KB·2012-03-28 18:27 UTC
    private ShaderProgram shader;
     private Mesh mesh;
     private PerspectiveCamera camera;
     private Matrix4 model = new Matrix4();
     private float angle = 45;
    
     @Override
     public void cre
  • test001

    2133363·text·410 B·2012-03-28 18:19 UTC
    (
    
     print '('
    
     integer i
    
     for ((i=0 ; i < 16384 ; i++ )) ; do
     printf '\tinteger var%i=%i\n' i i
     done
    
     printf 'typeset -a ar=(\n'
     for ((i=0 ; i < 16384 ; i++ )) ; do
     printf '\t[%d]=%d\n' i i
  • test001

    2133347·text·886 B·2012-03-28 17:03 UTC
    (dbx) where
     [1] memcpy(0xffffffff7a91e930, 0xffffffff7aa20000, 0x6, 0x1, 0xffffffff7aa00000, 0x0), at 0xffffffff7b200e6c 
    =>[2] nv_putval(np = 0xffffffff7a91e9f0, string = 0xffffffff7aa1ffc0 "var",

older pastes →