Set the base image to Ubuntu must be first instruction - use docker search to find images
FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)
Set the maintainer info
Set the base image to Ubuntu must be first instruction - use docker search to find images
FROM ubuntu # <image>
FROM ubuntu:latest # - <image>:<tag>
FROM ubuntu:precise (LTS)
Set the maintainer info
# INDOOR | |
input_ = input() # Prompt User for input | |
output = input_.lower() # Convert input to lower case | |
print(output) # Display output on screen | |
# PLAYBACK |
def main(): | |
name = input("What's your name? ") | |
print(hello(name)) | |
def hello(to="world"): | |
return f"hello, {to}" | |
if __name__ == "__main__": | |
main() |
Use Python to:
<?php | |
function main() { | |
$name = (string)readline("What's your name? "); | |
echo hello($name); | |
} | |
function hello(string $to="world") { | |
return sprintf('hello, %s', $to); | |
} | |
main() |
<?php | |
function main() { | |
$len = 0; | |
$divisor = 10; | |
$ccn; | |
// Query user for card details | |
do | |
{ |
Just migrated it from Codepen.io to markdown. Credit goes to David Conner.
Working with DOM | Working with JS | Working With Functions |
---|---|---|
Accessing Dom Elements | Add/Remove Array Item | Add Default Arguments to Function |
Grab Children/Parent Node(s) | Add/Remove Object Properties | Throttle/Debounce Functions |
Create DOM Elements | Conditionals |