[](https://trello.com/b/nC8QJJoZ)
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
# ~/.tmuxinator/icis.yml | |
name: icis | |
root: ~/src/ | |
windows: | |
- icisstaff: | |
layout: main-horizontal | |
panes: | |
- cd ~/src/icisstaff; foreman start | |
- cd ~/src/icisstaff; tail -f ~/src/icisstaff/log/development.log | |
- snowflake: |
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
# Devise Client using omniauth | |
# ==> OmniAuth | |
# Add a new OmniAuth provider. Check the wiki for more information on setting | |
# up on your models and hooks. | |
config.omniauth :icis, APP_ID, APP_SECRET, client_options: { :site => APP_URL }, scope: 'person,read_only' |
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 FancyDecorator < SimpleDelegator | |
def full_name | |
"#{first_name} #{last_name}" | |
end | |
def last_name_first | |
"#{last_name}, #{first_name}" | |
end | |
def self.decorate_collection(collection) |
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 Boston < Town | |
LAT = "30°4′E" | |
LNG = "29°41′S" | |
REFERENCE = "http://en.wikipedia.org/wiki/Boston,_KwaZulu-Natal" | |
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
describe 'simple object' do | |
class A | |
def initialize | |
@c = 'ccc' | |
@d = 'ddd' | |
end | |
def default | |
'aaa' |
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
#!/usr/bin/env ruby | |
### make sure you `brew install chromedriver` and `gem install selenium-webdriver` before running this! | |
require 'rubygems' | |
require 'selenium-webdriver' | |
hangout_url = ENV['hangout_url'] | |
hangout_email = ENV['hangout_email'] | |
hangout_password = ENV['hangout_password'] |
If Animal and Fozzie wanted to pair on Animals machine and they both have access to shared.muppets.com then they could use the following setup
- Animal will have the following in
~/.ssh/config
Host tunnel_from_muppets
Hostname shared.muppets.com
RemoteForward 1235 localhost:22
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |