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 client = new xmpp.Client({ | |
jid: '[email protected]', // 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/ |
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
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 [email protected] | |
npm info using [email protected] | |
npm verb config file /home/alfred/.npmrc |
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
Here's the results: | |
alfred@ubuntu:~/apps/test/node_modules/tar$ npm test | |
> [email protected] 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 |
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
/** | |
* Module dependencies. | |
*/ | |
var express = require('express'); | |
var app = module.exports = express.createServer(); | |
// Configuration |
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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> | |
<meta name="description" content=""> | |
</head> | |
<body> | |
<script type="text/javascript" src="build/output/knockout-latest.js"></script> | |
<script type="text/javascript" src="https://raw.github.com/bestiejs/benchmark.js/v1.0.0/benchmark.js"></script> |
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 Benchmark = require('benchmark'); | |
var suite = new Benchmark.Suite; | |
require('./release/sugar-full.development'); | |
var empty = []; | |
var with500 = []; | |
500..times(function () { | |
with500.push({}); |
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 path = '#thePopoverContent', | |
element = $('#theButtonThatOpensThePopover')[0]; | |
$(document).click(function (e) { | |
if (this !== element && | |
e.target !== element && | |
$('.popover').length && | |
!$(e.target).parents(path).length) { | |
hide(); |
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
> [email protected] test /home/alfred/repos/aws2js | |
> tools/test.sh | |
Running tests on node.js v0.10.13 | |
[72% | 34/47 | + 33 | - 0] s3-signurl | |
assert.js:324 | |
assert.ifError = function(err) { if (err) {throw err;}}; | |
^ | |
Error: Redirect response without the Location header. | |
at Object.formattedError (/home/alfred/repos/aws2js/node_modules/http-get/lib/tools.js:251: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
'use strict'; | |
var common = require('./includes/common.js'); | |
var assert = require('assert'); | |
var s3 = require('../').load('s3'); | |
var fs = require('fs'); | |
function wrap(name) { | |
var fn = fs[name]; | |
wrap[name] = 0; |
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
=== release test-http-dns-error === | |
Path: simple/test-http-dns-error | |
assert.js:92 | |
throw new assert.AssertionError({ | |
^ | |
AssertionError: "EADDRINFO" == "ENOTFOUND" | |
at ClientRequest.<anonymous> (/home/alfred/repos/node/test/simple/test-http-dns-error.js:49:12) | |
at ClientRequest.EventEmitter.emit (events.js:95:17) | |
at CleartextStream.socketErrorListener (http.js:1547:9) | |
at CleartextStream.EventEmitter.emit (events.js:95:17) |
OlderNewer