Skip to content

Instantly share code, notes, and snippets.

function Get-HistoryGrep {
param(
[Parameter(Mandatory=$false, Position=0)]
[string]$Regex
)
get-history |?{$_.commandline -match $regex}
}
function Invoke-History {
param(
function Get-Periscope {
param(
[Parameter(Mandatory=$true, Position=0)]
[string] $Id,
[Parameter(Mandatory=$true)]
[ValidateScript({Test-Path $_})]
[string] $Path
)
if (!(test-path $Path)) {
var HTML_COLORS = ["AliceBlue","AntiqueWhite","Aqua","Aquamarine","Azure","Beige","Bisque","Black","BlanchedAlmond","Blue", "BlueViolet",
"Brown","BurlyWood","CadetBlue","Chartreuse","Chocolate","Coral","CornflowerBlue","Cornsilk","Crimson","Cyan", "DarkBlue","DarkCyan",
"DarkGoldenRod","DarkGray","DarkGrey","DarkGreen","DarkKhaki","DarkMagenta","DarkOliveGreen","Darkorange","DarkOrchid","DarkRed",
"DarkSalmon","DarkSeaGreen","DarkSlateBlue","DarkSlateGray","DarkSlateGrey","DarkTurquoise","DarkViolet","DeepPink","DeepSkyBlue",
"DimGray","DimGrey","DodgerBlue","FireBrick","FloralWhite","ForestGreen","Fuchsia","Gainsboro","GhostWhite","Gold","GoldenRod","Gray",
"Grey","Green","GreenYellow","HoneyDew","HotPink","IndianRed","Indigo","Ivory","Khaki","Lavender","LavenderBlush","LawnGreen",
"LemonChiffon","LightBlue","LightCoral","LightCyan","LightGoldenRodYellow","LightGray","LightGrey","LightGreen","LightPink",
"LightSalmon","LightSeaGreen","LightSkyBlue","LightSlateGray","LightSlateGre
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Bootstrap 101 Template</title>
<p></p><a href="http://getbootstrap.com/getting-started/#examples">Examples</a></p>
<!-- Bootstrap -->
@toenuff
toenuff / h2o.ps1
Last active February 13, 2019 19:29
# Published for http://powertoe.wordpress.com
# https://powertoe.wordpress.com/2017/10/23/h2o-machine-learning-with-powershell/
function ConvertTo-FormData {
param(
[Parameter(ValueFromPipeline=$true)] [PSObject] $InputObject
)
Begin {
$output = ""
}