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
==> Downloading http://ffmpegthumbnailer.googlecode.com/files/ffmpegthumbnailer-2.0.6.tar.gz | |
File already downloaded in /Users/cristian/Library/Caches/Homebrew | |
/usr/bin/tar xf /Users/cristian/Library/Caches/Homebrew/ffmpegthumbnailer-2.0.6.tar.gz | |
==> ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/ffmpegthumbnailer/2.0.6 | |
./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/ffmpegthumbnailer/2.0.6 | |
checking for a BSD-compatible install... /usr/bin/install -c | |
checking whether build environment is sane... yes | |
checking for a thread-safe mkdir -p... ./install-sh -c -d | |
checking for gawk... no | |
checking for mawk... no |
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[rel="external"]') | |
.click( function() { | |
window.open( $(this).attr('href') ); | |
return false; | |
}); |
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
sprintf("%03d", 4) | |
"%05d" % 123 |
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 you want to search and replace a word in all files within a specified directory in Unix, do the following: | |
# For example, here I wanted to do a global search and replace of all files within the current directory to ’2010′ from ’2008′. | |
find . -type f | xargs perl -pi -e 's/2008/2010/g' |
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 lt IE 9] <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> |
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
#In Gemfile: | |
group :test do | |
gem 'webmock' | |
end | |
#In test class: | |
def setup | |
mock_file = Rails.root.join("test", "fixtures", "some_saved_website.html") |
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
Rails.root.join("config", "locales", "es-AR", "blabla.yml") |
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
Date.strptime("09-02-2012", "%d-%m-%Y") | |
------------------------------------------------------------------- Time#strftime | |
time.strftime( string ) => string | |
--------------------------------------------------------------------------------- | |
Formats time according to the directives in the given format string. Any text not listed as a directive will be passed through to the output string. | |
" | |
Format meaning: |
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
## Surround these with : e.g. :calling: | |
sunny, zap, leaves, lipstick, cop, wheelchair, fish, | |
hammer, moneybag, calling, memo, mega, gift, pencil, scissors, | |
feet, runner, heart, smoking, warning, ok, tm, vs, new, bulb, zzz, | |
sparkles, star, mag, lock, email, fist, v, punch, +1, clap, -1 | |
## Sounds ( e.g. /play tada ) | |
tada, nyan, tmyk, rimshot, trombone, crickets, live, ohmy, greatjob, yeah, secret, pushit, drama, vuvuzela |
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
cristian:~/code$ gem install arcadia | |
Fetching: arcadia-0.12.1.gem (100%) | |
Successfully installed arcadia-0.12.1 | |
1 gem installed | |
cristian:~/code$ rbenv rehash | |
cristian:~/code$ arcadia | |
/Users/cristian/.rbenv/versions/1.9.3-p194-perf/lib/ruby/1.9.1/tk.rb:3011:in `_invoke': bad window path name ".w00000" (RuntimeError) | |
from /Users/cristian/.rbenv/versions/1.9.3-p194-perf/lib/ruby/1.9.1/tk.rb:3011:in `_invoke' |
OlderNewer