- High level overview https://yogthos.github.io/ClojureDistilled.html
- Interactive exercises http://clojurescriptkoans.com/
- Community-powered Clojure courses https://clojurecademy.com/
- Interactive book https://www.maria.cloud/
- Interactive workbook http://viewer.gorilla-repl.org/view.html?source=github&user=lspector&repo=clojinc&path=worksheet.clj
- Clojure workshop https://github.com/friemen/cugb/blob/master/kickstart.md
- Clojure style guide https://github.com/bbatsov/clojure-style-guide
- core functions explained visually http://blog.josephwilk.net/clojure/functions-explained-through-patterns.html
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
; This is the next iteration of the CRUD metamodel that powers Hyperfiddle | |
; Just a design sketch, the current metamodel in prod is different | |
; CRUD definition | |
{identity ; Pass through URL params to query | |
[{:dustingetz/event-registration ; virtual attribute identifying a query | |
[:db/id | |
(:dustingetz/email {:hf/a :dustingetz/registrant-edit}) ; hyperlink to detail form | |
:dustingetz/name | |
{:dustingetz/gender |
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 startrek.migration | |
(:import | |
[org.flywaydb.core Flyway] | |
[org.flywaydb.core.api.configuration FluentConfiguration])) | |
(set! *warn-on-reflection* true) | |
(defn flyway | |
[datasource migration-locations] | |
(Flyway. (doto |
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
// https://www.youtube.com/feed/channels | |
// paste to the console, press `d` while hovering over a channel block | |
function sleep(ms) { | |
return new Promise(resolve => setTimeout(resolve, ms)); | |
} | |
function channelName() { | |
var hoverNode = Array.from(document.querySelectorAll(":hover")).filter(e => e.id == 'content-section').pop(); | |
var nameNode = hoverNode.querySelector("#text-container.ytd-channel-name"); |
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
// Standard ISRT for ANSI and ISO keyboards | |
default partial | |
xkb_symbols "basic" { | |
// the default variant has no AltGr layer and does | |
// not use CAPS as BackSpace | |
include "us(basic)" |
Here we create the master key. We want only Certify
capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate
capabilities will be assigned to the subkeys.
Run the following command to start the master key generation process. Select the set your own capabilities
creation process (type 8
)
▶ gpg --full-generate-key --expert
gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.
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
#!/usr/bin/env bb | |
#_{:clj-kondo/ignore [:use]} | |
(ns parse | |
(:use [clojure.core] :reload) | |
(:require [clojure.string :as str] | |
[clojure.java.io :as io] | |
[clojure.pprint :as pp])) | |
(def footprints {:switch "!nxtk_V1_V2_HS_reversible_plated.kicad_mod" |
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
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |