Skip to content

Instantly share code, notes, and snippets.

View santiago's full-sized avatar

Santiago Gaviria santiago

  • Ontoworks
  • Planet Earth
View GitHub Profile
debug - setting request GET /socket.io/1/xhr-polling/749108865538246791
debug - setting poll timeout
debug - clearing poll timeout
debug - xhr-polling writing 1::
debug - set close timeout for client 749108865538246791
debug - xhr-polling received data packet 5:::{"name":"apikey","args":["e21b6f9699f0604b602ddcf7eabe18e68f9d6adf"]}
debug - setting request GET /socket.io/1/xhr-polling/749108865538246791
debug - setting poll timeout
debug - discarding transport
debug - cleared close timeout for client 749108865538246791
// No existe NINGUNA diferencia entre esto ...
var hola= function() {
var aaa= 'hola';
(function(foo) {
print foo;
})(aaa)
}
// ... y esto ...
@santiago
santiago / code
Created September 22, 2011 01:13
function send(stanza, _swarms) {
var swarms = [];
var self= this;
if (_swarms) {
swarms = _swarms;
} else {
swarms = this.swarms;
}
var len = swarms.length;
// =================================
// BEFORE
// =================================
for (var i = 0; i < len; i++) {
if (stanza.presence) {
stanza.presence.to = swarms[i] + '@' +
this.swarmsrv + '/' + this.nickname;
} else if (stanza.message) {
stanza.message.to = swarms[i] + '@' + this.swarmsrv;
debug - xhr-polling received data packet �157�5:::
1
{
"name":"message",
"args": [
{
"presence": {
"to":"fbf424758458cc14cbd319c2bd44c060a1f5d1e7@swarms.xmpp.bugswarm-dev/browser-93726878426969051316647892857"}
}
wlan0 Scan completed :
Cell 01 - Address: 00:26:5A:A4:F3:6A
ESSID:"LEIS1"
Mode:Managed
Frequency:2.412 GHz (Channel 1)
Quality=93/100 Signal level=-57 dBm Noise level=-96 dBm
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 9 Mb/s
18 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 12 Mb/s
24 Mb/s; 48 Mb/s
:/home/juan$ sudo cat .ssh/authorized_keys
SSH2 AAAAB3NzaC1yc2EAAAABJQAAAIByZmZNQq0XhnEsDB6Hd9gGXaPCU7NKs1/hIcUz/xH6ZrOHM0vPYCViBuMI9WvC7sWbgF0haNRetg2/eK+/TGEztYmP15j9DwZnqnl6WBOpbX80zmdl9i0YZanxjIO3LCMTuRVhNFcZKTS7omM6MUMjWJciVT0VEILy1RrYhUSYKw==
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAhInc8kd4BKH2EZFXL9dg/F8ZhvuY7U9CVrX72o7YC52eyJj500waG4RnkChJilczKf13RWzwYNwVHawXZZnMQhPDfiBFlaMogl1Kn6gIXQcgo/gsibeM22EWIdA1f7Us4/YFVKJD0zsbWdiSSbMx38a3QZyLz4voq7WIJB6S5+k=
p
| This is a big paragraph
| This is a big paragraph
| This is a big paragraph
| This is a big paragraph
a(href='#') i should work
-> [{"code":"003","message":"Swarm not found.","httpCode":404}]
[{"code":"003","message":"Swarm not found.","httpCode":404}]
at Promise.<anonymous> (/Users/santiago/Projects/buglabs/bugswarm/lib/swarms/repository.js:177:22)
at Promise.<anonymous> (/Users/santiago/Projects/buglabs/bugswarm/node_modules/mongoose/lib/mongoose/promise.js:120:8)
at Promise.<anonymous> (events.js:64:17)
at Promise.emit (/Users/santiago/Projects/buglabs/bugswarm/node_modules/mongoose/lib/mongoose/promise.js:57:38)
at Promise.complete (/Users/santiago/Projects/buglabs/bugswarm/node_modules/mongoose/lib/mongoose/promise.js:68:20)
at /Users/santiago/Projects/buglabs/bugswarm/node_modules/mongoose/lib/mongoose/query.js:669:34
at /Users/santiago/Projects/buglabs/bugswarm/node_modules/mongoose/node_modules/mongodb/lib/mongodb/cursor.js:130:9
at /Users/santiago/Projects/buglabs/bugswarm/node_modules/mongoose/node_modules/mongodb/lib/mongodb/cursor.js:176:11
{ socket:
{ bufferSize: 0,
fd: null,
type: 'tcp4',
allowHalfOpen: false,
_writeImpl: [Function],
_readImpl: [Function],
_shutdownImpl: [Function],
_readWatcher: null,
destroyed: true,