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
### Keybase proof | |
I hereby claim: | |
* I am subakva on github. | |
* I am subakva (https://keybase.io/subakva) on keybase. | |
* I have a public key ASCxKYLz1pYdMG5COKJyLIdnksvyvTu9BkfZOM6lj5KM7Qo | |
To claim this, I am signing this object: |
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
require 'capybara/poltergeist' | |
module Capybara::Poltergeist | |
class Client | |
private | |
def redirect_stdout | |
prev_out = STDOUT.dup | |
prev_out.autoclose = false | |
$stdout = @write_io | |
STDOUT.reopen(@write_io) |
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
for ENV_DECL in `cat .env` | |
do | |
export $ENV_DECL | |
done |
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
module TouchableModel | |
def self.included(model) | |
model.extend(TouchableModel::ClassMethods) | |
model.send(:include, TouchableModel::InstanceMethods) | |
underscore_name = model.name.underscore.singularize | |
plural_name = underscore_name.pluralize | |
# Include this module to have any related class set the updated_at field after it is saved | |
# after they are saved. The class is expected to have an association that matches the |
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
#! /usr/bin/env ruby | |
require 'rubygems' | |
require 'mechanize' | |
require 'logger' | |
projects = %w{ | |
project_name_1 | |
project_name_2 | |
} |