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
[alias] | |
a = add | |
br = branch | |
ci = commit | |
cl = clone | |
co = checkout | |
df = diff | |
lg = log -p | |
h = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative | |
st = status |
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
>>> client.storage.get_nearby_ip_address('com.simplegeo.global.flickr', '173.164.219.53') |
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
>>> client.storage.get_nearby('com.simplegeo.global.flickr', 37.765850, -122.437094, limit=1, radius=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
>>> from simplegeo.models import Record | |
>>> r1 = Record('com.simplegeo.test', '7', 37.786521, -122.397850, \ | |
'place', 1262304000, name = 'Chatz Coffee') | |
>>> r2 = Record('com.simplegeo.test', '8', 37.786274, -122.397513, \ | |
'place', 1262304000, name = 'CBS Interactive') | |
>>> client.storage.add_records('com.simplegeo.test', [r1,r2]) |
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
>>> client.storage.get_history('com.simplegeo.test', 'andrew') |
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
>>> client.storage.get_records('com.simplegeo.global.twitter', | |
['9073757897', '9073313347', '9073364877']) |
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
>>> client.storage.get_record('com.simplegeo.global.twitter', 9073364877) |
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
>>> client.storage.delete_record('com.simplegeo.test', '4') |
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
>>> client.storage.add_record(r) |
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
>>> r = Record('com.simplegeo.test', '4', 37.786521, -122.397850, | |
'place', 1262304000, foo='bar') |