Skip to content

Instantly share code, notes, and snippets.

View thomasjmwb's full-sized avatar

Thomas Whalen-Bridge thomasjmwb

View GitHub Profile
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
/* global require, module */
var EmberApp = require('ember-cli/lib/broccoli/ember-app');
var app = new EmberApp({
outputPaths: {
app: {
js: '/assets/scripts/app.js'
},
@thomasjmwb
thomasjmwb / npm_install_jquery_log
Created April 2, 2013 20:59
log from running npm install jquery
here is the log from the `npm install jquery`
npm http GET https://registry.npmjs.org/jquery
npm http 304 https://registry.npmjs.org/jquery
npm http GET https://registry.npmjs.org/jsdom
npm http GET https://registry.npmjs.org/htmlparser/1.7.6
npm http GET https://registry.npmjs.org/xmlhttprequest
npm http GET https://registry.npmjs.org/location/0.0.1
npm http GET https://registry.npmjs.org/navigator
@thomasjmwb
thomasjmwb / scoreManager.as
Created April 19, 2012 11:06
Score keeping class for microphone controlled game
package code {
import flash.events.Event;
import flash.net.SharedObject;
import flash.display.Sprite;
public class scoreManager extends Sprite{
var gameScore:Number=0;
var highScore:Number;
var pointsPerFrame:Number=Math.floor(100/24);//points per second / frames per second
@thomasjmwb
thomasjmwb / characterManager.as
Created April 19, 2012 10:48
Character controller class for microphone based game
package code
{
import flash.display.MovieClip;
import flash.media.*;
import flash.system.Security;
import flash.events.*;
import flash.utils.Timer;
public class characterManager extends MovieClip
{
@thomasjmwb
thomasjmwb / teleportTrigger.js
Created March 28, 2012 12:17
Unity scripting example #1
#pragma strict
function Start () {}
function Update () {}
function OnTriggerEnter (myTrigger : Collider) {
//when player walks into the trigger
if(myTrigger.gameObject.name == "singleTest_Camera"){
Debug.Log("collision start");
teleportCamera();
}
@thomasjmwb
thomasjmwb / derp.js
Created February 2, 2012 09:11
moretest
function loadScript() {
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "http://maps.googleapis.com/maps/api/js?sensor=false&callback=initialize";
document.body.appendChild(script);
}
function initialize() {
//$('#startScreen > div').toggle();
$('#mainScreen > div').toggle();//start off
@thomasjmwb
thomasjmwb / derp.js
Created February 2, 2012 09:07
Herp derp
function()
{
var derp="1";
}