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
{ | |
"restartable": "rs", | |
"ignore": [ | |
".git", | |
"node_modules/**/node_modules" | |
], | |
"verbose": true, | |
"execMap": { | |
"js": "node --harmony" | |
}, |
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
window.onload = -> | |
preloadImages = undefined | |
preloadImages = (array, waitForOtherResources, timeout) -> | |
imgs = undefined | |
list = undefined | |
loadNow = undefined | |
loaded = undefined | |
t = undefined | |
timer = undefined | |
loaded = false |
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 gulp = require('gulp'); | |
var htmlmin = require('gulp-htmlmin'); | |
gulp.task('minifyHbs', function() { | |
return gulp.src('dev/templates/**/*.hbs') | |
.pipe(htmlmin({ | |
collapseWhitespace: true, | |
removeComments: true, |
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
const crypto = require('crypto'); | |
let key = crypto.randomBytes(32), | |
text = 'test'; | |
function encChaPoly(key, data, cb){ | |
try { | |
let iv = crypto.randomBytes(12), | |
cipher = crypto.createCipheriv('chacha20-poly1305', key, iv, { | |
authTagLength: 16 |
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
{ | |
"width": 800, | |
"height": 600, | |
"useContentSize": false, | |
"center": true, | |
"minWidth": 0, | |
"minHeight": 0, | |
"resizable": true, | |
"movable": true, | |
"minimizable":true, |