Skip to content

Instantly share code, notes, and snippets.

View coreygo's full-sized avatar

Corey Gouker coreygo

View GitHub Profile
@coreygo
coreygo / monte-carlo.html
Last active January 25, 2016 01:29
Monte-carlo
<div>π ≈ <span id="pi"></span><br /><canvas id='monte-carlo'></canvas></div>
<script src="//cdnjs.cloudflare.com/ajax/libs/processing.js/1.4.16/processing.min.js"></script>
<!-- <script src="//cdnjs.cloudflare.com/ajax/libs/p5.js/0.4.21/p5.min.js"></script> -->
<script type="text/processing" data-processing-target="monte-carlo">
void setup() {
//Called initially
}
void draw() {
//Called in a loop, about 60 times per second
void setup() {
size(1200,1200,P3D);
smooth(8);
frameRate(60);
hint(DISABLE_OPTIMIZED_STROKE);
colorMode(HSB, 360, 360, 360);
}
void draw() {
background(0);
@coreygo
coreygo / DubSideOfTheMoon.pde
Last active January 25, 2016 01:28
Processing with Minim FFT/BeatDetection audio visualization. Modeled after Pink Floyd's Dark Side of the Moon album cover.
import ddf.minim.*;
import ddf.minim.analysis.*;
Minim minim;
AudioPlayer player;
AudioInput input;
BeatDetect beat;
FFT fft;
float x, y, w, h, xCenter, yCenter, bRadius;
@coreygo
coreygo / InTheLightOfKashmir.pde
Created December 30, 2015 19:19
Processing with Minim FFT/BeatDetection audio visualization. Includes code for Lissajous X/Y analysis and Fibonacci spirals.
import ddf.minim.*;
import ddf.minim.analysis.*;
import ddf.minim.signals.*;
Minim minim;
AudioPlayer player;
BeatDetect beat;
BeatListener bl;
ArrayList pos = new ArrayList(0);
Verifying that +coreygo is my Bitcoin username. You can send me #bitcoin here: https://onename.io/coreygo
@coreygo
coreygo / SynciTunesLibrary.md
Last active July 2, 2021 05:03
Brief guide to running iTunes with a NAS iTunes Media folder.

2021-07-01: Deprecated. This scenario and the hacks involved likely still work, but I'm no longer using this in lieu of simply organizing and tagging with MusicBrainz Picard and using Plex Media Server instead of iTunes.

Keeping iTunes in sync.

Unfortunately storing a TB+ of music is a real challenge on a laptop with only a 256GB SSD. Luckily with lunchy (a launchd wrapper), rsync, automator and a little magic the task is made simpler.

One might want to use this with a Gbps fiber connection and VPN. If you're using a Synology NAS it's entirely possible to configure the VPN, DNS, DHCP, etc directly. Some may prefer however to set up a VPN on the router for better isolation. The latter is my preferred method.

Polishing your gems