All pastesPublic feed

Public feed

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

    2074575·csharp·428 B·2011-06-04 12:46 UTC
    MailAddress recipient1 = new MailAddress("foo@contoso.com");
     MailAddress recipient2 = new MailAddress("bar@contoso.com");
     MailAddress sender = new MailAddress("thorerik.lie@g
  • Unnamed

    2074570·text·375 B·2011-06-04 12:31 UTC
    #Nvidia Driver install 
    1)ctrl+alt+f1 ,login as user 
    2)stop X with sudo service kdm (or gdm) stop
    3)sudo aptitude remove "installed-nvidia-driver" 
    4)sudo aptitude install nvidia-current 
    5)fol
  • Anonymous

    2074569·text·966 B·2011-06-04 12:28 UTC
    NSData *data = [NSData dataWithBytes:(const void *)buf length:len];
     NSLog(@"DATA: %s", [data bytes]);
     NSString *tmp = [[[NSString alloc] initWithBytes
  • Anonymous

    2074568·text·221 B·2011-06-04 12:18 UTC
    img.leftthumb {
     display: block;
     border: 1px solid #CCC;
     background-color: white;
     vertical-align: text-top;
     padding: 4px;
     max-width: none;
     margin: 4px 16px 8px 0px;
  • Anonymous

    2074566·text·262 B·2011-06-04 12:13 UTC
    function! MakeStamp()
     "ISO timestamp
     let time = strftime("%Y-%m-%d at %H:%M:%S")
     exe '%s/Last updated on \zs\d\{4}\-\d\{2}\-\d\{2} at \d\{2}:\d\{2}:\d\{2}/'.time.'/ig'
     return
  • Anonymous

    2074565·text·135 B·2011-06-04 12:10 UTC
    NSLog(@"DATA: %s", [data bytes]);
     toProcess = [toProcess stringByAppendingFormat:@"%s", [data bytes]];
  • Unnamed

    2074564·text·406 B·2011-06-04 12:08 UTC
    function! MakeStamp()
     let time = strftime("%Y-%m-%d at %H:%M:%S")
     let line = getline(1)
     redi @+
     echo time
     redi END
    
     let match = '\d\{4}\-\d\{2}\-\d\{2} at \d\{2}:\d\{2}:\d\{2}'
  • sdsd

    2074563·text·3.1 KB·2011-06-04 12:00 UTC
    My Seven point education policy 
    
     There should be one common language to study in all four provinces, let it be Urdu, English or Spanish, it doesn’t matter but there should be unification at lea
  • Anonymous

    2074562·text·401 B·2011-06-04 11:59 UTC
    function! MakeStamp()
     let time = strftime("%m.%d.%Y at %I:%M")
     let line = getline(1)
     redi @+
     echo time
     redi END
    
     if match(line, '\d\{2}\.\d\{2}\.\d\{4} at \d\{2}:\d\{2}') >= 0
  • Miscellany

    2074532·objectivec·933 B·2011-06-04 10:56 UTC
    - (void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode {
     switch(eventCode) {
     case NSStreamEventHasBytesAvailable:
     {
     uint8_t buf[512];
  • Anonymous

    2074529·text·204 B·2011-06-04 10:38 UTC
    function! FoldColumn()
     if &foldcolumn == 1
     set foldcolumn=0
     set nu
     elseif &foldcolumn == 0
     set foldcolumn=1
     set nonu
     endif
    endfunction
    
    map <leader>5 :call FoldColumn()
  • Stuff

    2074527·text·1.3 KB·2011-06-04 10:32 UTC
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    
    <head>
     <title>
  • Unnamed

    2074524·text·652 B·2011-06-04 10:27 UTC
    <VirtualHost *:80>
     Serveradmin webmaster@localhost
     DocumentRoot /home/localhost/www
     ServerName localhost
     CustomLog logs/vhosts/localhost/access_log combined env=!no_log
  • Mapper(FULL)

    2074523·java·7.4 KB·2011-06-04 10:19 UTC
    /*Main Mapper Class*/
    
    import java.util.*;
    
    public class Mapper {
     static Scanner ReadUserInput = new Scanner(System.in);
     /**
     * @param args
     */
     public static void main(String[] args)
  • Untitled

    2074500·java·974 B·2011-06-04 08:25 UTC
    int grass_Count = 0;
     float grass_Percent = 0;
     while (grass_Percent < 30){
     for (int i = 1; i < world_Map.map_cells.length - 1; i++){
     for (int j = 1; j < world_Map.map_cells[i].length
  • Untitled

    2074495·text·264 B·2011-06-04 08:01 UTC
    CONFIG_NETFILTER_NETLINK=y
    CONFIG_NETFILTER_NETLINK_QUEUE=y
    CONFIG_NETFILTER_NETLINK_LOG=y
    CONFIG_NF_CT_NETLINK=y
    CONFIG_SCSI_NETLINK=y
    CONFIG_IP_ADVANCED_ROUTER=y
    CONFIG_NET_SCH_INGRESS=y
    CONF
  • Anonymous

    2074494·text·9.2 KB·2011-06-04 08:00 UTC
    #twisted
    from twisted.internet import reactor, protocol
    
    #pyglet
    import pyglet
    from pyglet.gl import *
    from pyglet.window import key
    from random import randint as rint
    
    #builtin
    import math,
  • Anonymous

    2074493·text·4.3 KB·2011-06-04 07:52 UTC
    Zac Campbell
    Sydney Secondary College - Blackwattle Bay
    
    Suji O'Connor
    
    Prisadee Pamm Bhradmeung
    
    Katia Nguyen
    
    Jessica Jarrett
    
    Gina Ricardo
    
    Jack Savage
    
    Kathleen Wyper
    
    Anna Tran
  • Anonymous

    2074492·text·4.3 KB·2011-06-04 07:51 UTC
    David Rosenthal
    
    Zac Campbell
    Sydney Secondary College - Blackwattle Bay
    
    Suji O'Connor
    
    Prisadee Pamm Bhradmeung
    
    Katia Nguyen
    
    Jessica Jarrett
    
    Gina Ricardo
    
    Jack Savage
    
    Kathleen W
  • Anonymous

    2074490·text·531 B·2011-06-04 07:37 UTC
    AppWidgetManager manager = AppWidgetManager.getInstance(context);
     RemoteViews remoteViews = new RemoteViews(context.getPackageName(), layoutId);
     ComponentName thisWidget = ne

older pastes →