Skip to content

Instantly share code, notes, and snippets.

@shaunlebron
shaunlebron / clojure-core-plus.md
Last active December 1, 2022 15:01
Clojure Core Plus
@shaunlebron
shaunlebron / beautiful-printing.md
Last active November 16, 2021 00:38
Print beautiful articles (with HTML to LaTeX)

Print Beautiful Articles (with HTML to LaTeX)

It’s hard to read long articles on a computer. Printing them with beautiful typesetting helps.

This solution converts the whole article (or selected part) to LaTeX, then opens it for printing (or editing) in Overleaf. You need an account there, but no installs.

Images

Images are included in the LaTeX code, but won’t show up until you upload them individually to Overleaf. Look for the \includegraphics commands which are commented out in the code, and refer here for proper insertion.

@shaunlebron
shaunlebron / SketchSystems.spec
Last active August 18, 2021 16:51
Super Mario 64 controls
Super Mario 64 controls
Stationary
Standing
move -> Walking
z -> Crouching
a -> Jumping
b -> Punching
Crouching
z up -> Standing
@shaunlebron
shaunlebron / intro.md
Last active February 25, 2021 22:35
PingThings and Mr. Plotter
@shaunlebron
shaunlebron / json-hyperscript-hiccup.md
Last active April 25, 2020 20:53
Jsonml, HyperScript, Hiccup
@shaunlebron
shaunlebron / neural-network-altviz.md
Last active December 17, 2019 11:20
alternative visualization for neural networks

Neural Network Alt Viz

Use both scalar and vector nodes to simplify presentation and clarify computation (by linear algebra).

The weighted edges are replaced by two layers of vector nodes:

  1. the first collects the previous neuron scalars into a vector
  2. the second is a weight rack (a matrix), each vector containing all the weights for a neuron

Showing a single path to illustrate computation along its edges:

 Inserting Special Symbols using Apple US Keyboard

You can search special symbols by name in any text field with Ctrl Space.

Or remember the hotkey of ones you frequently use:

`1234567890-=
~!@#$%^&*()_+  (shift)
`¡™£¢∞§¶•ªº–≠  (alt)
@shaunlebron
shaunlebron / instaparse.diff
Created December 15, 2018 04:01
parindent on instaparse
diff --git a/runner/cljs/runner/runner.cljs b/runner/cljs/runner/runner.cljs
index e1b2f97..74bc9f6 100644
--- a/runner/cljs/runner/runner.cljs
+++ b/runner/cljs/runner/runner.cljs
@@ -1,13 +1,13 @@
(ns instaparse.runner.runner
(:require [cljs.nodejs :as nodejs]
- [instaparse.abnf-test]
- [instaparse.auto-flatten-seq-test]
- [instaparse.core-test]
@shaunlebron
shaunlebron / rum.diff
Created December 15, 2018 04:00
parindent on rum
diff --git a/examples/rum/examples.cljs b/examples/rum/examples.cljs
index 70d2a96..e0e5ed3 100644
--- a/examples/rum/examples.cljs
+++ b/examples/rum/examples.cljs
@@ -1,26 +1,26 @@
(ns rum.examples
(:require
- [clojure.string :as str]
- [rum.core :as rum]
- [rum.examples.core :as core]
@shaunlebron
shaunlebron / figwheel.diff
Created December 15, 2018 04:00
parindent on figwheel-main
diff --git a/dev/user.clj b/dev/user.clj
index 63a1ebe..7a0b0b4 100644
--- a/dev/user.clj
+++ b/dev/user.clj
@@ -1,23 +1,23 @@
(ns user
(:require [figwheel.server.ring]
- [figwheel.main.schema.config]
- [figwheel.main.api :as api]
- [clojure.string :as string]))