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 / 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;
}
@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 / extraction.py
Last active April 12, 2018 05:33
NLTK Sentence extraction
import nltk, re, pprint
import json
import sys
# a function to convert a tree into an array for json encoding
def tree_to_dict(tree):
return {tree.label(): [tree_to_dict(t) if isinstance(t, nltk.Tree) else t for t in tree]}
# download required corpora
required_downloads = [
@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 / 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 / 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 / gist:8312121
Created January 8, 2014 05:11
Use of a Trie to compute all possible word combinations found in a single word
var Trie = require("./index").Trie;
var t = new Trie();
// ... add your word dictionary ....
t.addStrings(["experts", "exchange", "pen", "island", "choose", "spain", "kids", "express", "childrens", "wear", "dickson", "web"]);
var testDomains = ["expertsexchange", "penisland", "choosespain", "kidsexpress", "childrenswear", "dicksonweb"];
function decompose(search) {
// find all of the words which start from the first letter