Skip to content

Instantly share code, notes, and snippets.

View Jaykul's full-sized avatar
😀
Learning

Joel Bennett Jaykul

😀
Learning
View GitHub Profile
@Jaykul
Jaykul / ScriptPropertyRecalculatesVariable.ps1
Last active April 8, 2018 01:35 — forked from pinecones-sx/fcobject.ps1
How to capture a variable value in a closure
function global:Get-CompFolder{
param($iFolderLoc)
$objCompFolder = [Ordered]@{
'Location' = $iFolderLoc
'Folder' = Get-Item $iFolderLoc
'SortedTree' = @()
}
New-Object -TypeName PSObject -Property $objCompFolder |
Add-Member -Passthru -Type ScriptProperty -Name Tree -Value {
@Jaykul
Jaykul / 256color.pl
Created May 4, 2016 03:10 — forked from hSATAC/256color.pl
256color.pl
#!/usr/bin/perl
# Author: Todd Larason <[email protected]>
# $XFree86: xc/programs/xterm/vttests/256colors2.pl,v 1.2 2002/03/26 01:46:43 dickey Exp $
# use the resources for colors 0-15 - usually more-or-less a
# reproduction of the standard ANSI colors, but possibly more
# pleasing shades
# colors 16-231 are a 6x6x6 color cube
for ($red = 0; $red < 6; $red++) {