Skip to content

Instantly share code, notes, and snippets.

View kkoch986's full-sized avatar

Ken Koch kkoch986

  • Zentail
  • Raleigh, NC
View GitHub Profile
@kkoch986
kkoch986 / moduleScript.js
Last active June 9, 2023 02:28
wip chataigne module for loading phonemes into a sequence
function cmdGenerate() {
// the source file with the timestamped phonemes to read from
// TODO: take the input as an audio target
var inputFile = local.parameters.inputFile.getAbsolutePath();
// the target for writing the keyframes
// TODO: create a new mapping layer instead of requiring one as input
var automation = local.parameters.outputMapping.getTarget().getParent();
// a map of viseme name to 0 - 1 values, can be editedby tweaking the optons in chataigne
@kkoch986
kkoch986 / atlassian.css
Created November 11, 2022 15:09
CSS to Make Jira Board Columns Wider
#gh,
#ghx-work,
#ghx-pool-column.ghx-flexible-board #ghx-column-headers,
#gh #ghx-work #ghx-pool-column.ghx-flexible-board .ghx-columns,
#gh #ghx-work #ghx-pool-column.ghx-flexible-board .ghx-zone-overlay-table
{
background: #131516!important;
}
ul.ghx-column-headers,
ul.ghx-columns,
@kkoch986
kkoch986 / conkyrc.lua
Last active October 14, 2018 13:17
my WIP dzen / conky status bar
conky.config = {
out_to_x = false,
out_to_console = true,
update_interval = 1.0,
total_run_times = 0,
use_spacer = none,
use_xft = true,
override_utf8_locale = true,
font = 'Terminus:style = Regular:pixelsize=24:antialias=true'
}

Keybase proof

I hereby claim:

  • I am kkoch986 on github.
  • I am kkoch986 (https://keybase.io/kkoch986) on keybase.
  • I have a public key ASDdVpZP15gn6CeGR0mdujmCNkbbiPKSKZBuh4XsAzA_pQo

To claim this, I am signing this object:

@kkoch986
kkoch986 / pooltable.py
Last active July 6, 2016 22:03
working on a cv experiment for the pool table
import cv2
import numpy as np
import operator
from numpy import pi, sin, cos
import math
## Tweak these
hue_threshold = [4,3] # the lower and upper threshold for hue values in the mask
median_kernel_size = 5
@kkoch986
kkoch986 / MultiSelect.jsx
Last active March 6, 2017 08:58
A MultiSelect prototype for Material UI (v.0.14.4)
/**
* Material UI multi select
*
* Use with:
* <MultiSelect fullWidth={true} value={this.state.values} onChange={(e,v) => this.setState({values: v})}>
* <ListItem primaryText={"Option 1"} value={1} />
* <ListItem primaryText={"Option 2"} value={2} />
* <ListItem primaryText={"Option 3"} value={3} />
* <ListItem primaryText={"Option 4"} value={4} />
* </MultiSelect>
@kkoch986
kkoch986 / fooball.ino
Created April 9, 2016 14:56
Arduino code for my foosball table
// Circuit Board Pins
// 1- PhotoCell 1 +5
// 2- Arduino A0
// 3- PhotoCell 1 Ground
// 4- PhotoCell 2 +5
// 5- Arduino A1
// 6- PhotoCell 2 Ground
// 7- Arduino D2
// 8- Buzzer +
// 9- Buzzer -
@kkoch986
kkoch986 / crush.js
Last active December 29, 2015 15:44 — forked from mbuff24/crush.js
Naive javascript solution for Algorithmic Crush -- https://www.hackerrank.com/contests/w4/challenges/crush
String.prototype.splitSpacesAsInts = function() {
return this.split(" ").map(function(aNum) { return parseInt(aNum); });
};
function processData(input) {
var lines = input.split("\n");
var first = lines[0].splitSpacesAsInts();
var n = first[0];
var m = first[1];
var ops = lines.slice(1).map(function(line) { return line.splitSpacesAsInts(); });
@kkoch986
kkoch986 / prisoners.js
Last active August 29, 2015 14:22
A simulation of 2 solutions to the prisoners with the light switch problem
function solve(prisoner_count, hard_limit) {
var prisoners = [];
var startTime = ((new Date()).getTime());
for(var x = 0 ; x < prisoner_count ; x++) {
prisoners[x] = false;
}
// Pick a random prisoner
function pickPrisoner() {
return Math.floor(Math.random() * prisoner_count);
@kkoch986
kkoch986 / basic-vis.html
Last active January 31, 2022 20:26
A basic audio visualization using only js
<script type="text/javascript" src='http://code.jquery.com/jquery-2.1.3.min.js'></script>
<audio id="myAudio" src="http://sqr.bartekdrozdz.com/demo/soundviz/assets/spy.mp3" controls><p>Your browser does not support the audio element.</p></audio>
<!-- <audio id="myAudio" src="./a-little-something.mp3" controls><p>Your browser does not support the audio element.</p></audio> -->
<div id="visualization" style="width:100%; height:500px"></div>
<script type="text/javascript">
Number.prototype.map = function ( in_min , in_max , out_min , out_max ) {
return ( this - in_min ) * ( out_max - out_min ) / ( in_max - in_min ) + out_min;
}