Skip to content

Instantly share code, notes, and snippets.

Silvio granturing

Block or report user

Report or block granturing

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
granturing / reactive_map.js
Last active Sep 20, 2019
Sample reactive Leaflet code for Zeppelin
View reactive_map.js
<!-- place this in an %angular paragraph -->
<link rel="stylesheet" href="" />
<div id="map" style="height: 800px; width: 100%"></div>
<script type="text/javascript">
function initMap() {
var map ='map').setView([30.00, -30.00], 3);
L.tileLayer('http://{s}{z}/{x}/{y}.png', {
granturing / note.json
Last active Sep 26, 2016
DC Apache Spark MeetUp - Zeppelin & Spark SQL
View note.json
"paragraphs": [
"text": "%md\n## Agenda\n\n1. Loading data, initial discovery\n2. Joining with browsers lookup\n3. Custom UDF for ip-geo\n4. Page dwell time, sessionize visits\n6. Revenue metrics\n7. Funnel analysis",
"dateUpdated": "Oct 6, 2015 2:38:20 AM",
"config": {
"colWidth": 8.0,
"editorMode": "ace/mode/markdown",
"editorHide": true,
"tableHide": false,
granturing /
Last active Sep 28, 2016
HCatalog InputFormat wrapper to use with Spark (FYI for those finding this now, this was originally written pre-SparkSQL)
public class HCatInputFormat extends InputFormat<SerializableWritable<Writable>, HCatRecord> {
private final org.apache.hcatalog.mapreduce.HCatInputFormat input;
public HCatInputFormat() {
input = new org.apache.hcatalog.mapreduce.HCatInputFormat();
public RecordReader<SerializableWritable<Writable>, HCatRecord> createRecordReader(
You can’t perform that action at this time.