What is the difference between Ruby's Hash
and ActiveSupport
's
HashWithIndifferentAccess
?
The Hash
class in Ruby's core library retrieves values by doing a standard ==
Letterpress Dark: | |
#313131,#242424,#00BAFF,#FFFFFF,#187598,#FFFFFF,#00BAFF,#FF432F | |
Monument Valley: | |
#0D7E83,#076570,#F79F66,#FFFFFF,#D37C71,#FFFFFF,#F79F66,#F15340 | |
Threes: | |
#FEFFFF,#CBE1DB,#66CCFF,#FFFFFF,#FFCC66,#494766,#FF6680,#FF6680 |
<IfModule mod_fastcgi.c> | |
AddHandler fastcgi-script .fcgi | |
</IfModule> | |
<IfModule mod_fcgid.c> | |
AddHandler fcgid-script .fcgi | |
</IfModule> | |
Options +FollowSymLinks +ExecCGI | |
RewriteEngine On |
# Cakefile to document, compile, join and minify CoffeeScript files for | |
# client side apps. Just edit the config object literal. | |
# | |
# -jrmoran | |
fs = require 'fs' | |
{exec, spawn} = require 'child_process' | |
# order of files in `inFiles` is important | |
config = |
# file mood.rb | |
Mood = Struc.new(:happy) | |
# file user.rb | |
class User | |
serialize mood, Mood | |
def mood=(attr={}) |
# Convert any YouTube video into an audio file you can listen to on the go, using: | |
# http://rg3.github.com/youtube-dl/ | |
{ ~ } > brew install ffmpeg | |
{ ~ } > wget https://raw.github.com/rg3/youtube-dl/2012.02.27/youtube-dl | |
{ ~ } > chmod u+x youtube-dl | |
# Pick which video format you want to download.. (use any YT video link) | |
{ ~ } > ./youtube-dl -s -F http://www.youtube.com/watch?v=vT1KmTQ-1Os |
set background=dark | |
highlight clear | |
if exists("syntax_on") | |
syntax reset | |
endif | |
let colors_name = "comments" | |
" First set Normal to regular white on black text colors: | |
hi Normal ctermfg=LightGray ctermbg=Black guifg=#dddddd guibg=Black |