Skip to content

Instantly share code, notes, and snippets.

View dougmencken's full-sized avatar
💭
alive

Douglas Mencken dougmencken

💭
alive
View GitHub Profile
@back2dos
back2dos / Main.hx
Created April 4, 2018 08:01
Example usage for tink_xml.
// items.xml to be found at https://raw.githubusercontent.com/dougmencken/HeadOverHeels/master/gamedata/items.xml
// Run per `haxe -lib tink_xml --run Main`
using sys.io.File;
class Main {
static function main() {
var s = new tink.xml.Structure<Array<Entry>>();
switch s.read('items.xml'.getContent()) {
case Success(entries):
var doors = [],
@pbloem
pbloem / Synth.java
Last active May 17, 2024 21:45
A simple java program, showing how to play a tune.
import java.util.Arrays;
import java.util.List;
import javax.sound.midi.MidiSystem;
import javax.sound.midi.Synthesizer;
import javax.sound.midi.MidiChannel;
/**
* A little example showing how to play a tune in Java.
*