This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe 'test some stuff', ['SomeModule'], -> | |
it 'testing something', -> | |
@SomeModule.act() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env coffee | |
CSSOM = require 'cssom' | |
fs = require 'fs' | |
if process.argv.length != 4 | |
console.log('Usage: ./hidey inputFile outputFile') | |
return | |
fileName = process.argv[2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TEST_ENV = (typeof window['jasmine'] == 'object') | |
prefix = if TEST_ENV then '/public' else '' | |
require.config | |
baseUrl: prefix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
$div.find('.close').trigger('click') | |
waitsFor -> notified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Config | |
var userName = 'endangeredmassa'; | |
// Utils | |
function waitsFor(condition, callback){ | |
if (condition()) | |
callback(); | |
else | |
setTimeout(function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--type-add=css=.sass,.scss | |
--type-set=haml=.haml | |
--type-add=ruby=.haml,.rake | |
--type-add=js=.mustache | |
--type-set=coffee=.coffee | |
--type-add=objc=.pch | |
--type-set=xcode=.pbxproj,.pbxuser,.perspectivev3 | |
--type-set=ragel=.rl | |
--type-set=nib=.xib | |
--type-set=plist=.plist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OrderSystem = | |
init: -> | |
$('#container').append('<div id="order-system" />') | |
# init is included at the end of the file | |
OrderSystem.init() | |
it 'OrderSystem init works', -> | |
OrderSystem.init() # now called twice |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
view = Backbone.View.extend | |
initialize: | |
@render() | |
render: | |
$el.html('<div class="content">fun times</div>') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias tm="~/.tmux/tmux.sh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer