Code repo https://github.com/PacktPublishing/Hands-on-Serverless-Architecture-with-AWS-Lambda
NOTE" original video was done using Node.js 6.10 runtime for Lambda - I'll be using the latest at the time of writing which s 8.10
| import java.util.*; | |
| import java.io.*; | |
| class Main { | |
| public static String AlphabetSoup(String str) { | |
| char[] chars = str.toCharArray(); | |
| Arrays.sort(chars); | |
| return new String(chars); | |
| } | |
| import java.util.*; | |
| import java.io.*; | |
| class Main { | |
| public static int VowelCount(String str) { | |
| int cnt = 0; | |
| for (char ch : str.toLowerCase().toCharArray()) { | |
| switch (ch) { | |
| case 'a': | |
| case 'e': |
| import java.util.*; | |
| import java.io.*; | |
| class Main { | |
| public static int WordCount(String str) { | |
| return str.split(" ").length; | |
| } | |
| public static void main (String[] args) { | |
| // keep this function call here |
| function Palindrome(str) { | |
| return str.split("").reverse().join("").replace(/ /g,'') === str.replace(/ /g,''); | |
| } | |
| // keep this function call here | |
| Palindrome(readline()); |
| sudo apt install docker.io | |
| sudo systemctl status docker | |
| sudo usermod -aG docker ${USER} | |
| su - ${USER} | |
| id -nG |
Code repo https://github.com/PacktPublishing/Hands-on-Serverless-Architecture-with-AWS-Lambda
NOTE" original video was done using Node.js 6.10 runtime for Lambda - I'll be using the latest at the time of writing which s 8.10
| Method 2: Reset Windows update components | |
| Manually reset the Windows Updates Components and then reinitiate the Windows Update process. | |
| Resetting Windows Update Components will fix corrupt Windows Update Components and help you to install the Windows Updates quickly. | |
| Please follow the below steps to reset the Windows Updates Components: | |
| Press Windows Key + X on the keyboard and then select “Command Prompt (Admin)” from the menu. |
| type %1 |
| # https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly | |
| apt update -y | |
| apt install -y \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ | |
| software-properties-common | |