Public Gists by jeremybanks

gist: 56692 Experimenting with a string...
Gravatar
Sun Feb 01 15:14:53 -0800 2009
1
2
3
//&>/dev/null;x="${0%.*}";[ ! "$x" -ot "$0" ]||(rm -f "$x";cc -o "$x" "$0")&&"$x" $*;exit
 
#import <stdio.h>
Gravatar
Mon Jan 26 15:19:00 -0800 2009
1
b'19:09:06.312[1305ms][total 1305ms] \xe2\x88\x9a\xc3\xa2tat: 302[Moved Temporarily]\nPOST http://gist.github.com/gists Indicateurs chargement[LOAD_DOCUMENT_URI LOAD_INITIAL_DOCUMENT_URI ] Taille contenu[94] Type Mime[text/html]\n En-t\xe2\x88\x9a\xe2\x84\xa2tes requ\xe2\x88\x9a\xe2\x84\xa2te:\n Host[gist.github.com]\n User-Agent[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; fr; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5 Ubiquity/0.1.5]\n Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]\n Accept-Language[fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3]\n Accept-Encoding[gzip,deflate]\n Accept-Charset[ISO-8859-1,utf-8;q=0.7,*;q=0.7]\n Keep-Alive[300]\n Connection[keep-alive]\n Referer[http://gist.github.com/]\n Cookie[__utma=58162108.47308538609916490.1232928146.1232928146.1232928146.1; __utmb=58162108.7.10.1232928146; __utmc=58162108; __utmz=58162108.1232928174.1.3.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=github%20api%20gist; _github_ses=BAh7BzoJdXNlcmkCZEYiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA%3D--0cc2af312ac051d17ceb27d890cd3ce9a4ab0058; __utma=104194838.370232348315834200.1232928191.1232928191.1232928191.1; __utmb=104194838.6.10.1232928191; __utmc=104194838; __utmz=104194838.1232928191.1.1.utmcsr=groups.google.com|utmccn=(referral)|utmcmd=referral|utmcct=/group/github/browse_thread/thread/ffcaad439aa3fb4a]\n Donn\xe2\x88\x9a\xc2\xa9es POST:\n file_ext%5Bgistfile1%5D[.txt]\n file_name%5Bgistfile1%5D[ham.c]\n file_contents%5Bgistfile1%5D[What+a+remarkable+test.]\n x[65]\n y[11]\n En-t\xe2\x88\x9a\xe2\x84\xa2tes r\xe2\x88\x9a\xc2\xa9ponse:\n Server[nginx/0.6.31]\n Date[Mon, 26 Jan 2009 00:09:08 GMT]\n Content-Type[text/html; charset=utf-8]\n Connection[keep-alive]\n Status[302 Found]\n Location[http://gist.github.com/52626]\n X-Runtime[581ms]\n Cache-Control[no-cache]\n Content-Length[94]\n\n'
Gravatar
Mon Jan 26 15:18:34 -0800 2009
1
b'19:09:06.312[1305ms][total 1305ms] \xe2\x88\x9a\xc3\xa2tat: 302[Moved Temporarily]\nPOST http://gist.github.com/gists Indicateurs chargement[LOAD_DOCUMENT_URI LOAD_INITIAL_DOCUMENT_URI ] Taille contenu[94] Type Mime[text/html]\n En-t\xe2\x88\x9a\xe2\x84\xa2tes requ\xe2\x88\x9a\xe2\x84\xa2te:\n Host[gist.github.com]\n User-Agent[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; fr; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5 Ubiquity/0.1.5]\n Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]\n Accept-Language[fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3]\n Accept-Encoding[gzip,deflate]\n Accept-Charset[ISO-8859-1,utf-8;q=0.7,*;q=0.7]\n Keep-Alive[300]\n Connection[keep-alive]\n Referer[http://gist.github.com/]\n Cookie[__utma=58162108.47308538609916490.1232928146.1232928146.1232928146.1; __utmb=58162108.7.10.1232928146; __utmc=58162108; __utmz=58162108.1232928174.1.3.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=github%20api%20gist; _github_ses=BAh7BzoJdXNlcmkCZEYiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA%3D--0cc2af312ac051d17ceb27d890cd3ce9a4ab0058; __utma=104194838.370232348315834200.1232928191.1232928191.1232928191.1; __utmb=104194838.6.10.1232928191; __utmc=104194838; __utmz=104194838.1232928191.1.1.utmcsr=groups.google.com|utmccn=(referral)|utmcmd=referral|utmcct=/group/github/browse_thread/thread/ffcaad439aa3fb4a]\n Donn\xe2\x88\x9a\xc2\xa9es POST:\n file_ext%5Bgistfile1%5D[.txt]\n file_name%5Bgistfile1%5D[ham.c]\n file_contents%5Bgistfile1%5D[What+a+remarkable+test.]\n x[65]\n y[11]\n En-t\xe2\x88\x9a\xe2\x84\xa2tes r\xe2\x88\x9a\xc2\xa9ponse:\n Server[nginx/0.6.31]\n Date[Mon, 26 Jan 2009 00:09:08 GMT]\n Content-Type[text/html; charset=utf-8]\n Connection[keep-alive]\n Status[302 Found]\n Location[http://gist.github.com/52626]\n X-Runtime[581ms]\n Cache-Control[no-cache]\n Content-Length[94]\n\n'
Gravatar
Mon Jan 26 15:17:18 -0800 2009
1
b'19:09:06.312[1305ms][total 1305ms] \xe2\x88\x9a\xc3\xa2tat: 302[Moved Temporarily]\nPOST http://gist.github.com/gists Indicateurs chargement[LOAD_DOCUMENT_URI LOAD_INITIAL_DOCUMENT_URI ] Taille contenu[94] Type Mime[text/html]\n En-t\xe2\x88\x9a\xe2\x84\xa2tes requ\xe2\x88\x9a\xe2\x84\xa2te:\n Host[gist.github.com]\n User-Agent[Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; fr; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5 Ubiquity/0.1.5]\n Accept[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]\n Accept-Language[fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3]\n Accept-Encoding[gzip,deflate]\n Accept-Charset[ISO-8859-1,utf-8;q=0.7,*;q=0.7]\n Keep-Alive[300]\n Connection[keep-alive]\n Referer[http://gist.github.com/]\n Cookie[__utma=58162108.47308538609916490.1232928146.1232928146.1232928146.1; __utmb=58162108.7.10.1232928146; __utmc=58162108; __utmz=58162108.1232928174.1.3.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=github%20api%20gist; _github_ses=BAh7BzoJdXNlcmkCZEYiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA%3D--0cc2af312ac051d17ceb27d890cd3ce9a4ab0058; __utma=104194838.370232348315834200.1232928191.1232928191.1232928191.1; __utmb=104194838.6.10.1232928191; __utmc=104194838; __utmz=104194838.1232928191.1.1.utmcsr=groups.google.com|utmccn=(referral)|utmcmd=referral|utmcct=/group/github/browse_thread/thread/ffcaad439aa3fb4a]\n Donn\xe2\x88\x9a\xc2\xa9es POST:\n file_ext%5Bgistfile1%5D[.txt]\n file_name%5Bgistfile1%5D[ham.c]\n file_contents%5Bgistfile1%5D[What+a+remarkable+test.]\n x[65]\n y[11]\n En-t\xe2\x88\x9a\xe2\x84\xa2tes r\xe2\x88\x9a\xc2\xa9ponse:\n Server[nginx/0.6.31]\n Date[Mon, 26 Jan 2009 00:09:08 GMT]\n Content-Type[text/html; charset=utf-8]\n Connection[keep-alive]\n Status[302 Found]\n Location[http://gist.github.com/52626]\n X-Runtime[581ms]\n Cache-Control[no-cache]\n Content-Length[94]\n\n'
Gravatar
Sun Jan 25 16:09:07 -0800 2009
1
What a remarkable test.
Gravatar
Fri Jan 02 16:38:01 -0800 2009
1
2
3
http://www.chapters.indigo.ca/books/The-Klingon-Dictionary-Marc-Okrand/9780671745592-item.html
http://www.chapters.indigo.ca/books/The-Klingon-Hamlet-Lawrence-Schoen/9780671035785-item.html
http://www.chapters.indigo.ca/books/Much-Ado-About-Nothing-Restored-William-Shakespeare-Nick-Nicholas/9781587155017-item.html
Gravatar
Tue Dec 09 08:57:22 -0800 2008
1
2
3
C:\Python26\python.exe -x logon.bat & exit
# There, this can act as the windows equivilent of a shebang, I guess.
print("Hello world")
Gravatar
Sat Nov 22 22:52:27 -0800 2008
1
2
3
#!/usr/bin/env python
# encoding: utf-8
from __future__ import division, with_statement
Gravatar
Wed Nov 12 21:59:44 -0800 2008
1
2
3
I want the Canon EOS 50D, which was released at the end of August. The body's MSRP is 1300 USD, so we'd need a few hundred minimum on top of that for glass.
 
