Pure CSS glitched, noisy, analog-y text.
A Pen by Lucas Bebber on CodePen.
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) } | |
} |
using System; | |
using Xamarin.Forms; | |
// ReSharper disable CheckNamespace | |
// Using global:: namespace | |
public static class MessagingCenterEx | |
{ | |
private class MessagingCenterSender | |
{ |
function Remove-GitMergedBranches { | |
Write-Output "Fetching latest" | |
git fetch origin --prune | |
$currentBranch = & git rev-parse --abbrev-ref HEAD | |
if ($currentBranch -ne "master") { | |
Write-Output "Changing branch to master" | |
git checkout master | |
} |
<# | |
.SYNOPSIS | |
This Azure Automation runbook automates the scheduled shutdown and startup of virtual machines in an Azure subscription. | |
.DESCRIPTION | |
The runbook implements a solution for scheduled power management of Azure virtual machines in combination with tags | |
on virtual machines or resource groups which define a shutdown schedule. Each time it runs, the runbook looks for all | |
virtual machines or resource groups with a tag named "AutoShutdownSchedule" having a value defining the schedule, | |
e.g. "10PM -> 6AM". It then checks the current time against each schedule entry, ensuring that VMs with tags or in tagged groups | |
are shut down or started to conform to the defined schedule. |