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
from math import pi,sqrt,sin,cos,asin,atan2 | |
from simplegeo import Client | |
import json | |
# Instantiate the SimpleGeo Client | |
client = Client('KEY', 'SECRET') | |
context = client.context.get_context_by_address("4275 Swift Ave, San Diego, CA") | |
lat1 = float(context['query']['latitude']) | |
lon1 = float(context['query']['longitude']) |
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
commit be6c1758ea376f9559aa117bf1ec44340b4eff2c | |
Author: Corbin Simpson <[email protected]> | |
Date: Fri Oct 21 13:48:16 2011 -0700 | |
static: Don't try to dereference possibly undefined module when initializing. | |
Fixes failed init when Logging isn't enabled. | |
diff --git a/gateone/static/gateone.js b/gateone/static/gateone.js | |
index cf8907e..56d6473 100644 |
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
# /etc/skel/.bashrc | |
# | |
# This file is sourced by all *interactive* bash shells on startup, | |
# including some apparently interactive shells such as scp and rcp | |
# that can't tolerate any output. So make sure this doesn't display | |
# anything or bad things will happen ! | |
# Test for an interactive shell. There is no need to set anything | |
# past this point for scp and rcp, and it's important to refrain from |
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
commit a50f7aee7c792c7deac811e592eead151e2170e4 | |
Author: Corbin Simpson <[email protected]> | |
Date: Thu May 26 05:33:07 2011 -0700 | |
identify: Add the login handler class. | |
To get at the protocol version. | |
diff --git a/burger/toppings/identify.py b/burger/toppings/identify.py | |
index 3cc0717..c636578 100644 |
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
"E": { | |
"<init>": [ | |
18, | |
12 | |
], | |
"a": [ | |
"sand" | |
], | |
"c": [ | |
0.5 |
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
diff --git a/dump.py b/dump.py | |
index 5298ae5..51e9cdd 100644 | |
--- a/dump.py | |
+++ b/dump.py | |
@@ -191,6 +191,16 @@ def items_pass(jar, name): | |
return ret | |
+def blocks_pass(jar, name): | |
+ """ |
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 | |
""" | |
jdism.py | |
Created by Tyler Kennedy on 2011-02-27. | |
Copyright (c) 2011 Tyler Kennedy. All rights reserved. | |
""" | |
__all__ = ["OperandTypes", "StreamAssembler", "StreamDisassembler"] |
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 | |
from collections import defaultdict | |
from hashlib import sha512 | |
from pprint import pprint | |
from StringIO import StringIO | |
import sys | |
from zipfile import ZipFile | |
from nu.bytecode import StreamDisassembler |
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
Grepping the JAR... | |
defaultdict(<type 'list'>, {'gj.class': ['Protocol error, unexpected packet'], 'gc.class': ['Bad packet id ', 'Duplicate packet class:', 'Duplicate packet id:', 'Skipping packet with id '], 'cl.class': ['Failed to handle packet: ']}) | |
Guessing packet class gc.class | |
Found packet 0 (True, True): hb | |
Found packet 1 (True, True): id | |
Found packet 2 (True, True): hh | |
Found packet 3 (True, True): iq | |
Found packet 4 (True, False): ek | |
Found packet 5 (True, False): k | |
Found packet 6 (True, False): jr |
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
Grepping the JAR... | |
Guessing packet class gc.class | |
Found packet 1: hb | |
Found packet 1: id | |
Found packet 1: hh | |
Found packet 1: iq | |
Found packet 0: ek | |
Found packet 0: k | |
Found packet 0: jr | |
Found packet 1: a |