Skip to content

Instantly share code, notes, and snippets.

View ohcibi's full-sized avatar
🕴️
Elevated

Tobias Witt ohcibi

🕴️
Elevated
View GitHub Profile
<script type="text/x-handlebars" data-template-name="rooms">
<ul id="rooms">
{{#each controller}}
<li>
<h1>{{name}}</h1>
{{partial devices}}
</li>
{{/each}}
</ul>
</script>
@ohcibi
ohcibi / error
Last active December 13, 2015 22:39
Uncaught TypeError: Cannot call method 'html' of null ember.js:17918
@ohcibi
ohcibi / index.html
Last active December 13, 2015 23:49
<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>
@ohcibi
ohcibi / views.js
Last active December 14, 2015 02:28
if (App.SingleDeviceView.tabindex == null) App.SingleDeviceView.tabindex = 0;
return App.SingleDeviceView.tabindex++;
// 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
});
})();
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));
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;
/**
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; }
$ ->
delaySearch = null # WATCH OUT
updatePosts = ->
$.get $("#search input").attr("action"), $("#search").serialize(), null, "script"
false
startUpdatePosts = ->
delaySearch = setTimeout updatePosts, 3000 # YOU SEE?
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).