Skip to content

Instantly share code, notes, and snippets.

View alFReD-NSH's full-sized avatar

Farid Nouri Neshat alFReD-NSH

View GitHub Profile
@alFReD-NSH
alFReD-NSH / app.js
Created April 27, 2012 08:57
Express example
/**
* Module dependencies.
*/
var express = require('express');
var app = module.exports = express.createServer();
// Configuration
@alFReD-NSH
alFReD-NSH / node-tar-test-res.log
Created March 29, 2012 11:43
node-tar test results on ubuntu
Here's the results:
alfred@ubuntu:~/apps/test/node_modules/tar$ npm test
> tar@0.1.13 test /home/alfred/apps/test/node_modules/tar
> tap test/*.js
ok test/00-setup-fixtures.js ............................ 4/4
not ok test/extract.js ................................ 13/44
@alFReD-NSH
alFReD-NSH / corrupt.log
Created March 29, 2012 04:18
NPM logs for corrupt cache packages
alfred@ubuntu:~/apps/duty$ npm install request -ddd
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli '/home/alfred/.nvm/v0.6.14/bin/npm',
npm verb cli 'install',
npm verb cli 'request',
npm verb cli '-ddd' ]
npm info using npm@1.1.13
npm info using node@v0.6.14
npm verb config file /home/alfred/.npmrc
@alFReD-NSH
alFReD-NSH / facebook-xmpp.js
Created October 1, 2011 08:55 — forked from naltatis/facebook-xmpp.js
connecting to Facebook via node-xmpp
var client = new xmpp.Client({
jid: '-123456@chat.facebook.com', // where 123456 is the users facebook id
api_key: apiKey, // api key of your facebook app
secret_key: secretKey, // secret key of your facebook app
session_key: sessionKey, // users current session key
host: 'chat.facebook.com'
});
// you can find more details here http://developers.facebook.com/docs/chat/