Skip to content

Instantly share code, notes, and snippets.

Jacob Perkins thedatachef

Block or report user

Report or block thedatachef

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
View keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@thedatachef
thedatachef / java_client_example.rb
Created Dec 1, 2014
Lipstick java client usage from jruby
View java_client_example.rb
import 'com.netflix.lipstick.graph.Graph'
import 'com.netflix.lipstick.graph.Node'
import 'com.netflix.lipstick.graph.Edge'
import 'com.netflix.lipstick.graph.NodeGroup'
import 'com.netflix.lipstick.graph.Status'
import 'com.netflix.lipstick.template.Template'
import 'com.netflix.lipstick.client.Client'
lipstick = Client.new("http://localhost:9292")
@thedatachef
thedatachef / index.html
Last active Aug 29, 2015
dagre v0.3.2 clustering?
View index.html
<!doctype html>
<meta charset="utf-8">
<title>Dagre D3 Demo: Sentence Tokenization</title>
<link rel="stylesheet" href="http://cpettitt.github.io/project/dagre-d3/v0.3.2/demo/demo.css">
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="http://cpettitt.github.io/project/dagre-d3/v0.3.2/dagre-d3.js"></script>
<h1>Dagre D3 Demo: Sentence Tokenization</h1>
View pigg-hadoop2
. $HOME/Programming/netflix/hadoop-2.4.0/environment.sh
zip -d lipstick-console/build/libs/lipstick-console-*-withHadoop.jar META-INF/LICENSE
export JAVA_HOME=${JAVA_HOME}
$HADOOP_HOME/bin/hadoop jar lipstick-console/build/libs/lipstick-console-*-withHadoop.jar -x mapreduce -propertyFile ./quickstart/pig.properties
@thedatachef
thedatachef / Plain.js
Last active Aug 29, 2015
Demonstrate Ease of Lipstick 2.0
View Plain.js
function Plain(properties) {
var self = this;
self.name = properties.name;
}
@thedatachef
thedatachef / translate.rb
Created Oct 30, 2014
Translate Lipstick Graph (P2jPlanPackage) to more general graph
View translate.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'json'
class P2jPlanPackage
attr_accessor :optimized
attr_accessor :unoptimized
attr_accessor :script, :status, :userName, :jobName, :uuid
attr_accessor :sampleOutputMap
View translate.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'json'
require File.dirname(__FILE__)+'/app/helpers/graph.rb'
class P2jTranslator
attr_accessor :nodeGroups, :json
View PigNode.rb
class PigNode < Mustache
attr_accessor :properties
def initialize properties
@properties = properties
end
def operation
properties['operation']
end
@thedatachef
thedatachef / PigNode.mustache
Last active Aug 29, 2015
Pig Node mustache template
View PigNode.mustache
<font point-size="12">
<table border="0" cellborder="1" cellspacing="0">
<tr>
<td bgcolor="{{step_type_color}}" colspan="{{join.relations.length}}{{^join.relations}}2{{/join.relations}}">
{{operation}}{{additional_info}}
</td>
</tr>
{{#expression}}
View big-graph-dagre.json
{"nodes":[{"id":"338","label":"load1762"},{"id":"339","label":"load2113"},{"id":"332","label":"generate2181"},{"id":"333","label":"generate2183"},{"id":"159","label":"generate3271"},{"id":"330","label":"generate2353"},{"id":"158","label":"generate3270"},{"id":"331","label":"generate2355"},{"id":"157","label":"generate3341"},{"id":"336","label":"load1554"},{"id":"156","label":"generate3340"},{"id":"337","label":"load1645"},{"id":"155","label":"generate3339"},{"id":"334","label":"load1619"},{"id":"154","label":"generate3338"},{"id":"335","label":"load1671"},{"id":"601","label":"generate3246"},{"id":"531","label":"generate3200"},{"id":"152","label":"generate3336"},{"id":"600","label":"generate3246"},{"id":"530","label":"generate3200"},{"id":"153","label":"generate3337"},{"id":"150","label":"generate3316"},{"id":"151","label":"generate3317"},{"id":"535","label":"generate3281"},{"id":"534","label":"generate3277"},{"id":"533","label":"generate3277"},{"id":"532","label":"generate3277"},{"id":"609","label":"generate3
You can’t perform that action at this time.