- Explain helper classes
/* Bad */
/* Good */
decodeHtmlEntity = (str) -> | |
str.replace /&#(\d+);/g, (match, dec) -> | |
String.fromCharCode(dec) | |
encodeHtmlEntity = (str) -> | |
buf = [] | |
for (var i=str.length-1;i>=0;i--) { | |
buf.unshift(['&#', str[i].charCodeAt(), ';'].join('')) | |
buf.join('') |
ಠ_ಠ | |
ಠ_ರೃ | |
﴾͡๏̯͡๏﴿ | |
๏_๏ | |
ಠ▃ಠ | |
(•‿•) | |
Ծ_Ծ | |
¯\(°_o)/¯ | |
(✌゚∀゚)☞ | |
╚(•⌂•)╝ |
#!/usr/bin/env bash | |
mkdir -p "$HOME"/bin | |
cd "$HOME"/bin | |
echo -ne "\n\n\n > Downloading ss..." | |
curl https://raw.github.com/adamyonk/dotfiles/master/bin/ss -o ss >/dev/null 2>&1 && chmod +x ss | |
echo "Done!" | |
echo -n " > Downloading dropbox_uploader..." |
= form_for @album do |f| | |
= f.text_field :title | |
= f.fields_for :songs do |s| | |
= s.text_field :name | |
... |
gem 'guard' | |
gem 'guard-shell' |