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
-- 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 |
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
p span { | |
position:absolute; | |
} | |
@media screen and (max-width:600px) { | |
body { | |
background:#CCC; | |
} | |
p span { | |
position:staticz; |
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
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>\\}', | |
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
body { | |
font-family: Helvetica, Verdana | |
} | |
p { | |
padding: 7px 10px; | |
} | |
#demo { | |
border: 1px solid #999; | |
} |
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
SlidingCanvas = new Class({ | |
Implements: [Options, Events], | |
options: { | |
history: true, | |
suffix: '-page' | |
}, | |
initialize: function(wrapper, pageWrapper, options) { |