Pure CSS glitched, noisy, analog-y text.
A Pen by Lucas Bebber on CodePen.
| function Peek-Cmdlet { | |
| param( | |
| [Management.Automation.CommandInfo]$command | |
| ) | |
| if ($input) { | |
| trap { $_; break } | |
| $command = $input | select -first 1 | |
| } | |
| function Retry { | |
| [CmdletBinding()] | |
| param ( | |
| [Parameter(Mandatory=$false)] | |
| [Alias("Attemps")] | |
| [int]$maxAttempts = 3, | |
| [Parameter(Mandatory=$false)] | |
| [Alias("Delay")] | |
| [int]$secondsBeforeRetrying = 5, |
| #TeamCityBackup | |
| #Requires –Version 4 | |
| #Requires -RunAsAdministrator | |
| Param | |
| ( | |
| [Parameter(Mandatory, HelpMessage="Team City installation directory, e.g. C:\TeamCity")] | |
| [ValidateNotNullOrEmpty()] | |
| [ValidateScript({ Test-Path $_ })] | |
| [String]$TeamCityInstallation = "C:\TeamCity", |
Pure CSS glitched, noisy, analog-y text.
A Pen by Lucas Bebber on CodePen.
| public class OrientationNavigationRenderer : NavigationRenderer | |
| { | |
| protected override Task<bool> OnPushAsync(Page page, bool animated) | |
| { | |
| if (page is RequestSignaturePadView) | |
| { | |
| var landscapePage = new ForceLandscapeViewController(page); | |
| PushViewController(landscapePage, animated); | |
| return Task.FromResult(true); | |
| } |
| # Needs to executed in git bash, powershell with posh-git won't work. | |
| # NB, change grep -v master to be the branch you want to check, e.g. grep -v development | |
| # Preview | |
| git fetch -p origin && git branch -r --merged | grep origin | grep -v '>' | grep -v master | xargs -L1 | cut -d"/" -f2- | xargs -d ' ' | |
| # Actual | |
| git fetch -p origin && git branch -r --merged | grep origin | grep -v '>' | grep -v master | xargs -L1 | cut -d"/" -f2- | xargs git push origin --delete |
| # clean remote and local branches | |
| function Git-Prune { | |
| git fetch origin | |
| Write-Host "Pruning remote branches" -ForegroundColor Magenta | |
| git remote prune origin | |
| Write-Host "Pruning local branches that have been merged to master" -ForegroundColor Magenta | |
| git branch --merged $Commit | | |
| ? { $_ -notmatch '(^\*)|(^. master$)' } | | |
| % { git branch $(if($Force) { '-D' } else { "-d" }) $_.Substring(2) } | |
| } |
| #Requires -RunAsAdministrator | |
| [CmdletBinding()] | |
| param() | |
| $ErrorActionPreference = "Stop" | |
| trap | |
| { | |
| Pop-Location | |
| Write-Error "$_" | |
| Exit 1 |
| @ECHO OFF | |
| TITLE Enable right-click 'Run as Admin' for PowerShell | |
| ECHO. | |
| ECHO Enabling right-click 'Run as Admin' for PowerShell | |
| ECHO. | |
| :: Add value for UAC shield icon: | |
| REG ADD "HKCR\Microsoft.PowerShellScript.1\Shell\runas" /v HasLUAShield /t REG_SZ /d "" /f | |
| :: Add value to create context menu item: |
| using System; | |
| using Xamarin.Forms; | |
| // ReSharper disable CheckNamespace | |
| // Using global:: namespace | |
| public static class MessagingCenterEx | |
| { | |
| private class MessagingCenterSender | |
| { |