Skip to content

Instantly share code, notes, and snippets.

Matthew Tschiegg tschieggm

  • Google
  • Boston MA
Block or report user

Report or block tschieggm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View angular-example.html
<!-- this breaks -->
<div>
<div class="row-fluid">
<sd:directive ng-repeat="x in list" param="x" />
<h1>Hello?</h1>
</div>
</div>
<!-- one working alternative -->
<div>
View comment.md

This is an anti-pattern explicitly called out in the SqlAlchemy documents.

From the docs

 ### this is the **wrong way to do it** ###

class ThingOne(object):
    def go(self):
        session = Session()
@tschieggm
tschieggm / flask_server.py
Created Nov 22, 2013
Stackdriver webhook server example
View flask_server.py
import string
import sys
import logging
import json
from flask import Flask
from flask import Response, request
logger = logging.getLogger(__name__)
logger.info("Stackdriver webhook-sample starting up on %s" % (string.replace(sys.version, '\n', ' ')))
@tschieggm
tschieggm / app-start.js
Created Sep 5, 2012
Trying to learn Marionette
View app-start.js
(function (app, $, backbone, marionette, options, undefined) {
app = new marionette.Application();
app.addInitializer(function () {
app.Log("configuring marionette template compiler");
marionette.TemplateCache.prototype.compileTemplate = function (rawTemplate) {
return Hogan.compile(rawTemplate);
};
});
You can’t perform that action at this time.