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
vows.describe("Vows with teardowns").addBatch({ | |
"A context": { | |
topic: function () { | |
return { flag: true }; | |
}, | |
"And a vow": function (topic) { | |
assert.isTrue(topic.flag); | |
}, | |
"And another vow": function (topic) { | |
assert.isTrue(topic.flag); |
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
public static int writePhraseTree(PhraseTree tree, Connection conn) throws Exception { | |
int affectedRows = 0; | |
for (int z_i = 0; z_i < tree.getZoneCount(); z_i++) { | |
Zone z = tree.getZone(z_i); | |
affectedRows += writePhraseNodeType(z, conn); | |
for (int c_i = 0; c_i < z.getCategoryCount(); c_i++) { | |
Category c = z.getCategory(c_i); |
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
R '.story', | |
R 'a.num', storynum | |
R LabeledCounts, class: 'tasks' # Render LabeledCounts cell | |
R 'ul.aList', | |
for a in [0...10] | |
R 'li', a | |
if exampleCondition | |
R '.ifTrue' | |
else | |
R '.ifFalse' |
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
# HAML-ish | |
define | |
render: (_)-> [ | |
_ 'input#newtodo', type:'text', placeholder:'... new todo' | |
_ 'ul.todos', | |
for todo in window.todoList | |
_ 'li', todo | |
] |
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
@@ -34,12 +34,12 @@ | |
var Live = { | |
// performs a cycle per interval | |
heartbeat: function () { | |
if (document.body) { | |
- // make sure all resources are loaded on first activation | |
- if (!loaded) Live.loadresources(); | |
+ // Look for resources to track | |
+ Live.loadresources(); |
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
$ node lib/test.js | |
fs.writeFileSync: /tmp/test.txt | |
fs.watch: /tmp/test.txt | |
fs.writeFileSync: /tmp/test.txt | |
>> fs.watch CALLBACK: change test.txt | |
FSWatcher.close() |
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
define( function() { | |
return { | |
initialize: function() { | |
this.$el | |
.attr( 'name', this.options.property ) | |
.addClass( this.options.property ); | |
}, | |
render_el: function(__) { return [ |
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
define (require)-> | |
_ = require 'underscore' | |
modulesConfigString = | |
""" | |
require.config({ | |
baseUrl:'src', | |
paths: { | |
'backbone-validation': '../node_modules/backbone-validation/dist/backbone-validation-amd', | |
cell: '../vendor/cell', | |
backbone: '../node_modules/backbone/backbone', |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Spec Runner</title> | |
<link rel="shortcut icon" type="image/png" href="/vendor/jasmine/jasmine_favicon.png"> | |
<link rel="stylesheet" type="text/css" href="/vendor/jasmine/jasmine.css"> | |
<link rel="stylesheet" type="text/css" href="./jasmine-override.css"> | |
</head> | |
<body> | |
<script src="../vendor/sinon.js"></script> |
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
launchctl unload -w /System/Library/LaunchAgents/com.apple.CalendarAgent.plist | |
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist |
OlderNewer