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-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOsFiles -showFileExtensions | |
Enable-RemoteDesktop | |
choco install agentransack -y | |
choco install xamarin -y | |
choco install resharper -y | |
choco install visualstudio2013professional -y | |
choco install git -y | |
choco install poshgit -y | |
choco install greenshot -y |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Linq.Expressions; | |
using System.Runtime.CompilerServices; | |
using Xamarin.Forms; // PropertyChanging event handler, and Command object | |
namespace Some.Namespace | |
{ | |
public abstract class ObservableObject : INotifyPropertyChanged |
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
param( | |
[Parameter(Mandatory=$true, Position=0)]$key | |
) | |
Write-Verbose "Attempting to establish new function '$key'" | |
$keyParts = ($key -split '-') | |
if($keyParts.length -gt 0){ | |
$validVerb = Get-Verb $keyParts[0] | |
if(!$validVerb){ | |
Write-Warning "'$($keyParts[0])' is an unapproved verb which might make it less discoverable. Use the Verbose parameter for more detail or type Get-Verb to see the list of approved verbs." | |
} |
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
clear | |
function Invoke-First { | |
Write-Output 'if not piped, will display before Write-Host, if piped, will display after Write-Host' | |
Write-Host 'Writes every single time invoke-first is called, but is not piped out.' | |
return 'will not display unless piped or used as a return variable' | |
} | |
function Invoke-Second { | |
param( | |
[Parameter(ValueFromPipeline=$True)] [string] $val |
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
$complexObject = @{ | |
test = "test" | |
guid = [guid]::NewGuid() | |
int = [int]::MaxValue | |
str = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum." | |
arr = @(1..100) | |
} | |
$complexCollection = @() | |
$sw = [System.Diagnostics.Stopwatch]::StartNew() |
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
# this is the final (child) function being called | |
function Invoke-Foo { | |
[cmdletbinding()] | |
param([switch] $Custom) | |
Write-Host 'Hello world' | |
Write-Verbose 'I''m a verbose message' | |
Write-Debug 'I''m a debug message' #this will pause execution | |
if($Custom.IsPresent){ | |
Write-Host 'I''m a custom message' |
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
.md *{ | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} | |
.md h1::before { content: "# "; } |
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
[ | |
{ "key": "ctrl+f4", "command": "workbench.action.closeActiveEditor" } | |
] |
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
source ~/.git-completion.bash | |
source ~/.git-prompt.sh | |
alias edit='open -a visual\ studio\ code' | |
alias cd..='cd ..' | |
alias co='git checkout' | |
alias pull='git fetch;git pull' | |
alias chr='open -a Google\ Chrome' | |
alias projects='cd ~/Projects' |
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-Module MyAwesomeModule | |
.\out-html.ps1 -moduleName 'MyAwesomeModule' -outputDir "path\to\output" |