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
{} |
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
// copy this to a bookmark URL to use as a bookmarklet: | |
// javascript:document.getElementsByTagName('head')[0].appendChild(document.createElement('script')).setAttribute('src','https://raw.github.com/gist/1425246/trello_hours.js') | |
(function() { | |
var boardId = _.last(location.href.split('/')); | |
/** | |
* If a card starts with a string like "[4]", this method returns the | |
* first number in the brackets. Otherwise it returns zero. | |
*/ |
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
require "rubygems" | |
require "bundler/setup" | |
require 'geokit' | |
require 'open-uri' | |
require 'hpricot' | |
require 'pp' | |
require 'find' | |
coder = Geokit::Geocoders::GoogleGeocoder |
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
require 'pp' | |
a = 1, | |
pp(a) | |
pp(a) |