This file contains 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
# calculate IP address range from CIDR notation | |
# https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing | |
function cidrToIpRange { | |
param ( | |
[string] $cidrNotation | |
) | |
$addr, $maskLength = $cidrNotation -split '/' | |
[int]$maskLen = 0 |
This file contains 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
() => { | |
localStorage.setItem("maxViewItems", "999"); | |
location.reload(); // optional | |
}; | |
// javascript:(()=>{localStorage.setItem("maxViewItems", "999");location.reload();})(); |
This file contains 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 Mutex = function() { | |
var queues = []; | |
var locked = false; | |
this.isLocked = function() { | |
return locked; | |
}; | |
// It was about this point where I realized I didn't really want a mutex. I wanted a lock check...... | |
this.push = function(callback) { | |
var self = this; |
This file contains 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
# Rotates a vertical set similar to an Excel PivotTable | |
# | |
# Given $data in the format: | |
# | |
# Category Activity Duration | |
# ------------ ------------ -------- | |
# Management Email 1 | |
# Management Slides 4 | |
# Project A Email 2 | |
# Project A Research 1 |
This file contains 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 xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Vanilla Demo</title> | |
<!--<link rel="stylesheet" href="mediaelement/mediaelementplayer.css" />--> | |
<link href="http://mediaelementjs.com/js/mejs-2.13.2/mediaelementplayer.min.css" rel="Stylesheet" /> | |
<script src="http://code.jquery.com/jquery-latest.js"></script> | |
<!--<script src="mediaelement/mediaelement-and-player.js"></script>--> | |
<script src="http://mediaelementjs.com/js/mejs-2.13.2/mediaelement-and-player.min.js"></script> |