This file contains hidden or 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
{ | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"$id": "gav-service-dump-file-shrink", | |
"type": "object", | |
"properties": { | |
"structure": { | |
"type": "array", | |
"description": "the structure of the criteria tree", | |
"items": { | |
"title": "CriteriaTreeNode", |
This file contains hidden or 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 rule = | |
{ | |
name: 'parameter' | |
, path: /.*p-(\d+).*/ // the regex to execute against the pathname | |
, field: 'paging' | |
, value: function(match){ | |
return match[0]; | |
} | |
}; |
This file contains hidden or 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 log = require('ee-log') | |
, nunjucks = require('nunjucks') | |
, path = require('path'); | |
var env = new nunjucks.Environment( | |
new nunjucks.FileSystemLoader(path.join(__dirname, 'templates')) | |
); | |
try { | |
env.render('test.nunjucks.html', {}, function(err, res){ |
This file contains hidden or 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 dispatcher = { | |
fork: function(join){ | |
var context = { | |
expected: 0 | |
, errors: [] | |
, results: [] | |
, addResult: function(error, result){ | |
this.errors.push(error); | |
this.results.push(result); | |
} |
This file contains hidden or 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
(function(){ | |
// used for the xss game | |
alert('xss'); | |
})(); |
This file contains hidden or 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
/** | |
* Consider line 17 which will throw an error instead of passing it to the callback. | |
*/ | |
{ | |
render: function(ctx, frame, cb) { | |
if (typeof ctx === 'function') { | |
cb = ctx; | |
ctx = {}; | |
} | |
else if (typeof frame === 'function') { |
This file contains hidden or 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 argumentsList = function(first, more){ | |
var sg = [first]; | |
for(var i=0; i<more.length; i++){ | |
sg.push(more[i][1]); | |
} | |
return sg; | |
}; | |
} |
This file contains hidden or 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 Water = function(value){ | |
this.value = value; | |
this.visit = function(visitor){ | |
return visitor.visitWater(this); | |
}; | |
}; | |
} | |
/** |
This file contains hidden or 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
<?php | |
class Node | |
{ | |
protected $left; | |
protected $right; | |
protected $parent; | |
protected $children; | |
protected $id; |
This file contains hidden or 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
{ | |
"require": { | |
"wordpress/i18n": "*" | |
}, | |
"repositories": [ | |
{ | |
"type": "package", | |
"package": { | |
"name": "wordpress/i18n", | |
"type": "vcs", |
NewerOlder