This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import math | |
class Search(object): | |
def __init__(self, words, context=3): | |
self.words = sorted(words) | |
self.lo = 0 | |
self.hi = len(self.words) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
include <BOSL2/std.scad> | |
include <BOSL2/joiners.scad> | |
$eps = 0.01; | |
$fa = 4; | |
$fs = 0.2; | |
tolerance = 0.25; | |
stone_diameter = 380; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import test from 'ava'; | |
/** | |
* deep object freeze that avoids the Readonly<{set foo()}> trap, and avoids | |
* needing to pull in something heavier like harden() | |
* | |
* @template {object} O | |
* @param {O} o | |
* @returns {O} | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = 42; | |
console.log('such', data); | |
console.log('⋯', data); | |
console.log('more', data); | |
console.log('🤯', data); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @ts-check | |
/** | |
* Markov transition table on characters. | |
* Empty means "transparent", i.e let the underlying string through | |
* | |
* @typedef {Object<string, number>} Weights | |
* @typedef {Object<string, Weights>} Transitions | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
// rooter is a base interface for example | |
type rooter interface { | |
root() int | |
} | |
// fooRooter is an example extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am jcorbin on github. | |
* I am jcorbinwunjoorg (https://keybase.io/jcorbinwunjoorg) on keybase. | |
* I have a public key ASC8wyXqTJrIed_Lm63CtckzBiVCxM0vCTupyryY4WDjYAo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Memoizes a functionally pure command using git notes. | |
# | |
# Example: | |
# | |
# $ echo 'hello word' | git memo tr 'a-z' 'n-za-m' | |
# uryyb jbeq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import color | |
import texture | |
import imgui | |
import std | |
import vec | |
fatal(gl_window("Fail To Scale", 512, 512)) | |
im_init(true) | |
check(im_add_font("data/fonts/Inconsolata/Inconsolata-Bold.ttf", 32), "cannot load imgui font") |
NewerOlder