I hereby claim:
- I am austinthecoder on github.
- I am austinthecoder (https://keybase.io/austinthecoder) on keybase.
- I have a public key ASA8xOYuuEp1G7cyemGryaywl8X-eERK6o2UdD6-hkoeMwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Future versions of Hyper may add additional config options, | |
// which will not automatically be merged into this file. | |
// See https://hyper.is#cfg for all currently supported options. | |
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks |
def self.to_google_params(params) | |
given_name = params[:first_name] if params.key? :first_name | |
family_name = params[:last_name] if params.key? :last_name | |
department = params[:department] if params.key? :department | |
title = params[:title] if params.key? :title | |
result = {} | |
result[:primaryEmail] = params[:address] if params.key? :address | |
result[:password] = params[:password] if params.key? :password | |
result[:name] = {givenName: given_name, familyName: family_name} if given_name || family_name |
#!/usr/bin/env ruby | |
require 'csv' | |
file_path = ARGV[0] | |
CSV.readlines(file_path).each do |row| | |
next if row[0] == 'Factor' | |
table = { |
Hotfix
git fetch --all
git checkout -b hotfix remotes/us/master
rh deploy
git checkout master
, git merge hotfix
git branch -d hotfix
# IN AMAZON EC2 SERVER # | |
######################## | |
sudo su | |
apt-get -y update && apt-get -y upgrade | |
apt-get install vim git-core curl openssh-server openssh-client python-software-properties build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libcurl4-openssl-dev aptitude | |
/usr/sbin/groupadd wheel | |
/usr/sbin/visudo | |
(paste bottom) | |
%wheel ALL=(ALL) ALL |
class Parser | |
def errors | |
@errors ||= [] | |
end | |
end | |
describe Parser do | |
describe '#errors' do | |
it "is an empty list" do | |
subject.errors.should == [] |
module MyExtension | |
undef_method :clear | |
undef_method :<< | |
undef_method :delete | |
end | |
class Person < ActiveRecord::Base | |
has_many :friends, :extend => MyExtension | |
end |
class Person < ActiveRecord::Base | |
has_many :friends do | |
def clear | |
raise "Do not use this method" | |
end | |
end | |
end |