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
answer = int(raw_input("select a number between 1 and 100: ")) | |
if answer < 1 or answer > 100: | |
print "Wrong number!" | |
else: | |
for x in range (1, answer + 1): | |
if x % 5 == 0 and x % 3 == 0: | |
print "fizzbuzz" | |
elif x % 5 == 0: | |
print "buzz" | |
elif x % 3 == 0: |
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
print "Hello, I'm converting kilometers into miles.\n" | |
answer = "yes" | |
while answer == "yes" or answer == "y": | |
kilometres = raw_input("Please enter the amount of kilometres: ") | |
miles = float(kilometres) * 0.621372 | |
print miles | |
answer = raw_input("Do you want to do another conversion? ").lower() |
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
[Unit] | |
Description=Docker registry mirror | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
Environment=UNIT=docker-registry-mirror | |
TimeoutStartSec=0 | |
ExecStartPre=/usr/bin/docker pull registry | |
ExecStartPre=-/usr/bin/docker run --name ${UNIT}-dvc -v /tmp/registry busybox true |
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
%*************************************************************************% | |
%%------------A SHORT INTRODUCTION TO MATLAB VIA EXAMPLES----------------%% | |
%*************************************************************************% | |
%This short introduction to Matlab will take you through the essentials you | |
%will need for your problem sets. There will be times when you will need | |
%to look up stuff on your own. To that end, the INTERNET is useful, but | |
%also the command: help. Here's how you use it: | |
help sum |