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
https://gist.github.com/3b22654e58405db2ee05 |
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
import click, fiona | |
@click.command() | |
@click.argument('input', default='-', required=False) | |
def example(input): | |
try: | |
src = click.open_file(input).readlines() | |
except IOError: | |
src = [input] | |
click.echo(src) |
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
import fiona | |
with fiona.open('-') as src: | |
print src.bounds |
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
parallel --header : node testthing.js {x}/{y}/3 ::: x {0..7} ::: y {0..7} |
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
var tilebelt = require('tilebelt'); | |
var tile = process.argv[2].split('/'); | |
tile = tile.map(function(a, b) { | |
return parseInt(a); | |
}) | |
console.log('WHERE quadkey LIKE "_' + tilebelt.tileToQuadkey(tile).split('').join('_') + '%"'); |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"s2n1n0n0n0n0n0n0n0n0n0n": 22.721913604150913 | |
}, | |
{ | |
"s2n1n0s0s0s0s0s0s0s0s0s": 22.696348857912557 | |
}, | |
{ | |
"s2n1n0n0n0n0n0n0n0n0n1n": 22.75243997959063 | |
}, |
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
<_io.TextIOWrapper name='<stdin>' encoding='UTF-8'> | |
[338, 481] [415, 569] | |
[ | |
{ | |
"s0s2s1s3s2n2n2n0n0n": -23.695589999744822 | |
}, | |
{ | |
"s0s2s1s3s2n2n2n0s0s": -24.141786578229347 | |
}, | |
{ |
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
total 104 | |
drwx------ 19 dnomadb admin 646 Dec 22 15:02 . | |
drwx------ 7 dnomadb admin 238 Dec 21 23:52 .. | |
-rw------- 1 dnomadb admin 4 Jun 3 2014 PG_VERSION | |
drwx------ 8 dnomadb admin 272 Dec 21 23:27 base | |
drwx------ 44 dnomadb admin 1496 Dec 21 23:54 global | |
drwx------ 3 dnomadb admin 102 Dec 21 23:27 pg_clog | |
-rw------- 1 dnomadb admin 4473 Jun 3 2014 pg_hba.conf | |
-rw------- 1 dnomadb admin 1636 Jun 3 2014 pg_ident.conf | |
drwx------ 4 dnomadb admin 136 Dec 21 23:29 pg_multixact |
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
@class1: #33141F; | |
@class2: #361722; | |
@class3: #3A1926; | |
@class4: #3D1B2A; | |
@class5: #411E2E; | |
@class6: #442132; | |
@class7: #482336; | |
@class8: #4B263A; | |
@class9: #4E293E; | |
@class10: #512C42; |
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
@class1: #3B582C; | |
@class2: #385A30; | |
@class3: #355C34; | |
@class4: #335F39; | |
@class5: #30613D; | |
@class6: #2D6342; | |
@class7: #2A6547; | |
@class8: #27674C; | |
@class9: #246951; | |
@class10: #216B57; |