Skip to content

Instantly share code, notes, and snippets.

@Sh1n0g1
Forked from davewilson/Play-Mario.ps1
Created April 20, 2017 12:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sh1n0g1/194ff50bd8368c9914865f37c278f937 to your computer and use it in GitHub Desktop.
Save Sh1n0g1/194ff50bd8368c9914865f37c278f937 to your computer and use it in GitHub Desktop.
Super Mario Theme in PowerShell
Function Play-Mario {
[System.Console]::Beep(659, 125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(167);
[System.Console]::Beep(523, 125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(784, 125);
[System.Threading.Thread]::Sleep(375);
[System.Console]::Beep(392, 125);
[System.Threading.Thread]::Sleep(375);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(392, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(330, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(440, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(494, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(466, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(440, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(392, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(784, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(880, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(698, 125);
[System.Console]::Beep(784, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(587, 125);
[System.Console]::Beep(494, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(392, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(330, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(440, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(494, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(466, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(440, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(392, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(784, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(880, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(698, 125);
[System.Console]::Beep(784, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(587, 125);
[System.Console]::Beep(494, 125);
[System.Threading.Thread]::Sleep(375);
[System.Console]::Beep(784, 125);
[System.Console]::Beep(740, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(167);
[System.Console]::Beep(415, 125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Console]::Beep(587, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(784, 125);
[System.Console]::Beep(740, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(167);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(698, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(625);
[System.Console]::Beep(784, 125);
[System.Console]::Beep(740, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(167);
[System.Console]::Beep(415, 125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Console]::Beep(587, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(587, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(1125);
[System.Console]::Beep(784, 125);
[System.Console]::Beep(740, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(167);
[System.Console]::Beep(415, 125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Console]::Beep(587, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(784, 125);
[System.Console]::Beep(740, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(167);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(698, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(625);
[System.Console]::Beep(784, 125);
[System.Console]::Beep(740, 125);
[System.Console]::Beep(698, 125);
[System.Threading.Thread]::Sleep(42);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(659, 125);
[System.Threading.Thread]::Sleep(167);
[System.Console]::Beep(415, 125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(125);
[System.Console]::Beep(440, 125);
[System.Console]::Beep(523, 125);
[System.Console]::Beep(587, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(622, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(587, 125);
[System.Threading.Thread]::Sleep(250);
[System.Console]::Beep(523, 125);
[System.Threading.Thread]::Sleep(625);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment