Skip to content

Instantly share code, notes, and snippets.

View raine's full-sized avatar

Raine Virta raine

View GitHub Profile
TILE_SIZE = 256
lat = 41.850033
lon = -87.65005229999997
zoom = 10
numTiles = 1 << zoom
bound = (value, min, max) ->
if min then return Math.max value, min
rvmbp:~ rane$ cat ~/.ackrc
--type-set=less=.less
--type-add=html=.haml,.liquid
--type-set=sass=.sass
--type-add=css=.scss
--type-set=coffee=.coffee
--type-set=DUMB=.min.js
--noDUMB
Loading development environment (Rails 3.1.0)
ruby-1.9.2-p180 :001 >
ruby-1.9.2-p180 :002 >
ruby-1.9.2-p180 :003 > HeadType.create
SQL (12.9ms) INSERT INTO "head_types" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 16 Oct 2011 12:45:08 UTC +00:00], ["updated_at", Sun, 16 Oct 2011 12:45:08 UTC +00:00]]
=> #<HeadType id: 1, created_at: "2011-10-16 12:45:08", updated_at: "2011-10-16 12:45:08">
ruby-1.9.2-p180 :004 > HeadType.create
SQL (0.3ms) INSERT INTO "head_types" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Sun, 16 Oct 2011 12:45:10 UTC +00:00], ["updated_at", Sun, 16 Oct 2011 12:45:10 UTC +00:00]]
=> #<HeadType id: 2, created_at: "2011-10-16 12:45:10", updated_at: "2011-10-16 12:45:10">
ruby-1.9.2-p180 :005 > p = PressureVessel.create
@raine
raine / a
Created October 25, 2011 16:14
function require(name) {
var exports = {};
window.modules[name](exports);
return exports;
}
#-- vim:sw=2:et
#++
#
# :title: Twitter Status Update for rbot
#
# Author:: Carter Parks (carterparks) <carter@carterparks.com>
# Author:: Giuseppe "Oblomov" Bilotta <giuseppe.bilotta@gmail.com>
# Author:: NeoLobster <neolobster@snugglenets.com>
#
# Copyright:: (C) 2007 Carter Parks
{
chart: {
animation: false,
renderTo: 'container',
defaultSeriesType: 'line',
marginRight: 0,
marginBottom: 30,
plotBackgroundColor: 'none',
backgroundColor: 'none',
plotShadow: false
lrwxr-xr-x 1 rane staff 24 3 Tam 16:08 .vim -> /Users/rane/Dropbox/.vim
drwxr-xr-x 20 rane staff 680 8 Kes 2011 .vim-fuf-data
-rw-r--r-- 1 rane staff 24576 4 Tam 02:31 .viminfa.tmp
-rw-r--r-- 1 rane staff 57344 4 Tam 02:31 .viminfb.tmp
-rw-r--r-- 1 rane staff 45056 27 Jou 16:37 .viminfc.tmp
-rw-r--r-- 1 rane staff 40960 25 Jou 00:36 .viminfd.tmp
-rw-r--r-- 1 rane staff 32768 13 Jou 13:08 .viminfe.tmp
-rw-r--r-- 1 rane staff 36864 13 Jou 13:02 .viminff.tmp
-rw-r--r-- 1 rane staff 53248 10 Jou 00:06 .viminfg.tmp
-rw-r--r-- 1 rane staff 53248 9 Jou 12:53 .viminfh.tmp
14:22:34 │ #weechat | http://wwww.greatest-url.eva
14:22:34 │ #lol | http://wwww.greatest-url.eva
14:22:34 │ #weechat | http://wwww.greatest-url.eva
14:22:34 │ #lol | http://wwww.greatest-url.eva
<M-d> Close current tab and selects the last selected tab.
D Close current tab and selects the left tab.
dc Close current tab and selects the right tab.
dm Close matched tabs. would have a box to ask keyword.
do Close other tabs except current one.
dl Close tabs on the left.
dr Close tabs on the right.
dp Close unpinned tabs.
dP Close pinned tabs.