Skip to content

Instantly share code, notes, and snippets.

View Inviz's full-sized avatar

Yaroslaff Fedin Inviz

View GitHub Profile
-- Example of a postgre-driven immutable versioned and validated models
DROP TABLE orders CASCADE;
CREATE TABLE orders(
id serial, -- Serial ID
root_id integer, -- ID of a first version
parent_id integer, -- ID of a previous version
version integer, -- Version number
errors jsonb, -- Results of validation
@Inviz
Inviz / dabblet.css
Created April 25, 2012 20:03 — forked from pepelsbey/dabblet.css
Untitled
p span {
position:absolute;
}
@media screen and (max-width:600px) {
body {
background:#CCC;
}
p span {
position:staticz;
var regexp = LSD.RegExp({
'fn_tail': '\\.',
'fn_arguments': '\\g<inside_round>',
'fn_name': '\\g<unicode>',
'fn': '\\g<fn_tail>?\\g<fn_name>\\(\\g<fn_arguments>\\)',
'block_arguments': '\\g<inside_curly>',
'block_body': '\\g<inside_curly>',
'block': '\\{\\g<block_arguments>?\\g<block_body>\\}',
body {
font-family: Helvetica, Verdana
}
p {
padding: 7px 10px;
}
#demo {
border: 1px solid #999;
}
SlidingCanvas = new Class({
Implements: [Options, Events],
options: {
history: true,
suffix: '-page'
},
initialize: function(wrapper, pageWrapper, options) {