clinton/scratch.git
9 years agoxbmc file upload / playlist insert example
Clinton Ebadi [Mon, 24 Nov 2014 03:15:25 +0000 (22:15 -0500)]
xbmc file upload / playlist insert example

XBMC party mode is good for background music at parties, but sometimes
guests want to listen to their music and not mine. After trying to get
UPnP/DLNA and bluetooth streaming to work I gave up and threw together
a trivial file upload + python script.

Primitive, so far. It lets users upload a single file to a specified
directory, replaygains it (if it is mp3/flac/vorbis at least), and
then inserts it at a random position on the playlist.

9 years agoExperiments in controlling LEDs using Guile + Arduino
Clinton Ebadi [Mon, 24 Nov 2014 03:09:31 +0000 (22:09 -0500)]
Experiments in controlling LEDs using Guile + Arduino

led-controller.scm is the current working daemon. It is licensed under
the GPLv3 as it is becoming a "real" program and will likely be
released on its own.

picker/* are from the raphael js graphics library demos and are MIT
licensed. They connect to the led daemon using GET requests to set the
current color.

fade3.scm, fade4.scm, and led-web.scm are hacks that gradually evolved
into led-controller.scm

9 years agodualshock 3 -> zsnes button converter
Clinton Ebadi [Mon, 24 Nov 2014 03:03:22 +0000 (22:03 -0500)]
dualshock 3 -> zsnes button converter

zsnes explodes when you attempt to configure a dualshock 3 button in
the gui. This lets you convert whatever button/joystick numbers
reported by your favorite input driver for a dualshock 3 to the
internal button codes used by zsnes.

This will work for arbitrary joysticks. You must redefine axis-count
and button-count to match your device.

9 years agoCommon Lisp hack to rename some videos
Clinton Ebadi [Mon, 24 Nov 2014 03:01:20 +0000 (22:01 -0500)]
Common Lisp hack to rename some videos

X-Files file names in my copy of Season 01 were making xbmc unhappy,
use fad and cl-ppcre to move them. Because `rename' doesn't
exist (d'oh).

9 years agoBasic gimp gradient loader
Clinton Ebadi [Mon, 24 Nov 2014 02:59:58 +0000 (21:59 -0500)]
Basic gimp gradient loader

Can generate a linear blend of arbitrary steps from a gimp gradient
file. Kind of works for generating input for my arduino led controller.

9 years agoSomething about generating smooth playlists
Clinton Ebadi [Mon, 24 Nov 2014 02:58:30 +0000 (21:58 -0500)]
Something about generating smooth playlists

I think this code is intended to use the bpm of a library of input
files and generate a playlist that picks songs gracefully moving
toward a changing target bpm.

9 years agoPartial implementation of scsh define-record
Clinton Ebadi [Mon, 24 Nov 2014 02:55:42 +0000 (21:55 -0500)]
Partial implementation of scsh define-record

9 years agoBeerXML to xhtml
Clinton Ebadi [Mon, 24 Nov 2014 02:54:53 +0000 (21:54 -0500)]
BeerXML to xhtml

Brewtarget html output is bad. A first attempt at hacking together an
html generator for beerxml. Pretty incomplete, might serve as an
trivial base for something better.

9 years agoPainfully trivial automata
Clinton Ebadi [Mon, 24 Nov 2014 02:53:05 +0000 (21:53 -0500)]
Painfully trivial automata

9 years agoConverting old unused darcs scratch repo to git
Clinton Ebadi [Mon, 24 Nov 2014 02:51:42 +0000 (21:51 -0500)]
Converting old unused darcs scratch repo to git

I've got an entire two commits in my old scratch repo ... throwing
everything that has accumulated there and isn't *too* embarrasing into
a git repo.

Curse you magit for becoming better than darcsum.