start new:
tmux
start new with session name:
tmux new -s myname
| ;; (let [md (. java.security.MessageDigest getInstance "sha-512")] | |
| ;; (. md update (.getBytes "helloworld")) | |
| ;; (let [bytes (. md digest)] | |
| ;; (reduce (fn [n x] (str n (format "%02x" x))) "" bytes))) | |
| ;; (let [md (. java.security.MessageDigest getInstance "sha-512")] | |
| ;; (. md update (.getBytes "helloworld")) | |
| ;; (let [bytes (. md digest)] | |
| ;; (reduce #(str %1 (format "%02x" %2)) "" bytes))) |
| // | |
| // Queue.swift | |
| // NTBSwift | |
| // | |
| // Created by Kåre Morstøl on 11/07/14. | |
| // | |
| // Using the "Two-Lock Concurrent Queue Algorithm" from http://www.cs.rochester.edu/research/synchronization/pseudocode/queues.html#tlq, without the locks. | |
| // should be an inner class of Queue, but inner classes and generics crash the compiler, SourceKit (repeatedly) and occasionally XCode. |
| # For http://stackoverflow.com/a/7296873/396458 | |
| student: student_id, first_name, last_name | |
| classes: class_id, name, teacher_id | |
| student_classes: class_id, student_id # the junction table | |
| students: | |
| id | first | last | |
| ===================== | |
| 1 | John | Lee |
Picking the right architecture = Picking the right battles + Managing trade-offs
| (ns simple-compojure.core | |
| (require | |
| [ring.adapter.jetty :refer [run-jetty]] | |
| [ring.middleware.params :as p] | |
| [simple-compojure.middleware :as m] | |
| [simple-compojure.routes :as r] | |
| )) | |
| (def app | |
| (-> r/routes |
| (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 |
I am going to have a look at what William Byrd presented as The most beautiful program ever written.
Beauty here refers to computer programs, specifically about Lisp. There might be errors as this is something I wrote to make sense of that interpreter, proceed at your own risk.
Thanks a lot to Carl J. Factora for the help.
| import React from "react"; | |
| /* | |
| Read a text file and out put the content. | |
| Example Usage: | |
| var myTxt = require("./myTxt.txt"); | |
| ... |