Skip to content

Instantly share code, notes, and snippets.

View ecowden's full-sized avatar

Evan Cowden ecowden

View GitHub Profile
@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 / 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 / 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 / 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
// "clean" way to pull in app module
var appModule = require('../appModule');
appModule.controller('myController', function(dependencyA, dependencyB) {
// ...
});
// --- TEST ---
@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.
@ecowden
ecowden / javascript-fail
Created June 4, 2013 23:36
Try evaluating this in the JavaScript console of your choice. ;-)
(![]+[])[+[]]+(![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]];
@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 / 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 / angular-caching-service
Created February 13, 2013 15:18
How can we have several views show the same data without hitting the server each time? This is a simple idea, along with copious notes on my personal style. Fair warning: this is just a sketch and has never been executed.
ngModule.factory('contactSearchService', [
'ContactResource',
function (ContactResource) {
// This is pretty much the most naive cache possible; do whatever makes sense for your use case.
var lastQuery,
lastResults;
function invalidateCache() {
// Or similar mechanism...again, whatever makes sense for you.
lastQuery = null;