Skip to content

Instantly share code, notes, and snippets.

View kinchungwong's full-sized avatar

Ryan Wong kinchungwong

View GitHub Profile
@kinchungwong
kinchungwong / CREDITS.txt
Last active March 1, 2024 18:19
Python object type explorer
Credits, Acknowledgements and Similar Projects:
https://github.com/marcheiligers/python_type_explorer
@kinchungwong
kinchungwong / colab_loader.py
Last active October 25, 2023 10:25
MITx 6.86x Project 3 Google Colab helper code
%load_ext autoreload
%autoreload 2
import os
from os.path import join as pathjoin
from os.path import isdir, isfile
import shutil
import subprocess
import datetime
import functools
@kinchungwong
kinchungwong / TensorRT_on_Google_Colab.md
Created October 4, 2023 17:46
TensorRT on Google Colab

Checks TensorRT installation on Google Colab

More information: googlecolab/colabtools#1844

Code

Installing TensorRT via pip

!pip install --upgrade --index-url https://pypi.ngc.nvidia.com nvidia-tensorrt
@kinchungwong
kinchungwong / COPYING.txt
Last active October 1, 2023 00:05
Helper functions for running Python homework or project with multiple source files on Google Colab
https://creativecommons.org/publicdomain/zero/1.0/
https://creativecommons.org/publicdomain/zero/1.0/legalcode.txt
@kinchungwong
kinchungwong / gist:596268a7d21e6dfa5db99ed2d9781a22
Created March 23, 2023 20:26
ChatGPT-Model-4.0-Dr-Watumull-Mars-Terraform-Moral-Question-Sample-Prompt-Response-2023-03-23
Model: GPT-4
Date of test: 2023-03-23
User account type: Plus
Background:
This is a novice attempt at a rerun of a conversation test with ChatGPT conducted by Dr. Jeffrey Watumull, PhD in Linguistics, currently the Chief Philosophy Officer and Director of Artificial Intelligence Research at Oceanit in Honolulu. The conversation test and the exact prompts were published in an article published in the New York Times co-authored with Noam Chomsky and Ian Roberts.
In this novice rerun, a few additional prompts and preface words were added for experimental purpose.
@kinchungwong
kinchungwong / VSCode_OpenCV_20180318.md
Last active April 7, 2022 16:24
Using VSCode to browse OpenCV code on Ubuntu

Using VSCode to browse OpenCV code on Ubuntu

Audience: beginners

This guide is mainly written for my own reference. There may be mistakes. It is written so that I can start from scratch (e.g. get a computer, get internet access, install Ubuntu, etc). This guide does assume a bit of Linux familiarity, which most university students already have.

Getting started (step-by-step for first time)

Install CMake

@kinchungwong
kinchungwong / gist:412efc830b78d5f97a16784eface3ba5
Created February 10, 2021 14:13
Is it that easy to lock companies out?
https://9to5google.com/2021/02/09/stadia-port-of-terraria-cancelled-after-co-creator-is-locked-out-of-his-google-accounts/
@kinchungwong
kinchungwong / temp_20210105.txt
Created January 5, 2021 21:22
temp_20210105.txt
==========
First Pass, Processing [1 2]
----------
Deltas: 0 0 (Votes: 1979)
----------
Removing 2 due to zero movement.
----------
==========
First Pass, Processing [1 3]
----------
@kinchungwong
kinchungwong / temp_20201216.txt
Created December 17, 2020 05:07
temp_20201216.txt
==========
First Pass, Processing [1 2]
----------
Deltas: 0 0 (Votes: 770)
----------
Removing 2 due to zero movement.
----------
==========
First Pass, Processing [1 3]
----------
@kinchungwong
kinchungwong / notes_2020_11_27_7am.txt
Created November 27, 2020 15:49
notes_2020_11_27_7am.txt
function ContinuousMovements(tables, imageData,
%
% This algorithm tries to construct a long-range trajectory by inspecting
% the (relatively short) movement vectors obtained from multiple runs of T3
% (three-image trajectory).
% ======
% (REMARK) Keep a blank line between the HELP section and DETAIL section.
%
% The algorithm used here are simple. Here is a brief description.