Skip to content

Instantly share code, notes, and snippets.

Avatar
🌏
Working from home

Mohsen Bmohsen

🌏
Working from home
  • world
  • Shiraz, Iran
View GitHub Profile
@Bmohsen
Bmohsen / unicon_downloader.py
Created December 5, 2022 21:19
download all unicon(line version) font icon with python
View unicon_downloader.py
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} ...')
@Bmohsen
Bmohsen / 2dArray.js
Created September 11, 2022 07:37
2d array JavaScript function
View 2dArray.js
function make2DArray(cols, rows){
let arr = new Array(cols)
for(let i = 0; i < arr.length; i++){
arr[i] = new Array(rows)
}
return arr
}