Skip to content

Instantly share code, notes, and snippets.


Michael Cooper mythmon

View GitHub Profile
mythmon / azul.lua
Last active May 20, 2020
Scripting for Azul in Table Top Simulator
View azul.lua
drawBag = nil
discardBags = nil
recallButton = nil
factories = nil
setupButtons = nil
function loadObjects()
allTableZone = getObjectFromGUID("ee6f5f")
recallButton = getObjectFromGUID("49aa6a")
mythmon /
Last active Nov 5, 2019 — forked from biancadanforth/
Check if two JSON objects are the same by first ordering them
import json, os
# Put filenames here; this script assumes these files are in the same dir as the script
FILENAME_1 = "2.json"
FILENAME_2 = "3.json"
def ordered(obj):
if isinstance(obj, dict):
return sorted((k, ordered(v)) for k, v in obj.items())
#!/usr/bin/env bash
set -eu
function step() {
_step=$(($_step + 1))
echo "######## Step ${_step}:" $@ "########"
mythmon / big_colors.p8
Created Aug 17, 2019
that s thing pico-8
View big_colors.p8
pico-8 cartridge //
version 18
-- that s thing
-- generative art
#include ../lib/debug.p8
View gist:2db1b99805e2af6fb8fbf83b48cd4823
"multi-addon-experiment": {
$schema: "",
title: "Enroll a user in an add-on experiment, with managed branches",
type: "object",
required: [
View gist:74b98cdd9e76e0b798c291659ce1e4ef
### Keybase proof
I hereby claim:
* I am mythmon on github.
* I am mythmon ( on keybase.
* I have a public key whose fingerprint is B48F E1DE EE4E 406B BC18 2333 D94C 5474 25E0 8CC5
To claim this, I am signing this object:
View uptake 2.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View client-filter-expressions.jsm
// Execute this in a chrome-context Scratchpad or browser console
async function main() {
const context = ClientEnvironment.getEnvironment();
const filterExpression = ' == "US" && normandy.isDefaultBrowser';
const result = await FilterExpressions.eval(filterExpression, context);
mythmon / index.js
Last active Aug 23, 2016
requirebin sketch
View index.js
document.write('oh hai');
mythmon / jexl-spike.js
Created Jun 15, 2016
Jexl custom evaluator shim
View jexl-spike.js
import {elements as defaultGrammar} from 'jexl/lib/grammar.js';
import defaultParser from 'jexl/lib/parser/Parser.js';
import defaultEvaluator from 'jexl/lib/evaluator/Evaluator.js';
import defaultLexer from 'jexl/lib/Lexer.js';
export function customEval(
You can’t perform that action at this time.