This file contains hidden or 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
| (-> | |
| 1 | |
| ((fn [x y] (+ x (* 10 y))) 2)) | |
| ;-> 21 | |
| (->> | |
| 1 | |
| ((fn [x y] (+ x (* 10 y))) 2)) | |
| ;-> 12 |
This file contains hidden or 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
| (macroexpand '(-> x (f1 y1) (f2 y2) (f3 y3))) | |
| ;-> (f3 (clojure.core/-> (clojure.core/-> x (f1 y1)) (f2 y2)) y3) | |
| (macroexpand '(clojure.core/-> x (f1 y1))) | |
| ;-> (f1 x y1) | |
| (macroexpand '(->> x (f1 y1) (f2 y2) (f3 y3))) | |
| ;-> (f3 y3 (clojure.core/->> (clojure.core/->> x (f1 y1)) (f2 y2))) | |
| (macroexpand '(clojure.core/->> x (f1 y1))) | |
| ;-> (f1 y1 x) |
This file contains hidden or 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
| mkdir -p ~/.vim/autoload | |
| mkdir -p ~/.vim/bundle | |
| cd ~/.vim/autoload | |
| curl -so ~/.vim/autoload/pathogen.vim \ | |
| https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim | |
| cd ~/.vim/bundle | |
| git clone https://github.com/Shougo/neocomplcache.git --depth 1 | |
| # SHA1: a54079968b268e4fe8843290b23c410c1af619c5 |
This file contains hidden or 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
| call pathogen#incubate() | |
| call pathogen#infect() | |
| let g:neocomplcache_enable_at_startup = 1 | |
| if !exists('g:neocomplcache_omni_patterns') | |
| let g:neocomplcache_omni_patterns = {} | |
| endif | |
| let g:neocomplcache_omni_patterns.ruby = '[^. *\t]\.\w*\|\h\w*::' |
This file contains hidden or 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
| sudo yum groupinstall development-tools | |
| sudo yum install gcc-c++ | |
| sudo yum install openssl-devel zlib-devel readline-devel | |
| # ref. https://github.com/kaosf/fedora-setup/blob/4c7cf06c5fb93ab9c8c40065e228966b415ef9e1/ruby-setup.sh | |
| git clone https://github.com/sstephenson/rbenv.git $HOME/.rbenv | |
| echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> $HOME/.zshenv | |
| echo 'eval "$(rbenv init -)"' >> $HOME/.zshenv | |
| exec $SHELL -l | |
| mkdir -p $HOME/.rbenv/plugins |
This file contains hidden or 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 {:plugins [ | |
| [colorize "0.1.1"] | |
| - [lein-exec "0.3.1"]]}} | |
| + [lein-exec "0.3.1"]]} | |
| + :jvm-opts ["-XX:+TieredCompilation" | |
| + "-XX:TieredStopAtLevel=1" | |
| + "-Xverify:none"]} |
This file contains hidden or 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
| let f x = x + 1 | |
| :t f | |
| -- f :: Num a => a -> a | |
| let g = (+ 1) | |
| :t g | |
| -- g :: Integer -> Integer | |
| let h = (+ 1) :: Int -> Int | |
| :t h | |
| -- h :: Int -> Int |
This file contains hidden or 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
| for i in \ | |
| fre_ll04 \ | |
| fre_l04 \ | |
| fre_m04 \ | |
| fre_s04 \ | |
| go_ll04 \ | |
| go_l04 \ | |
| go_m04 \ | |
| go_s04 \ | |
| ss_ll04 \ |
This file contains hidden or 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
| curl http://www.toei-anim.co.jp/ptr/precure/deco.html 2> /dev/null | \ | |
| grep "<a href=\"special\/" | \ | |
| ruby -e "STDIN.each_line do |l| | |
| l.scan(/href=\"([^\"]*)\"/).flatten.each do |x| | |
| puts x.slice(0, x.length - 4).split('/')[1] | |
| end | |
| end" |
This file contains hidden or 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
| STDIN.each_line do |l| | |
| l.scan(/href="([^"]*)"/).flatten.each do |x| | |
| puts x.slice(0, x.length - 4).split('/')[1] | |
| end | |
| end |