Skip to content

Instantly share code, notes, and snippets.

View lemoogle's full-sized avatar

Martin Zerbib lemoogle

  • Looker
  • United Kingdom
View GitHub Profile
@lemoogle
lemoogle / widget.js
Last active April 27, 2019 14:03
Sisense Funnel modified files. Widget.js Render function added zingchart.js at the start of d3-funnel.js
prism.registerWidget("funnel", {
name: "funnel",
family: "Column",
title: "Funnel",
iconSmall: "/plugins/funnelWidget/widget-24.png",
styleEditorTemplate: "/plugins/funnelWidget/styler.html",
style: {
isCurved: false,
@lemoogle
lemoogle / eu.topojson
Created May 31, 2017 14:03 — forked from milafrerichs/eu.topojson
Simple Map of Europe TopoJSON
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lemoogle
lemoogle / README.md
Last active August 26, 2015 21:13
Parses vita game release dates from gamefaqs, updates reddit wiki page with table.

Requirements

  • Node.js
  • npm install needle HTTP client
  • npm install cheerio HTML selector
  • npm install snoocore reddit api client

Run

@lemoogle
lemoogle / autosuggest_v1.0.js
Created August 25, 2015 07:23
Bookmarklets for IDOL OnDemand
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;
*/
@lemoogle
lemoogle / spherowatchbot.js
Created July 7, 2015 20:16
Turn your Sphero into a twitter watchbot
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>',
@lemoogle
lemoogle / example.rb
Created May 31, 2015 12:26
Async batch job
require 'httparty'
require 'json'
apikey=""
texts = [
"I am a pathetic person",
"Today is going to be a good day",
"I wish you were dead"
]
@lemoogle
lemoogle / extract.html
Created April 27, 2015 14:26
Speech To Text in PHP with IDOL OnDemand
<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