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
# Set up your custom domain to point | |
# to localhost in /etc/hosts | |
127.0.0.1 myapp.dev | |
# Enable virtual hosts in /etc/apache2/httpd.conf | |
# by uncommenting the following line | |
Include /private/etc/apache2/extra/httpd-vhosts.conf | |
# Add the mapping in /private/etc/apache2/extra/httpd-vhosts.conf | |
<VirtualHost *:80> |
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
#!/usr/local/bin/ruby | |
grep = `git grep -n #{ARGV[0]} #{ARGV[1]}` | |
interrupt = false | |
grep.each do |file_with_line| | |
exit if interrupt | |
file, line_number, line = file_with_line.split(':', 3) |
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
<body class="shop"> | |
<div class="grid_12"> | |
<div class="std"> | |
<div class="photogrid clearfix"> | |
<a class="panel p-left"></a> | |
<div class="panel-msg"> | |
<img width="560" height="186" alt="Now Shipping Australia Wide" src=""> | |
</div> | |
<a class="panel"></a> | |
<a class="panel p-left"></a> |
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
// maximum time that one photo stays in the panel (in ms) | |
var MAXTIME = 20000, | |
MINTIME = 8000, | |
FADETIME = 1500; | |
var FLICKR_API_PARAMS = { | |
apiKey: 'USE_YOUR_API_KEY_HERE', | |
userId: 'USE_YOUR_USER_ID_HERE', | |
tag: 'homepage', | |
perPage: '125' |
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
git checkout $(git rev-list -n1 --before="2 weeks ago" master) |
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
set autoeval | |
set autolist | |
set history save | |
set history size 10000 |
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
git ls-tree -r --name-only BRANCH_OR_COMMIT -- FOLDER |
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 development() { | |
} | |
@if not production() { | |
} |
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
module Sass::Script::Functions | |
def development() | |
Sass::Script::Bool.new(Rails.env.development?) | |
end | |
def production() | |
Sass::Script::Bool.new(Rails.env.production?) | |
end | |
end |
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
git show BRANCH:FILE_PATH > NEW_FILE_PATH |