my attempt to implement C-SQUARES in some modern languages
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
""" | |
thuật toán gốc: https://www.informatik.uni-leipzig.de/~duc/amlich/calrules.html | |
bản julia này được chuyển từ bản python: https://github.com/quangvinh86/SolarLunarCalendar/blob/master/LunarSolar.py | |
sử dụng đơn vị đo góc = độ thay vì radian để làm gọn các phương trình thuật toán thiên văn | |
""" | |
#= | |
Quy luật của âm lịch Việt Nam: | |
- Ngày đầu tiên của tháng âm lịch là ngày chứa điểm Sóc | |
- Một năm bình thường có 12 tháng âm lịch, một năm nhuận có 13 tháng âm lịch |
model files to use with https://github.com/ollama/ollama
ollama create example -f modelfile.txt
ollama run example
ollama rm example
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
import os | |
import requests | |
import werkzeug | |
from tqdm import tqdm | |
def download_ckpt(url:str, filename:str="", overwrite:bool=False, chunk_size:int=1) -> None: | |
""" | |
try auto detect file name if left empty | |
option to overwrite if file already existed |
楷体 Khải thể (Kaiti)
test-page = text chương 1 kinh pháp hoa
Arphic PL UKai
- OG but dead: https://www.freedesktop.org/wiki/Software/CJKUnifonts/Download/
- https://github.com/SilentByte/fonts-arphic-ukai/blob/master/fonts-arphic-ukai/ukai.ttc
Adobe Kaiti Std
bản gốc từ https://github.com/ds4v/NomNaSite/blob/main/handler/translator.py
giải thích API:
mode=trans
chuyển đổi từ Hán tựlang=1
→ Hán-Việtlang=2
→ bính âmlang=3
→ chữ Nôm
mode=han
chuyển đổi sang Hán tự
inputs: GPS coordinates (WGS 84)
output:
- GFCM statistical grid, ref: https://www.fao.org/gfcm/data/maps/grid/en/
- ICES statistical rectangles, ref: https://www.ices.dk/data/maps/Pages/ICES-statistical-rectangles.aspx