Skip to content

Instantly share code, notes, and snippets.

View dontwork's full-sized avatar

dontwork dontwork

  • Leeds, UK
View GitHub Profile
import { createState } from 'solid-js'
import meiosis from 'meiosis-setup/mergerino'
import simpleStream from 'meiosis-setup/simple-stream'
import { createRouteSegments, Routing, Actions } from 'meiosis-routing/state'
import merge from 'mergerino'
import createRouteMatcher from 'feather-route-matcher'
import { createFeatherRouter } from 'meiosis-routing/router-helper'
import qs from 'qs'
import { render } from 'solid-js/dom'
import m from 'mithril'
import { splitAttrs } from '../utils'
import { Icon } from '../Icon'
import loadingIcon from './loading.svg'
const sizes = {
shape: {
circle: {
size: {
sm: ['h-6', 'w-6', 'text-sm'],
import m from 'mithril'
import { router } from '../router'
import { Button } from '../components'
export const LinkButton = () => {
return {
view ({ children, attrs }) {
return m(Button, {
variant: attrs.variant || 'link',
element: 'a',
import createRouteMatcher from 'feather-route-matcher'
const createRouter = routeConfig => {
const prefix = window.location.protocol + '//' + window.location.host
const getPath = () => {
return decodeURI(window.location.href).substring(prefix.length) || '/'
}
const routeMatcher = createRouteMatcher(routeConfig)
@dontwork
dontwork / averages.json
Created October 7, 2019 13:04
Flop only, more samples
[
{
"hand": "AA",
"averages": {
"flop": {
"notLose": 85.69513199999972,
"win": 85.17143199999974,
"lose": 14.304867999999981,
"split": 0.5236999999999821
},
@dontwork
dontwork / averages.json
Last active October 6, 2019 23:50
Poker hand equities vs one other player
[
{
"hand": "AA",
"averages": {
"flop": {
"notLose": 85.85618888888894,
"win": 85.33707777777782,
"lose": 14.143811111111077,
"split": 0.5191111111111119
},