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
# 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 = "" | |
} |
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 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 --> |
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 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 |
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
function Get-Periscope { | |
param( | |
[Parameter(Mandatory=$true, Position=0)] | |
[string] $Id, | |
[Parameter(Mandatory=$true)] | |
[ValidateScript({Test-Path $_})] | |
[string] $Path | |
) | |
if (!(test-path $Path)) { |
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
function Get-HistoryGrep { | |
param( | |
[Parameter(Mandatory=$false, Position=0)] | |
[string]$Regex | |
) | |
get-history |?{$_.commandline -match $regex} | |
} | |
function Invoke-History { | |
param( |
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
-----BEGIN RSA PRIVATE KEY----- | |
MIIEpQIBAAKCAQEA7oei2KnmNsq4pZVtcwtDN0zIrEmv5TgMxdLQtdIszqO/UJbp | |
Lbf4LG+DtT7eVmzmN3rSWV9Q7P7UdAds0j03c9sAwjprMuv5F1MzyC1rNQct5M5m | |
X0X0Scylan9HVccjTXt6Yr+IPni8PNOs0rwhqRB0TEtJuP2IYuzeg5Z2LWxnAVjL | |
5uNd9HMpuDwVHDMibpeMOomr2ePqdUPAK+ZRQbUYVvnR6fkzSKehcTvnKG6P1qhO | |
ifx6dsmls9HqrRpfBXmItAUaMO7VrQAjFybYgr8dHdVewLJqM2EmyN2buxEMIckp | |
afxb042mZbukJqZXEAZo2IYeee4NgSPV7fXhGwIDAQABAoIBAQDXg0s6MT+kb8Mn | |
MHyEPj/L3h9NswIuu1anAhO6w5viVAaOPNuPiDG9jD/W6WefdKMIq3sUbs9CYff4 | |
oaDLz62jitMDqh6jEpurXGxjx82eSs9HdMj/+cd/SlyGfVspgFRANHlecSkbMKD6 | |
4FG80WgkRY6eREPm1YN9xgBBqhc6b4GGZ2+hcVhkfYdnfmACy9+tIF6yHG5c4VPE |
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
$class = new-object psobject @{credential=$null} | |
function samplecred { | |
param( | |
[Parameter(Mandatory=$false)] | |
[ValidateScript({("String","PSCredential") -contains $_.gettype().name})] | |
[Object] $Credential | |
) | |
if ($Credential) { | |
switch ($Credential.gettype().name) { |
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
import pdb; pdb.set_trace() |
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
set shell=powershell | |
set shellcmdflag=-command | |
set tabstop=4 softtabstop=4 shiftwidth=4 noexpandtab | |
set autoindent " ai: indent to match previous line | |
set cindent " cin: Use C-indenting | |
set cinkeys=0{,0},0),!^F,o,O,e " cink: Perl-friendly reindent keys | |
set cinoptions=t0,+4,(0,)60,u0,*100 " cino: all sorts of options | |
set cinwords=if,else,while,do,for,elsif,sub | |
set comments=n:# " com: Perlish comments |
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
<?xml version="1.0" encoding="utf-8"?> | |
<key name="Software"> | |
<key name="ConEmu"> | |
<key name=".Vanilla" modified="2014-03-07 09:22:48" build="140304"> | |
<value name="ColorTable00" type="dword" data="00000000"/> | |
<value name="ColorTable01" type="dword" data="00800000"/> | |
<value name="ColorTable02" type="dword" data="00008000"/> | |
<value name="ColorTable03" type="dword" data="00808000"/> | |
<value name="ColorTable04" type="dword" data="00000080"/> |
NewerOlder