Skip to content

Instantly share code, notes, and snippets.

View BGR360's full-sized avatar
💭
bummin

Ben Reeves BGR360

💭
bummin
  • Qumulo
  • Greater Chicago Area
View GitHub Profile
@BGR360
BGR360 / Promise.js
Last active October 31, 2017 03:15
Implementation of DeOrio's Promise class from Lecture 10
/**
* This is an implementation of a Promise class that works identically
* to the Promise class that DeOrio uses in lecture. Hopefully this can help
* you further understand how a Promise class works.
*
* Lots of love,
* Ren Beeves <3
*
* NOTE: I am not sure if this properly handles error propagation.
@BGR360
BGR360 / Makefile
Last active October 6, 2017 19:32
EECS 482 Platform-Independent Makefile
###########################################################
# EECS 482 Platform-Independent Makefile
# Usage:
# On CAEN: $ make <your_target>
# On OS X: $ make osx <your_target>
# On Ubuntu: $ make ubuntu <your_target>
#
# Copyright 2017 Ben Reeves
# bgreeves@umich.edu
###########################################################
@BGR360
BGR360 / yeoman-generator-angular-ui-router-error-report.txt
Created August 18, 2016 21:22
Full console log replicating the problem with grunt-contrib-imagemin
2379591057:test Ben$ yo angular-ui-router
(node:51907) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
[?] Would you like to use Sass with the Compass CSS Authoring Framework? No
[?] Would you like to include Twitter Bootstrap? Yes
[?] Would you like to use the SCSS version of Twitter Bootstrap with the Compass CSS Authoring Framework? No
[?] Which modules would you like to include? angular-resource.js, angular-cookies.js, angular-sanitize.js, angular-ui-router.js
create app/images/glyphicons-halflings.png
create app/images/glyphicons-halflings-white.png
create app/styles/bootstrap.css
create app/styles/main.css
@BGR360
BGR360 / EvacuationJsonSchema.json
Last active May 16, 2016 16:11
A sample JSON schema for my research project
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Evacuation JSON",
"type": "array",
"items": {
"title": "Residential Zone",
"description": "For simple testing, this does not necessarily have to represent a residential zone",
"type": "object",
"properties": {
"id": {
@BGR360
BGR360 / e100_assembly_function_test
Created February 23, 2016 02:04
A quick example of how to write a function with parameters in E100 assembly :)
// Checks if var1 is less than var2 and stores the result in var3
// Pass the arguments into the function
main cp less_than_left var1
cp less_than_right var2
// Call the less_than function
call less_than less_than_ra
// Store the return value in var3
@BGR360
BGR360 / SoundPlayer.java
Created January 22, 2016 19:20
SoundPlayer class from my SpoopySparySpeletons Android app
package com.bgreeves.spoopysparyspeletons;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.AssetFileDescriptor;
import android.content.res.Resources;
import android.media.MediaPlayer;
import android.os.Build;
import android.widget.Toast;
@BGR360
BGR360 / Texture.cpp
Created January 22, 2016 19:17
Excerpt from the Bengine GameEngine source
#include "Texture.h"
#include <sstream>
#include <rendering/OpenGL.h>
#include <resources/Image.h>
using std::stringstream;
namespace Rendering
@BGR360
BGR360 / ShaderProgram.h
Created January 22, 2016 19:16
Excerpt from the Bengine GameEngine source
#ifndef BENGINE_SHADER_PROGRAM_H
#define BENGINE_SHADER_PROGRAM_H
#include <Engine.h>
#include <vector>
#include <exceptions/BengineException.h>
#include <rendering/Shader.h>
#include <rendering/UniformVariable.h>
@BGR360
BGR360 / BengineScene.h
Created January 22, 2016 19:15
Excerpt from the Bengine GameEngine source
#ifndef BENGINE_SCENE_H
#define BENGINE_SCENE_H
#include <Engine.h>
#include <core/GameObject.h>
#include <rendering/Camera.h>
#include <resources/ResourceManager.h>
namespace Rendering
@BGR360
BGR360 / GameObject.h
Created January 22, 2016 19:15
Excerpt from the Bengine GameEngine source
#ifndef BENGINE_GAMEOBJECT_H
#define BENGINE_GAMEOBJECT_H
#include <Engine.h>
#include <vector>
#include <core/Transform.h>
#include <util/Types.h>