Skip to content

Instantly share code, notes, and snippets.

@jimmyhmiller
jimmyhmiller / fine-jsx-implementation.stsx
Created September 3, 2026 04:52
Sweetener playground: React Compiler nine-slot memoization fixture
import { c as _c } from "react/compiler-runtime";
export syntax emitCompilerFixture:item {
rule { emitCompilerFixture($name:binding, $propsType:type) }
bind $name in following as recursive value;
=> {
#core(function $name(input: $propsType) {
const cache = _c(9);
const { cond: conditionInput, id } = input;
const condition = conditionInput === undefined ? false : conditionInput;
(defun always-nil (&args)
nil)
;; Still some weird things with non-pprint eval going on
(advice-add 'cider-pprint-eval-last-sexp :filter-return #'always-nil)
(advice-add 'cider-pprint-eval-defun-at-point :filter-return #'always-nil)
(advice-add 'cider-pprint-eval-last-sexp-to-comment :filter-return #'always-nil)
(advice-add 'cider-pprint-eval-defun-to-comment :filter-return #'always-nil)
(advice-add 'cider-eval-last-sexp-and-replace :filter-return #'always-nil)
(require '[clojure.string :as string]
'[meander.match.delta :as r.match]
'[meander.strategy.delta :as r]
'[meander.substitute.delta :as sub])
(def html
[:html {:lang "en"}
[:head
[:meta {:charset "UTF-8"}]
@jimmyhmiller
jimmyhmiller / README.md
Created February 2, 2019 05:21
SCRIPT-8
;; Thread first of https://tinyurl.com/yc2vzjm3
(-> 0
1
(num
1)
fizzbuzz
(λfizzbuzz.
λn.
((for
(require '[clojure.spec.alpha :as s]
'[clojure.set :as set]
'[clojure.spec.test.alpha :as stest])
(s/def ::thing any?)
(s/def ::other-thing any?)
(s/fdef a
:args (s/cat :map (s/keys :req [::thing]))
:ret (s/keys :req [::thing]))
@jimmyhmiller
jimmyhmiller / critical_hits.json
Last active January 29, 2018 21:26
pathfinder critical hits json
{
"criticals": {
"bludgeoning": [
{
"description": "Normal damage and 1d2 Con and Str damage. Hand uselss until healed",
"name": "Shattered Hand",
"type": "bludgeoning"
},
{
"description": "Normal damage and target is confused for 1d3 rounds (Fort negates)",
@jimmyhmiller
jimmyhmiller / critical hits json
Created January 29, 2018 21:25
pathfinder critical hits json
{
"criticals": {
"bludgeoning": [
{
"description": "Normal damage and 1d2 Con and Str damage. Hand uselss until healed",
"name": "Shattered Hand",
"type": "bludgeoning"
},
{
"description": "Normal damage and target is confused for 1d3 rounds (Fort negates)",

Loan App

Add bootstrap css

bind @browser
  [#link rel:"stylesheet" href:"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"]

Set Default size