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 gui = require("nw.gui"), | |
child_process = require("child_process"), | |
win = gui.Window.get(), | |
child; | |
if (process.platform == "darwin") { | |
child = child_process.spawn("open", ["-n", "-a", process.execPath.match(/^([^\0]+?\.app)\//)[1]], {detached:true}); | |
} else { | |
child = child_process.spawn(process.execPath, [], {detached: true}); | |
} |
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
browserSync = require 'browsersync' | |
# if you're using gulp, replace this with `require('gulp-util').colors` | |
chalk = require 'chalk' | |
# method - {String} (uppercase) | |
colourMethod = (method) -> | |
map = | |
'GET': 'green' | |
'POST': 'yellow' | |
'PUT': 'blue' |
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
taskkill /F /IM <processname.exe> /T |
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
convertBooleanToStringNumber = (boolean) -> +boolean + '' |
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
{ | |
id: 1, | |
type: deals, | |
attributes: { | |
... | |
}, | |
relationships: { | |
events: { | |
data: [{ | |
type: notes |
OlderNewer