Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
gcloud beta dataproc workflow-templates set-managed-cluster \
$TEMPLATE_ID \
--region $REGION \
--zone $ZONE \
--cluster-name $CLUSTER \
--master-machine-type n1-standard-4 \
--master-boot-disk-size 500 \
--worker-machine-type n1-standard-4 \
--worker-boot-disk-size 500 \
--num-workers 20 \
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.node {
fill: #ddd;
stroke: #fff;
}
.label {
@tfayyaz
tfayyaz / index.html
Last active August 29, 2015 14:24 — forked from mbostock/.block
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.node {
fill: #ddd;
stroke: #fff;
}
.label {
// Turn all links to have # to test link click Tracking
$('a').each(function() {
var link = $(this).attr('href')
$(this).attr('href', '#'+ link)
});
(function(){
var currentTags = document.getElementsByTagName('script');
var noTags = currentTags.length;
var gaTagsFound = []
for (var i = 0; i < noTags; i++) {
if (currentTags[i].innerText.indexOf('_gaq.push([\'_setAccount\', \'UA-12457755-1\'])') > -1){
gaTagsFound.push(i)
@tfayyaz
tfayyaz / README.md
Last active August 29, 2015 13:59 — forked from mbostock/.block