This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/apps/portfolio[master]: git log | |
commit 4747ec0ceea13b1ce6a5030a3a2a9fd9580fd412 | |
Author: Matt Willhite <[email protected]> | |
Date: Sat May 14 15:10:39 2011 -0700 | |
Removed favicon | |
commit 97bff59db19b0c32c4690acced83be92659bb49b | |
Author: Matt Willhite <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# A little about the syntax for common commands | |
# | |
# When you call something like `ruby`, `git` or `rvm` in the command line | |
# you are really just executed a small program (or command). The first thing | |
# you type is the name of the command, for example "git". Everything following | |
# that are arguments for the command, separated by a space. | |
# | |
# Each command takes arguments differently, so you have to view the documentation | |
# to figure it out. You can view documentation on the commands by typing `man [command-name]` | |
# That fires a program called "man" with an argument of the command you want to learn about |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require File.join(File.dirname(__FILE__), 'config', 'environment.rb') | |
# disable :run | |
run Helios |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# gem install crack | |
%w[crack open-uri].each{ |dep| require dep }; Crack::XML.parse(open("http://news.ycombinator.com/rss").read)['rss']['channel']['item'].each{ |i| puts("== #{ i['title'] } ==", "#{ i['link'] }\n\n") } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rook.Models.Person = Backbone.Model.extend({ | |
paramRoot: 'person' | |
}); | |
Rook.Models.People = Backbone.Collection.extend({ | |
model: Rook.Models.Person, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This snippet constructs an array of objects...via some server-side templating thing | |
// Now can you tell me what's wrong with this code? | |
// | |
// ... | |
// | |
<script language="javascript"> | |
var nouns = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Lessons in Google Closure's Resizing | |
// | |
// Resizing to 100% isn't fair | |
// | |
// Our example: | |
new goog.fx.dom.Resize(this.toolbar, ['100%', size.height], ...); | |
// Google Closure's function definition | |
goog.fx.Resize.prototype.updateStyle = function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if has("autocmd") | |
" Enable filetype detection | |
filetype plugin indent on | |
" Restore cursor position | |
autocmd BufReadPost * | |
\ if line("'\"") > 1 && line("'\"") <= line("$") | | |
\ exe "normal! g`\"" | | |
\ endif | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
requirejs.config({ | |
paths: { | |
'jquery' : 'http://cdnjs.cloudflare.com/ajax/libs/jquery/1.7.2/jquery.min', | |
'underscore' : 'http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.3/underscore-min' | |
}, | |
shim: { | |
underscore: { exports: '_' } | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PATH | |
remote: . | |
specs: | |
simple-ruby (1.3.15) | |
activemodel | |
multi_json (~> 1.3.4) | |
typhoeus (= 0.3.3) | |
uuid | |
yajl-ruby |
OlderNewer