sudo apt-get install motion
sudo motion
cant = 5 | |
c = 'x' | |
x = 1 | |
while x < cant: | |
if x == 1: | |
print(c * cant) | |
else: | |
print(c, ' ' * (cant - 4), c) | |
x += 1 | |
print(c * cant) |
import sys | |
import time | |
animation = "|/-\\" | |
for i in range(100): | |
time.sleep(0.5) | |
sys.stdout.write("\r" + animation[i % len(animation)]) | |
sys.stdout.flush() | |
print("End!") |
n = 10; x = []; | |
for i = 1:n | |
x = strcat(x,'*'); | |
s = [blanks(n-i) x]; | |
disp([s fliplr(s)]) | |
end | |
% Demo with n = 5 | |
% >> |
Windows: C:\Windows\System32\drivers\etc\hosts | |
Unix: /etc/hosts |
import http.server | |
import socketserver | |
PORT = 8081 | |
Handler = http.server.SimpleHTTPRequestHandler | |
with socketserver.TCPServer(("", PORT), Handler) as httpd: | |
print("serving at port", PORT) | |
httpd.serve_forever() |
#!/bin/bash | |
BACKUP_PATH="/Users/user/file_backup" | |
HOME_PATH="/Users/user/file_home/" | |
DATE=`date +%d%m%Y` | |
BACKUP="backup_" | |
EXT=".tar" |
# Connecting physical folders | |
MOUNT C: /Users/user/file | |
C: | |
# To view memory, enter programs into it, | |
# and track its execution | |
debug | |
a100 | |
# Clean records and multiply |