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 ==
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 |
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 |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
<IfModule mod_fastcgi.c> | |
AddHandler fastcgi-script .fcgi | |
</IfModule> | |
<IfModule mod_fcgid.c> | |
AddHandler fcgid-script .fcgi | |
</IfModule> | |
Options +FollowSymLinks +ExecCGI | |
RewriteEngine On |
# 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 |
#Mac OS X