All pastes›Public feed

Public feed

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

    2048766·c·1.1 KB·2011-04-20 20:38 UTC
    rc = ioctl(fd, IOCTL_PRIVCMD_MMAPBATCH, &ioctlx);
    
     rc = rc < 0 ? -errno : 0;
    
     for ( i = 0; i < num; ++i )
     {
     switch ( pfn[i] ^ arr[
  • Untitled

    2048763·text·1.2 KB·2011-04-20 20:29 UTC
    # By Brian Gross #
    # 4/19/11 #
    # Demonstrates a function and its practical use #
    from time import sleep
    answer = raw_input('Would you like me to do the four functions? ')
    if answer=="yes" or answ
  • Compile

    2048755·csharp·2.0 KB·2011-04-20 20:15 UTC
    public static void runScript()
     {
     CSharpCodeProvider codeProvider = new CSharpCodeProvider();
     ICodeCompiler compiler = codeProvider.CreateCompiler();
     Com
  • Miscellany

    2048753·text·172 B·2011-04-20 20:07 UTC
    import CGIHTTPServer
    CGIHTTPServer.test()
    # http://stackoverflow.com/questions/448837/how-do-i-create-a-webpage-with-buttons-that-invoke-various-python-scripts-on-the #
  • Anonymous

    2048752·text·730 B·2011-04-20 19:56 UTC
    # Copied down first by copy paste, then by hand
    from Tkinter import *
    import time
    
    root = Tk()
    time1 = ''
    clock = Label(root,font = ('georgia', 60, 'bold', 'italic'), bg='light yellow') # Colors
  • Anonymous

    2048751·text·1.8 KB·2011-04-20 19:55 UTC
    from time import sleep
    name = raw_input('Enter your name ')
    print 'Hello',name
    sleep(5)
    answer = raw_input('Would you like to run the python web-app? ')
    if answer=="yes" or answer=="y" or answe
  • Mine

    2048750·text·48 B·2011-04-20 19:54 UTC
    - form_tag do |form|
     %fieldset.fieldset
  • Mine

    2048749·text·821 B·2011-04-20 19:54 UTC
    {"count":10,"results":[{"name":"Fernando","surname":"Alonso","id":1,"points":246,"team":"Ferrari"},{"name":"Mark","surname":"Webber","id":2,"points":238,"team":"RBR-Renault"},{"name":"Sebastian","surn
  • Unnamed

    2048748·text·1.8 KB·2011-04-20 19:53 UTC
    from time import sleep
    name = raw_input('Enter your name ')
    print 'Hello',name
    sleep(5)
    answer = raw_input('Would you like to run the python web-app? ')
    if answer=="yes" or answer=="y" or answer=
  • Miscellany

    2048747·text·821 B·2011-04-20 19:50 UTC
    {"count":10,"results":[{"name":"Fernando","surname":"Alonso","id":1,"points":246,"team":"Ferrari"},{"name":"Mark","surname":"Webber","id":2,"points":238,"team":"RBR-Renault"},{"name":"Sebastian","surn
  • Unnamed

    2048739·text·15.9 KB·2011-04-20 19:29 UTC
    //==================WEAPONMODEL===================
    bind "1" "slot1;viewmodel_fov 0 ; r_drawviewmodel 0; cl_crosshair_red 0 ; cl_crosshair_green 255; cl_crosshair_blue 0"
    bind "2" "slot2;viewmodel_f
  • Unnamed

    2048738·text·15.9 KB·2011-04-20 19:27 UTC
    //==================WEAPONMODEL===================
    bind "1" "slot1;viewmodel_fov 0 ; r_drawviewmodel 0; cl_crosshair_red 0 ; cl_crosshair_green 255; cl_crosshair_blue 0"
    bind "2" "slot2;viewmodel_f
  • Miscellany

    2048736·text·3.9 KB·2011-04-20 19:17 UTC
    Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you
  • Stuff

    2048733·text·286 B·2011-04-20 19:12 UTC
    $ rm -rf ~/.conkyrc && touch ~/.conkyrc && conky
    Conky: missing text block in configuration; exiting
    ***** Imlib2 Developer Warning ***** :
     This program is calling the Imlib call:
    
     imlib_contex
  • Untitled

    2048732·text·245 B·2011-04-20 19:10 UTC
    $ conky
    Conky: missing text block in configuration; exiting
    ***** Imlib2 Developer Warning ***** :
     This program is calling the Imlib call:
    
     imlib_context_free();
    
     With the parameter:
    
     con
  • Mine

    2048731·text·318 B·2011-04-20 19:10 UTC
    20:09:15 - [ACCOUNT CONNECTOR]: GetUserAccount received null or empty reply
    20:09:15 - [SCENE]: Unable to store account. If this simulator is connected to a grid, you must create the estate owner acc
  • Unnamed

    2048725·text·1.2 KB·2011-04-20 18:51 UTC
    class Cook < ActiveRecord::Base
     has_many :port_mappings
     has_many :cookers, :through => :port_mappings
     has_many :datapoints, :through => :port_mappings
    end
    
    class PortMapping < ActiveRecord
  • Mine

    2048716·text·1.5 KB·2011-04-20 18:18 UTC
    #-------------------------------------
    # Event Zombie
    # Round based TvT Event with 2 Teams. (look discription of TvT)
    # A round is over if all players of one team are death/disconncted or the round
  • Unnamed

    2048714·text·998 B·2011-04-20 18:16 UTC
    Namisto TvT eventu jsme pro vas spustili novy Zombie event!
    
    O eventu:
    Po zaregistrovani se na event pres prikaz .join (i s teckou) treba pockat 10 minut a pokud se nasbira dostatecne mnozstvi ucas
  • Miscellany

    2048712·text·803 B·2011-04-20 18:08 UTC
    20:29:20 - [GRID SERVICE]: GetRegionsByName hypervz.hypergrid.dk:9000
    20:29:20 - [NULL REGION DATA]: comparing hypervz.hypergrid.dk:9000 to sunred ocean
    20:29:20 - [NULL REGION DATA]: comparing hype

older pastes →