My collection of notes and code snippets
Notes
November 8, 2024
Leetcode
Starter code for custom judge
import sys
from typing import List, Type
class Solution:
@staticmethod
def twoSum(nums: List[int], target: int) -> List[int]:
print(nums)
return nums
str = sys.stdin.readline().strip('\n')
tmp = str.split()
Solution.twoSum(tmp[0], tmp[1])
# input -> [2,3] 4
October 29, 2024
WSL
Open nautilus (ubuntu explorer)
sudo apt install nautilus -y
October 25, 2024
Mastodon
Need to try https://elk.zone/
October 25, 2024
CSS
Generate css for page dividers https://omatsuri.app/page-dividers
October 24, 2024
Rust
Use Pake to generate a native Windows/Mac app for a website with a smaller size than Electron.