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
ID: 536844296578940928 | |
Created at: Mon Nov 24 11:30:29 +0000 2014 | |
Text: @Wonderm00n epá, é o q está por default na tua api do twitter :P | |
User: espaco99 | |
Permalink: https://twitter.com/espaco99/status/536844296578940928 |
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 path = require("path"); | |
var fs = require("fs"); | |
var Twit = require('twit'); | |
var rateLimiter = {}; | |
var luckyNumber = Math.round(Math.random()*60); | |
var re = /\d+/; | |
var oauth = JSON.parse(fs.readFileSync("./config/twitter_credentials.js", "UTF8")); |
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
list = %w( | |
name1 | |
name2 | |
name3 | |
... | |
) | |
puts list[rand(list.size)] |
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
#define lll h> | |
#define ll1l <stdlib | |
#define ll11 <time | |
#define l11l time | |
#define l1l1 <stdio | |
#define l1ll sleep | |
#define False 1111.111 | |
#define inc1ude2 ll1l.lll | |
#define includeZ ll11.lll | |
#define include2 l1l1.lll |
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
hadoop: 0.20.203.0 | |
hbase: 0.90.4 | |
system: CentOS release 5.6 (Final) Linux 2.6.18-238.19.1.el5 | |
HDFS is running fine (tested) | |
------------ hbase-site.xml | |
<configuration> | |
<property> |
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
# Pseudo distributed Hbase install (using Cloudera distribution) | |
# (all daemons running in one machine) | |
# | |
# Parameters: | |
# $java_installer = Oracle's java rpm.bin file, recommended by Cloudera | |
# Requires: | |
# java installer downloaded and present | |
# | |
# Parameter |
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
<iq type="set" id="an_id" | |
from="cipriani@talleye.com/casa" | |
to="talleye.com"> | |
<query xmlns="jabber:iq:roster"/> | |
</iq> |
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
function startComparison() { | |
// creates 2 search subscriptions and send the request to Collecta XMPP API via Strophejs | |
console.log("Subscribing to nodes: "+ terms[0] +" and "+ terms[1]); | |
connection.send(Collecta.subscribeSearchStanza(terms[0]).tree()); | |
connection.send(Collecta.subscribeSearchStanza(terms[1]).tree()); | |
} |
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 Collecta = { | |
subscribeSearchStanza: function(searchName) { | |
// generate XML for a search subscription on Collecta XMPP API | |
return $iq({type: 'set', from: anonymous_jid, to: 'search.collecta.com', id: searchName }) | |
.c('pubsub', {xmlns: 'http://jabber.org/protocol/pubsub'}) | |
.c('subscribe', {node: 'search', jid: anonymous_jid}) | |
.up().c('options') | |
.c('x', {xmlns: 'jabber:x:data', type: 'submit'}) | |
.c('field', {"var": 'FORM_TYPE', type: 'hidden'}) | |
.c('value').t('http://jabber.org/protocol/pubsub#subscribe_options') |
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
function onMessage(msg) { | |
// messages stanzas are converted to JSON and then prepended to the correspondent panel in the UI | |
var result = Collecta.processItem($(msg)); | |
for (var i=0; i < result.length; i++) { | |
$('#term'+ result[i].term +"panel") | |
.prepend("<p>["+result[i].category+"] - <a href=\""+result[i].url+"\" target=\"_blank\" title=\" Access "+terms[result[i].term]+" information\">"+result[i].title+"</a><br />..."+result[i].description+"...<br />Published in "+result[i].published+"</p>"); | |
}; | |
return true; | |
} |
OlderNewer