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
| ping_any_master(AllNodes) -> | |
| error_logger:info_msg("~nAttempting to connect to master via: ~p~n", [AllNodes]), | |
| [N|RN] = AllNodes, | |
| ping_any_master(N, RN, AllNodes). | |
| ping_any_master(N, [], AllNodes) -> | |
| ping_any_master(N, AllNodes, AllNodes); | |
| ping_any_master(N, RN, AllNodes) -> | |
| case net_adm:ping(N) of | |
| pong -> |
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
| // Simply place the following text in a bookmark on your browser bar to make any page better. | |
| javascript:(function () {document.getElementsByTagName("body")[0].style.fontFamily="Comic Sans, Comic Sans MS";})();void(0); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>BAD DATA</title> | |
| <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> | |
| <meta content="en-us" http-equiv="Content-Language" /> | |
| </head> | |
| <body> | |
| <header><h1>BAD DATA</h1></header> | |
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
| Line 1 | |
| Line A | |
| Line B | |
| Line C |
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
| int_val neko_interp_loop( neko_vm *VM_ARG, neko_module *m, int_val _acc, int_val *_pc ) { | |
| register int_val acc ACC_REG = _acc; | |
| register int_val *pc PC_REG = _pc; | |
| # ifdef VM_REG | |
| register neko_vm *vm VM_REG = VM_ARG; | |
| # endif | |
| # ifdef NEKO_THREADED | |
| static void *instructions[] = { | |
| # undef _NEKO_OPCODES_H | |
| # undef OPBEGIN |
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
| int_val neko_interp_loop( neko_vm *VM_ARG, neko_module *m, int_val _acc, int_val *_pc ) { | |
| register int_val acc ACC_REG = _acc; | |
| register int_val *pc PC_REG = _pc; | |
| # ifdef VM_REG | |
| register neko_vm *vm VM_REG = VM_ARG; | |
| # endif | |
| # ifdef NEKO_THREADED | |
| static void *instructions[] = { | |
| # undef _NEKO_OPCODES_H | |
| # undef OPBEGIN |
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
| ; He's asking why this isn't tail recursive. | |
| (def date-seq | |
| (fn [d1 d2] | |
| (loop [b (-> d1 | |
| (.dayOfMonth) | |
| (.withMinimumValue)) | |
| e d2] | |
| (cons b (if (time/before? b e) |
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
| class String | |
| def monkeypatched | |
| puts "Invisible Cavemen!" | |
| end | |
| end | |
| => nil | |
| #>> "madness".monkeypatched # prints “Invisible Cavemen!” |
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
| (ns blogpost.bloomfilters) | |
| (defprotocol BloomFilterable | |
| (make-hash [object]) | |
| (human-readable-hash [object])) |
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
| ;; Some type examples: | |
| (deftype MyType [three data fields]) | |
| (defrecord MyRecord [three data fields]) | |
| (deftype MyIntHolder [#^int data]) |