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 / 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 / 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

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 / 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'
}
@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 / 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