This is an example of loading a markdown file from a remote location into the `` element.
This file contains 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; | |
[AddComponentMenu("Camera-Control/Mouse Orbit with zoom")] | |
public class MouseOrbit : MonoBehaviour { | |
public Transform target; | |
public float distance = 5.0f; | |
public float xSpeed = 120.0f; | |
public float ySpeed = 120.0f; |
This file contains 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
import animitter from 'animitter'; | |
import * as THREE from 'three'; | |
import * as webvrui from 'webvr-ui'; | |
const OrbitControls = require('three-orbit-controls')(THREE); | |
window.THREE = THREE; | |
require('./three-extras/vr-controls'); | |
require('./three-extras/vr-effect'); |
This file contains 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
/** | |
* a utility method that will walk the object for the provided properties | |
* safely asserting if the final property is equal to `other` | |
* @param {Object} obj | |
* @param {Array} steps | |
* @param {Object} other | |
* @returns {boolean} true only if properties exist for object to | |
* be walked and final prop is equal to `other` | |
*/ | |
function walkEquals(obj, steps, other){ |
This file contains 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
/** | |
* Operations to calculate the depths of a nested array | |
* @author Kyle Phillips | |
* @module 'array-depth' | |
*/ | |
const maxDepth = (a)=>{ | |
let maxVal = Number.MIN_VALUE | |
let item |
This file contains 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
var css = require('dom-css'), | |
tmpl = require('../../views/client/object-list.jade'), | |
watchProperty = require('watch-property'); | |
class ObjectListView { | |
constructor(title){ | |
this.title = title; |
This file contains 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
module.exports = uniqueColors; | |
var _canvas; | |
/** | |
* Collect all of the unique colors within an image, | |
* all pixel values are returned as [ red, green, blue, alpha ] between 0 - 255 | |
* @param {Image|HTMLCanvasElement} image | |
* @param {Number} [x] to start sampling | |
* @param {Number} [y] to start sampling |
This file contains 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
/** | |
* create a function that will return true once any time the value changes | |
* @param {Object} object | |
* @param {String} key | |
*/ | |
function watchProperty(object, key){ | |
var value = object[key]; | |
return function(){ |
This file contains 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
{ | |
"name": "template-budo", | |
"version": "1.0.0", | |
"description": "Enter your description here", | |
"main": "javascripts/index.js", | |
"author": "Kyle Phillips <[email protected]> (http://hapticdata.com/)", | |
"browserify": { | |
"transform": [ | |
[ | |
"jadeify", |
This file contains 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
define(function( require, exports, module ){ | |
var _ = require('underscore'), | |
Backbone = require('backbone'), | |
Q = require('q'); | |
/** | |
* This is a generic view that manages additional children views | |
* use `addChild` and `removeChild` to nest a view within |
NewerOlder