This is why I never bought a nice camera beforethe models below this just seem so weak by comparison.
gist: 23700 Re: Comments in http://stac...
Gravatar
Mon Nov 10 16:13:01 -0800 2008
1
2
3
#!/usr/bin/env python
# encoding: utf-8
from __future__ import division, with_statement
Gravatar
Thu Oct 23 06:06:56 -0700 2008
1
2
3
 
 
/* This is a template command */
Gravatar
Thu Sep 18 21:55:45 -0700 2008
1
2
3
#!/bin/bash
version="${1:-"3.0"}"
release="${2:-"rc1"}"
Gravatar
Wed Sep 17 17:25:46 -0700 2008
1
2
3
export PS1="\W\$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ # \1/' -e \"s/(no branch)/\$(git rev-parse --short HEAD 2> /dev/null)…/\") \$ "
 
This requires a call to git-branch and to git-rev-parse for every shell
Gravatar
Tue Sep 16 11:53:35 -0700 2008
1
2
3
//&>/dev/null;x="${0%.*}";[ ! "$x" -ot "$0" ]||(rm -f "$x";cc -o "$x" "$0")&&"$x" $*;exit
 
#import <stdio.h>
gist: 11088 A hopefully decent Sudoku s...
Gravatar
Tue Sep 16 11:07:01 -0700 2008
1
2
3
#!/usr/bin/env python3.0
import sys
 
Gravatar
Mon Sep 15 18:18:06 -0700 2008
1
2
3
#!/usr/bin/env python
# encoding: utf-8
from __future__ import with_statement
Gravatar
Mon Sep 15 15:25:52 -0700 2008
1
2
3
//&>/dev/null;x="${0%.*}";[ ! "$x" -ot "$0" ]||(rm -f "$x";cc -o "$x" "$0")&&"$x" $*;exit
// http://stackoverflow.com/questions/31937/what-is-your-favourite-non-standard-c-library-function#32064
 
gist: 10904 A simple class to cache pre...
Gravatar
Mon Sep 15 11:30:49 -0700 2008
1
2
3
#!/usr/bin/env python
# encoding: utf-8
import re
Gravatar
Sun Sep 14 13:50:19 -0700 2008
1
2
3
"""
The equation of the line segment near A is
 
Gravatar
Sun Sep 14 11:55:36 -0700 2008
1
2
3
//&>/dev/null;x="\${0%.*}";[ ! "\$x" -ot "\$0" ]||(rm -f "\$x";cc -o "\$x" "\$0")&&"\$x" \$*;exit
 
#import <stdio.h>