I hereby claim:
- I am andrewwatts on github.
- I am andrewwatts (https://keybase.io/andrewwatts) on keybase.
- I have a public key ASBM9lcs3y7LH3bb6i1xGYf4zHllnMbmvvd7SdymBZ5QLgo
To claim this, I am signing this object:
# Copyright (c) 2004 Python Software Foundation. | |
# All rights reserved. | |
# Written by Eric Price <eprice at tjhsst.edu> | |
# and Facundo Batista <facundo at taniquetil.com.ar> | |
# and Raymond Hettinger <python at rcn.com> | |
# and Aahz <aahz at pobox.com> | |
# and Tim Peters | |
# This module is currently Py2.3 compatible and should be kept that way |
#!/usr/bin/env python2.7 | |
import time | |
_URL = 'http://localhost/tmp/derp.html' | |
_NUMBER = 1000 | |
def test_urllib2(): | |
import urllib2 |
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
In the spirit of python's json.tool, provide a command line | |
utility to pretty print XML. | |
Usage (): | |
$ echo "<book><title>Oliver Twist</title></book>" | python -m xmltool | |
<?xml version="1.0" encoding="utf-8"?> |
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>flot vs raphael</title> | |
<script type="text/javascript" src="jquery.min.js"></script> | |
<script type="text/javascript" src="jquery.flot.min.js"></script> | |
<script type="text/javascript" src="raphael.js"></script> | |
<script type="text/javascript" src="g.raphael-min.js"></script> |
An explanation of what the service is doing and why. Any high level business logic should be mentioned here to give the reader an understanding of why the service exists in the first place.
List important endpoints/URLs and explain what they are responsible for.
class underscore_dict(dict): | |
""" | |
a dict like object that forces key to be pythonic and follow the underscore | |
convention. | |
eg:: | |
>>> d = underscore_dict(dict(myKey='my_value')) | |
>>> print d | |
'my_key': 'my_value'} |
# Start ircd-hybrid when invoked via init.d shell script. | |
START=yes |
#!/bin/bash -x | |
# disable dashboard | |
defaults write com.apple.dashboard mcx-disabled -boolean YES | |
# disable Lion window animations | |
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool NO | |
# disable Lion key repeat behavior | |
defaults write -g ApplePressAndHoldEnabled -bool false |
#!bash -x | |
mkdir -p $HOME/bin | |
pushd $HOME/bin | |
curl -fsSLO https://github.com/andrewwatts/dotfiles/raw/master/bin/git-completion.bash | |
popd | |
cat >> $HOME/.bashrc << EOF | |
# BEGIN git install from https://gist.github.com/gists/1536b5ada40498fbb768 |