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
tap 'phinze/homebrew-cask' | |
tap 'homebrew/versions' | |
brew 'brew-cask' | |
brew 'ag' | |
brew 'automake' | |
brew 'ctags' | |
brew 'curl' | |
brew 'gcc' |
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
#!/bin/bash | |
DOT_FILES=( .zshrc .zprofile .aliases .aliases_mac .bashrc .bash_profile .bundle .gitconfig .gitignore .gemrc .inputrc .tigrc .vimrc .vimrc_bundle. .pryrc ) | |
for dotfile in ${DOT_FILES[@]} | |
do | |
ln -svf $HOME/Dropbox/dotfiles/$dotfile $HOME/$dotfile | |
done | |
ln -svf ~/Dropbox/setting_files/.atom ~/.atom |
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
# Install Homebrew (skip if it's already installed) | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew update | |
# Install rbenv(if you use zsh, replace .bash_profile with .zprofile) | |
brew install rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile | |
brew install ruby-build | |
brew install rbenv-gemset |
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
# See default settings https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml | |
AllCops: | |
Includes: | |
- '**/Rakefile' | |
Excludes: | |
- 'vendor/bundle/**/*' | |
- 'db/schema.rb' | |
- 'config/initializers/secret_token.rb' | |
- 'spec/support/share_db_connection.rb' |
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
*.sassc | |
.sass-cache | |
capybara-*.html | |
.rspec | |
/.bundle | |
/vendor/bundle | |
/log/*.log | |
tmp/**/* | |
/tmp/* | |
/db/*.sqlite3* |
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
source 'https://rubygems.org' | |
ruby '2.0.0' | |
gem 'rails', '4.0.0' | |
# MySQL | |
# gem 'mysql2' | |
# Assets | |
gem 'slim' |
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 sample Guardfile | |
# More info at https://github.com/guard/guard#readme | |
require 'active_support/inflector' | |
guard :rubocop, cli: ['--format', 'clang', '--silent'] do | |
watch(%r{.+\.rb$}) | |
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) } | |
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
# monkey-patch the whereami command to show some frame information, | |
# useful for navigating stack. | |
Pry.config.commands.before_command("whereami") do |num| | |
if PryStackExplorer.frame_manager(_pry_) && !internal_binding?(target) | |
bindings = PryStackExplorer.frame_manager(_pry_).bindings | |
binding_index = PryStackExplorer.frame_manager(_pry_).binding_index | |
# Add here | |
# Ignore outputs when Frame number: 0/0 or 0/1 | |
unless binding_index == 0 && bindings.size <= 2 |
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
doctype html | |
html | |
head | |
title Title | |
= stylesheet_link_tag 'application', media: 'all', data: {turbolinks_track: true } | |
= javascript_include_tag 'application', data: {turbolinks_track: true } | |
= csrf_meta_tags | |
body | |
== yield |
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
%w(Seeds).each do |seed| | |
seed_file = "#{Rails.root}/db/seeds/fixtures/#{seed.pluralize.tableize}.rb" | |
if File.exists?(seed_file) | |
puts "Creating #{seed} seed data" | |
require seed_file | |
end | |
end |