This file contains hidden or 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
| # install docker in Debian 11/WSL2 | |
| # uses systemd-genie since docker requires systemd but it's not available for WSL | |
| # this is an alternative to Docker Desktop | |
| # prerequisites | |
| sudo apt-get update | |
| sudo apt-get dist-upgrade | |
| sudo apt-get install ca-certificates curl wget gnupg lsb-release apt-transport-https | |
| # install docker |
This file contains hidden or 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
| [10.0.17763.1369-SLInit] | |
| bServerSku.x64 =ECAB8 | |
| lMaxUserSessions.x64 =ECABC | |
| bAppServerAllowed.x64 =ECAC4 | |
| bInitialized.x64 =ECAB4 | |
| bRemoteConnAllowed.x64=ECAC8 | |
| bMultimonAllowed.x64 =ECACC | |
| ulMaxDebugSessions.x64=ECAD0 | |
| bFUSEnabled.x64 =ECAD4 |
This file contains hidden or 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
| var playRps = function() { | |
| var userChoice = prompt("Do you choose rock, paper or scissors?"); | |
| // Computer makes random choice (0-1) | |
| var computerChoice = Math.random(); | |
| if (computerChoice < 0.34) { | |
| computerChoice = "rock"; | |
| } else if(computerChoice <= 0.67) { | |
| computerChoice = "paper"; | |
| } else { | |
| computerChoice = "scissors"; |
This file contains hidden or 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
| var myChoice = prompt("Ready to play? Enter your choice of rock, paper, or scissors."); | |
| // Computer makes a random choice (0-1) | |
| var computerNumber = Math.random(); | |
| if (computerNumber > 0.67) { | |
| computerChoice = "rock"; | |
| } | |
| else if (computerNumber > 0.33) { | |
| computerChoice = "scissors"; | |
| } | |
| else computerChoice = "paper"; |