This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package authz | |
import input.user.name | |
import input.resource.name | |
import input.operation | |
default allow = false | |
roles := { | |
"admin": ["*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Literate CoffeeScript plugin for Jekyll | |
# | |
# This plugin adds both a converter for `.litcoffee` files, as well as | |
# a filter, `litcoffeeify`, for converting literate CoffeeScript files | |
# into HTML. | |
# | |
# Basically, this is all just a thin wrapper around the existing | |
# `Markdown` converter with the `RedcarpetParser`, only with the | |
# default language for code blocks set to `'coffee'` instead of | |
# `'text'`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sequelize = require 'sequelize' | |
sequelize = new Sequelize 'sequelize-test', 'postgres', 'changeme123', | |
host: 'localhost' | |
port: 5432 | |
dialect: 'postgres' | |
A = sequelize.define 'A', name: Sequelize.STRING | |
B = sequelize.define 'B', name: Sequelize.STRING | |
A.addHook 'afterCreate', (instance, done) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sequelize = require 'sequelize' | |
sequelize = new Sequelize 'sequelize-test', 'postgres', 'changeme123', | |
host: 'localhost' | |
port: 5432 | |
dialect: 'postgres' | |
A = sequelize.define 'a', name: Sequelize.STRING | |
Attribute = sequelize.define 'attribute', name: Sequelize.STRING | |
A.hasMany Attribute |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sequelize = require 'sequelize' | |
sequelize = new Sequelize 'sequelize-test', 'postgres', 'changeme123', | |
host: 'localhost' | |
port: 5432 | |
dialect: 'postgres' | |
A = sequelize.define 'a', name: Sequelize.STRING | |
B = sequelize.define 'b', | |
name: | |
type: Sequelize.STRING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sequelize = require 'sequelize' | |
sequelize = new Sequelize 'sequelize-test', 'postgres', 'changeme123', | |
host: 'localhost' | |
port: 5432 | |
dialect: 'postgres' | |
A = sequelize.define 'a', name: Sequelize.STRING | |
B = sequelize.define 'b', name: Sequelize.STRING |