- High level overview https://yogthos.github.io/ClojureDistilled.html
- An Animated Introduction to Clojure https://markm208.github.io/cljbook/
- Interactive tutorial in a browser https://tryclojure.org/
- Interactive exercises http://clojurescriptkoans.com/
- Clerk notebooks with introductory examples https://github.clerk.garden/anthonygalea/notes-on-clojure
- More interactive exercises https://4clojure.oxal.org/
- Lambda Island tutorials https://lambdaisland.com/
- Functional Programming with Clojure resources https://practicalli.github.io/
This file contains 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
#!/bin/sh | |
print_usage() { | |
echo "usage: compress_video <input_file>" | |
echo "supported formats: mp4, webm, mkv, mov, avi, flv" | |
} | |
get_extension() { | |
f="${1##*/}" | |
case "$f" in |
This file contains 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
(defn response | |
([status body] | |
{:status status | |
:headers {} | |
:body body})) | |
(defmacro http-status [code sym] | |
`(def ~sym (partial response ~code))) | |
(defmacro http-statuses [& pairs] |
This file contains 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
proto = <syntax> { import | package | option | message | enum | service | emptyStatement } <ws> | |
(* Header *) | |
syntax = ws "syntax" ws "=" ws ( "'proto3'" | '"proto3"' ) ws ";" | |
import = <ws "import" ws> [ "weak" | "public" ] <ws> strLit <ws ";"> | |
package = <ws "package" ws> fullIdent <ws ";"> | |
option = <ws "option" ws> optionName <ws "=" ws > constant <ws ";"> |
This file contains 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
Red [ | |
Original-idea: "Dave Andersen" | |
Source: https://gitter.im/red/red?at=5a2a4fb9a2be46682876463d | |
] | |
inc: func ['val][set val (get val) + 1] | |
dec: func ['val][set val (get val) - 1] | |
incr: func ['val step][set val (get val) + step] | |
decr: func ['val step][set val (get val) - step] | |
++: make op! :incr | |
--: make op! :decr |
Start cljs.main
with rebel-readline
:
clojure -Sdeps '{:deps {github-mfikes/cljs-main-rebel-readline {:git/url "https://gist.github.com/mfikes/9f13a8e3766d51dcacd352ad9e7b3d1f" :sha "27b82ef4b86a70afdc1a2eea3f53ed1562575519"}}}' -i @setup.clj -m cljs.main
A beginner-friendly REPL that combines
This file contains 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 figwheel.simple | |
(:require | |
[clojure.string :as string] | |
#?@(:cljs [[goog.object :as gobj]]) | |
#?@(:clj [[clojure.walk :as walk] | |
[cljs.repl.browser :as brow] | |
[cljs.repl :as repl] | |
[cljs.env :as env] | |
[cljs.analyzer :as ana] | |
[cljs.build.api :as bapi] |
This file contains 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
Red [] | |
system/view/auto-sync?: off | |
pos: 145x143 | |
nums: does [collect [ | |
repeat i 12 [keep compose [ | |
text (as-pair | |
(cosine i * 30 - 91) * 50 + (pos/x) | |
(sine i * 30 - 91) * 50 + (pos/y)) | |
(to-string i) | |
]]]] |
This file contains 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
Red [ | |
Author: "Toomas Vooglaid" | |
Date: 2017-12-31 | |
History: [ | |
2017-12-28 {First draft} | |
2018-01-20 {Added arrows, subtree moving, elementary interactive editing} | |
2018-01-24 {Edges formatting} | |
2018-02-01 {Added differnt edge-ends, layout orientations, improved options-handling} | |
2018-02-03 {Implemented stepped (orthogonal) edges, improved star layout} | |
2018-02-06 {Added directions `across` (default: perpendicular to the step-away direction) and `away` (in the step-away direction). |
NewerOlder