Skip to content

Instantly share code, notes, and snippets.

@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
@patmcnally
patmcnally / .irbrc
Created March 30, 2011 03:54
.irbrc file that incorporates wirble, hirb, rails 3, and awesome print
# load libraries
require 'rubygems' rescue nil
require 'wirble'
#require 'json'
alias q exit
class Object
def local_methods
(methods - Object.instance_methods).sort
@dziegler
dziegler / FontLoader.js
Created January 24, 2011 03:26
Gracefully loads Typekit fonts
/*
FontLoader version 0.1
David Ziegler, Dec 19 2010
This script checks if the browser supports font-smoothing, and adds the following classes to the html tag:
"hasFontSmoothing-true" if font smoothing is enabled
"hasFontSmoothing-false" if it isn't
"hasFontSmoothing-unknown" if it cannot detect it.
<!DOCTYPE html>
<!-- Helpful things to keep in your <head/>
// Brian Blakely, 360i
// http://twitter.com/brianblakely/
-->
<head>
<!-- Disable automatic DNS prefetching.