Skip to content

Instantly share code, notes, and snippets.

@FooBartn
Last active February 14, 2017 19:38
Show Gist options
  • Save FooBartn/14455fa52f9a1da4f5688ab6cfad98f0 to your computer and use it in GitHub Desktop.
Save FooBartn/14455fa52f9a1da4f5688ab6cfad98f0 to your computer and use it in GitHub Desktop.
function Happy-ValentinesDay () {
param (
[Parameter(Mandatory)]
[datetime]
$TheBeginning
)
while ($true) {
$TimeInLove = (Get-Date) - $TheBeginning
$Days = "{0:d4}" -f $TimeInLove.Days
$Hours = "{0:d2}" -f $TimeInLove.Hours
$Minutes = "{0:d2}" -f $TimeInLove.Minutes
$Seconds = "{0:d2}" -f $TimeInLove.Seconds
@"
*** *** *** *** *** ***
** ** ** ** ** ** ** ** ** ** ** **
* * * * * * * * *
* * * * * *
* I * * LOVE * * YOU *
** ** *** *** ** ** *** *** ** **
** ** ** ** ** ** ** ** ** ** ** ** ** **
** ** * * * ** ** * * * ** **
* * $Days * * * $Hours * *
* DAYS * * HOURS *
*** *** ** ** *** *** ** ** *** ***
** ** ** ** ** ** ** ** ** ** ** ** ** ** ** **
* * * ** ** * * * ** ** * * *
* $Minutes * * * HAPPY * * * $Seconds *
* MINUTES * * VALENTINES * * SECONDS *
** ** *** *** ** DAY ** *** *** ** **
** ** ** ** ** ** ** ** ** ** ** ** ** **
** ** * * * ** ** * * * ** **
* * * * * AND * *
* TODAY * * FOREVER *
** ** ** **
** ** ** **
** ** ** **
* *
"@
Start-Sleep -Seconds 1
Clear-Host
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment