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 output = sizlate.render($('div#example'), { ‘h1’: ‘Goodbye’}); |
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
if ('serviceWorker' in navigator) { | |
navigator.serviceWorker.register('/service-worker.js'); | |
} else { | |
appCacheNanny.start() | |
} | |
appCacheNanny.on('updateready', function () { | |
location.reload() | |
}) |
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
if ('serviceWorker' in navigator) { | |
navigator.serviceWorker.register('/service-worker.js'); | |
} else { | |
appCacheNanny.start() | |
} | |
appCacheNanny.on('updateready', function () { | |
location.reload() | |
}) |
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
validate: { | |
params: { | |
userIds: Joi.array().items(Joi.string()).required().min(1) | |
} | |
}, |
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
'use strict' | |
/** | |
* Generates an app cache file based on the spec provided. | |
*/ | |
var fs = require('fs') | |
var files = [ | |
'CACHE MANIFEST' | |
] |
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
'use strict' | |
var async = require('async') | |
var sizlate = require('sizlate') | |
var doSizlate = require('./do-sizlate') | |
var getFile = require('./read-file') | |
var loadComponents = require('./load-components') | |
/** |
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 path = require('path'); | |
require.main._req = require.main.require; | |
require.main.require = function(mod) { | |
if ((mod.startsWith('./') || mod.startsWith('/'))) { | |
var fullPath = path.join(__dirname,'\\',mod); | |
return require.main._req(fullPath); | |
} | |
return require.main._req(mod); | |
} |
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
{ | |
"title": " --- Become Pirate legends in a trecherous shared world --- ", | |
"play": "play trailer" | |
} |
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
{ | |
"trailer": { | |
"id":"pyveR8bKLfA" | |
}, | |
"updated": { | |
"id":"pyveR8bKLfA" | |
} | |
} |
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
{ | |
"header": "This is the header", | |
"middle": "I got somewhere in the middle", | |
"footer": "This is the footer" | |
} |