Skip to content

Instantly share code, notes, and snippets.

View jthomassie's full-sized avatar

Juan Thomassie jthomassie

View GitHub Profile
# encoding: utf-8
require "logstash/inputs/base"
require "logstash/namespace"
require "json"
# Read events from the twitter streaming api.
class LogStash::Inputs::Twitter < LogStash::Inputs::Base
config_name "twitter"
milestone 1
@jthomassie
jthomassie / index.html
Last active August 29, 2015 13:57
Histogram: grouped, stacked, normalized
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
margin: auto;
position: relative;
width: 960px;
color: #333;
@jthomassie
jthomassie / index.html
Last active August 29, 2015 13:56
d3 World map I
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.graticule {
fill: none;
stroke: #444;
stroke-width: 0.6;
stroke-opacity: 0.4;
}
.edge {
@jthomassie
jthomassie / index.html
Last active August 29, 2015 13:56
World map - orthographic
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.water {
fill: #ddd;
}
.graticule {
fill: none;
stroke: #444;
stroke-width: 0.6;