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
| from __future__ import division | |
| import urllib, json, string, datetime | |
| from itertools import permutations | |
| from math import log | |
| def _bf(V, E, src): | |
| # init | |
| dist = dict(zip(V, [float('Inf') for v in V])) | |
| pred = dict(zip(V, [None for v in V])) |
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
| #!/usr/bin/sh | |
| # Scipt for installing mcrypt.so extension for PHP 5.3.13 (default PHP for OS X 10.8 Mountain Lion) | |
| mkdir /tmp/gettext | |
| cd /tmp/gettext | |
| curl --location --progress-bar http://us.php.net/get/php-5.3.13.tar.gz/from/nl.php.net/mirror | tar -zx | |
| brew update |
#Mac OS X
In terminal:
heroku addons:add newrelic:standard
Add this gem to your Gemfile: gem 'newrelic_rpm'
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
| //Simple d3.js barchart example to illustrate d3 selections | |
| //other good related tutorials | |
| //http://www.recursion.org/d3-for-mere-mortals/ | |
| //http://mbostock.github.com/d3/tutorial/bar-1.html | |
| var w = 300 | |
| var h = 300 |
NewerOlder