Skip to content

Instantly share code, notes, and snippets.

Sean Massa EndangeredMassa

Block or report user

Report or block EndangeredMassa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
EndangeredMassa / testing.js
Last active Aug 29, 2015
Estimating Over-determined Systems of Equations
View testing.js
An over-determined system of equations is one that has more equations than unknowns.
This can lead to unsolvable systems--where there is no one value for each unkown
that can satisfy all equations in the system.
When this happens, there are ways to estimate the value of each unkown
such that it is the best fit for the system. That is, it will make each equation
come the closest to being balanced.
I am trying to reproduce this operation to get the same result.
EndangeredMassa /
Last active Aug 29, 2015
Running an Ember.js Workshop

Running an Ember.js Workshop

  • have visualizations for describing how nested and sibling UI elements map to URLs
  • provide prework to attendess
  • provide a premade starter application to attendees
    • check in node_modules
EndangeredMassa /
Last active Aug 29, 2015
Comics to Investigate

Comics to Investigate

This is a list of comics that I want to look into. In general, I like super heroes, cyberpunk, fantasy, and sci-fi. As a focus, I prefer to gather many comics in the same universe rather than many comics about the same character across inconsistent universes.

Specifically, I'm not a huge fan of X-Men, Super Man, anything about "teens", or horror/zombies. I'll still consider recommendations for them, though.

EndangeredMassa / some_spec.js
Created Mar 27, 2012
Overwrite Jasmine's describe method for requirejs support
View some_spec.js
describe 'test some stuff', ['SomeModule'], ->
it 'testing something', ->
EndangeredMassa /
Created Mar 28, 2012
A command-line script to strip out display:none declarations to include in your test runners
#!/usr/bin/env coffee
CSSOM = require 'cssom'
fs = require 'fs'
if process.argv.length != 4
console.log('Usage: ./hidey inputFile outputFile')
fileName = process.argv[2]
TEST_ENV = (typeof window['jasmine'] == 'object')
prefix = if TEST_ENV then '/public' else ''
baseUrl: prefix
EndangeredMassa /
Created Apr 25, 2012
Trying to get Zepto to trigger backbone events without attaching to the DOM
# using coffeescript and jasmine, but the idea should be clear
# if this runs on jquery, all tests pass; if it runs on zepto (RC1 or 0.8), only the second spec passes
it 'fails: triggers event on nested element', ->
$div = $('<div><div class="close"></div></div>')
notified = false
$div.on 'click', ->
notified = true
waitsFor -> notified
// Config
var userName = 'endangeredmassa';
// Utils
function waitsFor(condition, callback){
if (condition())
View .ackrc
EndangeredMassa /
Created Jun 18, 2012
JavaScript Testing Best Practices: Part 1
OrderSystem =
init: ->
$('#container').append('<div id="order-system" />')
# init is included at the end of the file
it 'OrderSystem init works', ->
OrderSystem.init() # now called twice
You can’t perform that action at this time.