Skip to content

Instantly share code, notes, and snippets.

View tai271828's full-sized avatar

Tai Ho tai271828

View GitHub Profile
@tai271828
tai271828 / euler1d_profiling.py
Last active January 14, 2023 23:02
Example to run profiling jobs for modmesh
# Copyright (c) 2023, Taihsiang Ho <tai271828@solvcon.net>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# - Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
# - Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
@tai271828
tai271828 / rename.sh
Created February 5, 2024 14:53 — forked from htlin222/rename.sh
rename by ChatGPT
#!/bin/bash
# Author: Hsieh-Ting Lin
# Title: "rename"
# Date: "2024-02-05"
# Version: 1.0.0
# desc: rename by ChatGPT
API_ENDPOINT="https://api.openai.com/v1/chat/completions"
pdf_folder="."

Install armhf debian system on qemu

Environment

Operation system: Ubuntu 16.04.6 LTS

QEMU emulator version: 2.5.0

Installation

@tai271828
tai271828 / microgpt.py
Created August 11, 2026 08:48 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp