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
prompt: Is this ok?: (yes) | |
info: Creating snapshot 0.0.0-37 | |
info Uploading: [=== ] 12% | |
info: Updating app skyscraper | |
info: Activating snapshot 0.0.0-37 for skyscraper | |
info: Starting app skyscraper | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
error: There was an error while attempting to deploy the app | |
error: |
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
➜ apis git:(master) ✗ jitsu deploy | |
info: Welcome to Nodejitsu ylgur | |
info: jitsu v0.10.3-1, node v0.8.1 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in server.js | |
info: Creating snapshot 0.0.0-44 | |
info Uploading: [============================ ] 97% | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error |
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 formWarning(text,tab){ | |
if(tab == 'location' && !mapTabLoaded){ | |
loadMap(); | |
mapTabLoaded = true; | |
} | |
var warning = '<div class="alert">'+ | |
'<button type="button" class="close" data-dismiss="alert">×</button>'+ | |
'<strong>ATH!</strong> '+text+ | |
'</div>'; | |
$('.submit-warning').html(warning); |
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($){ | |
$.fn.instagram = function(options) { | |
var that = this, | |
apiEndpoint = "https://api.instagram.com/v1", | |
settings = { | |
hash: null | |
, userId: null | |
, locationId: null | |
, search: null | |
, accessToken: null |
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 cluster = require('cluster'); | |
if (cluster.isWorker) { | |
console.log('Worker ' + process.pid + ' has started.'); | |
// Send message to master process. | |
process.send({msgFromWorker: 'This is from worker ' + process.pid + '.'}) | |
// Receive messages from the master process. |
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
#!/bin/bash | |
###Node.js ### | |
sudo apt-get update | |
sudo apt-get install -y python-software-properties | |
sudo apt-get install -y python | |
sudo apt-get install -y g++ | |
sudo apt-get install -y make | |
sudo apt-get install -y software-properties-common | |
sudo add-apt-repository --yes ppa:chris-lea/node.js |
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 chokidar = require('chokidar'), | |
spawn = require('child_process').spawn, | |
utils = require('util'); | |
var watcher = chokidar.watch('./', {ignored: /^build/, persistent: true}); | |
var lastUpdate = new Date().getTime(); | |
function update(path){ | |
if(typeof path === 'object' || path.indexOf('Resources') !== -1 || path.indexOf('build') !== -1 || path.indexOf('monitor.js') !== -1){ | |
return; |
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
#!/bin/bash | |
echo "Starting the install process" | |
sleep 2 | |
sudo apt-get update | |
echo "Installing Apache2" | |
sleep 2 | |
sudo apt-get install -y apache2 |
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 win = Ti.UI.createWindow({}); | |
win.addEventListener("open", function(e) { | |
win.activity.addEventListener("resume", function() { | |
Ti.App.fireEvent('resume') | |
}); | |
//Notice the pause event | |
win.activity.addEventListener("pause", function() { | |
Ti.App.fireEvent('paused') | |
}); |
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 parser = require('apis-parser'); | |
module.exports = function(app,prefix){ | |
console.log('Within function',prefix) | |
var flights = require('flights'); | |
app.get(prefix + '/:type/kef',function(req,res){ | |
parser(res)(function(cb){ | |
flights.kef({ |
OlderNewer