Skip to content

Instantly share code, notes, and snippets.

View hoopyfrood's full-sized avatar

Martin K. hoopyfrood

View GitHub Profile
@hoopyfrood
hoopyfrood / greenscreen.py
Created November 13, 2019 15:18 — forked from drscotthawley/greenscreen.py
greenscreen.py: Greenscreen effect without a physical green screen, via OpenCV and Python
#! /usr/bin/env python
'''
greenscreen.py: Greenscreen effect without a physical green screen
This performs background subtraction, and sets the background to "green" for use with "key frame" video editing software
Author: Scott Hawley, https://github.com/drscotthawley
Requirements:
Python, NumPy and OpenCV
I got these via Macports, but Homebrew, etc. work.
@hoopyfrood
hoopyfrood / README.md
Created January 20, 2017 15:01 — forked from robschmuecker/README.md
D3.js Drag and Drop, Zoomable, Panning, Collapsible Tree with auto-sizing.

This example pulls together various examples of work with trees in D3.js.

The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.

One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.

Dragging can be performed on any node other than root (flare). Dropping can be done on any node.

Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@hoopyfrood
hoopyfrood / config.rb
Created January 14, 2015 14:05
config file for Sass
line_comments = false
output_style = :compressed # or :nested, :expanded, :compressed, :compact
#sass_options = {:sourcemap => true}
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
@hoopyfrood
hoopyfrood / Homestead.yaml
Created January 9, 2015 13:08
sample env file
# Strontium
- key: SR_PG_HOST
value: localhost
- key: SR_PG_USER
value: homestead
- key: SR_PG_PASS
value: secret
- key: SR_PG_NAME
value: strontium
- key: SR_PG_PORT