-
Installation notes for Ubuntu Desktop LTS 12.04 Precise.
-
NOTE: All code is installed to ~/Developer/Work
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; | |
} |
Getting up and running with the ESP8266 SoC.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Butterfly.cpp | |
// ButterflyTest | |
// | |
// Created by bdorse on 4/16/15. | |
// | |
// | |
#include "Butterfly.h" |
Exhibition Palace at the Great Exhibition (or the first Worlds Fair) in London in 1854.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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] |