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
#include <stdio.h> | |
#include <stdlib.h> | |
#define SIZE 10 | |
int q , r , i = 0; | |
int RA[SIZE] = {1,2,3,4,5,6,7,8,9,10}; | |
int STACK_Q [SIZE] = {0}; | |
int STACK_R [SIZE] = {0}; | |
int main() |
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
Updating app testy | |
info: Activating snapshot 0.0.1-2 for testy | |
info: Starting app testy | |
error: Error running command deploy | |
error: Nodejitsu Error (500): Internal Server Error | |
warn: Error returned from Nodejitsu | |
error: Error: socket hang up | |
error: at createHangUpError (http.js:1263:15) | |
error: at Socket.socketOnEnd (http.js:1351:23) | |
error: at TCP.onread (net.js:417:26) |
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
/usr/lib/node_modules/jitsu/lib/jitsu/commands/databases.js:181 | |
results.forEach(function (database) { | |
^ | |
TypeError: Object #<Object> has no method 'forEach' | |
at databases.list (/usr/lib/node_modules/jitsu/lib/jitsu/commands/databases.js:181:15) | |
at Databases.list (/usr/lib/node_modules/jitsu/node_modules/nodejitsu-api/lib/client/databases.js:56:5) | |
at Request.Client.request [as _callback] (/usr/lib/node_modules/jitsu/node_modules/nodejitsu-api/lib/client/client.js:109:5) | |
at Request.request.self.callback (/usr/lib/node_modules/jitsu/node_modules/nodejitsu-api/node_modules/request/main.js:104:22) | |
at Request.<anonymous> (/usr/lib/node_modules/jitsu/node_modules/nodejitsu-api/node_modules/request/main.js:458:18) | |
at Request.EventEmitter.emit (events.js:88:17) |
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
grant >> jitsu databases list | |
info: Welcome to Nodejitsu imike | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command databases list | |
/usr/lib/node_modules/jitsu/lib/jitsu/commands/databases.js:181 | |
results.forEach(function (database) { | |
^ | |
TypeError: Object #<Object> has no method 'forEach' | |
at databases.list (/usr/lib/node_modules/jitsu/lib/jitsu/commands/databases.js:181:15) |
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
http://seanstechnologyblog.blogspot.com/2010/09/kannel-configuration-file.html |
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
//express3.0 | |
var express = require('express'); | |
var app = express(); | |
app.set('port', 3000); | |
app.set('views', __dirname + '/views'); | |
app.set('view engine', 'jade'); | |
app.use(express.bodyParser()); | |
app.use(express.methodOverride()); | |
//session & cookie |
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
#include <unistd.h> | |
#include <fcntl.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <ev++.h> | |
#include <netinet/in.h> | |
#include <sys/socket.h> | |
#include <resolv.h> | |
#include <errno.h> | |
#include <list> |
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 io = require('socket.io'); | |
var express = require('express'); | |
var app = express.createServer(); | |
var server = app.listen(8080); | |
var ioServer = io.listen(server); | |
app.get('/', function (req, res) { | |
res.sendfile(__dirname + '/index.html'); | |
}); |
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
/** | |
* Module dependencies | |
*/ | |
var express = require('express'); | |
var fs = require('fs'); | |
var mongoose = require('mongoose'); | |
var Schema = mongoose.Schema; | |
// img path |
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 express = require('express') | |
, passport = require('passport') | |
, sessionStore = new express.session.MemoryStore() | |
, app = module.exports = express.createServer() | |
, nowjs = require('now'); | |
app.configure( function () { | |
app.use(express.bodyParser()); |
OlderNewer