Skip to content

Instantly share code, notes, and snippets.

I feel like specs for web standards have two parts:
* solving the problems that the standard sets out to address
* solving the problems that the standard creates
The proportion between these two things reflects the overall quality of the standard.
@incompl
incompl / ratings.md
Created September 18, 2014 22:32
How 5-star ratings work for food

One Star

Reviewer is being a jerk, it's not that bad

Two Stars

It's seriously really bad

Three Stars

Hello, this is a gist. Do you get the gist?
[11:23:50] <tkellen> oh man, i hate css so much
[11:23:55] <gregsmith> i do too
[11:24:08] <gregsmith> but i have completely conquered it and made it do my bidding
[11:24:16] <gregsmith> after years of combat
[11:24:46] <gregsmith> css is my crazy garbage dragon monster on a leesh
[11:24:54] <gregsmith> we're not "friends"

When I was in high school I was forced to play football for the first time. I had kept my distance from what I now know is called the culture of masculinity that comes with these sorts of activities. I was bad at it, but that actually didn't matter. I vividly remember an argument about if I had stepped out of bounds. It was obvious that I had: I was staring at my feet, per usual.I said so. There was an insane shock. No one could believe that I would betray my team like that. I had no defense. I was just telling the truth as I had been taught to do from a young age. The thing is, the coach wasn't on my side. He told me I should have kept silent for the sake of my team.

Turns out not everyone is taught to tell the truth from a young age. The culture of masculinity teaches you to lie for the sake of your team. Only winning matters. Now I watch MRAs argue against feminism with the same reasoning. They don't care about honesty. They just want their team to win. I wonder if it's because they were taught that beati

button6.addEventListener('click', function() {
var red = 'red';
var halfRed = 'hsla(0, 100%, 25%, 1)';
var color = thing.style.color;
if (this.animating === undefined) {
this.animating = false;
}
if (this.animating === true) {
return;
}
@incompl
incompl / risks.md
Created August 7, 2015 20:22
Risks document

There is no risks document.

@incompl
incompl / ctor_name_inheritance.js
Created October 17, 2011 14:34
.name property, constructors, inheritance
// A weird bug when you inherit from a constructor. You shouldn't
// inherit from a constructor but when I accidentally did I noticed
// this weirdness.
function Foo() {}
// this should be Object.prototype, or {}, or omitted completely,
// but certainly not the Object constructor. Still, what follows
// isn't exactly what you'd expect...
Foo.prototype = Object;
@incompl
incompl / __proto__ dne constructor.prototype.js
Created October 20, 2011 02:46
Shows that .__proto__ is not the same as .constructor.prototype
function Parent() {}
var parent = new Parent();
function Child() {}
Child.prototype = parent;
var child = new Child();
// child inherits directly from parent. this makes sense.
console.log(child.__proto__ === parent); // true
console.log(child.__proto__ === Parent.prototype); // false
@incompl
incompl / box2dweb-example.js
Created May 11, 2012 14:44
Example of box2dweb with C++ heritage noted in comments
// Code from http://lib.ivank.net/?p=demos&d=box2D
// These look like imports, but in JavaScript they are just busy-work.
var
b2Vec2 = Box2D.Common.Math.b2Vec2,
b2BodyDef = Box2D.Dynamics.b2BodyDef,
b2Body = Box2D.Dynamics.b2Body,
b2FixtureDef = Box2D.Dynamics.b2FixtureDef,
b2World = Box2D.Dynamics.b2World,
b2PolygonShape = Box2D.Collision.Shapes.b2PolygonShape;