Skip to content

Instantly share code, notes, and snippets.

View davidascher's full-sized avatar

David Ascher davidascher

View GitHub Profile
davida@suki ~/s/ceci-polymer> xmllint ceci-app-test.html --relaxng ceci-app.rng
<?xml version="1.0"?>
<ceci-app>
<ceci-card visible="true">
<ceci-listen on="green" for="show"/>
<ceci-top>
<ceci-button label="Say hello!" value="hi"><ceci-broadcast on="blue" from="click"/></ceci-button>
</ceci-top>
<ceci-middle>
<ceci-button label="Flip!"><ceci-broadcast on="red" from="click"/></ceci-button>
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/0.10.15/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'install',
1 verbose cli 'bower',
1 verbose cli '-g' ]
2 info using [email protected]
3 info using [email protected]
4 verbose cache add [ 'bower', null ]
5 verbose cache add name=undefined spec="bower" args=["bower",null]
@davidascher
davidascher / gist:7236821
Created October 30, 2013 17:39
Q4 priorities

Q4 Priorities

Contribution Infrastructure

  • Setting up static website for Appmaker
    • what / why / how
    • /teaching
    • /getinvolved
  • /code
<element name="app-my-button">
<template>
<link rel="stylesheet" href="{{ASSET_HOST}}/assets/style/app-button.css"></link>
<div>
<button class="button">Woot</button>
</div>
</template>
<friends>app-fireworks,app-counter</friends>
<thumbnail>
<img src="http://localhost:5000/assets/images/thumbnails/app-button.png" />
davida@suki ~/s/Ceci> git diff ceci.js
diff --git a/ceci.js b/ceci.js
index e9830f0..f6908e9 100644
--- a/ceci.js
+++ b/ceci.js
@@ -43,9 +43,8 @@ define(function() {
element.emit = function (data) {
element.channels.out.forEach(function(channel) {
- var customEvent = document.createEvent('CustomEvent');
<element name="app-snapshot">
<template>
<button onclick="console.log(this); $(this).startVideo()">take a pix!</button>
<div class="videoscreen">
</div>
</template>
<script type="text/ceci">
Ceci(this, {
startVideo: function() {
try {
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
div.span1, div.span2, div.span3, div.span4, div.span5 {
background-color: orange;
float: left;
height: 30px;
}
Google tried to deliver your message, but it was rejected by the server for the recipient domain mozilla.com by mx2.corp.phx1.mozilla.com. [63.245.216.70].
The error that the other server returned was:
554 5.7.1 <[email protected]>: Relay access denied
@davidascher
davidascher / gist:5077855
Created March 3, 2013 19:31
Example hard-to-debug spark traceback
[11:29:20.910] Exception from Meteor.flush: Spark._Patcher.prototype.match@http://localhost:3000/packages/spark/patch.js?9b7ea4d348fdbd637d8c829dd3fc27e96c11c94f:237
Spark._patch/<@http://localhost:3000/packages/spark/patch.js?9b7ea4d348fdbd637d8c829dd3fc27e96c11c94f:61
Spark._patch/visitNodes@http://localhost:3000/packages/spark/patch.js?9b7ea4d348fdbd637d8c829dd3fc27e96c11c94f:17
Spark._patch/visitNodes@http://localhost:3000/packages/spark/patch.js?9b7ea4d348fdbd637d8c829dd3fc27e96c11c94f:18
Spark._patch/visitNodes@http://localhost:3000/packages/spark/patch.js?9b7ea4d348fdbd637d8c829dd3fc27e96c11c94f:18
Spark._patch/visitNodes@http://localhost:3000/packages/spark/patch.js?9b7ea4d348fdbd637d8c829dd3fc27e96c11c94f:18
Spark._patch/visitNodes@http://localhost:3000/packages/spark/patch.js?9b7ea4d348fdbd637d8c829dd3fc27e96c11c94f:18
Spark._patch/visitNodes@http://localhost:3000/packages/spark/patch.js?9b7ea4d348fdbd637d8c829dd3fc27e96c11c94f:18
Spark._patch@http://localhost:3000/packages/spark/patch.js?9b7ea4d348
{"d":{"results":[{"__metadata":{"uri":"https://api.datamarket.azure.com/Data.ashx/Bing/Search/v1/Composite?Sources=\u0027web\u0027&Query=\u0027tomato\u0027&$skip=0&$top=1","type":"ExpandableSearchResult"},"ID":"def746e4-ca9f-47bc-ab0a-1d419a75b773","WebTotal":"621000","WebOffset":"0","ImageTotal":"","ImageOffset":"","VideoTotal":"","VideoOffset":"","NewsTotal":"","NewsOffset":"","SpellingSuggestionsTotal":"","AlteredQuery":"","AlterationOverrideQuery":"","Web":[{"__metadata":{"uri":"https://api.datamarket.azure.com/Data.ashx/Bing/Search/v1/ExpandableSearchResultSet(guid\u0027def746e4-ca9f-47bc-ab0a-1d419a75b773\u0027)/Web?$skip=0&$top=1","type":"WebResult"},"ID":"f8d6c3a3-c977-4422-8b4f-ec3d91efb1a6","Title":"Tomato - Wikipedia, the free encyclopedia","Description":"The word \"tomato\" may refer to the plant (Solanum lycopersicum) or the edible, typically red, fruit that it bears. Having originated in America, the tomato was spread ...","DisplayUrl":"en.wikipedia.org/wiki/Tomato","Url":"http://en.wikipedia.or