Skip to content

Instantly share code, notes, and snippets.

View jlmitch5's full-sized avatar

John Mitchell jlmitch5

  • Red Hat
  • Garner, NC
View GitHub Profile
@jlmitch5
jlmitch5 / hideous.js
Created March 11, 2014 00:20
a duplexing stream country counter (honestly I have no idea what this does)
var duplexer = require('duplexer');
var through = require('through');
module.exports = function (counter) {
var counts = {}
return duplexer(through(function write (row) {
counts[row.country] = (counts[row.country] || 0) + 1
}, function end () {
counter.setCounts(counts)
}), counter)
@jlmitch5
jlmitch5 / restydrinks.py
Created June 19, 2014 20:13
mixin rest classes workign doc
from schema_kernel.models import KernelVersion
from schema_kernel.serializers import KernelVersionSerializer
from rest_framework import mixins, generics
class KVList(mixins.ListModelMixin, generics.GenericAPIView):
queryset = KernelVersion.objects.all()
serializer_class = KernelVersionSerializer
def get(self, request, *args, **kwargs):
return self.list(request, *args, **kwargs)
@jlmitch5
jlmitch5 / movinup.yml
Created November 10, 2014 04:38
An ansible playbook for setting up my NCSU Senior Design project on Ubuntu 14.10
---
# NOTE: you may need to include an ansible.cfg file in the same directory this file is in if the git task stalls out
# ansible.cfg contents:
# [defaults]
# transport = ssh
#
# [ssh_connection]
# ssh_args = -o ForwardAgent=yes
- hosts: all
user: root
@jlmitch5
jlmitch5 / Long_Contrib.md
Created February 14, 2015 23:59
Long_Contrib.md

Contributing to Atom

👍🎉 First off, thanks for taking the time to contribute! 🎉👍

The following is a set of guidelines for contributing to Atom and its packages, which are hosted in the Atom Organization on GitHub. If you're unsure which package is causing your problem or if you're having an issue with Atom core, please open an issue on the main atom repository. These are just guidelines, not rules, use your best judgement and feel free to propose changes to this document in a pull request.

@jlmitch5
jlmitch5 / Long_Contrib_Fast.md
Created February 15, 2015 09:17
Long_Contrib_Fast.md

Contributing to Atom

👍🎉 First off, thanks for taking the time to contribute! 🎉👍

The following is a set of guidelines for contributing to Atom and its packages, which are hosted in the Atom Organization on GitHub. If you're unsure which package is causing your problem or if you're having an issue with Atom core, please open an issue on the main atom repository. These are just guidelines, not rules, use your best judgement and feel free to propose changes to this document in a pull request.

-- seaaaaa with no screen
--
-- subtractive polysynth with 5 patterns
-- controlled by midi or grid
--
-- grid pattern player:
-- 1 1 record toggle
-- 1 2 play toggle
-- 1 3-7 pattern selectors
-- 1 8 transpose mode
--- boing_two - a bouncing ball app
--- with saved states
--- originally by declutter
--- Heavily based on flin
--- by artfwo
--- Press a grid key in columns 1-12 to
--- start a bouncing ball
--- and the bottom key to stop
--- columns 13-16 allow you to select
@jlmitch5
jlmitch5 / midcenturymodular_livestream1.lua
Created March 30, 2020 01:49
braided generative pattern sequencer ~ midcentury modular livestream 1 ~ 3/29/20 1pm EDT ~ twitch.tv/midcenturymodular
--- braided generative pattern sequencer ~ midcentury modular livestream 1 ~ 3/29/20 1pm EDT ~ twitch.tv/midcenturymodular
-- originally inspired by bowery/shiftregister.lua and mudlogger - kubota
-- input 1: performance...plugged in lfo
-- 0 - 1.66v = slow down mangrove, 1.67v - 3.33v 3rd speed up mangrove, 3.34v - 5v 3rd octave up jf
-- input 2: clock
-- output 2: mangrove pitch cv
-- ii: 6 stages of ASR via just friends
reg = {}
scale = { 0,2,4,5,7,9,11,16,21 }
@jlmitch5
jlmitch5 / tonight.lua
Last active December 19, 2022 01:47
tonight for monome crow: a wandering and loose(/lost?) arpeggiator for mangrove
--- tonight is a wandering and loose(/lost?) arpeggiator for mangrove
-- output 1 goes to mangrove's formant attenuated to taste (constant wave mode)
-- output 2 goes to mangrove' pitch
-- mangrove's out to delay and reverb for maximum vibes
seq = { 0, 4, 5, 7, 9 }
step = 1
switch = 1
a = math.random(1,10)
b = math.random(1,10)
@jlmitch5
jlmitch5 / this_afternoon.lua
Last active May 3, 2020 20:05
this_afternoon for monome crow: a somewhat-linked dual arpeggiator for warps and mangrove
--- this_afternoon is a somewhat-linked dual arpeggiator for warps and mangrove
-- warps is a self-patched complex oscillator (channel 1 is on-board osc, aux out to in 2)
-- output 1 goes to warps algorithm attenuated to taste
-- output 2 goes to warps pitch (channel 1)
-- output 3 goes to mangrove formant attenuated to taste
-- output 4 goes to mangrove pitch
-- mix and put into three sisters all
-- control 3 sisters cut off with some of the output 1/3 control signals
-- use additional 3 sisters outs for feeding back into the oscillators
-- delay and reverb for maximum vibes