Skip to content

Instantly share code, notes, and snippets.

View magpie514's full-sized avatar

Magpie magpie514

View GitHub Profile
@magpie514
magpie514 / bblezz
Last active November 16, 2020 04:28
Implementation of blezz (https://github.com/Blezzing/blezz) in pure bash.
#!/usr/bin/env bash
# Bblezz: An implementation of blezz (https://github.com/Blezzing/blezz) in pure bash.
# Output of actions can be redirected like # { out="$( COLUMNS=$COLUMNS bblezz file.blezz 2>&1 1>&5 5>&-)"; } 5>&1;
# TODO List:
# [v] Handle trying to enter undefined directories.
# [ ] trim_surrounding_spaces > Remove spaces from the right properly too.
# [ ] general > command line options to define glyphs, colors and starting dir.
# Reset ANSI colors:
@magpie514
magpie514 / fallvale_mml.c
Created January 6, 2012 11:34
Simple MML parser in C+SDL_Mixer
//Project Fallvale MML parsing component
//Usage:
//You can edit the string "tmp" at main(), or you can pass a MML-formatted string with "-play":
//for example, mmlplay -play "t128 o4 cdec+8>d8e16d16d8e"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>
#include <assert.h>