Skip to content

Instantly share code, notes, and snippets.

Avatar

Duong Huu Phuc duonghuuphuc

View GitHub Profile
@duonghuuphuc
duonghuuphuc / microsoft-wordament-hints.md
Created October 15, 2022 06:23
Hints for Microsoft Wordament (Web-based version) [15-Oct-2022]
View microsoft-wordament-hints.md

Hints for Microsoft Wordament (Map 1)

Microsoft Wordament is a word-finding game and is a part of Microsoft Ultimate Word Games. The web-based version of Microsoft Wordament is freely available on MSN Games, and its native version is available on iOS and Android.

Hints for Web-based version

@duonghuuphuc
duonghuuphuc / conda-cheatsheet-2022.md
Last active October 17, 2022 14:56
Some popular and basic conda commands
View conda-cheatsheet-2022.md

CONDA CHEAT SHEET

This GIST presents some basic commands to work with Anaconda Terminal.

Basic commands

  • conda info --- Verify whether conda is installed, if yes, print all information about the installed conda such as Python version, conda version, env location
  • conda update conda --- Update conda to the latest version
  • conda install PACKAGENAME --- Install a package which is made available on Anaconda repository
  • pip install PACKAGENAME --- Install a package directly from PyPI
  • conda update PACKAGENAME --- Update an installed package
@duonghuuphuc
duonghuuphuc / install-virtualenvwrapper-on-macos-10.15-and-later.md
Created June 12, 2022 08:12
Install virtualenvwrapper on macOS 10.15 and later
View install-virtualenvwrapper-on-macos-10.15-and-later.md

Install virtualenvwrapper on macOS 10.15 and later

At WWDC 2019 on June 3, 2019, starting with macOS Catalina (10.15), the macOS will use zsh as default shell across the operating system. Besides, Bash is still available along with the new zsh; however, by setting zsh as the default shell, Apple does force you to move to the new platform.

virtualenvwrapper is a set of extensions to the original virtualenv which is a tool for creating isolated virtual Python environments. The extensions include wrappers for creating and deleting virtual environments and otherwise managing your development workflow, making it easier to work on more than one project at a time without introducing conflicts in their dependencies. According to the virtualenvwrapper docs, there are some noteworthy features such as:

  • Organizes all your virtual environments in one place.
  • Wrappers for managing your virtual environments (create, delete, copy).
  • Use a single command to switch between environments.
@duonghuuphuc
duonghuuphuc / install-python3-on-macos-10.15-and-later.md
Last active July 30, 2022 16:55
Install Python3 on macOS 10.15 and later
View install-python3-on-macos-10.15-and-later.md

Install Python3 on macOS 10.15 and later

This tutorial will show you how to install Python3 on a macOS system. To demonstrate the installation process, I will present the steps on macOS Catalina (Version 10.15). Instead of installing Python3 via the installer from the Python website, this tutorial will use brew which is the most popular Package Manager for macOS.

1/ Install brew

Installing brew on your system is straightforward, you just need to copy-and-paste the following command to the Terminal: