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
#run mysql container. Login with mysql workbench (TCP/IP, 127.0.0.1, 3306, root) | |
docker run -p 3306:3306 --name container_name -e MYSQL_ROOT_PASSWORD=your_psw -d mysql | |
#run vue.js container | |
docker run -ti --rm -p 8080:8080 --name vue-dev --volume ${PWD}:/vue vuejs:working bash | |
#run node-RED container | |
docker run -it -p 1880:1880 -v ${PWD}:/data --name node-red nodered/node-red |
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
a = int(input('first number ')) | |
b = int(input('second number ')) | |
if a < b: | |
x=a | |
a=b | |
b=x | |
else: | |
x=b | |
while x != 0: |