Skip to content

Instantly share code, notes, and snippets.

@Sava4
Sava4 / SketchSystems.spec
Last active December 3, 2018 16:39
Logged out*
Logged out*
Enter Phone Number -> Try Send SMS
Logged in
Sign out -> Logged out
Debt
Create Debt
Debt Details Input
Check Borrower Phone Number -> Try Send SMS
Borrower Confirm Debt Page
asfdasdadada
das
das
da
sda
da
sd
asd
a
@Sava4
Sava4 / 00_destructuring.md
Created March 20, 2017 16:03 — forked from john2x/00_destructuring.md
Clojure Destructuring Tutorial and Cheat Sheet

Clojure Destructuring Tutorial and Cheat Sheet

(Related blog post)

Simply put, destructuring in Clojure is a way extract values from a datastructure and bind them to symbols, without having to explicitly traverse the datstructure. It allows for elegant and concise Clojure code.

Vectors

@Sava4
Sava4 / core.clj
Created March 8, 2017 20:35 — forked from pjstadig/core.clj
In Clojure you can fetch items from a map three different ways. Which should you use when?
(ns maps.core)
;; In Clojure you can fetch items from a map three different ways. Which should
;; you use when?
(= "bar" ({:foo "bar"} :foo)) ; map as function
(= "bar" (:foo {:foo "bar"})) ; key as function
(= "bar" (get {:foo "bar"} :foo)) ; `get` as function
;; <INCIDENTALLY>
(ns pneumatic-tubes.core
(:require-macros [cljs.core.async.macros :refer [go-loop]])
(:require [cljs.core.async :refer [close! chan <! put!]]
[clojure.string :as str]
[cognitect.transit :as t]))
(def ^:private instances (atom {}))
(def r (t/reader :json))
(def w (t/writer :json))