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 | |
cat - | jq -r '(map (keys) | add | unique) as $cols | map (. as $row | $cols | map ($row[.])) as $rows | $cols, $rows[] | @csv' |
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 | |
SESSION="slaveSSH" | |
defaultwindow=1 | |
defaultpane=1 | |
regex=${1:-'172\.19'} | |
shift | |
tmux kill-session -t $SESSION 2> /dev/null | |
tmux has-session -t $SESSION 2> /dev/null |
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 | |
SESSION="slaveSSH" | |
defaultwindow=1 | |
defaultpane=1 | |
regex=${1:-'10.0'} | |
shift | |
tmux kill-session -t $SESSION 2> /dev/null | |
tmux has-session -t $SESSION 2> /dev/null |
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> | |
<title>TITTYSPRINKLES</title> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-7s5uDGW3AHqw6xtJmNNtr+OBRJUlgkNJEo78P4b0yRw= sha512-nNo+yCHEyn0smMxSswnf/OnX6/KwJuZTlNZBjauKhTK0c+zT+q5JOCx0UFhXQ6rJR9jg6Es8gPuD2uZcYDLqSw==" crossorigin="anonymous"> | |
</head> | |
<body> | |
<div class="container"> | |
<nav class="navbar navbar-default"> |
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
import requests | |
access_key = 'ce049883-1ed4-473c-970e-7d1e77cd7636' | |
url = 'https://erikberg.com/nba/leaders/points_per_game.json?limit=10&access_token=' + access_key | |
r = requests.get (url) | |
player_list = r.json() | |
for p in [player for player in player_list if int(player["value"]) > 25]: |
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/sh | |
node /Users/trevor/flogistix/disc/index.js $@ |
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
(function () { | |
/* | |
TODO | |
sine / morph in y positions ? | |
horizontal movement euler + quarternion rotation around in between axis ? | |
*/ | |
var RATE_OF_CHANGE = 0.599; | |
var isMouseDown = false; |
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
<div id="tab_location" class="tab-pane"> | |
<style> | |
.angular-google-map-container { height: 600px !important; } | |
</style> | |
<unit-map ng-if="showMap" unit="{{unitNumber}}" ></unit-map> | |
</div> |
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
var slackbot = require ('node-slackbot'), | |
/// winston = require ('winston'), | |
request = require ('request'), | |
sleep = require ('sleep').sleep, | |
Future = require ('data.future'), | |
Tuple2 = require ('fantasy-tuples').Tuple2, | |
M = require ('control.monads'), | |
State = require ('fantasy-states'), | |
Reader = require ('fantasy-readers'), | |
R = require ('ramda'), |
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 | |
function detectBin { | |
which $1 > /dev/null | |
RET=$? | |
if [ $RET = "1" ]; then | |
echo "You need to install $1" | |
exit -1 | |
fi | |
} |