Posts
年终总结
2022年在我的职业生涯里可能是非常不同寻常的一年,这一年我离职四次。Death
Death kills a man, but the idea of death can save him - [[https://en.wikipedia.org/wiki/E._M._Forster][E.M.Forster]].Emacs copy/delete/count/sort (matching) line functions
Collection of ways to manipulate lines based off regex. All of these functions/tips were compiled from the links in [[*Source][Source]].Intelligently select a node in Emacs with tree-sitter
Sometimes it's annoying having to manually select a variable name and copy it, especially when you deal with multiple languages.
Emacs reference manual read
Notes from reading [[https://www.gnu.org/software/emacs/manual/html_node/elisp/index.html][Emacs Lisp Reference Manual.]]AWS Solutions Architect Professional Exam
OK, today I started another course to get my Solutions Architect Professional certificate.
org-export-before-processing-hook
So we can use this code to insert some front matter before exporting org file to HTML, specifically for Jekyll.
pandas apply function to column to create multiple new columns
A trick to generate multiple columns from a function used in ~df.apply~.pandas convert booleans to integer (1 or 0)
Here's how to convert a series of booleans to 1 or 0 (integer) in Pandas.
pandas melt
1. "unpivot" a dataframe to a pseudo-series
Today I had to convert something like below:
567 Permutation in String
1. Description
Given two strings
s1
ands2
, returntrue
ifs2
contains a permutation ofs1
, orfalse
otherwise.3. Longest Substring Without Repeating Characters
Medium19. Remove Nth Node From End of List
This one I wasn't able to finish167 Two Sum II - Input Array is Sorted
167 Two Sum II - Input Array is Sorted283 Move Zeroes
I didn't know it was spelled "Zeroes"189 Rotate Array
Harder than meets the eye.977 Squares of a Sorted Array
Two pointers.35 Search Insert Position
Binary search is just tricky278 First Bad Version
Tricky...704 Binary Search
想了一个记忆口诀441 Arranging Coins
Math magic.Leetcode 20 Valid Parentheses
Figure out if parentheses are valid.List of my failures
Learn to fail, or fail to learn.Code highlighting in Jekyll
Took me a while to understand this.musics I like
A list of musics that I like(d)python shuffle string
Can't believe I never noted this down.pandas shuffle dataframe
In Pandas you can shuffle your DataFrame like below with
sample
.df = df.sample(frac=1)
AWS Solutions Architect Associate Exam 30 小时通关体验
30小时一次通关AWS SAA (Solutions Architect Associate) 考试经验分享。
CIDR (Classless Inter-Domain Routing)
Useful website: https://cidr.xyz/
Elastic Load Blancing
Elastic load balancing course notes.Blog with org mode
My rather twisted setup犯错
人是一定会犯错的政治的人生
政治的人生Atomic Habits
One of the best books in 2021 (2021年读过的最好的书之一)How to generate random uuid in Emacs
How to generate random uuid in Emacspost process results from async call from EIN
A quick hack.The Road to Serfdom (Reader's Digest Condensed version)
Where are we going?《如何阅读一本书》读书笔记
《如何阅读一本书》读书笔记Leetcode challenges
Old Leetcode challenges that I did.subscribe via RSS