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
{ | |
// this theme created and commented for powershell | |
// based off of 1984 unbolded vs code theme | |
"name" : "retrowave", | |
// entire background | |
"background" : "#070825", | |
// default text | |
"foreground" : "#46BDFF", | |
//quoted values | |
"cyan" : "#df81fc", |
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
function Get-Government { | |
param( | |
$name, | |
$state | |
) | |
$( | |
Get-USSenators | select @{n="name";e={$_.member_full}}, party, state, @{n="type";e={"Senate"}} | |
Get-USCongress | select @{n="name";e={$_.namelist}}, party, state, @{n="type";e={"House"}} | |
) | |
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
function Get-ConfigurationDataAsObject | |
{ | |
[CmdletBinding()] | |
Param ( | |
[Parameter(Mandatory)] | |
[Microsoft.PowerShell.DesiredStateConfiguration.ArgumentToConfigurationDataTransformation()] | |
[hashtable] $ConfigurationData | |
) | |
return $ConfigurationData | |
} |
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
#Require -Version 5.0 | |
# using statement must appear before any other statements in a script. | |
# other using types(Assembly/Command/Module/Type) is not supported yet? | |
# [Enum]::GetNames('System.Management.Automation.Language.UsingStatementKind') | |
using namespace System.Diagnostics | |
using namespace System.Linq | |
function Main | |
{ |
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
# Copyright (c) 2014 Atif Aziz. All rights reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |