I hereby claim:
- I am wpf500 on github.
- I am wpf500 (https://keybase.io/wpf500) on keybase.
- I have a public key ASCeKUy8yAb1LtmurkH3jov8Tm4FiCRoWFF3z5kIq1H4bQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // Based on Leaflet's projection/transformation functions | |
| var project = (function () { | |
| var R = 6378137, d = Math.PI / 180, max = 1 - 1E-15; | |
| var a = 0.5 / (Math.PI * R); | |
| function _project(lat, lng) { | |
| var sin = Math.max(Math.min(Math.sin(lat * d), max), -max); | |
| return [R * lng * d, R * Math.log((1 + sin) / (1 - sin)) / 2]; | |
| } |
| #!/usr/bin/python | |
| import sys, boto.logs, time | |
| from datetime import datetime | |
| log_group = 'LOG GROUP NAME' | |
| timestamp = int(datetime.strptime(sys.argv[1], '%Y-%m-%dT%H:%M:%S').strftime('%s')) * 1000 | |
| logs = boto.logs.connect_to_region('eu-west-1') | |
| if len(sys.argv) > 2: |
| class CSRFFilterWithExemptions extends EssentialFilter { | |
| val csrfFilter = CSRFFilter() | |
| def apply(next: EssentialAction): EssentialAction = new EssentialAction { | |
| def apply(rh: RequestHeader): Iteratee[Array[Byte], Result] = { | |
| if (/* some test here */) { | |
| csrfFilter(next)(rh) | |
| } else { | |
| next(rh) | |
| } |
| common stuff | |
| enum cargo type | |
| BREAD | |
| TVS | |
| etc. | |
| position | |
| tuple<longitude,latitude> | |
| class cargo |