View azul.lua
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
drawBag = nil | |
discardBags = nil | |
recallButton = nil | |
factories = nil | |
setupButtons = nil | |
function loadObjects() | |
allTableZone = getObjectFromGUID("ee6f5f") | |
recallButton = getObjectFromGUID("49aa6a") |
View are_two_JSON_objects_the_same.py
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 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()) |
View update.sh
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 bash | |
set -eu | |
_step=0 | |
function step() { | |
_step=$(($_step + 1)) | |
echo | |
echo "######## Step ${_step}:" $@ "########" | |
} |
View big_colors.p8
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
pico-8 cartridge // http://www.pico-8.com | |
version 18 | |
__lua__ | |
-- that s thing | |
-- generative art | |
#include ../lib/debug.p8 | |
tile_s=8 | |
map_s=ceil(128/tile_s) |
View gist:2db1b99805e2af6fb8fbf83b48cd4823
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
{ | |
"multi-addon-experiment": { | |
$schema: "http://json-schema.org/draft-04/schema#", | |
title: "Enroll a user in an add-on experiment, with managed branches", | |
type: "object", | |
required: [ | |
"name", | |
"description", | |
"branches", | |
], |
View gist:74b98cdd9e76e0b798c291659ce1e4ef
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 mythmon on github. | |
* I am mythmon (https://keybase.io/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
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
// Execute this in a chrome-context Scratchpad or browser console | |
Cu.import('resource://shield-recipe-client/lib/ClientEnvironment.jsm'); | |
Cu.import('resource://shield-recipe-client/lib/FilterExpressions.jsm'); | |
async function main() { | |
const context = ClientEnvironment.getEnvironment(); | |
const filterExpression = 'normandy.country == "US" && normandy.isDefaultBrowser'; | |
const result = await FilterExpressions.eval(filterExpression, context); | |
console.log(result); | |
} |
View index.js
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
document.write('oh hai'); |
View jexl-spike.js
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 {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( | |
expr, | |
context={}, | |
{ | |
transforms={}, |
NewerOlder