Skip to content

Instantly share code, notes, and snippets.

View brannondorsey's full-sized avatar
📡
Makin' the net work

Brannon Dorsey brannondorsey

📡
Makin' the net work
View GitHub Profile
@brannondorsey
brannondorsey / image_fit.cpp
Created May 5, 2016 02:14
Fit Image/video to app window (using OpenFrameworks)
float width = ofGetWidth();
float height = ofGetHeight();
float aspect = width / height;
// horizontal black bars
if (aspect <= player.getWidth()/player.getHeight()) {
float vHeight = (player.getHeight() * width) / player.getWidth();
player.draw(0,
(height - vHeight) * 0.5,
width,
@brannondorsey
brannondorsey / genId.js
Created April 9, 2016 19:50
Javascript Generate random base60 ID
function genId(len) {
var chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ23456789'.split('');
var id = '';
for (var i = 0; i < len; i++) {
var index = Math.floor(Math.random() * chars.length);
id += chars[index];
}
@brannondorsey
brannondorsey / gist:21efaefca9708549996f
Created December 5, 2015 22:53
2014-01-25-kinect Ubuntu

2014-01-25-kinect Ubuntu

  • Installation notes for Ubuntu Desktop LTS 12.04 Precise.

  • NOTE: All code is installed to ~/Developer/Work

Install Updates

@brannondorsey
brannondorsey / ESP8266.md
Created June 11, 2015 18:45
A collection of RTLS w/ ESP8266 resources
@brannondorsey
brannondorsey / boid.js
Created June 3, 2015 15:02
Butterfly Habitat in Three.js
// by Joshua Koo @BlurSpline !!! http://www.joshuakoo.com/
// http://www.lab4games.net/zz85/blog/2013/12/30/webgl-gpgpu-and-flocking-part-1/
var Boid = function() {
var vector = new THREE.Vector3(),
_acceleration, _width = 500, _height = 500, _depth = 200, _goal, _neighborhoodRadius = 100,
_maxSpeed = 4, _maxSteerForce = 0.1, _avoidWalls = false;
this.position = new THREE.Vector3();
//
// Butterfly.cpp
// ButterflyTest
//
// Created by bdorse on 4/16/15.
//
//
#include "Butterfly.h"
@brannondorsey
brannondorsey / crystal_palace.md
Created February 3, 2015 00:03
Crystal Palace

Exhibition Palace at the Great Exhibition (or the first Worlds Fair) in London in 1854.

Crystal Palace

More images here.

The Worlds Fairs served as the 19th century's largest gatherings producing perhaps the largest crowds in the entirety of the history that proceeded them. They provided the need for security and a "watchful gaze" that was unprecedented.

An Open Letter to Young Software Authors

By Brannon Dorsey

I harbor a great fear that we have become overwhelmingly misguided in our mass popularization of networked computing and large-scale reliance/transcendence of proprietary software into our personal and social lives. We have strayed far from some of the revolutionary ideas from which the internet and personal computing were birthed and if our present trajectory is left unaltered the technological future we will find ourselves in is not overwhelmingly bright. It is for this reason that I feel compelled to speak up, asking much from young software authors like myself that are finding their skills so ever more in-demand and who I know care so deeply for the future of a media in which they have found such connection, challenge, and personal achievement.

For them (and others), this document is intended to present a perspective of technological positivism at its core layered deeply under a mantle of skepticism regarding aggr

@brannondorsey
brannondorsey / instructions.md
Last active February 13, 2021 10:19
Delta Game

Halves and Wholes

Created by Brannon Dorsey
Genre: Geometric Board Game
No. of Players: 2

Image

Getting Started

@brannondorsey
brannondorsey / cmake output
Created October 10, 2014 05:12
Build Errors for PCL KinFu + KinFu_largeScale on OSX
-- Try OpenMP C flag = [ ]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [/openmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Failed
-- Try OpenMP C flag = [-Qopenmp]