basically the most basic of leaflet maps posible
basically
| // Disable bold. | |
| term_.prefs_.set('enable-bold', false) | |
| // Use this for Solarized Dark | |
| term_.prefs_.set('background-color', "#002b36"); | |
| term_.prefs_.set('foreground-color', "#839496"); | |
| term_.prefs_.set('color-palette-overrides', [ | |
| '#073642', | |
| '#dc322f', |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>32BitSupportedModels</key> | |
| <array> | |
| <string>MacBook7,1</string> | |
| <string>MacBookAir5,2</string> | |
| <string>MacBookPro10,1</string> | |
| <string>MacPro5,1</string> |
| import blessings | |
| term = blessings.Terminal() | |
| def keypress(): | |
| with term.cbreak(): | |
| inp = term.inkey() | |
| if inp.code == term.KEY_ENTER: | |
| print 'hit enter' |
| import datetime | |
| import time | |
| # some datetime object | |
| dt = datetime.datetime.now() | |
| # get the seconds since epoch for that datetime | |
| print time.mktime(dt.timetuple()) |
| curl -i -H "Accept: application/json" -H "Content-type: application/json" --data @test.json http://localhost:5033/match |
| #!/usr/bin/env python | |
| from itertools import imap, groupby | |
| from operator import itemgetter | |
| def unique_justseen(iterable, key=None): | |
| """List unique elements, preserving order. | |
| Remember only the element just seen.""" |
| #!/usr/bin/env python | |
| from itertools import imap, groupby | |
| from operator import itemgetter | |
| def _unique_justseen(iterable, key=None): | |
| """List unique elements, preserving order. | |
| Remember only the element just seen.""" |
| #!/usr/bin/env python | |
| import random | |
| f = open('us-states.json', 'w') | |
| f.write("""{"type":"FeatureCollection","features":[\n""") | |
| lat = 35.0 | |
| lng = -87.3 |