- [HipChat][hipchat]
- [Upgrade to OS X Mountain Lion][osx]
- [Xcode][xcode]
- Xcode Command Line Tools
- [Google Chrome][chrome]
- [Install Homebrew][brew]
- Then:
brew install git rbenv ruby-build rbenv-gem-rehash postgres
- Then:
- [Install Ruby + Rails]
| { | |
| "color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme", | |
| "font_face": "Inconsolata", | |
| "font_size": 18.0, | |
| "tab_size": 2, | |
| "translate_tabs_to_spaces": true | |
| } |
| # https://help.github.com/articles/ignoring-files | |
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so |
| # http://git-scm.com/book/en/Getting-Started-First-Time-Git-Setup | |
| [user] | |
| name = My Name | |
| email = [email protected] | |
| [color] | |
| ui = true | |
| [alias] | |
| st = status -sb -uall | |
| [core] | |
| editor = subl |
| # ================= | |
| # Rbenv | |
| # ================= | |
| eval "$(rbenv init -)" | |
| # ================= | |
| # Path | |
| # ================= | |
| PATH=$HOME/bin:$PATH |
| eval "$(rbenv init -)" | |
| PATH=$HOME/bin:$PATH | |
| # ================= | |
| # Bash Prompt | |
| # ================= | |
| # -------------------- | |
| # Colors for the prompt | |
| # -------------------- |
| 'use strict'; | |
| var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; | |
| var mountFolder = function (connect, dir) { | |
| return connect.static(require('path').resolve(dir)); | |
| }; | |
| module.exports = function (grunt) { | |
| // load all grunt tasks | |
| require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks); |
| class SessionController < ApplicationController | |
| def create | |
| user = User.find_by_email(params[:session][:email]) | |
| if user && user.authenticate(params[:session][:password]) | |
| sign_in user | |
| redirect_to user | |
| else | |
| redirect_to sign_in_path | |
| end | |
| end |
| ### | |
| This algorithm merges any items in arr2 that are not already present in the array arr1 | |
| It also first screens arr2 for any duplicates before checking against arr1 | |
| ### | |
| combineArrays = (arr1, arr2) -> | |
| if arr1.length isnt 0 or arr2.length isnt 0 | |
| for item, index in arr2 | |
| for j in [index+1...arr2.length] | |
| if item is arr2[j] then arr2.splice(j,1) |