Skip to content

Instantly share code, notes, and snippets.

View kriegsman's full-sized avatar

Mark Kriegsman kriegsman

  • Boston
View GitHub Profile
@kriegsman
kriegsman / JCLOCK.ARC.TXT
Created March 11, 2020 21:45
"JClock for VMS" / Tue, 5 May 87 17:18 EDT / Info-Vax Digest, Thursday, 7 May 1987, Volume 0 : Issue 12
$! JCLOCK ARCHIVE FILE.
$!
$! CREATE A NEW, EMPTY SUBDIRECTORY, "SET DEFAULT" TO IT,
$! PUT THIS FILE IN THE NEW SUBDIRECTORY AS JCLOCK.ARC AND THEN @JCLOCK.ARC
$!
$!
$! SUPER-ULTRA-GIVE-AWAY-WARE PROGRAM...COPY AND DISTRIBUTE AT RANDOM.
$!
$!
$! MARK KRIEGSMAN, AUTHOR 87-05-05
@kriegsman
kriegsman / Pacifica.ino
Last active January 27, 2024 04:25
Pacifica: gentle, blue-green ocean waves. For Dan.
//
// "Pacifica"
// Gentle, blue-green ocean waves.
// December 2019, Mark Kriegsman and Mary Corey March.
// For Dan.
//
#define FASTLED_ALLOW_INTERRUPTS 0
#include <FastLED.h>
FASTLED_USING_NAMESPACE
@kriegsman
kriegsman / ClearWayQA ReadMe.txt
Created November 14, 2018 20:48
ClearWayQA ReadMe.txt
ClearWayQA Plug-In PPC v2.1a5 Read Me
6/18/98
"ClearWayQA" is a tool for finding, isolating, and recording two
specific kinds of bugs in other WebSTAR plug-ins: memory bugs, and
PowerPC processor exceptions.
ClearWayQA finds many kinds of memory bugs that other plug-ins may have,
such as double-deletes, uninitialized variables, buffer and array
overruns, etc.
@kriegsman
kriegsman / CircusMarquee.ino
Created April 20, 2018 17:10
CircusMarquee - marquee lights as found around the edge of a circus, carnival, or theatre sign
#include "FastLED.h"
// Lights that chase around the outside of a sign, as found
// at carnivals, circuses, and theatres.
#define NUM_LEDS 35
#define LED_TYPE WS2811
#define COLOR_ORDER RGB
#define DATA_PIN 3
PaulTeensyLCPaletteBugTest.ino.elf: file format elf32-littlearm
Disassembly of section .text:
00000000 <_VectorsFlash>:
0: 00 20 00 20 f9 00 00 00 59 15 00 00 25 15 00 00 . . ....Y...%...
10: 25 15 00 00 25 15 00 00 25 15 00 00 25 15 00 00 %...%...%...%...
20: 25 15 00 00 25 15 00 00 25 15 00 00 59 15 00 00 %...%...%...Y...
PaulTeensyLCPaletteBugTest.ino.elf: file format elf32-littlearm
Disassembly of section .text:
00000000 <_VectorsFlash>:
0: 00 18 00 20 c1 00 00 00 c5 15 00 00 91 15 00 00 ... ............
10: 91 15 00 00 91 15 00 00 91 15 00 00 91 15 00 00 ................
20: 91 15 00 00 91 15 00 00 91 15 00 00 c5 15 00 00 ................
@kriegsman
kriegsman / fadeTowardColor.ino
Created December 11, 2016 22:44
A function for fading one RGB color toward a target RGB color
#include <FastLED.h>
// fadeTowardColor example code.
//
// Sample code that includes a function for fading one RGB color toward a target RGB color
// Also includes a function for fading a whole array of pixels toward a given color
//
// Both of these functions _modify_ the existing color, in place.
//
// All fades are done in RGB color space.
@kriegsman
kriegsman / TwinkleFOX.ino
Last active November 7, 2024 04:09
TwinkleFOX: Colored Twinkling Holiday Lights
#include "FastLED.h"
#if defined(FASTLED_VERSION) && (FASTLED_VERSION < 3001000)
#warning "Requires FastLED 3.1 or later; check github for latest code."
#endif
#define NUM_LEDS 100
#define LED_TYPE WS2811
#define COLOR_ORDER GRB
@kriegsman
kriegsman / sinelon.ino
Created November 24, 2015 19:22
"sinelon" with no visual gaps at any speed or pixel count
// Updated sinelon (no visual gaps)
void sinelon()
{
// a colored dot sweeping
// back and forth, with
// fading trails
fadeToBlackBy( leds, NUM_LEDS, 20);
int pos = beatsin16(13,0,NUM_LEDS);
static int prevpos = 0;
@kriegsman
kriegsman / DiscoStrobeWithPalette.ino
Last active February 8, 2021 14:20
DIscoStrobeWithPalette - *FLASHING* lights in colors that you define using a color palette; default is Halloween colors.
#include "FastLED.h"
// DiscoStrobeWithPalette
// *Flashing* rainbow lights that zoom back and forth to a beat.
// See your doctor before using this code if you have certain neurological conditions.
//
// Same as "DiscoStrobe" (July 2015), except updated to use a
// color palette of your choice instead of the HSV color wheel.
// Default color palette is a section of Purple, Green, Orange,
// and White for Halloween decor.