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
| # A simple Makefile alternative to using Grunt for your static asset compilation | |
| # | |
| ## Usage | |
| # | |
| # $ npm install | |
| # | |
| # And then you can run various commands: | |
| # | |
| # $ make # compile files that need compiling | |
| # $ make clean all # remove target files and recompile from scratch |
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 foo(){bar = 10; var bar = 20;}()); | |
| alert(bar) // ReferenceError: bar is not defined | |
| (function foo(){bar = 10;}()); | |
| alert(bar) // 10 |
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
| #!/bin/sh | |
| T=/usr/local/mycompany/my-project | |
| chown -R www-data:root $T | |
| find $T -type d ! -perm 770 -print -exec chmod 770 {} \; | |
| find $T -type f ! -perm 660 ! -name "*.sh" -print -exec chmod 660 {} \; | |
| find $T -type f ! -perm 770 -name "*.sh" -print -exec chmod 770 {} \; | |
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 page = require('webpage').create(), | |
| t, address; | |
| if (phantom.args.length === 0) { | |
| console.log('Usage: dumpExtLoader.js <some URL>'); | |
| phantom.exit(); | |
| } else { | |
| page.onConsoleMessage = function (msg) { | |
| console.log(msg); | |
| }; |
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
| // This belongs in %SDK%/compat/scripts/ | |
| (function() { | |
| var defaultJsb3Object = { | |
| "projectName": "Project Name", | |
| "licenseText": "Copyright(c) 2012 Company Name", | |
| "builds": [ | |
| { | |
| "name": "All Classes", | |
| "target": "all-classes.js", |
NewerOlder