Skip to content

Instantly share code, notes, and snippets.

View cayblood's full-sized avatar

Carl Youngblood cayblood

View GitHub Profile
SICP Exercise 1.4
If b is greater than 0 then add a and b; otherwise subtract b from a.
SICP Exercise 1.1
> 10
10
> (+ 5 3 4)
12
> (- 9 1)
8
> (/ 6 2)
3
#!/bin/sh
# Author: Carl Youngblood, 2010
# Based on http://www.novell.com/coolsolutions/feature/15380.html
### BEGIN INIT INFO
# Provides: bluepill
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 4 5
carl@caymbpro:/Library/Python/2.6/site-packages$ python -c 'import signal; print signal.SIGWINCH'
Traceback (most recent call last):
File "<string>", line 1, in ?
AttributeError: 'module' object has no attribute 'SIGWINCH'
carl@caymbpro:/Library/Python/2.6/site-packages$ bzr
Traceback (most recent call last):
File "/usr/local/bin/bzr", line 141, in ?
bzrlib.trace.enable_default_logging()
File "/Library/Python/2.6/site-packages/bzrlib/trace.py", line 278, in enable_default_logging
term_encoding = osutils.get_terminal_encoding()
File "/Library/Python/2.6/site-packages/bzrlib/lazy_import.py", line 106, in __getattribute__
obj = _replace()
File "/Library/Python/2.6/site-packages/bzrlib/lazy_import.py", line 89, in _replace
obj = factory(self, scope, name)
# ./configure --prefix=/usr/local/Cellar/ffmpeg/HEAD --disable-debug --enable-shared --enable-pthreads --enable-nonfree --enable-gpl --enable-libx264 --enable-libfaac --enable-libfaad --enable-libmp3lame
ARCH_EXT_LIST='
altivec
amd3dnow
amd3dnowext
armv5te
armv6
armv6t2
armvfp
iwmmxt
# ./configure --prefix=/usr/local/Cellar/ffmpeg/HEAD --disable-debug --enable-shared --enable-pthreads --enable-nonfree --enable-gpl --enable-libx264 --enable-libfaac --enable-libfaad --enable-libmp3lame
ARCH_EXT_LIST='
altivec
amd3dnow
amd3dnowext
armv5te
armv6
armv6t2
armvfp
iwmmxt
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Parchment</title>
<script src="lib/jquery.min.js" defer></script>
<script src="lib/parchment.min.js" defer></script>
<link rel="stylesheet" type="text/css" href="parchment.css">
<meta name="viewport" content="width=device-width">
</head>
Mongrel 1.1.5 available at 0.0.0.0:4000
127.0.0.1 - - [27/Jul/2010 15:12:42] "GET /parchment.html?story=savoir-faire.js HTTP/1.1" 200 - 0.0004
127.0.0.1 - - [27/Jul/2010 15:12:42] "GET /savoir-faire.js HTTP/1.1" 200 589640 0.0004
127.0.0.1 - - [27/Jul/2010 15:12:43] "GET /favicon.ico HTTP/1.1" 404 31 0.0004
127.0.0.1 - - [27/Jul/2010 15:12:48] "GET /parchment.html?story=savoir-faire.js HTTP/1.1" 200 - 0.0003
127.0.0.1 - - [27/Jul/2010 15:12:48] "GET /lib/jquery.min.js HTTP/1.1" 200 72247 0.0005
127.0.0.1 - - [27/Jul/2010 15:12:48] "GET /lib/parchment.min.js HTTP/1.1" 200 13406 0.0002
127.0.0.1 - - [27/Jul/2010 15:12:48] "GET /parchment.css HTTP/1.1" 200 2424 0.0003
127.0.0.1 - - [27/Jul/2010 15:12:48] "GET /lib/zmachine.min.js HTTP/1.1" 200 18044 0.0004
127.0.0.1 - - [27/Jul/2010 15:12:48] "GET /lib/gnusto.min.js HTTP/1.1" 200 52848 0.0003
diff -rup MySQL-python-1.2.2/MySQLdb/converters.py MySQL-python-1.2.2.new/MySQLdb/converters.py
--- MySQL-python-1.2.2/MySQLdb/converters.py 2010-08-13 16:50:32.000000000 +0200
+++ MySQL-python-1.2.2.new/MySQLdb/converters.py 2007-01-29 19:02:17.000000000 +0100
@@ -34,9 +34,7 @@ MySQL.connect().
from _mysql import string_literal, escape_sequence, escape_dict, escape, NULL
from constants import FIELD_TYPE, FLAG
-#from sets import BaseSet, Set
-BaseSet = set
-Set = frozenset