duplicates = multiple editions
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
A Classical Introduction to Modern Number Theory, Kenneth Ireland Michael Rosen
| (defrecord Retry [bindings]) | |
| (defmacro with-retry | |
| "It's really fucking inconvenient not being able to recur from within (catch) | |
| expressions. This macro wraps its body in a (loop [bindings] (try ...)). | |
| Provides a (retry & new bindings) form which is usable within (catch) blocks: | |
| when this form is returned by the body, the body will be retried with the new | |
| bindings." | |
| [initial-bindings & body] | |
| (assert (vector? initial-bindings)) |
| trait MyOption[A] { | |
| def fold[B](n: => B, s: A => B): B | |
| // Define the usual Option API. | |
| // | |
| // * Constructors (on the object) | |
| // some | |
| // none | |
| // * methods | |
| // map |
| import restx.App; | |
| class Main implements restx.IRoute { | |
| @:path("/") | |
| function index() | |
| response.send("Hello World!"); | |
| public static function main() { | |
| var app = new App(9998); | |
| app.router.register(new Main()); |
| # In case you had some strange python installation | |
| # NOTE: .pydistutils.cfg seems to be not compatible with brew install python | |
| # areas I needed to clean before installation | |
| # clean up ~/Library/Python | |
| # clean up .local | |
| # preconditions: | |
| # xcode with command line tools installed | |
| xcode-select --install |