Simple Introduction to CORS

最近在接一個外包的案子的時候遇到了一個error message Access to fetch at ‘https://some-web-service/’ from origin ‘http:...

March 19, 2024 · 3 min

Pyenv - Manage Python Environments Easily

What is Pyenv? When you got multiple python projects at hand that use different python versions, uninstall and reinstall between them makes your python environment a mess. With pyenv, a Python version management tool, can let developers easily manage, install and switch between python versions. Installation pyenv only work on UNIX/MacOS systems, the alternative on Windows is pyenv-win You can install using homebrew 1 2 brew update brew install pyenv Set Up Shell Environment You should be able to check your shell enviornment with this command: echo $SHELL, then execute the following command accordingly...

March 3, 2024 · 2 min

Q Learning Basics

Q Learning Basics, Concepts and Implementations

February 29, 2024 · 2 min

ERC-20 Token Transaction Fetching

Decoding tx details, interpreting ERC-20 token tx data from blockchain and etherscan.io

February 23, 2024 · 2 min

LeetCode 20. Valid Parentheses

Question Link Description: Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be closed by the same type of brackets. Open brackets must be closed in the correct order. Every close bracket has a corresponding open bracket of the same type. Examples Example 1 1 2 Input: s = "()" Output: true Example 2 1 2 Input: s = "()[]{}" Output: true Example 3 1 2 Input: s = "(]" Output: false Constraints 1 <= s....

January 10, 2024 · 1 min