Skip to content

Instantly share code, notes, and snippets.

200 2ms 20.26KB /fonts/inconsolata-regular-webfont.woff2
200 1ms 21.82KB /fonts/inconsolata-bold-webfont.woff2
child_process.js:948
throw errnoException(process._errno, 'spawn');
^
Error: spawn EMFILE
at errnoException (child_process.js:1001:11)
at ChildProcess.spawn (child_process.js:948:11)
undefined:0
TypeError: undefined is not a function
npm ERR! Darwin 13.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.10.33
npm ERR! npm v2.1.6
npm ERR! code ELIFECYCLE
Cannot call method 'apply' of undefined while parsing file: /Users/isaaccohen/npm/webgl-workshop/answers/3d-clear-depth/setup.js
TypeError: Cannot call method 'apply' of undefined while parsing file: /Users/isaaccohen/npm/webgl-workshop/answers/3d-clear-depth/setup.js
at walk (/Users/isaaccohen/npm/webgl-workshop/node_modules/brfs/node_modules/static-module/node_modules/static-eval/index.js:89:27)
at module.exports (/Users/isaaccohen/npm/webgl-workshop/node_modules/brfs/node_modules/static-module/node_modules/static-eval/index.js:110:7)
at traverse (/Users/isaaccohen/npm/webgl-workshop/node_modules/brfs/node_modules/static-module/index.js:267:23)
at walk (/Users/isaaccohen/npm/webgl-workshop/node_modules/brfs/node_modules/static-module/index.js:200:18)
at walk (/Users/isaaccohen/npm/webgl-workshop/node_modules/brfs/node_modules/static-module/node_modules/falafel/index.js:60:9)
at /Users/isaaccohen/npm/webgl-workshop/node_modules/brfs/node_modules/static-module/node_modules/falafel/inde
public struct FloatUniform{
public float value;
public float low;
public float high;
public float og;
}
public struct ComputeUniforms{
public FloatUniform _LengthOfConnectionSprings;
foreach (var field in typeof(ComputeUniforms).GetFields()){
if(Sliders[field.Name] != null ){
FloatUniform u = (FloatUniform)field.GetValue( computeUniforms );
GameObject slider = (GameObject)Sliders[field.Name];
float v = slider.GetComponent<Slider>().Value;
float final = v * (u.high - u.low) + u.low;
using UnityEngine;
using System.Collections;
using Valve.VR;
public class GetCollisionBounds : MonoBehaviour {
// Use this for initialization
void Start () {
var error = EVRInitError.None;
void createVertBuffer(){
_vertBuffer = new ComputeBuffer( triangles.Length , AnchorStructSize * sizeof(float) );
//print( AnchorStructSize );
//print( AnchorStructSize * vc );
var source = document.createElement("source");
source.src = "fluid.mp4"
source.type = "video/mp4"
var video = new Video("dgFW1.mp3");
video.appendChild( source );
//video.play();
(function() {
var Video = function(audio_url) {
this._callbacks = [];
this.domElement = document.createElement('video');
this.domElement.crossOrigin = 'anonymous';
this.domElement.setAttribute('webkit-playsinline', 'webkit-playsinline');
this.domElement.setAttribute('playsinline', 'playsinline');
using System.Collections;
using System.Collections.Generic;
using System;
using System.Reflection;
using UnityEngine;
public static class AddComp {
public static T GetCopyOf<T>(this Component comp, T other) where T : Component
{