Here's what I do after I do a fresh install of Lion. Things are sorta grouped by type.
- Run Software Update
- Start downloading Xcode
- Disable auto-bright and turn brightness all the way up
- Enable mouse right click
Here's what I do after I do a fresh install of Lion. Things are sorta grouped by type.
#!/usr/bin/env ruby | |
# Usage: gitio URL [CODE] | |
# | |
# Turns a github.com URL | |
# into a git.io URL | |
# | |
# Copies the git.io URL to your clipboard. | |
url = ARGV[0] | |
code = ARGV[1] |
#!/usr/bin/env ruby | |
# giftube – Generates an animated gif from a YouTube url. | |
# | |
# Usage: | |
# | |
# giftube [youtube url] [minute:second] [duration] | |
# | |
# ex. | |
# |
" Vim syntax file | |
" Language: HTML (version 5) | |
" Maintainer: Rodrigo Machado <[email protected]> | |
" URL: http://gist.github.com/256840 | |
" Last Change: 2010 Aug 26 | |
" License: Public domain | |
" (but let me know if you liked it :) ) | |
" | |
" Note: This file just adds the new tags from HTML 5 | |
" and don't replace default html.vim syntax file |
stopwords = ['a', 'about', 'above', 'across', 'after', 'afterwards'] | |
stopwords += ['again', 'against', 'all', 'almost', 'alone', 'along'] | |
stopwords += ['already', 'also', 'although', 'always', 'am', 'among'] | |
stopwords += ['amongst', 'amoungst', 'amount', 'an', 'and', 'another'] | |
stopwords += ['any', 'anyhow', 'anyone', 'anything', 'anyway', 'anywhere'] | |
stopwords += ['are', 'around', 'as', 'at', 'back', 'be', 'became'] | |
stopwords += ['because', 'become', 'becomes', 'becoming', 'been'] | |
stopwords += ['before', 'beforehand', 'behind', 'being', 'below'] | |
stopwords += ['beside', 'besides', 'between', 'beyond', 'bill', 'both'] | |
stopwords += ['bottom', 'but', 'by', 'call', 'can', 'cannot', 'cant'] |
Array.prototype.range = function(str) { | |
var inclusive = str.indexOf("...") > -1; | |
var p = str.split( ((inclusive) ? "..." : "..") ); | |
p[0] = parseInt(p[0]), p[1] = parseInt(p[1]) - (( inclusive ) ? 0 : 1); | |
var n = []; for ( var i=p[0]; i<=p[1]; i++ ) n.push(i); return n; | |
} | |
console.log( [].range("1...20") ); | |
// prints |