Skip to content

Instantly share code, notes, and snippets.

Nate Salisbury natesalisbury

  • Utah
Block or report user

Report or block natesalisbury

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View assets.rake
require 'non_digest_assets'
namespace :assets do
desc "Copy certain assets to a non-digest version"
task :non_digested do
NonDigestAssets.new.generate
end
# Run non_digested task after precompile
@natesalisbury
natesalisbury / better_hash.rb
Last active Dec 7, 2015
Footing Brainstorm
View better_hash.rb
class BetterHash < Footing
def filter!(keys, replacement: "[FILTERED]")
should_replace = lambda do |key|
replace = false
keys.each do |k|
break if replace
replace = k.is_a?(Regexp) ? key.to_s =~ k : key.to_s == k.to_s
end
replace
@natesalisbury
natesalisbury / value_objects_and_activerecord.md
Last active Dec 18, 2015
Notes for Überdev talk about Value Objects
View value_objects_and_activerecord.md

#Value Objects and ActiveRecord

##Value Objects

###Properties

  • A Measure or description of something
  • Equality is dependent on values rather than an identity
  • Immutable

###Examples:

You can’t perform that action at this time.