Skip to content

Instantly share code, notes, and snippets.

View shortly-portly's full-sized avatar

shortly-portly

View GitHub Profile
class Admin < BaseModel
table do
column name : String
column user_id : Int64
end
end
// My User List View
module.exports = View.extend({
template: require('../templates/userList.jade'),
autoRender: true,
render: function() {
this.renderWithTemplate();
this.renderCollection(
this.collection,
userDetail,
this.el.querySelector('.itemContainer'))
import {inject} from 'aurelia-framework';
import {Validation} from 'aurelia-validation';
@inject(Validation)
export class Person{
firstName = 'Dave';
lastName = 'Simmons';
constructor(validation) {
bower_components
css
images
js
robots.txt
priv/static/bower_components:
polymer
webcomponentsjs
def parse(self, text):
# Basically, r_tag.split will split the text into
# an array containing, 'non-tag', 'tag', 'non-tag', 'tag'
# so if we alternate this variable, we know
# what to look for. This is alternate to
# line.startswith("{{")
in_tag = False
extend = None
pre_extend = True