Skip to content

Instantly share code, notes, and snippets.

View neauoire's full-sized avatar
💭
Siouxsie & The Banshees - Cities In Dust

Devine Lu Linvega neauoire

💭
Siouxsie & The Banshees - Cities In Dust
View GitHub Profile
@p4bl0-
p4bl0- / 00_readme.md
Last active May 14, 2026 15:16
A complete compiler for a simple language (in less than 150 LoC)

This project is a tiny compiler for a very simple language consisting of boolean expression.

The language has two constants: 1 for true and 0 for false, and 4 logic gates: ! (not), & (and), | (or), and ^ (xor).

It can also use parentheses to manage priorities.

Here is its grammar in BNF format:

expr ::= "0" | "1"

@ox
ox / guess-number.tal
Created August 13, 2021 22:26
Classic guess the number game written in Uxntal
( guess-number.tal )
%RTN { JMP2r }
%PRINT { ;print JSR2 }
%BR { #0a .Console/write DEO }
%BREAKPOINT { #0101 #0e DEO2 }
|00 @System [ &vector $2 &pad $6 &r $2 &g $2 &b $2 ]
|10 @Console [ &vector $2 &read $1 &pad $5 &write $1 &error $1 ]
|b0 @DateTime [ &year $2 &month $1 &day $1 &hour $1 &minute $1 &second $1 &dotw $1 &doty $2 &isdst $1 ]
@lukego
lukego / 0README.md
Last active July 4, 2024 15:49
CLIME installation instructions
@akkartik
akkartik / x0.c
Created January 12, 2021 06:14
Adding a gap buffer to a text editor
#include <SDL2/SDL.h>
#include <stdio.h>
int error(char *msg, const char *err) {
printf("Error %s: %s\n", msg, err);
return 0;
}
#define HOR 32
#define VER 16
@wraybowling
wraybowling / ORCA Shuttle Control.md
Last active October 27, 2020 22:32
Preset for using ORCA with the Endorphin.es Shuttle Control

Shuttle Control preset for ORCA

Download by clicking the RAW button on the .mid file below and open it at https://endorphin.es/cargo4/

Select the Shuttle Control as your MIDI device in ORCA.

Be Advised

Be aware that gates are always on for any MIDI signal sent without gate length specified. Lengths are set in long-to-short order 0 through f where 0 is default and as long as a whole note (always on) and f is a 16th note pulse.

CV Outputs

// Windows
// gcc c6.c tigr\tigr.c -I tigr -lopengl32 -lgdi32 -Os -s -o c6.exe
// Linux
// gcc c6.c tigr\tigr.c -I tigr -lGLU -lGL -lX11 -Os -s -o c6.exe
// OSX
// gcc c6.c tigr\tigr.c -I tigr -framework OpenGL -framework Cocoa -Os -s -o c6.exe
// using Tigr
// from https://github.com/erkkah/tigr
@blad
blad / fill-area.lisp
Last active August 24, 2020 01:46
Ronin: Bucket Implementation
(resize 100 100)
(fill (get-frame) "white")
(stroke (rect 23 26 54 49) "black")
(def f (get-frame))
(def pls 1)
(def mns (sub 0 1))
(defn shift-x (p a)
(pos (clamp (add p:x a) 0 f:w) p:y))
Attack/Decay/Sustain/Release: self-explanatory
Three-band EQ: For isolating Hi/Mid/Lo (This could be high/lowpass filter, alternatively)
Alter pitch: For tuning samples
Pitch bend: Change the pitch throughout length of the sample (for bass drum dips/rises, eg)
Shaper: Some sort of distortion filter to emphasize certain frequencies and get a little fuzz or character
@BriSeven
BriSeven / get on my lawn .md
Last active August 1, 2024 19:53
Get On My Lawn Software

Get ON my lawn is a software philosophy that believes good software grows better with time.

Get on my lawm shuns trends and salesmen disguised as programmers.

Get on my lawn shuns the fancy new framework.

@markwheeler
markwheeler / Engine_PolyTemplate.sc
Last active January 2, 2021 19:23
Poly synth SC engine template
// CroneEngine_PolyTemplate
//
// v1.0.0 Mark Eats
Engine_PolyTemplate : CroneEngine {
classvar maxNumVoices = 3;
var voiceGroup;
var voiceList;