This file contains hidden or 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
// (Public domain, created by Ryan Johnson) | |
// A simple calculator in C using Pratt parsing. | |
// compile with `cc -lm calc.c` | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdarg.h> | |
#include <inttypes.h> | |
#include <ctype.h> | |
#include <math.h> |
This file contains hidden or 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 | |
apt-get update | |
# Install development packages for MMD | |
apt-get install -y build-essential cmake mingw-w64 nsis libbsd-dev | |
# Ruby stuff for squib | |
apt-get install -y ruby ruby-dev |
This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
This file contains hidden or 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
{ | |
"comment" : "JSON Schema to validate an expansions file for MultiMarkdown Composer", | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"title": "expansions", | |
"type": "object", | |
"properties" : { | |
"comment" : { "type" : "string" }, | |
"expansions" : { | |
"type" : "array", | |
"items" : { |
This file contains hidden or 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
{ | |
"comment" : "JSON Schema to validate a keybinding file for MultiMarkdown Composer", | |
"$schema": "http://json-schema.org/draft-04/schema#", | |
"title": "keybindings", | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"key": { | |
"type": "string" |
This file contains hidden or 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
[{ | |
"key": "P", | |
"action": "togglePreview:", | |
"modifiers": ["cmd", "ctrl"] | |
}, { | |
"key": "I", | |
"action": "toggleInfo:", | |
"modifiers": ["cmd", "shift"] | |
}, { | |
"key": "T", |
This file contains hidden or 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
# Automate annotation of chess games | |
games := $(wildcard *.pgn) | |
annotated := $(patsubst %.pgn, %.pgn.can, $(games)) | |
html := $(patsubst %.pgn, %.pgn.html, $(games)) | |
tex := $(patsubst %.pgn, %.pgn.tex, $(games)) | |
user := Fletcher | |
margin := 0.5 |