Skip to content

Instantly share code, notes, and snippets.

on windoze

Drew Lustro drewlustro

on windoze
Block or report user

Report or block drewlustro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
drewlustro / waves.pde
Last active Aug 29, 2015
Waves MR Demo
View waves.pde
int xspacing = 3; // How far apart should each horizontal location be spaced
int w; // Width of entire wave
int maxwaves = 4; // total # of waves to add together
int numwaves = 15; // total # of separate waves
float theta = 0.0;
float[] amplitude = new float[maxwaves]; // Height of wave
float[] dx = new float[maxwaves]; // Value for incrementing X, to be calculated as a function of period and xspacing
float[] yvalues; // Using an array to store height values for the wave (not entirely necessary)
float[] xpow = new float[numwaves];
View .editorconfig
root = true
charset = utf-8
indent_style = space
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
View Colorwheel.shader.js
(function() {
define('shaders/ColorWheel.shader', [] , function () {
return {
uniforms: {
time: { type: 'f', value: 0.0 }
fragmentShader: [
"uniform float time;",
drewlustro / demo.nginx.conf
Last active Aug 29, 2015
Simple gulp-rsync deploy
View demo.nginx.conf
server {
listen 80;
root /sites/SOME-SITE-ROOT-DIRECTORY/staging0;
index index.html index.htm;
location / {
try_files $uri $uri/ /index.html /index.htm;
drewlustro / gist:d8bd9ab0ff25c8c83566
Created Mar 1, 2015
vmhgfs on ubuntu 14.10 install fails to compile
View gist:d8bd9ab0ff25c8c83566
drew@ubuntu:~$ cd Desktop/
drew@ubuntu:~/Desktop$ ls
drew@ubuntu:~/Desktop$ cd vmware-tools-distrib/
drew@ubuntu:~/Desktop/vmware-tools-distrib$ ls
bin doc etc FILES INSTALL installer lib
drew@ubuntu:~/Desktop/vmware-tools-distrib$ clear

drew@ubuntu:~/Desktop/vmware-tools-distrib$ sudo ./
[sudo] password for drew:
View oxford102_deploy.prototxt
name: "Oxford102CaffeNet"
input: "data"
input_dim: 10
input_dim: 3
input_dim: 227
input_dim: 227
force_backward: true
layers {
name: "conv1"
# Some things taken from here
# Set the colours you can use
drewlustro / Gruntfile.js
Created Jan 14, 2014
Gruntfile.js with attempted CORS middleware in connect:livereload:options
View Gruntfile.js
// Generated on 2013-12-19 using generator-webapp 0.4.6
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
drewlustro / base.js
Last active Jan 4, 2016
I'm trying to create an AMD-style library called "Brace" using requirejs and I'm having issues. I try to make the master Brace object and decorate it with classes. On build, "Brace" is undefined for the Brace.Base class. How do I attach class modules to the master Brace object? I'm surely missing something here about exports or global scope or s…
View base.js
// brace/brace.js
(function(Brace) {
function (THREE) {
Base = function() {;
drewlustro / brace.js
Last active Jan 4, 2016
Brace.Object is undefined in chapter.js -- apologies that Object needs to be fully renamed to SceneObject. Please ignore that.
View brace.js
(function() {
Brace = {};
define('brace/brace', ['THREE', 'brace/base', 'brace/publisher', 'brace/chapter', 'brace/app', 'brace/object', 'brace/settings'],
function (THREE, Base, Publisher, Chapter, App, SceneObject, Settings) {
You can’t perform that action at this time.