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
version: "3.9" | |
services: | |
traefik: | |
# Use the latest v3.0.x Traefik image available | |
image: traefik:v3.0 | |
ports: | |
# Listen on port 80, default for HTTP, necessary to redirect to HTTPS | |
- target: 80 | |
published: 80 |
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
import requests | |
def download_fonts(): | |
base_url = 'https://unicons.iconscout.com/release/v4.0.0/fonts/line/' | |
file_formats = ['eot', 'woff', 'ttf', 'woff2', 'svg'] | |
for i in range(21): | |
for ext in file_formats: | |
file_name = f'unicons-{i}.{ext}' | |
print(f'downloading {file_name} ...') |
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
function make2DArray(cols, rows){ | |
let arr = new Array(cols) | |
for(let i = 0; i < arr.length; i++){ | |
arr[i] = new Array(rows) | |
} | |
return arr | |
} |