Skip to content

Instantly share code, notes, and snippets.

View chengengliu's full-sized avatar
:bowtie:
I may be slow to respond.

Victor Liu chengengliu

:bowtie:
I may be slow to respond.
  • Nanyang Technological University
  • Singapore
  • 06:22 (UTC +08:00)
View GitHub Profile
@chengengliu
chengengliu / environment.yml
Created November 18, 2022 04:22
yaml configuration file for windows : motion diffusion model
name: mdm
channels:
- pytorch
- anaconda
- conda-forge
- defaults
dependencies:
- _libgcc_mutex=0.1=main
# - _openmp_mutex=5.1
- beautifulsoup4=4.11.1=pyha770c72_0
@chengengliu
chengengliu / gist:4d2c04273e60f7f2e0fa4b0ddeb6e38b
Created September 14, 2021 00:58
MacOS check what programs are accessing external disk
sudo lsof | grep /Volumes/External
@chengengliu
chengengliu / description.md
Last active June 15, 2021 01:03
Import file from Google Drive into Colab

import sys </br> from google.colab import drive

print out files under the root dir of your drive:
!ls /content/gdrive/My\ Drive/

tell code lab to mound on google drive, you may be asked for auth token
drive.mount('/content/gdrive/')

@chengengliu
chengengliu / gist:fcd484f7e7fb1ff95f20c10ab46d9f61
Last active March 10, 2021 03:18
Remove commits remotely without touch local files

Thanks to Stackoverflow

Remove files based on .gitignore:
git rm --cached `git ls-files -i -X .gitignore`

Remove a single file: git rm --cached mylogfile.log

If it's a directory, just add -r to recusively rm it.

@chengengliu
chengengliu / gist:6e91f1b81ee64018c92cd451b9055dae
Created July 28, 2018 06:41 — forked from mikehaertl/gist:3258427
Learn you a Haskell - In a nutshell

Learn you a Haskell - In a nutshell

This is a summary of the "Learn You A Haskell" online book under http://learnyouahaskell.com/chapters.


1. Introduction

  • Haskell is a functional programming language.