Skip to content

Instantly share code, notes, and snippets.

@shaunlebron
shaunlebron / faketalk.js
Created August 30, 2018 07:48 — forked from antimatter15/faketalk.js
A toy system inspired by realtalk
function mouse(_, me, when, claim){
when('fox is out', () => {
claim(me, 'wish', 'labelled', 'squeak')
claim(me, 'wish', 'outlined', 'red')
})
}
function fox(_, me, when, claim){
claim('fox is out')
}
@shaunlebron
shaunlebron / dynamicland-vneck-tshirt.lua
Created August 30, 2018 05:05 — forked from forresto/dynamicland-vneck-tshirt.lua
first shot at dynamicland #softfab
-- Shirt (#softfab)
Claim (you) has state "waist" with initial value (30).
Claim (you) has state "arm" with initial value (5).
Claim (you) has state "armaround" with initial value (10).
Claim (you) has state "side" with initial value (20).
Claim (you) has state "neck" with initial value (15).
When (you) contains dots /dots/,
(you) has width /width/:
@shaunlebron
shaunlebron / CLJS-866.clj
Last active August 29, 2015 14:07 — forked from ptaoussanis/CLJS-866.clj
Fix for desugar-ns-specs
(comment
;; Bug report for CLJS-721 (support :include-macros true modifier in :require),
;; Ref. http://dev.clojure.org/jira/browse/CLJS-721,
;; http://goo.gl/MQ3fWd (GitHub commit de6ee41b3)
;; desugar-ns-specs from clojurescript/src/clj/cljs/analyzer.clj
;; (`cljs.analyzer` ns)
(desugar-ns-specs '[(:require [foo.bar :as bar :include-macros true])])
;; =>