Skip to content

Instantly share code, notes, and snippets.

View kevinhughes27's full-sized avatar

Kevin Hughes kevinhughes27

View GitHub Profile
@kevinhughes27
kevinhughes27 / hydra.lua
Created January 22, 2015 15:48
my half done config for hydra (osx window manager, now https://github.com/sdegutis/mjolnir) using thirds
-- autostart hydra
autolaunch.set(true)
-- watch for changes
pathwatcher.new(os.getenv("HOME") .. "/.hydra/", hydra.reload):start()
-- notify on start
hydra.alert("Hydra config loaded", 0.5)
-- open a repl
@kevinhughes27
kevinhughes27 / gh_issue_maker.rb
Created December 29, 2014 23:19
One time I didn't have internet so I wrote up a bunch of issues in json and then used this script to push them up to Github
require 'json'
require 'octokit'
Octokit.configure do |c|
c.login = 'pickle27'
c.password = '<github token>'
end
repo = ARGV[0]
file = ARGV[1]
@kevinhughes27
kevinhughes27 / cv2_video_starter.py
Created February 8, 2014 02:42
a simple starting framework for grabbing frames from a camera or video file using OpenCV and python.
import cv2
CAMERA_INDEX = 0
CODEC = cv2.cv.CV_FOURCC('D','I','V','X')
FPS = 15
def main():
cam = cv2.VideoCapture()
cam.open(CAMERA_INDEX)