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
* { | |
font-family: sans-serif; | |
font-size: larger; | |
margin: 0px; | |
padding: 0px; | |
} | |
#NowPlaying { | |
position:absolute; | |
bottom: 0px; |
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
using module Simple-Settings | |
using module Error-Handling | |
$ProgramListStorageLoc = Join-Path $PSScriptRoot "progList.xml" | |
$global:ProgramList = New-Object -TypeName SettingsObj -ArgumentList $ProgramListStorageLoc | |
$LocationListStorageLoc = Join-Path $PSScriptRoot "locList.xml" | |
$global:LocationList = New-Object -TypeName SettingsObj -ArgumentList $LocationListStorageLoc | |
function Set-Program([string]$path, [string]$shortName, [string]$openIn) { |
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
# Taken from here: https://gallery.technet.microsoft.com/scriptcenter/A-PowerShell-Assert-5e8670e2 | |
# Credit to imfrancisd | |
function Assert-True | |
{ | |
<# | |
.Synopsis | |
Assert that a value is the Boolean value $true. | |
.Description | |
This function throws an error if any of the following conditions are met: | |
*the value being asserted is $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
class SettingsObj | |
{ | |
[String] $location | |
$settings | |
SettingsObj ([String]$location) | |
{ | |
$this.location = $location | |
$this.updateSettings(); | |
} |
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
using module Simple-Settings | |
$storageLoc = Join-Path $PSScriptRoot "jumpConf.xml" | |
$global:Storage = New-Object SettingsObj -ArgumentList $storageLoc | |
New-Alias Jump-Location Move-Location | |
New-Alias Move-Shortcut Move-Location | |
New-Alias Jump-Shortcut Move-Location | |
function Move-Location { | |
$location = Get-Jump @args | |
cd $location |
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
/** | |
* Value Labels Plugin for flot. | |
* https://github.com/winne27/flot-valuelabels | |
* https://github.com/winne27/flot-valuelabels/wiki | |
* | |
* Implemented some new options (useDecimalComma, showMinValue, showMaxValue) | |
* changed some default values: align now defaults to center, hideSame now defaults to false | |
* by Werner Schäffer, October 2014 | |
* | |
* Using canvas.fillText instead of divs, which is better for printing - by Leonardo Eloy, March 2010. |
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
New-Alias Bugle Invoke-Local | |
function Invoke-Local(){ | |
param( | |
[Parameter(Position=0,mandatory=$true)][string] $task, | |
[Parameter(Position=1)][string[]] $parms, | |
[string] $file = ".\build.ps1" | |
) | |
if($task[0] -eq "_"){ | |
Write-Error "Scripts starting with _ are considered private" |