Skip to content

Instantly share code, notes, and snippets.

View richardcpeterson's full-sized avatar

Richard Peterson richardcpeterson

View GitHub Profile
@richardcpeterson
richardcpeterson / bug.html
Created March 20, 2012 16:51
Some kind of bug in my rope sim
<!doctype html>
<html>
<head>
<script src="traer.js"></script>
<script>
/************************************ JSBUG ************************************
*
* SpiderMonkey bug description
*
@richardcpeterson
richardcpeterson / object-select.js
Created September 9, 2011 17:51
JavaScript function to select from array of objects
function select (a) {
return {
from : function (b) {
return {
where : function (c) {
return {
equals : function (d) {
var foo = [];
for (prop in b){
if (b[prop][c] == d){