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 simple-hiccup.core | |
| (require | |
| [ring.adapter.jetty :refer [run-jetty]] | |
| [simple-hiccup.middleware :as m] | |
| [simple-hiccup.routes :as r] | |
| )) | |
| (def app | |
| (-> r/routes | |
| m/logger |
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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <fcntl.h> | |
| #include <linux/input.h> | |
| #include <time.h> | |
| #include <stdint.h> | |
| int main(int argc, char* argv[]){ | |
| sleep(1); |
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
| local torch_repl = repl | |
| function repl(restoreGlobals) | |
| -- copied from http://stackoverflow.com/questions/33068607/how-can-i-use-the-torch-repl-for-debugging | |
| require 'trepl' | |
| restoreGlobals = restoreGlobals or false | |
| -- optionally make a shallow copy of _G | |
| local oldG = {} | |
| if restoreGlobals then |
I pasted it here because it is hard to find for me. It is publicly available at here. The total order and canonical form is clearly presented here over the original ml-ulex paper.
(* reg-exp-fn.sml
*
* COPYRIGHT (c) 2005
* John Reppy (http://www.cs.uchicago.edu/~jhr)
* Aaron Turon (adrassi@gmail.com)
* All rights reserved.NewerOlder
