Skip to content

Instantly share code, notes, and snippets.

View beatngu13's full-sized avatar
💀
Choose death!

Daniel Kraus beatngu13

💀
Choose death!
View GitHub Profile

Without line wrapping

Bacon ipsum dolor amet rump porchetta short ribs venison filet mignon boudin pork loin, landjaeger pastrami ball tip ribeye. Drumstick jowl leberkas hamburger kielbasa tongue porchetta corned beef shank venison chuck biltong short loin pork belly. Ham hock jowl pork loin tail burgdoggen capicola pork belly pork chop andouille chuck leberkas. Ham shank pork, kielbasa sausage tongue sirloin bacon filet mignon cupim frankfurter cow hamburger. Alcatra corned beef tri-tip shoulder, turducken salami tenderloin ham hock burgdoggen cow. Jerky chicken picanha salami capicola tri-tip short ribs andouille swine meatloaf shankle ground round porchetta pork belly burgdoggen. Boudin jerky tail frankfurter tenderloin tongue capicola venison turducken bresaola chicken.

With line wrapping

Bacon ipsum dolor amet rump porchetta short ribs venison filet mignon boudin pork loin, landjaeger pastrami ball tip ribeye. Drumstick jowl leberkas hamburger kielbasa tongue porchetta corned beef shank venison c

@beatngu13
beatngu13 / fun.clj
Last active June 12, 2018 10:58
Fun with Clojure
;;;;;;;;;;
;;;; Fun with Clojure
;;;;;;;;;;
;; Comments are based on Peter Norvig's recommendations from his tutorial on
;; good Lisp programming style (see
;; http://www.cs.umd.edu/~nau/cmsc421/norvig-lisp-style.pdf on page 41):
;; ; inline comment
;; ;; in-function comment
;; ;;; between-function comment
@beatngu13
beatngu13 / ref-types-demo.clj
Last active June 12, 2018 10:59
Introduction to Clojure's reference types
;;;;;;;;;;
;;;; Introduction to Clojures reference types based on
;;;; http://clojure-doc.org/articles/language/concurrency_and_parallelism.html#clojure-reference-types
;;;;;;;;;;
;; Clojure provides a powerful set of reference types, each of them with its own
;; concurrency semantics for different kinds of operations:
;;
;; | Coordinated | Uncoordinated
;; ------|-------------|--------------
@beatngu13
beatngu13 / core-async-demo.clj
Last active June 12, 2018 10:59
Introduction to Clojure's core.async library
;;;;;;;;;;
;;;; Introduction to core.async based on
;;;; https://github.com/clojure/core.async/tree/master/examples
;;;;;;;;;;
(require [clojure.core.async
:refer [>! <! >!! <!! go chan close! alts! alts!! alt! alt!!
timeout dropping-buffer sliding-buffer]])
;;;;;;;;;;