Homebrew Formula patching old ImageMagick release 6.6.9-10
$ brew install https://gist.githubusercontent.com/rochoa/10006522/raw/9e3ffb85bbc897ec7608b710ce58196d0ee86d43/imagemagick.rb
require 'formula' | |
class Ant < Formula | |
homepage 'http://ant.apache.org/' | |
url 'http://www.us.apache.org/dist/ant/binaries/apache-ant-1.9.4-bin.tar.gz' | |
sha1 '6c41481e8201f6b3f7e216146b95bb6de70208bb' | |
bottle do | |
cellar :any | |
sha1 "56eee6f32ab55854b1ccbaa3e106129517e94f7f" => :mavericks |
Extracted from Homebrew @ 47034ab1b44f757ac84b9cb6762cc4042cdef997
Extracted from Homebrew @ 3d52e52460f1ff8840442bded9b668d668762164
Check the conversation here https://twitter.com/felipernb/status/499661739244281859
As Felipe mentions native sort covers many edge cases so native method is less performant. However I get totally different results using node.js in different versions, check results_node_* files.
Some edge cases, see tests.js file:
[1, null]
produces different result in native than in algorithms.js.['a', null, 'a']
produces inconsistent results in algorithms.js.#!/usr/bin/python | |
import sys | |
import urllib | |
print urllib.quote_plus(sys.stdin.read()) |
#!/usr/bin/python | |
import sys | |
import urllib | |
print urllib.unquote_plus(sys.stdin.read()) |
WITH deltas as ( | |
SELECT | |
st_distance(the_geom::geography, lag(the_geom::geography, 1) over(order by timestamp)) as ddist, | |
timestamp - lag(timestamp, 1) over(order by timestamp) as dt | |
from out_2 offset 1000 | |
) | |
select avg(ddist/dt) as speed from deltas |
modified version of http://bl.ocks.org/curran/01aa2685f083b6c1b9fb with the map's bounding box on the globe
original readme follows:
--
Pan and zoom in the map on the left to rotate the globe.
Click and drag the globe to pan on the map.