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
View cookie.coffee
View require.lua
-- GLOBAL CHANGES --
-- make requires return the object --
_require = _G.require
_G.require = function (name)
local original = _G[name]
_require(name)
local package = _G[name]
_G[name] = original
return package
View 0.index.lua
_G.createContext()
local a = require('complex')
print( a.add(5, 6) )
@EndangeredMassa
EndangeredMassa / 0.double-start.coffee
Created May 9, 2013
Multiple calls to casper.start
View 0.double-start.coffee
Scenario = (message, tests) ->
casper.start()
casper.test.info message
tests()
casper.run ->
casper.test.done()
Scenario 'Test a 200', ->
@EndangeredMassa
EndangeredMassa / 1.index.html
Created Apr 12, 2013
CasperJS and Infinite Redirects
View 1.index.html
<html>
<meta http-equiv="refresh" content="0" />
</html>
@EndangeredMassa
EndangeredMassa / 0.README
Last active Dec 14, 2015
Chicago Node.js: Intro to Node.js Workshop
View 0.README
Slides: https://docs.google.com/presentation/d/17qCqjo9MgNKdH3i0pVgqkbXyVPYS-7_COCi-etR9new/pub?start=false&loop=false&delayms=3000#slide=id.gab72b792_05
Event: http://www.meetup.com/Chicago-Nodejs/events/98566142/
To select the code in the slides, go to the gear menu in the bottom-left and select Speaker Notes.
Answers are below.
@EndangeredMassa
EndangeredMassa / nko_entries.md
Created Nov 12, 2012
Sean's Picks for NKO2012
View nko_entries.md
View autobinding.coffee
###
# This emberjs example makes me cring for a couple reasons,
# but the biggest is that it calls `.property` on the function
# to turn fullName into a auto-updating value.
# Since emberjs is a framework instead of a library, like Backbone,
# it seems like it should do this for you.
App.Person = DS.Model.extend({
firstName: DS.attr('string'),
lastName: DS.attr('string'),
@EndangeredMassa
EndangeredMassa / .xmobarrc
Created Sep 14, 2012
XMonad Config Files
View .xmobarrc
Config { font = "xft:Bitstream Vera Sans Mono:size=9:bold:antialias=true"
, bgColor = "#000000"
, fgColor = "grey"
, position = Static { xpos = 0 , ypos = 0, width = 1680, height = 16 }
, commands = [ Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10
, Run Network "eth0" ["-L","0","-H","70","--normal","green","--high","red"] 10
, Run Memory ["-t","Mem: <usedratio>%"] 10
, Run Com "~/.xmonad/scripts/cputemp.sh" [] "cpuTemp" 10
, Run Date "%a %b %_d %l:%M" "date" 10
, Run Com "~/.xmonad/scripts/volume.sh" [] "volume" 10
View .bashrc
alias tm="~/.tmux/tmux.sh"
You can’t perform that action at this time.