Skip to content

Instantly share code, notes, and snippets.

@cariaso
cariaso / my-run-if.sh
Created December 23, 2016 16:34
amazon emr detect master node and run an s3 script
#!/usr/bin/python
# via https://forums.aws.amazon.com/thread.jspa?messageID=737877
# see also
# https://forums.aws.amazon.com/thread.jspa?messageID=758242
#'''
#Evaluate logical tests against the instances.json file
#'''
# understand isMaster=true and isMaster!=true
### Keybase proof
I hereby claim:
* I am cariaso on github.
* I am cariaso (https://keybase.io/cariaso) on keybase.
* I have a public key whose fingerprint is 769F 32EF 610F FF87 0B32 D0AE 2AEF 3290 0D7A 7BD4
To claim this, I am signing this object:
@cariaso
cariaso / index.html
Created August 16, 2013 23:04
D3 force directed graph. Zooming does not work. See http://snpedia.com/index.php/User_talk:Cariaso/D3bug
<!DOCTYPE html>
<html>
<!-- D3 force directed graph. Zooming does not work. See http://snpedia.com/index.php/User_talk:Cariaso/D3bug -->
<head>
<meta charset="utf-8">
<style>
.node {
stroke: black;
}
@cariaso
cariaso / index.html
Created August 16, 2013 22:53
D3 force directed graph. Zooming does not work. See http://snpedia.com/index.php/User_talk:Cariaso/D3bug
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
.node {
stroke: black;
}
@cariaso
cariaso / index.html
Created August 16, 2013 22:48
D3 force directed graph. Zooming does not work. See http://snpedia.com/index.php/User_talk:Cariaso/D3bug for more info.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
.node {
stroke: black;
}
@cariaso
cariaso / index.html
Created August 16, 2013 22:44
Protovis force directed graph. Zooming works well
<!DOCTYPE html>
<html><head>
<meta charset="utf-8">
<title>Protovis Graph</title>
<script type="text/javascript" src="http://cachedcommons.org/cache/jquery/1.4.2/javascripts/jquery-min.js"></script>
<script type="text/javascript" src="http://cachedcommons.org/cache/protovis/3.2.0/javascripts/protovis-min.js"></script>
<link rel="stylesheet" href="js.css">
<script type="text/javascript">
var buttonBarHeight = 30;
var redrawLag = 300;
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<style>
.node {
stroke: black;
}
.link {
@cariaso
cariaso / index.html
Last active December 21, 2015 01:09
<!DOCTYPE html>
<html>
<meta charset="utf-8">
<style>
.node {
stroke: black;
}
.link {