I hereby claim:
- I am jicksta on github.
- I am jayp (https://keybase.io/jayp) on keybase.
- I have a public key ASBI5eIAWloE4JO6YpdHc-4Jhsc64QJ-6d820YWiTnewLAo
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
require 'active_support/all' | |
SEASONS = { | |
autumn: { | |
description: "Autumn is the season of peace and goodwill, when summer’s harvest is shared with all. Eladrin adopt this personality when overcome with contentment.", | |
traits: [ | |
"If someone is in need, you never withhold aid.", | |
"You share what you have, with little regard to your own needs.", |
I hereby claim:
To claim this, I am signing this object:
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName:'Ember Twiddle' | |
}); |
I hereby claim:
To claim this, I am signing this object:
%html{:lang => "en"} | |
%head= render "shared/head" | |
%body.app{"data-events" => yield(:body_events)} | |
= yield |
function v(x, y, z) { | |
return new THREE.Vertex(new THREE.Vector3(x, y, z)); | |
} | |
var lineGeo = new THREE.Geometry(); | |
lineGeo.vertices.push( | |
v(-50, 0, 0), v(50, 0, 0), | |
v(0, -50, 0), v(0, 50, 0), | |
v(0, 0, -50), v(0, 0, 50) | |
); |
// Physijs.MeshMixin, used to convert a THREE.Mesh into a Physijs.Mesh. Direct use of | |
// this mixin is not necessary if you're instantiating Physijs.Meshes directly. | |
// Returns the given THREE.Mesh with Physijs mesh behavior and metadata mixed in. | |
Physijs.MeshMixin = function(mesh, mass, params) { | |
var index; | |
params = params || {}; | |
Eventable.call(this); | |
if (!mesh.geometry.boundingBox) { |
function assertViewAction(viewClass, eventCallbackName, elementAccessorName, eventName, viewReference) { | |
it("should run the " + eventCallbackName + " action when the " + elementAccessorName + " gets a " + eventName + " event (assertViewAction)", function() { | |
var isPrototypal = eventCallbackName in viewClass.prototype; | |
if (isPrototypal) { | |
spyOn(viewClass.prototype, eventCallbackName); | |
} | |
var view = viewReference(); | |
if (!isPrototypal) { | |
spyOn(view, eventCallbackName); | |
} |
var Base = { | |
extend: function(proto) { | |
function f() { | |
if (this.init) this.init.apply(this, arguments); | |
}; | |
f.prototype = proto; | |
return f; | |
} | |
}; |
// Adding functions to the prototypes of Javascript "standard library" classes should | |
// never be done in code that will be released as a framework for others to use. You | |
// should only do it for the framework you build up on a web app that you have total | |
// control over. | |
var _ = require("underscore"); | |
function UnderscorePrototypeImporter(proto, functions) { | |
_.each(functions, function(fnName) { | |
proto[fnName] = function(/* Any number of args */) { |