- Node.js
npm install needle
HTTP clientnpm install cheerio
HTML selectornpm install snoocore
reddit api client
prism.registerWidget("funnel", { | |
name: "funnel", | |
family: "Column", | |
title: "Funnel", | |
iconSmall: "/plugins/funnelWidget/widget-24.png", | |
styleEditorTemplate: "/plugins/funnelWidget/styler.html", | |
style: { | |
isCurved: false, |
javascript:(function(){ | |
/*! | |
* description: Auto Suggestion Bookmarklet v1.0 using IDOL OnDemand's Expand Term v1.0 API & jQuery v1.11.0; | |
* author: Mahesh Kumar RP (mahesh-kumar.r-p@hp.com); Asia Pacific Information Analytics Sales Engineer; | |
* date: 25-April-2014; | |
* comments: Developed for IDOL OnDemand's Ultimate Hacker Challenge; | |
* tested: Works in FireFox v28.0, Google Chrome v34.0 & Internet Explorer v10.0; | |
* usage: select text box in website and click on the AutoSuggest bookmarklet to get suggestion from IOD repository; | |
*/ |
var Cylon = require('cylon'); | |
var Twitter = require('twitter'); | |
var iod = require('iod-node') | |
var iodclient= new iod.IODClient('http://api.idolondemand.com','<yourapikey>') | |
var twitterclient = new Twitter({ | |
consumer_key: '<yourconsumerkey>', | |
consumer_secret: '<yourconsumersecret>', |
require 'httparty' | |
require 'json' | |
apikey="" | |
texts = [ | |
"I am a pathetic person", | |
"Today is going to be a good day", | |
"I wish you were dead" | |
] |
<html> | |
<body> | |
<form action="extract_handler.php" method="post" enctype="multipart/form-data"> | |
<input type="file" name="file" /> | |
<select name="language"> | |
<option>en-US</option> | |
<option>en-GB</option> | |
<option>en-DE</option> | |
<option>en-ES</option> | |
<option>en-FR</option> |
# IDOL on Demand, Vertica Bulk Sentiment update | |
# This utility uses IoD calls to apply Sentiment analysis to Data held on Vertica | |
# the results are then passed back up to Vertica in an associated table | |
# Latency for a single IoD call is about 1.5 seconds, therefore, to increase throughput the utility does the following: | |
# 1) It submits Asynchronous requests to IoD asking for the sentiment processing. A secondary call is then | |
# submitted to return the results | |
# 2) It uses multiprocessing - creating a worker pool of sub processes which perform the actual web service calls to IoD | |
# 3) Finally - standard "inserts" into Vertica are slow, therefore this utility makes use of a (simplified) Python module which |