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
| /* 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> |
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
| /* 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> |
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
| lines with $ are commands | |
| ### install mkvtoolnix: | |
| $ brew install mkvtoolnix | |
| ### list content of the mkv-file: | |
| $ mkvmerge -i mymoviefile.mkv | |
| ### what will give you: |
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
| # | |
| # 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 | |
| # |
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
| # 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 |
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
| direction = Randperm(4); | |
| jump_distance = Randperm(2); | |
| switch direction | |
| case 1 | |
| xpos = xpos; | |
| ypos = ypos + jump_distance; | |
| case 2 | |
| xpos = xpos; |
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
| require 'midi-winmm' | |
| class Numeric | |
| def to_hex | |
| "%02x" % self | |
| end | |
| end | |
| class String | |
| def to_hex |
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
| 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 |
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
| #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; |