Skip to content

Instantly share code, notes, and snippets.

View paulkoegel's full-sized avatar

Paul Kögel paulkoegel

View GitHub Profile
@paulkoegel
paulkoegel / clj-west-download.mdown
Last active April 17, 2016 11:30
Download all ClojureWest 2016 videos with youtube-dl
  • download youtube-dl
  • run:
    youtube-dl https://www.youtube.com/playlist\?list\=PLZdCLR02grLq4e8-1P2JNHBKUOLFTX3kb --playlist-items 1-5,7,9-11,13-26
  • the skipped items are deleted or duplicate videos
@paulkoegel
paulkoegel / object-spread.js
Created September 5, 2016 14:07
object-spread.js
const young_jim = {age: 20, name: "Jim", last_name: "Beam", guns: "many"};
const married_jim = { age: 34, name: "Jim", last_name: "Parker", hair: false };
const joined_jim = {...young_jim, ...married_jim};
console.log(joined_jim); // => { "age": 34, "guns": "many", "hair": false, "last_name": "Parker", "name": "Jim" }
@paulkoegel
paulkoegel / garden-cheat-sheet.clj
Last active February 20, 2022 21:09
Garden (CSS in Clojure) Cheat Sheet
;; https://github.com/noprompt/garden
[:h1 {:color "green"}]
;; multiple selectors
[:h2 :h3 {:color "orange"}]
;; => h1, h2 { color: orange; }
;; descendants
[:h1 [:a {:text-decoration "none"}]]
(ns instructions.core
(:require [reagent.core :as reagent]
[re-frame.core :as re-frame]))
(defn parent [& children]
[:div
[:h1 "Parent"]
children])
(defn info []
;loaded from gist: https://gist.github.com/paulkoegel/cc14431f58bedfc1899ea33b1853144b
(ns instructions.core
(:require [reagent.core :as reagent]
[re-frame.core :as re-frame]))
(defn parent [& children]
[:div
[:h1 "Parent"]
children])