Skip to content

Instantly share code, notes, and snippets.

View bradfeld's full-sized avatar

Brad Feld bradfeld

View GitHub Profile
@sritchie
sritchie / notes.clj
Last active December 22, 2021 23:13
(ns tutorial.petageconvert)
;; woohoo, some comments!
;;
;; A note about `pet-multiplier`... for your keys, symbols are great, but
;; Clojure provides an additional idea of keywords over Scheme. Keywords like
;; `:dog` evaluate to themselves, so you don't have to quote them. Symbols are fine, but you have one less thing to remember (the quote).
(def pet-multipler
{'dog 7 'cat 5 'fish 10})
@shodty
shodty / README.md
Last active January 15, 2022 17:34
Create a Toggle button for the right sidebar in Roam.

Move the right sidebar toggle to a button in the upper right icon tray.

Demo

You can add this to Roam using {{[[roam/js]]}}

Grab the code in roam-sidebar-toggle.js and drop it in a javascript code block, nested underneath a {{[[roam/js]]}} block:

  ```javascript```