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
require 'rubygems' | |
require 'sinatra' | |
set :port, 80 | |
set :bind, '0.0.0.0' | |
get "/*" do | |
host = request.host | |
path = request.path |
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
require 'rubygems' | |
require 'sinatra' | |
require 'data_mapper' | |
require 'json' | |
require 'thin' | |
class MyThinBackend < ::Thin::Backends::TcpServer | |
def initialize(host, port, options) | |
super(host,port) |
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
namespace MHS { | |
interface ISpinner { | |
public void spin(Vector3 value); | |
} | |
[Serializable] | |
public SpinController { //we can instantiate this in a test | |
public float speed; | |
public Vector3 axis; | |
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
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; | |
} | |
} |
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
using UnityEngine; | |
using System.Collections.Generic; | |
namespace MHS { | |
public struct SUITS { | |
HEARTS, | |
SPADES, | |
CLUBS, | |
DIAMONDS | |
} |
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
using UnityEngine; | |
using System.Collections; | |
public class Water : MonoBehaviour { | |
public struct Flux { | |
public float l; | |
public float r; | |
public float t; | |
public float b; |
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
//place this script in the Editor folder within Assets. | |
using UnityEditor; | |
//to be used on the command line: | |
//$ Unity -quit -batchmode -executeMethod WebGLBuilder.build | |
class WebGLBuilder { | |
static void build() { | |
string[] scenes = {"Assets/main.unity"}; |
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
public class FlapControl | |
{ | |
bool ifFlip = false; | |
#region some costant values | |
const int IMG_WIDTH = 640; | |
const int IMG_HEIGHT = 480; | |
const int IMG_SIZE = IMG_WIDTH * IMG_HEIGHT; | |
const int STEP = 3; |
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
<cartridge_basiclti_link xmlns="http://www.imsglobal.org/xsd/imslticc_v1p0" xmlns:blti="http://www.imsglobal.org/xsd/imsbasiclti_v1p0" xmlns:lticm="http://www.imsglobal.org/xsd/imslticm_v1p0" xmlns:lticp="http://www.imsglobal.org/xsd/imslticp_v1p0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.imsglobal.org/xsd/imslticc_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticc_v1p0.xsd http://www.imsglobal.org/xsd/imsbasiclti_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imsbasiclti_v1p0p1.xsd http://www.imsglobal.org/xsd/imslticm_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticm_v1p0.xsd http://www.imsglobal.org/xsd/imslticp_v1p0 http://www.imsglobal.org/xsd/lti/ltiv1p0/imslticp_v1p0.xsd"> | |
<blti:title>Mizzou Lab Creator</blti:title> | |
<blti:description>Create/Manage Labs for users.</blti:description> | |
<blti:launch_url>http://127.0.0.1/lti_google_docs/labs</blti:launch_url> | |
<blti:extensions platform="canvas.instructure.com"> | |
<lticm:options name="course_navigation"> | |
<lticm |
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
public FoundationCell extends Cell { | |
@UsesCellComponent | |
private SharedStateComponent ssc; | |
private SharedMapImpl sharedMap; | |
protected CollaborativeString CollaborativeString(String value) { | |
return new CollaborativeString(value); |
NewerOlder