Skip to content

Instantly share code, notes, and snippets.

@fchasen
fchasen / allids.js
Last active December 20, 2015 13:48
Get all nodes with Ids
//-- Get all nodes with Ids
this.$ = {};
Array.prototype.map.call(document.querySelectorAll('[id]'),
function(node){ this.$[node.id] = node; }.bind(this));
@fchasen
fchasen / _.md
Created February 22, 2013 00:53
INFO247 / Lab 5 / #3
/*
Fred Chasen
Pulse Light
*/
// Connect to Pin 11, for analog
int led = 11;
int minamount = 5;
int x = minamount;
@fchasen
fchasen / hit1.js
Created November 2, 2012 07:26
hit1
function Stage(el) {
this.el = document.getElementById(el);
this.position();
this.listeners();
return this;
}
Stage.prototype = {
position: function(){
@fchasen
fchasen / jump.markdown
Created October 27, 2010 07:10
Proposal for $ Fragments

#Proposal for $ Fragments

##Example:

If we have:

<a name = "jump1">Jump To Me</a>

According to the W3 spec: >"Having defined the anchor, we may link to it from the same or another document. URIs that designate anchors contain a "#" character followed by the anchor name"