brew install apache-spark
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
if (document) { | |
} | |
} catch (e) { | |
throw new Error("Drag module only works in browsers"); | |
} | |
const Drag = function(view) { | |
let documentation = ` | |
# Usage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This php script takes a local xml file input and stdouts the equivalent csv. | |
*/ | |
$shortopts = ""; | |
$shortopts .= "f:"; // Required value | |
$options = getopt($shortopts); | |
if (count($options) === 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// signatures | |
// (root) | |
// (root, inner) | |
// (root, {}) | |
// (root, {}, inner) | |
// inner = '' || [] - array can have text or html els | |
// {} = options i.e. onclick, class, id, etc. | |
var signatures = { | |
1: function(root) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Debug tcp requests and respond with 200 | |
socat -v TCP-LISTEN:3000 "exec:printf \'HTTP/1.0 200 OK\r\n\r\n\'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# On linux use date, on mac gdate [via `brew install coreutils`]. | |
# Will run from oldest date to today. | |
# $ sh date_looper.sh '2016-12-10' | |
currentdate=$1 | |
loopenddate=$(gdate --date "$2 1 day" +%Y-%m-%d) | |
until [ "$currentdate" == "$loopenddate" ] | |
do | |
echo $currentdate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let init = lindy('h3', `Service running - false`); | |
let start = function () { | |
return lindy('button', { | |
onclick: () => this.emit('running', true) | |
}, 'Start Service'); | |
}; | |
let stop = function () { | |
return lindy('button', { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Hello World!</title> | |
</head> | |
<body> | |
<h1>Hello World!</h1> | |
We are using node <script>document.write(process.versions.node)</script>, | |
Chrome <script>document.write(process.versions.chrome)</script>, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
padding: 0; | |
margin: 0; | |
font-family: -apple-system, BlinkMacSystemFont, | |
"Segoe UI", "Roboto", "Oxygen", | |
"Ubuntu", "Cantarell", "Fira Sans", | |
"Droid Sans", "Helvetica Neue", sans-serif; | |
} | |
.container { |