Skip to content

Instantly share code, notes, and snippets.

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

[0] zeroeth

🤖
🐱 🤖 🐱 🤖
View GitHub Profile
new Promise(callback_function).then(new Promise(callback_function2)).then(new Promise(callback_function3))
// Each callback gets passed two arguments which are callbacks. ex
var callback_function = function(resolve, reject)
{
do_a_bunch_of_work;
resolve(); // proceed to my promises then()
}
@zeroeth
zeroeth / fluffy.js
Created August 12, 2015 02:10
flatten fluffy
var fluffy = [
1,
2,
"a",
[
["b","c"],
null,
"meow"
],
{cat: "barf"},
@zeroeth
zeroeth / episode_list.txt
Last active July 14, 2019 09:06
Star Trek: TNG Episodes
S1E01 Encounter at Farpoint (Just because)
S2E09 Measure of a Man
S2E12 The Royale
S2E13 Time Squared
S2E16 Q Who (Borg introduction)
S3E07 The Enemy
# Local executables
export PATH=$HOME/bin:/usr/local/bin:$PATH
# NPM executables (For folder local, and a global prefix of "~/npm")
export PATH=./node_modules/.bin:$HOME/npm/bin:$PATH
# Android SDK
export ANDROID_HOME=~/bin/android-sdk
export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$PATH
@zeroeth
zeroeth / nodrama.js
Created March 16, 2015 03:52
hide the drama
// ==UserScript==
// @name hide facebook trending
// @namespace pixelflow
// @version 0.1
// @description hide the trending display
// @author zeroeth
// @match https://www.facebook.com/*
// @grant GM_addStyle
// ==/UserScript==
@zeroeth
zeroeth / polygonal.md
Last active August 29, 2015 14:17
polygonal

Different Strokes for Different Folks

An incomplete list of different modeling tools and techniques for interesting art.

@zeroeth
zeroeth / musical.md
Last active October 2, 2016 12:48
Music Links
@zeroeth
zeroeth / dueling.pde
Created February 14, 2015 16:43
dueling tracks
/**
* This sketch is an example of how to use the <code>level</code> method of an <code>AudioBuffer</code> to get the
* level of one of an <code>AudioSource</code>'s sample buffers. The classes in Minim that extend <code>AudioSource</code>
* and therefore inherit the <code>left</code>, <code>right</code>, and <code>mix</code> buffers of that class, are
* <code>AudioInput</code>, <code>AudioOutput</code>, <code>AudioSample</code>, and <code>AudioPlayer</code>.
* Not coincidentally, these are also all of the classes in Minim that are <code>Recordable</code>.
* <p>
* The value returned by <code>level</code> will always be between zero and one, but you may find that the value
* returned is often smaller than you expect. The level is found by calculating the root-mean-squared amplitude of the
* samples in the buffer. First the samples are all squared, then the average (mean) of all the samples is taken (sum
@zeroeth
zeroeth / waveformtrail.pde
Created February 14, 2015 16:41
wave form trail
/**
* This sketch demonstrates how to play a file with Minim using an AudioPlayer. <br />
* It's also a good example of how to draw the waveform of the audio.
* <p>
* For more information about Minim and additional features,
* visit http://code.compartmental.net/minim/
*/
import ddf.minim.*;