This file contains hidden or 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
find ~/Library/LaunchAgents/*mysql* | xargs launchctl load | |
find ~/Library/LaunchAgents/*mysql* | xargs launchctl unload |
This file contains hidden or 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
/** | |
* Anita Ammersfeld | |
*/ | |
a.box { | |
display: inline-block; | |
position: relative; | |
border-top: 1px dashed black; | |
border-right: 1px dashed black; | |
cursor: pointer; |
This file contains hidden or 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
vim -d old.rb new.rb +:TOhtml +:x +:qa |
This file contains hidden or 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
h = Hash.new { |h,k| h[k] = Hash.new(&h.default_proc) } | |
h[:a][:b][:c] = "123" | |
h # => {:a=>{:b=>{:c=>"123"}}} |
This file contains hidden or 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
// Helps you to provide provide retina optimized backgrounds | |
// in an innovative and easy way. (Requires compass). | |
// | |
// ==== Options | |
// * <tt>$url</tt> is your background image. | |
// * <tt>$retina_url</tt> is your retina optimized background image. | |
// If no $retina_url option is provided or it equals to `false`, $url | |
// is used for the retina background image, but its size it cut to half. | |
// | |
// ==== Examples |
This file contains hidden or 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 'rake' | |
require 'rake/testtask' | |
Rake::TestTask.new do |t| | |
t.test_files = Dir.glob('spec/**/*_spec.rb') | |
end | |
task(default: :test) |
This file contains hidden or 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
# Simple minitest matchers which will make your controller/functional specs less pain in the ass. | |
# | |
# ==== Dependencies | |
# | |
# gem 'minitest' | |
# gem 'minitest-matchers' | |
# | |
# ==== Matchers | |
# | |
# +must_have_status+ and its opposite +wont_have_status+ take both one argument which must be one of the following: |
This file contains hidden or 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
source :rubygems | |
gem 'actionpack', '~> 3.2', require: 'sprockets/static_compiler' | |
gem 'filewatcher' | |
gem 'rake' | |
gem 'sprockets' | |
gem 'coffee-script' | |
gem 'sass' | |
gem 'uglifier' |
This file contains hidden or 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
ARGF.each_line do |line| | |
action, file = line.split | |
Kernel.system "git rm -f #{file}" if %w[A DU].include?(action) | |
end |
This file contains hidden or 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
[class^="icon-"], | |
[class*=" icon-"] { | |
font-family: inherit; | |
&:before { | |
font-family: FontAwesome; | |
} | |
} |