Skip to content

Instantly share code, notes, and snippets.

View davidascher's full-sized avatar

David Ascher davidascher

View GitHub Profile
@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
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
<!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;
}
<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 {
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-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" />
@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
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]
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>
@davidascher
davidascher / gist:7497031
Created November 16, 2013 07:14
Not quite working Dockerfile for Hoodie
FROM ubuntu
MAINTAINER David Ascher <[email protected]>
# Get us to a stable place
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y python-software-properties
RUN apt-get remove couchdb