Skip to content

Instantly share code, notes, and snippets.

@kevinelliott
kevinelliott / osx-10.10-setup.md
Last active December 1, 2023 08:21
Mac OS X 10.10 Yosemite Setup

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

@JunichiIto
JunichiIto / alias_matchers.md
Last active April 16, 2024 16:18
List of alias matchers in RSpec 3

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value
@kei-s
kei-s / beer_document.rb
Created August 6, 2013 06:16
ビアドキュメント #駄洒落クラブ
puts <<🍺
\u{1F37A}
🍺
@juno
juno / styles_controller.rb
Created June 12, 2013 11:16
Rails 3.2でコントローラーアクションの実行時に動的にSassテンプレートをCSS化する方法。 template.sass.erb => template.sass => CSS
class StylesController
def show
# Local variables assign to ERb
locals = {
base_color: current_user.base_color
}
# Render ERb to Sass (app/views/styles/template.sass.erb)
sass_contents = self.class.new.render_to_string('template',
formats: [:sass],
@jugyo
jugyo / ngx_mruby.md
Created September 28, 2012 08:46
ngx_mruby を試す
@kevinelliott
kevinelliott / osx-10.9-setup.md
Last active November 6, 2020 14:19 — forked from juev/gist:3124344
Clean Install – Mac OS X 10.9 Mavericks

Mac OS X 10.9 Mavericks

Custom recipe to get OS X 10.9 Mavericks running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install.

Install Software

The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis.

Install from App Store

@libkazz
libkazz / git_delete_merged.sh
Last active October 5, 2015 20:38
delete merged branches
# これで gitconfig に alias を書けばよい
git branch --no-color --merged 2> /dev/null | grep -v -e '*' -e master | xargs git branch -d
@liamcurry
liamcurry / gist:2597326
Created May 4, 2012 19:56
Vanilla JS vs jQuery

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
@metaskills
metaskills / wait_until.rb
Last active May 2, 2024 01:51
Never sleep() using Capybara!
# WAIT! Do consider that `wait` may not be needed. This article describes
# that reasoning. Please read it and make informed decisions.
# https://www.varvet.com/blog/why-wait_until-was-removed-from-capybara/
# Have you ever had to sleep() in Capybara-WebKit to wait for AJAX and/or CSS animations?
describe 'Modal' do
should 'display login errors' do
visit root_path
@drio
drio / gist:375388
Created April 22, 2010 15:41
ruby hereby
Indenting Here Documents
var = <<'EOF'.gsub(/^\s+/, '')
your text
goes here
EOF