Skip to content

Instantly share code, notes, and snippets.

JagWire jagwire

Block or report user

Report or block jagwire

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
View sinatra-facade-http-to-https
require 'rubygems'
require 'sinatra'
set :port, 80
set :bind, ''
get "/*" do
host =
path = request.path
View sinatra-datamapper-seed
require 'rubygems'
require 'sinatra'
require 'data_mapper'
require 'json'
require 'thin'
class MyThinBackend < ::Thin::Backends::TcpServer
def initialize(host, port, options)
jagwire / AutomaticTestExample.cs
Created Feb 8, 2016
Automatic Testing Scenario in Unity
View AutomaticTestExample.cs
namespace MHS {
interface ISpinner {
public void spin(Vector3 value);
public SpinController { //we can instantiate this in a test
public float speed;
public Vector3 axis;
jagwire / ExampleTest.cs
Created Feb 8, 2016
Example Automatic Test
View ExampleTest.cs
using UnityEngine;
namespace MHS.Tests {
public class MyLogic {
public int speed = 5;
public int position = 0;
public void tick(float timeStep) {
position = position + speed*time;
jagwire / NestedClass.cs
Created Feb 8, 2016
Nested Class Example
View NestedClass.cs
using UnityEngine;
using System.Collections.Generic;
namespace MHS {
public struct SUITS {
View Unity Terrain Water
using UnityEngine;
using System.Collections;
public class Water : MonoBehaviour {
public struct Flux {
public float l;
public float r;
public float t;
public float b;
jagwire / gist:0129d50778c8b4462b68
Created Dec 11, 2014
Unity command line script to build WebGL player
View gist:0129d50778c8b4462b68
//place this script in the Editor folder within Assets.
using UnityEditor;
//to be used on the command line:
//$ Unity -quit -batchmode -executeMethod
class WebGLBuilder {
static void build() {
string[] scenes = {"Assets/main.unity"};
View Eric Is Stupid
public class FlapControl
bool ifFlip = false;
#region some costant values
const int IMG_WIDTH = 640;
const int IMG_HEIGHT = 480;
const int STEP = 3;
View gist:fadb6f37b8243a4e8b3c
<cartridge_basiclti_link xmlns="" xmlns:blti="" xmlns:lticm="" xmlns:lticp="" xmlns:xsi="" xsi:schemaLocation="">
<blti:title>Mizzou Lab Creator</blti:title>
<blti:description>Create/Manage Labs for users.</blti:description>
<blti:extensions platform="">
<lticm:options name="course_navigation">
jagwire / CollaborativeString
Created May 13, 2013
Collaborative Objects in a cell.
View CollaborativeString
public FoundationCell extends Cell {
private SharedStateComponent ssc;
private SharedMapImpl sharedMap;
protected CollaborativeString CollaborativeString(String value) {
return new CollaborativeString(value);
You can’t perform that action at this time.