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
(define y2 | |
(lambda (c) | |
((lambda (h) | |
(h h)) | |
(lambda (f) | |
(c (lambda (x y) | |
((f f) x y))))))) | |
(define make-rember | |
(y2 (lambda (f) |
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
Y = fun(C) -> | |
(fun(H) -> | |
H(H) | |
end)( | |
fun(F) -> | |
C(fun(X) -> (F(F))(X) end) | |
end | |
) | |
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
Gotcha with Erlang | |
➜ v-kserl-v-02-code erl | |
Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace] | |
Eshell V5.10.4 (abort with ^G) | |
1> VALUE = fun() -> io:format("I have value!~n") end. | |
#Fun<erl_eval.20.80484245> | |
2> K = mykey. | |
mykey |
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
require 'httparty' | |
include HTTParty | |
('aa'..'zz').select { |r| | |
sleep 0.20 | |
puts "trying #{r}" | |
self.class.head("https://twitter.com/#{r}").code == 404 | |
} | |
# => ['me', 'oh'] |
NewerOlder