##Preview
Simple Dashing widget (and associated job) to display data about tagged emails sent from Mandrill
Created at Homefinder.com
Check out other widgets we've made at https://github.com/Homefinder/dashing-widgets
javascript:jQuery("p").css("font", "75%/150% 'Verdana'").css("letter-spacing", "0px") |
# Ported from: http://www.gamedev.net/topic/318673-fbo-question/ | |
# | |
# Revised to remove the references to cocos2d | |
import pyglet | |
from pyglet.gl import * | |
from ctypes import c_ulong | |
def init(): | |
# Ported from: http://www.gamedev.net/topic/318673-fbo-question/ |
<!-- Add this within the <body>, just before the first <script> or <%:Html.Script%> element --> | |
<script> | |
console.log('Capturing appendChild()'); | |
var base = document.body; | |
var appendChild = base.appendChild; | |
base.appendChild = function(element) { | |
console.log(element); | |
console.trace(); | |
return appendChild.apply(this, arguments); | |
}; |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Example of Knockout Trimmed Observables</title> | |
<style> | |
h1 { font-size: x-large; } | |
h2 { font-size: large; } | |
p { margin: 32px; } | |
pre { padding: 32px; } |
# For use within a Flask application using 'app' | |
def static_for(filename, endpoint='.static'): | |
"""Gets the specified static file.""" | |
return url_for(endpoint, filename=filename) | |
app.jinja_env.globals.update(static_for=static_for) |
$(element).click(function(e) { | |
// Allow the link to act normally when middle-clicking | |
// or clicking with a modifier key | |
if (e.which !== 1 || e.shiftKey || e.ctrlKey || e.altKey) { | |
return true; | |
} | |
// --YOUR CODE-- | |
} |
from flask import Flask, render_template | |
app = Flask(__name__) | |
@app.route('/') | |
def index(): | |
# Expected value | |
ids = [u"one", u"two's", u'"three"'] |
web: python -u app.py |
web: python -u app.py |
##Preview
Simple Dashing widget (and associated job) to display data about tagged emails sent from Mandrill
Created at Homefinder.com
Check out other widgets we've made at https://github.com/Homefinder/dashing-widgets