Skip to content

Instantly share code, notes, and snippets.

View bgadoci's full-sized avatar

Brandon Gadoci bgadoci

View GitHub Profile
@shanemcd
shanemcd / gist:4717435
Created February 5, 2013 20:36
loop through a hash and apply different tooltips to multiple elements
icons =
preview: "Print Preview"
edit: "Edit Question"
comment: "Comment"
trash: "Delete"
for icon, text of icons
$(this.el).find(".#{icon}-image").tooltip
title: text
@mscoutermarsh
mscoutermarsh / taskk.coffee
Created January 24, 2013 02:30
Example of using taskk.js
# Initialize the taskk api. With your api token. Get yours at https://api.taskk.it
taskk_api = new TaskkAPI('token')
# Test your API key with the ping method
ping = taskk_api.ping()
# define what to do on success. Should say "pong" if you have a valid key.
ping.success (data) -> alert(JSON.stringify(data))
# define what to do on error
@zeke
zeke / coffeescript_bundle_for_sublime.sh
Created March 1, 2012 22:39
Install the CoffeeScript TextMate bundle in Sublime Text 2
mkdir -p ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/CoffeeScript
cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/CoffeeScript
curl -O https://raw.github.com/jashkenas/coffee-script-tmbundle/master/Syntaxes/CoffeeScript.tmLanguage
curl -O https://raw.github.com/jashkenas/coffee-script-tmbundle/master/Preferences/CoffeeScript.tmPreferences
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt