This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sbclx | |
(let | |
((sum 0)) ; the sum of the even valued terms of fib | |
; this is the only variable we need outside of the scope of the loop | |
(do | |
( | |
(ubound 4000000) ; that do not excede this value | |
(previous 1) ; the value of the previous term | |
(current 1) ; the value of the current term |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sbclx | |
; I actually might want to use a function? Goodie! | |
(defun isPrime (n) ; a crude brute-force prime check | |
(do | |
( | |
(limit (ceiling (sqrt n))) ; maximum requred to determine if it is prime | |
(i 2 (1+ i)) | |
) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
import demjson | |
from pprint import pprint | |
import urllib2 | |
def main(): | |
user = "jeremybanks" | |
userJSON = urllib2.urlopen("http://github.com/api/v1/json/%s/" % user).read() | |
user = demjson.decode(userJSON)["user"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git # master $ git tag -v v0.99.1 | |
object 78d9d414123ad6f4f522ffecbcd9e4a7562948fd | |
type commit | |
tag v0.99.1 | |
tagger Linus Torvalds <[email protected]> 1121468952 -0700 | |
The snail-paced race towards 1.0 is on! | |
gpg: Signature made Fri 15 Jul 19:09:53 2005 EDT using DSA key ID 76E21CBB | |
gpg: Can't check signature: public key not found | |
error: could not verify the tag 'v0.99.1' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td,iframe { | |
margin:0; | |
padding:0; | |
} | |
table { border-collapse:collapse; } | |
fieldset,img { border:0; } | |
address,caption,cite,code,dfn,em,strong,th,var { font-style:normal; font-weight:normal; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# It's just a basic ./configure; make; sudo make install. | |
curl -O http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz # Irony? | |
tar xzf wget-latest.tar.gz | |
cd wget-*/ | |
./configure | |
make | |
sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
from __future__ import division, with_statement | |
import sys, os | |
class StrictPerson(object): | |
__slots__ = ["first", "last", "age"] | |
def __str__(self): | |
return "%s %s (%s)" % (self.first, self.last, self.age) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 1 : { "N" : 1, | |
"author" : "cyk", | |
"post" : "c2mlyk" | |
}, | |
10 : { "N" : 10, | |
"author" : "Nanten", | |
"post" : "c2mmk1" | |
}, | |
100 : { "N" : 100, | |
"author" : "boffo", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Numbers that can be written in hex characters. | |
# 1 may only use as L or I exclusively in a given word. | |
# egrep -i "^([ABCDEFOLZSGT]+|[ABCDEFOIZSGT]+)$" /usr/share/dict/words | |
A | |
a | |
aa | |
aal | |
Ab | |
aba | |
abac |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ "`git remote`" != "" ] |