Promise.all()
vsPromise.race()
.- Use CSS to draw a triangle.
- HTTP1.1 vs HTTP2.0
- DNS
flex: 0 auto
orflex: 1 auto
- CSS position.
- What happen after typing www.google.com in your Browser?
- prototype.
- Determine if an object is an
Array
.
Self-Hosted typesense Service
typesense is a open source Algolia alternative. This blog shows how to run a self-hosted typesense
server on my own server.
ByteDance Interview Round 3
When we are discussing about my projects. The interviewer asked the following questions:
- How do you achieve infinite play effect in a carousel?
- Use JS to achieve
#id
's scroll to element effect. - CSS animation.
After done talking my projects, I was asked a few questions about Promise
, linked list, and heap sort, insertion sort.
ByteDance Interview Round 2
- React fiber
- Event loop
- why do we need two task queues? (priority)
- CSS animation vs. JS animation
- Some questions about CSS animation
- How Does JS Achieve Async?
- CSS Grid
- CSS Float
- Depth First Search
- Prototype
How to Use git stash?
git stash with a stash name.
git stash push -m "stash_name"
stash untracked files
git stash push -u -m "stash_name"
git stash push --include-untracked -m "stash_name"
Useful Learning Resources
CMD vs ENTRYPOINT
The ENTRYPOINT specifies a command that will always be executed when the container starts.
The CMD specifies arguments that will be fed to the ENTRYPOINT.
ENTRYPOINT
can also be overridden using--entrypoint
flagCMD
will be overridden when running the container with alternative arguments (e.g.bash
).
How to Setup a OpenVPN Server?
Just a simple command
docker run -itd --restart always --cap-add=NET_ADMIN \
-p 1194:1194/udp -p 7070:8080/tcp \
-e HOST_ADDR=$(curl -s https://api.ipify.org) \
-v openvpn_conf:/opt/Dockovpn_data \
--name dockovpn alekslitvinenk/openvpn
Then download the config file from the http://<public-ip>:7070
and then import the config file (client.ovpn
) to the vpn client.
Clients:
Xiaohai's First Blog Post
This is my first blog written in CodeSandbox.
I like this app very much. I would enjoying using it to document my study. With this app, I can read notes on both my phone and laptop. In short, it provides a very nice user experience. Now, I am going to finish this commit and deploy the app to vercel.