npm install cordova
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
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
error: There was an error while attempting to deploy the app | |
error: | |
error: Target script does not exist: /opt/haibu/carapace-versions/0.8.16/node_modules/haibu-carapace/bin/carapace | |
error: Error output from Haibu: | |
error: | |
error: Error: Target script does not exist: /opt/haibu/carapace-versions/0.8.16/node_modules/haibu-carapace/bin/carapace | |
error: at /root/haibu-orchestra/node_modules/haibu/node_modules/forever-monitor/lib/forever-monitor/monitor.js:143:26 | |
error: at process.startup.processNextTick.process._tickCallback (node.js:244:9) |
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
(function (window, document) { | |
'use strict'; | |
var api = function (cmd, opts, cb) { | |
opts.cmd = cmd; | |
var id = 'APICB' + Math.round(Math.random() * 1e9), |
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
function uuid5(data) { | |
var out = crypto.createHash('sha1').update(data).digest(); | |
out[8] = out[8] & 0x3f | 0xa0; // set variant | |
out[6] = out[6] & 0x0f | 0x50; // set version | |
var hex = out.toString('hex', 0, 16); | |
return [ | |
hex.substring( 0, 8), |
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
diff --git a/src/third_party/s2/util/endian/endian.h b/src/third_party/s2/util/endian/endian.h | |
index 9def73f..9de7ab0 100755 | |
--- a/src/third_party/s2/util/endian/endian.h | |
+++ b/src/third_party/s2/util/endian/endian.h | |
@@ -178,14 +178,5 @@ class LittleEndian { | |
}; | |
-// This one is safe to take as it's an extension | |
-#define htonll(x) ghtonll(x) |
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 os = require('os'); | |
var async = require('async'); | |
var cluster = require('cluster'); | |
if (cluster.isWorker) { | |
process.on('message', function (msg) { | |
// Do the Phantom JS stuff |
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
function run () { | |
var updateButton = document.querySelector('.branch-action-btn button') | |
var mergeButton = document.querySelector('.merge-message button') | |
if (!mergeButton.disabled) { | |
mergeButton.click() | |
return | |
} | |
if (!updateButton.disabled) { |
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
line-in: | |
clang++ darwin.cc -framework AudioToolBox -framework CoreFoundation -o line-in |
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
import UIKit | |
import PlaygroundSupport | |
/********************************************** | |
* Library Types * | |
**********************************************/ | |
protocol REElement { | |
func render() -> REElement? |
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
const input = require('./spec3.json') | |
function titleCase(snake) { | |
return snake.replace(/(^|_)([a-z])/g, (s) => s.replace('_', '').toUpperCase()) | |
} | |
function isPrimitive(schema) { | |
switch (schema.type) { | |
case 'boolean': | |
case 'number': |
OlderNewer