Skip to content

Instantly share code, notes, and snippets.

@avaynshtok
avaynshtok / trello_hours.js
Created December 2, 2011 23:03
calculate card hours in trello
// 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.
*/
@avaynshtok
avaynshtok / gist:967479
Created May 11, 2011 22:01
capital to capital
require "rubygems"
require "bundler/setup"
require 'geokit'
require 'open-uri'
require 'hpricot'
require 'pp'
require 'find'
coder = Geokit::Geocoders::GoogleGeocoder
require 'pp'
a = 1,
pp(a)
pp(a)