Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥

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

🔥
View GitHub Profile
View gist:81bae95b60f0ab3f3b616715e1a76994

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
Python OOP Tutor - Drinks
View python_oop_tutor_drinks.py
# 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
View add_project_dir_to_path_in_sub_dir.py
import sys
import pathlib
# add project directory to path
PROJECT_DIR = str(pathlib.Path(__file__).parent.parent)
sys.path.append(PROJECT_DIR)
@jet-c-21
jet-c-21 / directory.py
Last active May 11, 2022
Common Python File I/O Tool
View directory.py
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 Mar 8, 2022 — forked from 133794m3r/kite_install.sh
Kite installer fixed to make dpkg the top one to test.
View kite_install.sh
#!/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