Skip to content

Instantly share code, notes, and snippets.

var configuration = {
keys: require('./keys.js')
}
var request = require('request');
var body = '{"status": "check '+Math.floor(Math.random()*9999)+'"}';
var user_keys = require('./user_keys.js');
var options = {
url: 'https://api.twitter.com/1.1/statuses/update.json',
var configuration = {
domain: 'localhost',
port: 80,
keys: require('./keys.js')
}
var express = require('express');
var app = express();
app.listen(configuration.port);
var passport = require('passport');
@IainPeregrine
IainPeregrine / Game in 4 Days
Created June 13, 2012 00:25
A working brainstorming session for a game in 4 days project.
Goals (goal):
1 - Addictive Game to be made in four days w/ networking
Metrics (metric):
1 - Show off ability
2 - hone skills
3 - increase personal visibility
4 - *Start donation chain
Basic Strategy (direction):
ceres@ceres-PCV-RX760-UC:~/Desktop/foo$ node app.js
events.js:48
throw arguments[1]; // Unhandled 'error' event
^
Error: listen EACCES
at errnoException (net.js:670:11)
at Array.0 (net.js:756:28)
at EventEmitter._tickCallback (node.js:190:38)
ceres@ceres-PCV-RX760-UC:~/Desktop/foo$
/home/ceres/personal_programs/byond/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
@IainPeregrine
IainPeregrine / Pre
Created May 30, 2012 21:43
After installing, node is still an old version
ceres@ceres-PCV-RX760-UC:~/node$ sudo apt-get install python-software-properties[sudo] password for ceres:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-software-properties is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 164 not upgraded.
ceres@ceres-PCV-RX760-UC:~/node$ sudo apt-add-repository ppa:chris-lea/node.js
You are about to add the following PPA to your system:
Evented I/O for V8 javascript. Node's goal is to provide an easy way to build scalable network programs
More info: https://launchpad.net/~chris-lea/+archive/node.js