Skip to content

Instantly share code, notes, and snippets.

View ecowden's full-sized avatar

Evan Cowden ecowden

View GitHub Profile
@ecowden
ecowden / minecraft-launcher
Created March 22, 2013 20:22
Launches TechnicLauncher on Mac OS X when Java 7 is installed
export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
java -jar TechnicLauncher.jar
@ecowden
ecowden / clone-angular-bash
Created April 11, 2013 01:20
Clone the Angular.js project from GitHub into a directory called 'wwt-rocks'. If the directory already exists, delete it first. Bash implementation.
DIR="wwt-rocks"
if [ -d $DIR ]; then
rm -Rf $DIR
fi
git clone git://github.com/angular/angular.js.git $DIR
@ecowden
ecowden / javascript-fail
Created June 4, 2013 23:36
Try evaluating this in the JavaScript console of your choice. ;-)
(![]+[])[+[]]+(![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]];
@ecowden
ecowden / Vagrantfile
Created January 4, 2014 13:54
Vagrantfile for Puppet CentOS 6.4 Box
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# CentOS box prompts for password when using `vagrant ssh`, but others work fine.
# Alternative boxes left in to make switching and verifying easier.
// "clean" way to pull in app module
var appModule = require('../appModule');
appModule.controller('myController', function(dependencyA, dependencyB) {
// ...
});
// --- TEST ---
@ecowden
ecowden / bouncing-checklist.md
Created April 29, 2015 16:55
Bouncing Checklist

Bouncing Checklist

  • Name Tracks
  • Separate Drums to separate tracks
  • Isolate noise. Create noise regions if necessary. (Probably acoustic guitars.)
  • Raw Vox? Guitars? Duplicate tracks as necessary.
  • Bass
    • Group MIDI into single region
    • Bounce MIDI file
  • Panning
@ecowden
ecowden / importing-checklist.md
Last active August 29, 2015 14:20
Importing Checklist

Importing Checklist

  • New project
  • Import audio
  • Hide & deactivate "raw" tracks until needed
  • Spread output channels to correct I/O
  • Reset Pan to match labels
  • Trim gain to match labels on tracks
  • Fix names (remove the _bip that logic adds to the end of each)
  • Add colors for logical groupings (drums, bass, rhy, lead, keys, vox, etc.)
@ecowden
ecowden / atom-keymap.cson
Created May 29, 2015 02:48
My Atom Keymap
# Your keymap
#
# Atom keymaps work similarly to stylesheets. Just as stylesheets use selectors
# to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap:
@ecowden
ecowden / kore-5th-unhandled-exception.txt
Created July 31, 2015 02:19
Unhandled exception when I attempt to update Kore 5th firmware
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.IO.IOException: No more connections can be made to this remote computer at this time because there are already as many connections as the computer can accept.
at System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
at System.IO.Ports.SerialStream..ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
at System.IO.Ports.SerialPort.Open()
at Pacific_Sun.Form1.connect()
@ecowden
ecowden / manual-iterable.js
Last active January 18, 2016 17:22
Create a JavaScript `iterable` object without the use of generator functions
// Gah!
// Don’t try to understand all of this.
class IncrementingSequence {
constructor(increment) {
this.increment = increment
}
// ↙ Iteration function specially named with a “Symbol” defined by the language
[Symbol.iterator]() {