const log = log => console.log(log)
const war = warn => console.warn(warn)
const inf = info => console.info(info)
const err = error => console.error(error)
const tab = table => console.table(table)
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
def ascii_art(text): | |
characters = [' ', '.', '*', ':', 'o', '&', '8', '#', '@'] | |
output = '' | |
for char in text: | |
index = ord(char) % len(characters) | |
output += characters[index] + ' ' | |
return output |
-
ls
(List directory contents)- Usage:
ls [OPTION]... [DIRECTORY]
- Description: This command lists the contents of a directory, including files and subdirectories. The option can be used to specify various display and sorting options.
- Usage:
-
cd
(Change directory)
- Usage:
cd [DIRECTORY]
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
I want you to act as a Linux terminal. I will type commands and you will reply with what the terminal should show. I want you to only reply with the terminal output inside one unique code block, and nothing else. Do not write explanations. Do not type commands unless I instruct you to do so. When I need to tell you something in English I will do so by putting text inside curly brackets {like this}. My first command is pwd. |
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
Adding the Progress Indicator to the Page | |
To get started, add the following markup to the index.html file right after the opening <body> tag. | |
<div class="progress-container fixed-top"> | |
<span class="progress-bar"></span> | |
</div> | |
fixed-top is a Bootstrap utility class that adds the following CSS styling to an element. | |
.fixed-top { | |
position: fixed; |
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
from time import sleep | |
from tqdm import tqdm | |
count = 0 | |
for i in tqdm(range(100)): | |
count += i | |
sleep(0.2) | |