⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
var applescript = require('applescript'); | |
var http = require('http'); | |
require('shelljs/global'); | |
var script = | |
'tell application "System Events"\n\ | |
if name of every process contains "ScreenSaverEngine" then \n\ | |
tell application "ScreenSaverEngine"\n\ | |
quit\n\ | |
end tell\n\ |
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
(* Launches Google Chrome with web security disabled. | |
This disables the same origin policy for API calls and can | |
ease development from a dev environment not in a server's CORS settings *) | |
(* This same command can be sent to Canary by changing | |
'Google Chrome.app' to 'Google Chrome Canary.app' *) | |
do shell script "open -a 'Google Chrome.app' --args --disable-web-security --allow-running-insecure-content" | |
(* If you want to not use your current user in Chrome you can set --user-data-dir to point to /tmp |
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
var lib = require("./manifest.js"); | |
lib.mkmanifest({ | |
filename : "cache" | |
,path : "../coffee" | |
,version : "02" | |
,exclude : ['/.DS_Store', '/.htaccess', '/cache.manifest'] | |
/* | |
,network : ['/connect.php','/read.php'] | |
,fallback : ['/offline.html'] |