- Make sure you have yo installed:
npm install -g yo
- Run:
yo webapp
- Install grunt-contrib-jade:
npm install grunt-contrib-jade --save-dev
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
document.write("<!DOCTYPE html>"); | |
document.write("<!--[if lt IE 7]> <html class=\"no-js lt-ie9 lt-ie8 lt-ie7\"> <![endif]-->"); | |
document.write("<!--[if IE 7]> <html class=\"no-js lt-ie9 lt-ie8\"> <![endif]-->"); | |
document.write("<!--[if IE 8]> <html class=\"no-js lt-ie9\"> <![endif]-->"); | |
document.write("<!--[if gt IE 8]><!--> <html class=\"no-js\"> <!--<![endif]-->"); | |
document.write(" <head>"); | |
document.write(" <meta charset=\"utf-8\">"); | |
document.write(" <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">"); | |
document.write(" <title><\/title>"); | |
document.write(" <meta name=\"description\" content=\"\">"); |
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
// What about this as a compromise? | |
function test() { | |
page.loadAndWaitForSignInUi() | |
.then(page.setViewportSize.bind(page, 1300, 500); | |
.then(page.patchStreamScribe.bind(page)) | |
.then(page.login.bind(page, account.creds)); | |
} |
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
/** | |
* == Can it be done? == | |
* | |
* I want to get from keyIdentifier to actual character, eg from U+0023 | |
* to \u0023 - which if dropped in a string is the # character: | |
* http://jsconsole.com/?%22\u0023%22 | |
* | |
* The problem is the starting point, and I know I can do it using an | |
* eval, but eval is evil, right? So how can I do it? | |
* |