Public Gists by jjgod

Gravatar
Tue Dec 01 19:40:08 -0800 2009
1
2
3
CTFontRef displayFont = CTFontCreateWithName(CFSTR("Andale Mono"), 18.0, NULL);
 
float charWidth = 18.0;
Gravatar
Mon Nov 23 21:45:15 -0800 2009
1
2
3
#include <stdlib.h>
#include <string.h>
#include <errno.h>
Gravatar
Fri Nov 13 00:00:31 -0800 2009
1
2
3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
Gravatar
Sun Sep 20 22:14:28 -0700 2009
1
2
3
diff --git a/SDL/src/video/cocoa/SDL_cocoakeyboard.m b/SDL/src/video/cocoa/SDL_cocoakeyboard.m
index e077def..c768443 100644
--- a/SDL/src/video/cocoa/SDL_cocoakeyboard.m
Gravatar
Sat Sep 05 02:50:59 -0700 2009
1
2
3
$ ./testkeys
Scancode #0, ""
Scancode #1, ""
Gravatar
Sat Sep 05 02:50:28 -0700 2009
1
2
3
$ ./testkeys
Scancode #0, ""
Scancode #1, ""
Gravatar
Sat Sep 05 02:49:54 -0700 2009
1
2
3
$ ./testkeys
Scancode #0, ""
Scancode #1, ""
Gravatar
Sat Sep 05 01:51:03 -0700 2009
1
2
3
diff --git a/configure.in b/configure.in
index 4441a2e..c1626d0 100644
--- a/configure.in
Gravatar
Sun Aug 02 00:17:33 -0700 2009
1
2
3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
Gravatar
Sat Jul 25 06:40:16 -0700 2009
1
2
3
> > /?
Recognised commands:
  /connect user@domain server port connect to server:port as user@domain
Gravatar
Sun Jul 19 22:28:48 -0700 2009
1
2
3
a = [ [ 1, 10, "abc" ], [ 2, 3, "xyz" ], [ 1, 4, "aaa" ] ]
 
def compare(x, y):
Gravatar
Fri Jun 26 00:50:34 -0700 2009
1
2
3
function FindProxyForURL(url, host)
{
    if (isInNet(host, "72.32.231.8", "255.255.255.0")) return "SOCKS 127.0.0.1:7777";
Gravatar
Mon Jun 22 20:05:13 -0700 2009
1
2
3
try:
inf2 = open(fname, "r")
 
gist: 124712 To combine 2 files by colum...
Gravatar
Fri Jun 05 22:53:20 -0700 2009
1
2
3
import sys
 
k = {}
Gravatar
Thu Apr 30 22:34:33 -0700 2009
1
2
3
$ sudo /sbin/mdadm --detail /dev/md0
/dev/md0:
        Version : 0.90
Gravatar
Wed Apr 15 02:40:12 -0700 2009
1
2
3
>>> Connecting
>>> debug is [5]
>>> host is [gmail.com]
Gravatar
Wed Mar 18 03:20:33 -0700 2009
1
2
3
[MyPhoto]
lastcheck = 1237371285
 
Gravatar
Wed Mar 18 03:20:05 -0700 2009
1
2
3
#!/usr/bin/env python
# coding: utf-8
 
Gravatar
Wed Mar 18 03:02:06 -0700 2009
1
2
3
$ ./ias.py
2009-03-18 18:01:29 URL:http://att.newsmth.net/att.php?p.874.1114207.284.JPG [395576/395576] -> "MyPhoto/IMG_0270.JPG" [1]
2009-03-18 18:01:29 URL:http://att.newsmth.net/att.php?p.874.1114219.298.png [432163/432163] -> "MyPhoto/1.png" [1]
Gravatar
Thu Feb 12 05:13:37 -0800 2009
1
2
3
#!/usr/bin/env python
 
import sys, urllib