This file contains 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
const powerOfTwo = (num) => { | |
let pot = Math.pow(2, Math.ceil(Math.log2(num))) - num; | |
if (pot === 0) { | |
return "true"; | |
} else { | |
return "false"; | |
} | |
}; |
This file contains 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
function SnakeCase(str) { | |
const regex = /\W+/g; | |
for (char in str) { | |
let newStr = str.toLowerCase().replace(regex, "_"); | |
return newStr; | |
} | |
} | |
console.log(SnakeCase("This*is a Great-Night")); |
This file contains 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
# All AWS C9 envments | |
https://eu-central-1.console.aws.amazon.com/cloud9/home?region=us-east-1 | |
# Instance management | |
https://console.aws.amazon.com/ec2/home?region=eu-central-1#Instances:sort=instanceId | |
# Create AWS C9 environment | |
https://eu-central-1.console.aws.amazon.com/cloud9/home/create | |
Setting - set tabs to 2 |