- ice_nine: Deep freeze ruby objects
- Values: Simple immutable value objects for ruby
- immutable_attributes: specify attributes within an ActiveRecord model that can be set but not modified
- hamster: Efficient, Immutable, Thread-Safe Collection classes for Ruby
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
/* | |
Closures as Family | |
Hi, I'm Peter Harkins - @pushcx | |
notes will be online at http://gist.github.com/pushcx | |
*/ | |
function mom() { |
Peter Harkins - ph@push.cx - @pushcx - http://push.cx
No photos, please (camera shy); notes will be online at: http://gist.github.com/pushcx
Wifi: Holiday Club / H0lidayclub!
http://git-scm.org Homepage
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
{ | |
:error => { | |
:code => "missing", | |
:message => "Cannot charge a customer that has no active card", | |
:param => "card", | |
:type => "card_error" | |
} | |
} |
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
location ~ ^/(wp-admin|wp-login\.php|priv\.dog|companies\/sidekick) { | |
deny all; | |
break; | |
} | |
# file extensions that should never be served, this prevents | |
# potential malicious downloads in case someone manages to manipulate | |
# a Rails URL or write a file that can be served | |
# (~* matches case-insensitive) | |
location ~* \.(?:git|svn|DS_Store|asp|aspx|cgi|pt|pl|idx|php|exe|scpt|AppleScript|dll|dmg|pif|msi|application|msp|com|scr|hta|cpl|gadget|msc|jar|bat|vb|vbs|vbe|ws|wsh|inf|lnk|reg|scf|wsc|wsh|ps1|ps1xml|ps2|ps2xml|psc1|psc2|msh|msh1|msh2|mshxml|msh1xml|msh2xml)$ { | |
deny all; |
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
entity = Node.new(id: id) | |
case | |
when not enity.exists? then fail("Entity doesn't exist") | |
when not entity.file? then fail("Entity wasn't a file") | |
when not entity.writable? then fail("Entity wasn't writable") | |
else entity.write(data) | |
end |
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
source 'https://rubygems.org' | |
gem 'activerecord' | |
gem 'anima' | |
gem 'sqlite3' | |
gem 'transproc' | |
gem 'virtus' | |
gem 'benchmark-ips' |
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
" preliminaries {{{ | |
" vim: foldmethod=marker | |
set nocompatible " real ultimate power | |
let mapleader="," | |
call pathogen#infect() | |
syntax on | |
filetype plugin indent on |
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
[user] | |
name = Peter Harkins | |
email = ph@push.cx | |
[color] | |
ui = auto | |
[alias] | |
a = add | |
aa = add --all | |
ai = add --interactive | |
ap = add --patch |
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
defutf8 on | |
startup_message off | |
nethack off | |
deflogin off | |
vbell_msg " bell in %n" | |
autodetach on | |
multiuser on | |
shell -$SHELL | |
defscrollback 10000 |
OlderNewer