Skip to content

Instantly share code, notes, and snippets.

View jet-c-21's full-sized avatar
🔥

Jet (Ta-Wei Chien) jet-c-21

🔥
View GitHub Profile
@jet-c-21
jet-c-21 / .gitignore
Last active August 24, 2023 03:43
python project gitignore
# Customerization
## Whitelist Folders
## Whitelist Files
## Folders
.idea/

How to install OpenCV 4.5.2 with CUDA 11.2 and CUDNN 8.2 in Ubuntu 20.04

First of all install update and upgrade your system:

    apt update
    apt upgrade

Then, install required libraries:

@jet-c-21
jet-c-21 / python_oop_tutor_drinks.py
Created May 31, 2022 15:09
Python OOP Tutor - Drinks
# coding: utf-8
"""
author: Jet Chien
GitHub: https://github.com/jet-c-21
Create Date: 5/6/21
"""
class Drink:
company = 'jet drinks' # class var
import sys
import pathlib
CURR_DIR = pathlib.Path().resolve()
PROJECT_DIR = CURR_DIR.parent
sys.path.append(str(PROJECT_DIR))
print(f"[INFO] - append directory to path: {PROJECT_DIR}")
@jet-c-21
jet-c-21 / directory.py
Last active May 11, 2022 04:01
Common Python File I/O Tool
import os
import shutil
def create_dir(fp: str):
if not os.path.exists(fp):
os.mkdir(fp)
def remove_dir(fp: str):
if os.path.exists(fp):
@jet-c-21
jet-c-21 / kite_install.sh
Created March 8, 2022 13:56 — forked from 133794m3r/kite_install.sh
Kite installer fixed to make dpkg the top one to test.
#!/usr/bin/env bash
set -e
URL="https://linux.kite.com/linux/current/kite-installer"
# Exit codes:
# 1 - unknown/generic error
# 10 - OS unsupported
# 12 - no AVX support
# 15 - missing dependencies