This file contains 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
a = "abcdefgREDhijk".split('') | |
=> ["a", "b", "c", "d", "e", "f", "g", "R", "E", "D", "h", "i", "j", "k"] | |
b = "abcdefgGREENhijk".split('') | |
=> ["a", "b", "c", "d", "e", "f", "g", "G", "R", "E", "E", "N", "h", "i", "j", "k"] | |
(a - b) + (b - a) | |
=> ["D", "G", "N"] |
This file contains 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
-----BEGIN PGP MESSAGE----- | |
Version: GnuPG v1.4.14 (GNU/Linux) | |
hQIMAyM2YOAMGZN3ARAAsLZmmmt0jlvdJIjzqUcfdQ/kyxIgaX4Ua8+gNvdC5ImG | |
7/5k7o3i1hWu/NDKteOO3Pi1txEPixyE7KwCEFR5CXgsFZDaQb40ZxEFibcwFyaq | |
Q85aGIjNhA2IrAldUQPnn4VLwFYuDl4FmuhTDfEqLsW9llpJx2G+WDZDA6LPv0ai | |
kjQ/MYnHTkOxmW0mjrrmoAngtPqlH09vu1kmTqn1AbH2LPEq5K2eAB1LcAhOeHQB | |
GIbPAdUgeMYnzEnbTEKsbnCmTDSksXHPICXDAcHKWVfSTLBX8NFjIOf6tx5adS3t | |
YAXZiHftE3V3ew2kuX09rMR6wsk2fGLpd2u3G+2XjpEwF9q3HEaAVZswRlnidKUz | |
JUgE5qDrKW65of82If6QpzFyRB3Nmcl8KTVrtqltWdiEuPUKAaR6Q/VQSNbdR6M4 |
This file contains 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
-----BEGIN PGP MESSAGE----- | |
Version: GnuPG v1.4.14 (GNU/Linux) | |
hQEMA+qikMLMvmnJAQf/eM4ZlkcsvbOWpheCXqww/K1auUSLGIj1nXDlYl9TQmUb | |
KKcKedIEfeGA0ql6mnsH+yMqnrZlxfjmd0KOHOZquhHD5TglG/fKKMBGhuQwtfT+ | |
PaE0mcvqKcngzLJ6pcsFfqSLUrq8BINHlrhJXQmkNuc8fCCvOJYnW9xbbHAoDLtJ | |
+XxfG3qqKQR3+xzHacPiSar3aAqUcIYPC+LVGAMQGORIvkUQn7dXca23dAYcyfS7 | |
io0uS2b3HsFnq3iFV2TuI6MUEQhpXQ2cYIYA7Ql1OnMIdONAupKi7KslGwKt2P4/ | |
Y8zl+Sf90CaAU5IDM3qds/IgBwhHJDENTxAMkiRyKtKFATV+k0ePFr4bAsAcGCu1 | |
gm6wdtsLJR7cXD/TkedurR09IgY2GOKbc5/+8FfHMeyFszi0I4lNoq7uyeJUOg9M |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am steveny on github. | |
* I am yelton (https://keybase.io/yelton) on keybase. | |
* I have a public key whose fingerprint is 736F DDEC ED2B 74D0 4944 E8D3 EFBE F9AD C600 7EE4 | |
To claim this, I am signing this object: |
This file contains 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
{ | |
"results" : [ | |
{ | |
"_id" : "3:5", | |
"value" : { | |
"data" : [ | |
245435, | |
245436, | |
245437, | |
245439, |
This file contains 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
use geospatial | |
elng=-45.929887 | |
slat=-2.940540 | |
nlat=73.844279 | |
wlng=-143.255854 | |
wsize = (wlng < elng) ? elng-wlng : (180-wlng)+(180-Math.absw(elng)) | |
hsize = nlat-slat | |
csize = (wsize > hsize) ? wsize/3 : hsize/3 |
This file contains 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
use geospatial | |
elng=-45.929887 | |
slat=-2.940540 | |
nlat=73.844279 | |
wlng=-143.255854 | |
wsize = (wlng < elng) ? elng-wlng : (180-wlng)+(180-Math.absw(elng)) | |
hsize = nlat-slat | |
csize = (wsize > hsize) ? wsize/3 : hsize/3 |
This file contains 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
def clusterize_points(nlat, slat, elng, wlng, points) | |
if points.count < 20 | |
return points.map {|item| item['id']} | |
end | |
wsize = (wlng < elng) ? elng-wlng : (180-wlng)+(180-elng.abs) | |
hsize = nlat-slat | |
csize = (wsize > hsize) ? wsize/3 : hsize/3 | |
# cluster all points |
This file contains 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
nodejs /usr/local/bin/cordova --verbose platform add android | |
cordova library for "android" already exists. No need to download. Continuing. | |
Checking if platform "android" passes minimum requirements... | |
Creating android project... | |
Running bin/create for platform "android" with command: ""/home/steveny/.cordova/lib/android/cordova/3.3.0/bin/create" "/tmp/tigersul-calculator/TigerSulCalculatorApp/platforms/android" "com.phonegap.helloworld" "HelloWorld"" (output to follow) | |
/usr/local/lib/node_modules/cordova/node_modules/q/q.js:126 | |
throw e; | |
^ |
This file contains 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
nodejs /usr/local/bin/phonegap --verbose run android | |
[phonegap] detecting Android SDK environment... | |
[phonegap] using the local environment | |
[phonegap] adding the Android platform... | |
[phonegap] Creating android project... | |
[error] An error occured during creation of android sub-project. |