Public Gists by zvoase

Gravatar
Wed Feb 18 17:22:12 -0800 2009
1
2
3
// Jash - JavaScript Shell
// Copyright: 2007, Billy Reisinger
// Documentation: http://www.billyreisinger.com/jash/
Gravatar
Fri Feb 13 10:40:59 -0800 2009
1
2
3
import os
 
def import_all_from(module_name, globals_):
Gravatar
Tue Feb 10 09:55:06 -0800 2009
1
2
3
class CallSuper(Exception): pass
 
 
Gravatar
Fri Jan 30 11:01:13 -0800 2009
1
2
3
There are two main issues with this at the moment:
 
  1. The 'Backtrace' section is going to look a little odd, because Ruby formats
Gravatar
Mon Jan 26 06:06:14 -0800 2009
1
2
3
import fileinput
import sys
 
Gravatar
Fri Jan 23 21:19:14 -0800 2009
1
2
3
function add_script (url) {
    head = document.getElementsByTagName('head')[0];
    script = document.createElement('script');
Gravatar
Sat Jan 03 08:22:22 -0800 2009
1
2
3
#contributor : Zachary Voase <zack@biga.mp>
#name : Complete XHTML 1.1 Document
# --
gist: 42768 djcontribunlink.sh - Remove...
Gravatar
Fri Jan 02 17:58:33 -0800 2009
1
2
3
#!/bin/bash
# djcontribunlink.sh - Remove a djcontriblinked module from the Django contrib directory.
# See http://gist.github.com/42768 for updates.
gist: 42767 djcontriblink - Link and un...
Gravatar
Fri Jan 02 17:51:18 -0800 2009
1
2
3
#!/bin/bash
#
# djcontriblink.sh - Link a Python module (usually a Django app) to the Django contrib directory.
Gravatar
Thu Jan 01 21:18:26 -0800 2009
1
2
3
#!/usr/bin/env python
#
# Run it like this:
Gravatar
Wed Dec 10 15:04:56 -0800 2008
1
2
3
# tweet_correlation.py - Calculate the correlation of two users' tweet clouds,
# based on data from http://tweetstats.com. You need to have visited this site
# before using the app, as this app relies on the cached data made when you
Gravatar
Sat Dec 06 07:00:14 -0800 2008
1
2
3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
Gravatar
Sat Nov 29 17:22:33 -0800 2008
1
2
3
try:
    import cPickle as pickle
except ImportError:
Gravatar
Sat Nov 22 10:36:10 -0800 2008
1
2
3
import random
import re
import unicodedata
gist: 21650 pyunlink.sh - remove a pyli...
Gravatar
Sat Nov 01 21:21:26 -0700 2008
1
2
3
#!/bin/bash
# pyunlink.sh - Remove a pylinked module from your site packages directory.
# See http://gist.github.com/21650 for updates.
gist: 21649 pylink - Link and unlink Py...
Gravatar
Sat Nov 01 21:12:54 -0700 2008
1
2
3
#!/bin/bash
#
# pylink.sh - Link a Python module to your site packages directory.
Gravatar
Thu Oct 30 15:49:05 -0700 2008
1
2
3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
Gravatar
Wed Oct 29 22:44:40 -0700 2008
1
2
3
import copy
 
 
Gravatar
Wed Oct 29 20:40:39 -0700 2008
1
2
3
def number_to_string(number, words):
    list_out = []
if not number:
gist: 20217 Do interesting things with ...
Gravatar
Mon Oct 27 15:22:17 -0700 2008
1
2
3
#!/usr/bin/env python
# -*- coding: utf-8 -*-