Skip to content

Instantly share code, notes, and snippets.

View alienrobotwizard's full-sized avatar

Esme Mora alienrobotwizard

  • BetterLesson
  • California
View GitHub Profile
@alienrobotwizard
alienrobotwizard / translate.rb
Created October 30, 2014 21:45
Translate Lipstick Graph (P2jPlanPackage) to more general graph
#!/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
@alienrobotwizard
alienrobotwizard / Plain.js
Last active August 29, 2015 14:08
Demonstrate Ease of Lipstick 2.0
function Plain(properties) {
var self = this;
self.name = properties.name;
}
. $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
@alienrobotwizard
alienrobotwizard / index.html
Last active August 29, 2015 14:10
dagre v0.3.2 clustering?
<!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>
@alienrobotwizard
alienrobotwizard / java_client_example.rb
Created December 1, 2014 16:49
Lipstick java client usage from jruby
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")

Keybase proof

I hereby claim:

To claim this, I am signing this object: