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
use std::convert::Into; | |
use std::io::{self, Read, Bytes}; | |
use std::str::FromStr; | |
fn main() { | |
let mut input = io::stdin().bytes(); | |
let program = "++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."; | |
let mut machine: BrainFuck = program.parse().unwrap(); | |
match machine.execute_all(&mut input) { | |
Ok(s) => print!("{}", s), |
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 | |
# this is a simple config for herbstluftwm | |
function hc() { | |
herbstclient "$@" | |
} | |
# Add location of autostart file to path | |
BASE="$(dirname $0)" |
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
[Unit] | |
Description=ElasticSearch | |
After=network.target | |
[Service] | |
User=elasticsearch | |
ExecStart=/opt/elasticsearch/bin/elasticsearch -f | |
[Install] | |
WantedBy=multi-user.target |
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") |
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()) |
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}:" $@ "########" | |
} |
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) |
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 | |
SCHEMA="support_mozilla_com.2013.07.17.schema.sql" | |
DATA="support_mozilla_com.2013.07.17.data.sql" | |
SIZE="$(du $DATA | awk '{ print $1 }')K" | |
DBNAME="kitsune" | |
{ | |
echo "Dropping/creating database ${DBNAME}" >&2 | |
echo "DROP DATABASE IF EXISTS ${DBNAME};" |
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", | |
], |
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: |
NewerOlder