All pastesPublic feed

Public feed

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

    2048785·text·1.6 KB·2011-04-20 22:09 UTC
    # By Brian Gross #
    # Co editor Liz Henry #
    # 4/20/11 #
    url = raw_input('Please enter a website url: ')
    x = raw_input('Please enter a search word: ')
    import urllib
    html_source = urllib.urlopen(ur
  • cake

    2048782·text·182 B·2011-04-20 21:35 UTC
    function delete($id){
     if($this->Post->delete($id)){
     $this->Session->setFlash('The post con id:'.$id.' ha sido eliminado');
     $this->redirect(array('acton'=>'index'));
     }
     }
  • tumblr layout

    2048779·html·5.7 KB·2011-04-20 21:25 UTC
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <!--
  • Anonymous

    2048776·text·3.5 KB·2011-04-20 21:15 UTC
    #!/usr/bin/python
    
    import sys, math, cairo
    from xml.etree import ElementTree
    
    WIDTH, HEIGHT, DOTSIZE = 1024, 768, 3
    
    if len(sys.argv) > 1:
     osm_filename = sys.argv[1]
    else:
     osm_filename =
  • Something

    2048771·text·922 B·2011-04-20 20:49 UTC
    make[5]: Entering directory `/home/doneill/openwrt/trunk/build_dir/target-mips_r2_uClibc-0.9.32/freeswitch-snapshot'
    libs/esl/fs_cli.c: In function 'console_fnkey_pressed':
    libs/esl/fs_cli.c:101:10:
  • Unnamed

    2048769·text·3.5 KB·2011-04-20 20:45 UTC
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    background no
    own_window_argb_visual yes
    
    # U
  • config.log

    2048768·text·50.5 KB·2011-04-20 20:40 UTC
    
        
  • Miscellany

    2048767·c·11 B·2011-04-20 20:39 UTC
    
        
  • 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

older pastes →