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.There is a regression between versions 1.2.0 and 1.2.1 of npm when generating npm-shrinkwrap.json from >=1.2.1 and using it with <1.2.1
nvm use 0.8.18 # this uses [email protected] but regression was introduced in [email protected]
npm install
npm shrinkwrap
rm -rf node_modules/
# Download shaded relief from natural earth (http://www.naturalearthdata.com/downloads/10m-raster-data/10m-shaded-relief/)
make prepare
#!/bin/bash | |
# Configuration ############################################# | |
# For Slack tokens go to https://api.slack.com/#auth | |
SLACK_TOKEN="" | |
# In seconds | |
AWAY_AFTER=120 | |
CHECK_EVERY=10 |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Leaflet multilayer example | CartoDB.js</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/> | |
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" /> | |
<style> | |
html, body, #map { | |
height: 100%; |