Skip to content

Instantly share code, notes, and snippets.

class Program
{
static int x = 0;
static int f()
{
x = x + 10;
return 1;
}
const { Map } = require('immutable');
///////////////////////////////////////////
/// Helpers ///
///////////////////////////////////////////
const mergeState = (mergefn) => (f) => (state, action) => mergefn(state, f(state,action))
const merge = mergeState((obj1, obj2) => Object.assign({}, obj1, obj2))
const runReducer = (reducer, ...actions) => actions.reduce(reducer, reducer())
@jimmyhmiller
jimmyhmiller / keybase.md
Created February 13, 2017 19:15
Keybase

Keybase proof

I hereby claim:

  • I am jimmyhmiller on github.
  • I am jimmyhmiller (https://keybase.io/jimmyhmiller) on keybase.
  • I have a public key ASAGgMMjq6i4s2HjejFSZx8QLpkInKm6k6vFibr6_9rKQwo

To claim this, I am signing this object:

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

@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)",
@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)",
(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]))
;; Thread first of https://tinyurl.com/yc2vzjm3
(-> 0
1
(num
1)
fizzbuzz
(λfizzbuzz.
λn.
((for
@jimmyhmiller
jimmyhmiller / README.md
Created February 2, 2019 05:21
SCRIPT-8
(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"}]