Skip to content

Instantly share code, notes, and snippets.

View dangmanhtruong1995's full-sized avatar
๐Ÿ˜
I may be slow to respond.

Dang Manh Truong dangmanhtruong1995

๐Ÿ˜
I may be slow to respond.
View GitHub Profile
@jiewpeng
jiewpeng / add_anaconda_right_click_menu.md
Last active March 1, 2025 12:14
Add Anaconda Prompt to Windows right click context menu

This gist describes how to add Anaconda Prompt to the Windows right click context menu. This is because at some point, Anaconda no longer adds itself to the PATH after installation.

  1. Run regedit.exe
  2. Navigate to HKEY_CLASSES_ROOT > Directory > Background > shell
  3. Add a key named AnacondaPrompt and set its value to "Anaconda Prompt Here" (or anything you'd like it to appear as in the right click context menu)
  4. Add a key under this key, called command, and set its value to cmd.exe /K C:\Anaconda3\Scripts\activate.bat (may have to change the activate.bat file to whereever Anaconda is installed)
@thomastweets
thomastweets / PNGWhiteTrim.py
Last active June 23, 2025 15:42
Python script to trim all png images with white background in a folder
import Image
import sys
import glob
import ImageOps
# Trim all png images with white background in a folder
# Usage "python PNGWhiteTrim.py ../someFolder"
try:
folderName = sys.argv[1]