View unicon_downloader.py
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} ...') |
View 2dArray.js
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 | |
} |