Skip to content

Instantly share code, notes, and snippets.

View aisamu's full-sized avatar

Samuel Tschiedel aisamu

View GitHub Profile
(ns apij.controllers.session
(:require [apij.lib.experience :as experience]
[apij.lib.json :as json]
[apij.models.user :as user]
[apij.models.visitor :as v]
[clojure.tools.logging :as log]
[copterj.stage :as stage]
[liberator.core :refer [defresource]]
[liberator.representation
:refer
@aisamu
aisamu / another.cljs
Created November 22, 2018 16:39
Clojurescript `1.10.449` NPE
;; src/cljs/another.cljs
(ns cljs.another)
@aisamu
aisamu / cons-reverse.clj
Created May 23, 2017 22:21
Step-by-step cons reversing
;; (rev '()) => '()
;;
;; (rev '(1)) => (cons 1 '()) => '(1)
;;
;; (rev '(1 2)) => '(2 1) => (cons 2 (cons 1 '()))
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;;
;; (rev '(1 2 3)) => '(3 2 1) => (cons 3 (cons 2 (cons 1 '())) )