I hereby claim:
- I am ideasasylum on github.
- I am ideasasylum (https://keybase.io/ideasasylum) on keybase.
- I have a public key whose fingerprint is ED31 FE9E E32F 0D88 27FB CB25 A4DF 38FA A95D 637D
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
module PreviouslyDirty | |
extend ActiveSupport::Concern | |
include ActiveModel::AttributeMethods | |
included do | |
attribute_method_suffix '_previously_changed?', '_previously_was' | |
end | |
# Handle <tt>*_previously_changed?</tt> for +method_missing+. | |
def attribute_previously_changed?(attr, options = {}) #:nodoc: |
box: debian | |
build: | |
steps: | |
- arjen/hugo-build: | |
version: "0.15" | |
theme: "rw-theme" | |
deploy: | |
steps: |
pry-stack_explorer
gem.<% binding.pry %>
into your database.yml
file.rails c
database.yml
fileup
the stack until you reach the initializer loadinginitializers.tsort.collect &:name
to see the order that the initialiser are being loaded.# A module for creating around callbacks in a model | |
module Piddle | |
module TimelineFor | |
def self.included(klass) | |
klass.send(:extend, ClassMethods) | |
end | |
module ClassMethods | |
def timeline_for(event, opts={}) | |
method_name = :"timeline_for_#{event.to_s}" |
context "Parsing example file" do | |
setup { | |
@xml = File.open(File.expand_path(File.dirname(__FILE__) + '/../EICK.xml'), 'r'){|f| f.read } | |
parse_hamweather_data(@xml) | |
} | |
should_change("the number of forecasts", :by => 8) {Forecast.count} | |
should_change("the number of current forecasts", :by => 1) {Forecast.count :conditions => 'current = true'} | |
should_change("the number of 3hour forecasts", :by => 7) {Forecast.count :conditions => 'priority = 2'} | |
end |
exiftool -r "-lensId>lens" <folder name> -overwrite_original |
require 'rest-client' | |
file = 'names.txt' | |
key = 'YOUR GENDER API KEY' | |
raw = [] | |
results = Hash.new 0 | |
errors = 0 | |
num_names = 0 |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |