Skip to content

Instantly share code, notes, and snippets.

View zeroeth's full-sized avatar
🤖
🐱 🤖 🐱 🤖

[0] zeroeth

🤖
🐱 🤖 🐱 🤖
View GitHub Profile
@zeroeth
zeroeth / mode5.c
Created January 17, 2017 06:11
CM-5 LED code mode 5
/* http://www.housedillon.com/?p=1272
* Written by iskunk (Daniel Richard G.) 2016 April
* printf("<%s@%s.%s>\n", "skunk", "iskunk", "org");
* THIS FILE IS IN THE PUBLIC DOMAIN
*
* Program to emulate a subset of the Thinking Machines Corp. CM-5 front
* LED panel display modes (revision 6)
*/
#include <stdio.h>
@zeroeth
zeroeth / pleasing mode 7.c
Last active July 16, 2026 16:53
CM-5 'random and pleasing' LED code mode 7.
/* http://www.housedillon.com/?p=1272
* Written by iskunk (Daniel Richard G.)
* THIS FILE IS IN THE PUBLIC DOMAIN
*
* Program to emulate the CM-5's "random and pleasing" LED panel mode
* (revision 3)
*/
#include <stdio.h>
#include <stdint.h>
@zeroeth
zeroeth / subtitle-extract.txt
Created January 16, 2017 06:32 — forked from kevinlawler/subtitle-extract.txt
extract subtitles from *.mkv-files on osx
lines with $ are commands
### install mkvtoolnix:
$ brew install mkvtoolnix
### list content of the mkv-file:
$ mkvmerge -i mymoviefile.mkv
### what will give you:
@zeroeth
zeroeth / Makefile
Created December 21, 2016 21:07 — forked from saitoha/Makefile
SIXEL color graphics DEMO (xterm pl#301 and gnuplot)
#
# SIXEL color graphics DEMO
#
# xterm pl#301 with --enable-sixel-graphics option
# gnuplot with --with-bitmap-terminals option
#
# Now the color palette of xterm VT-340 mode is limited to 16.
# If you want to change it to 256, apply the following patch.
# https://gist.github.com/saitoha/7822989/raw/20727b88f0f826bfcb9d644907944b29a456b67f/graphics.c.diff
#
@zeroeth
zeroeth / octofork.rb
Last active December 8, 2016 00:19
Script to help mirror fork a bunch of repos at once.
# Fork all repos from one user to another
# Will skip any repos with same name
require 'octokit'
# Put your desired user/orgs here
origin = 'user1'
destination = 'org1'
destination_is_organization = true
@zeroeth
zeroeth / weeb.m
Created October 26, 2016 04:07
weeb
direction = Randperm(4);
jump_distance = Randperm(2);
switch direction
case 1
xpos = xpos;
ypos = ypos + jump_distance;
case 2
xpos = xpos;
@zeroeth
zeroeth / gist:fd55b34009fedef79b546b1f1f78bfdd
Created August 9, 2016 03:58 — forked from RyanScottLewis/gist:911786
BCR2000/BCF2000 SysEx Messages
require 'midi-winmm'
class Numeric
def to_hex
"%02x" % self
end
end
class String
def to_hex
@zeroeth
zeroeth / bars_and_bars.bas
Last active July 4, 2016 02:42
Applesoft lines
10 GR
11 REM MAX NUM LINES
12 MAX = 40
13 CUR = 0
20 REM RANDOMIZE VALUES
21 BPOSITION = RND(1) * 40
22 BSTART = RND(1) * 15
23 BEND = RND(1) * 15 + 25
24 COLOR = RND(1) * 16
@zeroeth
zeroeth / fade.c
Created April 26, 2016 17:13 — forked from bashaus/fade.c
Game Boy Color fade script
#include <gb/gb.h>
#include "fade.h"
UWORD FadePalette[32] = {
RGB(30,0,0), RGB(0,30,0), RGB(0,0,30), RGB(0,0,0)
};
void Fade(UWORD *org_p, FadeDirection direction, FadeColor color, UWORD speed)
{
UBYTE i,x;