Skip to content

Instantly share code, notes, and snippets.

View kevinw's full-sized avatar

Kevin Watters kevinw

View GitHub Profile
{
"posts": [{
"id": "1",
"title": "Rails is Omakase",
"links": {
"author": "9"
}
}],
"linked": {
"people": [{
docs/client/commandline.html:7:<!-- XXX some intro text? -->
docs/client/api.js:1735:// XXX move these up to right place
docs/client/api.html:1652:<!-- XXX replace d6 with _.random once we have underscore 1.4.2 -->
docs/client/docs.js:7: // XXX this is broken by the new multi-page layout. Also, it was
docs/client/introduction.html:5:<!-- XXX by: (three headshot thumbnails w names) -->
docs/client/packages/showdown.html:5:<!-- XXX rename to markdown when we rename the package -->
docs/client/packages/showdown.html:13:<!-- XXX include an example -->
examples/unfinished/azrael/client/azrael.js:11:// XXX would be nice to eliminate this function and have people just
examples/unfinished/azrael/client/azrael.js:14: // XXX pushstate
examples/unfinished/azrael/client/azrael.js:24: // XXX it would be nice if this were find instead of findLive (ie,
input {
udp {
port => 5959
codec => "json"
}
generator {
count => 0
debug => true
lines => [ "line 1", "line 2", "line 3" ]
}
diff --git a/js/roadtrip.js b/js/roadtrip.js
index d738c95..f76cfe2 100644
--- a/js/roadtrip.js
+++ b/js/roadtrip.js
@@ -346,9 +361,15 @@ function addTube(planeMesh, cb) {
function updateFromPoints(points) {
var spline = new THREE.SplineCurve3(points);
spline = layCurveOn(planeMesh, spline);
+
+ var rotMat = new THREE.Matrix4().makeRotationY(Math.PI/2);
// Type: FezGame.Components.TempleOfLoveHost
// Assembly: FEZ, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// Assembly location: C:\Program Files (x86)\Steam\SteamApps\common\FEZ\FEZ.exe
using FezEngine;
using FezEngine.Components;
using FezEngine.Effects;
using FezEngine.Services;
using FezEngine.Structure;
using FezEngine.Structure.Geometry;
@kevinw
kevinw / strict.lua
Created February 6, 2013 08:22
catch misspelled variables—put 'require "strict"' at the top of your code.
--
-- strict.lua
-- checks uses of undeclared global variables
-- All global variables must be 'declared' through a regular assignment
-- (even assigning nil will do) in a main chunk before being used
-- anywhere or assigned to inside a function.
--
local mt = getmetatable(_G)
if mt == nil then
local NUM_BULLETS = 10
return {
startState = 'wandering',
states = {
wandering = function()
while true do
walk(chooseRandomDirection())
wait(1)
end
end,
local script = function()
wait(5)
end
local scriptFuncs = {
wait = function(secs)
print (entity, 'is waiting', secs)
assert(entity ~= nil) -- FAILS HERE
end,
}
local cardinals = {
up = new(0, 1),
down = new(0, -1),
left = new(-1, 0),
right = new(1, 0)
}
function vector:closestCardinal(v)
local maxDistance = 0
local longestVec
test