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
<script type="text/x-handlebars" data-template-name="rooms"> | |
<ul id="rooms"> | |
{{#each controller}} | |
<li> | |
<h1>{{name}}</h1> | |
{{partial devices}} | |
</li> | |
{{/each}} | |
</ul> | |
</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
Uncaught TypeError: Cannot call method 'html' of null ember.js:17918 |
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
<script type="text/x-handlebars" data-template-name="_sub_devices"> | |
<ul class="sub_devices"> | |
{{#each device in sub_devices}} | |
<li> | |
<div class="device">{{device.human_readable_name}}</div> | |
{{view App.SingleDeviceView contentBinding="device"}} | |
</li> | |
{{/each}} | |
</ul> | |
</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
if (App.SingleDeviceView.tabindex == null) App.SingleDeviceView.tabindex = 0; | |
return App.SingleDeviceView.tabindex++; |
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
// Last commit: 2bcc767 (2013-03-07 17:07:46 -0800) | |
(function() { | |
window.DS = Ember.Namespace.create({ | |
// this one goes past 11 | |
CURRENT_API_REVISION: 12 | |
}); | |
})(); |
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
jasmine.HtmlReporterHelpers = {}; | |
jasmine.HtmlReporterHelpers.createDom = function(type, attrs, childrenVarArgs) { | |
var el = document.createElement(type); | |
for (var i = 2; i < arguments.length; i++) { | |
var child = arguments[i]; | |
if (typeof child === 'string') { | |
el.appendChild(document.createTextNode(child)); |
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
var isCommonJS = typeof window == "undefined" && typeof exports == "object"; | |
/** | |
* Top level namespace for Jasmine, a lightweight JavaScript BDD/spec/testing framework. | |
* | |
* @namespace | |
*/ | |
var jasmine = {}; | |
if (isCommonJS) exports.jasmine = jasmine; | |
/** |
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
body { background-color: #eeeeee; padding: 0; margin: 5px; overflow-y: scroll; } | |
#HTMLReporter { font-size: 11px; font-family: Monaco, "Lucida Console", monospace; line-height: 14px; color: #333333; } | |
#HTMLReporter a { text-decoration: none; } | |
#HTMLReporter a:hover { text-decoration: underline; } | |
#HTMLReporter p, #HTMLReporter h1, #HTMLReporter h2, #HTMLReporter h3, #HTMLReporter h4, #HTMLReporter h5, #HTMLReporter h6 { margin: 0; line-height: 14px; } | |
#HTMLReporter .banner, #HTMLReporter .symbolSummary, #HTMLReporter .summary, #HTMLReporter .resultMessage, #HTMLReporter .specDetail .description, #HTMLReporter .alert .bar, #HTMLReporter .stackTrace { padding-left: 9px; padding-right: 9px; } | |
#HTMLReporter #jasmine_content { position: fixed; right: 100%; } | |
#HTMLReporter .version { color: #aaaaaa; } | |
#HTMLReporter .banner { margin-top: 14px; } |
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
$ -> | |
delaySearch = null # WATCH OUT | |
updatePosts = -> | |
$.get $("#search input").attr("action"), $("#search").serialize(), null, "script" | |
false | |
startUpdatePosts = -> | |
delaySearch = setTimeout updatePosts, 3000 # YOU SEE? |
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
accept(A) :- s(A). | |
s(A) :- append([d], S, A), z2(S). | |
z2(A) :- append([a], S, A), z2(S). | |
z2(A) :- append([b], S, A), z2(S). | |
z2(A) :- append([d], S, A), z4(S). | |
z2(A) :- append([c], S, A), z3(S). | |
z2(A) :- append([e], S, A), z5(S). |