{{ message }}

Instantly share code, notes, and snippets.

# Bryan Maassescherize

Created Nov 21, 2019
View aye.edn
 {:nov-21 [["9:00AM - 9:10AM" {:speaker "Welcome"}] ["9:10AM - 9:50AM" [{:speaker "Derek Troy-West", :title "Follow the Data: Product Development in Clojure", :link "http://2019.clojure-conj.org/speaker-derek-troy-west/"}]] ["10:00AM - 10:40AM" [{:speaker "Ariel Ortiz", :title "The Hitchhikers Guide to Multiparadigm Programming", :link "http://2019.clojure-conj.org/speaker-ariel-ortiz/"}]]
Created Jul 15, 2019
View minstack.clj
 (ns super-sratch.minstack) (defprotocol Stack (push [this x]) (peek [this]) (pop [this])) (defprotocol FindMin (find-min [this])) (defprotocol FindMax (find-max [this])) (defrecord fmm-stack [stack minstack maxstack] Stack (push [this x] (merge this {:stack (vec (conj stack x))}
Created Jun 13, 2019
View hi.swift
 import CoreGraphics var display_id = CGMainDisplayID(); // "BGRA" print(display_id);
Created Jun 13, 2019
View hi.swift
 import CoreGraphics var display_id = CGMainDisplayID(); print(display_id);
Created Jun 13, 2019
View hi.swift
 import CoreGraphics var id = CGMainDisplayID(); print(id);
Created Jun 13, 2019
View hi.swift
 import CoreGraphics Any id = CGMainDisplayID(); print(id)
Created Jun 12, 2019
View teaser.py
 import numpy as np a = np.array([[6, 0, 0], # 6 shoes [2, 2, 2], # 2 shoes, 2 boys, 2 whistles [0, 1, 3]]) # 1 boy, 3 whistles b = np.array([30, 20, 13]) [shoe, boy, whistle] = np.linalg.solve(a,b) print("\nshoe=", shoe, "\nboy=", boy, "\nwhistle=", whistle) # shoe= 5.0
Created Jun 12, 2019
View teaser.py
 import numpy as np a = np.array([[6, 0, 0], [2, 2, 2], [0, 1, 3]]) b = np.array([30, 20, 13]) [shoe, boy, whistle] = np.linalg.solve(a,b) print("\nshoe=", shoe, "\nboy=", boy, "\nwhistle=", whistle) print("shoe + boy * whistle = ", shoe + boy * whistle)
Created May 2, 2019
View gist:b663c905b09f42b336d47cbc2359995c
 # focus window shift + cmd - a : chunkc tiling::window --focus west shift + cmd - s : chunkc tiling::window --focus south shift + cmd - w : chunkc tiling::window --focus north shift + cmd - d : chunkc tiling::window --focus east # warp window shift + cmd - j : chunkc tiling::window --warp west shift + cmd - k : chunkc tiling::window --warp south shift + cmd - i : chunkc tiling::window --warp north
Created Apr 23, 2019
View memo.clj
 (ns scratch.memo) (defn add-one-api-call [n] (println "Getting Request for: " n) (Thread/sleep 1000) {:response (+ 1 n)}) (defn request [& ns] (let [cached-api-call (memoize add-one-api-call)] (mapv cached-api-call ns)))
You can’t perform that action at this time.