Given tree:
What do the 3 types of traversal actually look like?
Continue readingI was watching a series and had to shift my subtitles by 38 seconds every time I open a video. After a few times of pain, I ended up writing a script to cut the crap, have some fun, and get a bit into NodeJS file I/O! 😀
Continue readingThere’s a specific function for this: beforeunload
.
For reference:
yarn upgrade-interactive --latest
And use a
key to select all of them.
One big gotcha: select
actually has side effects. It updates the bound data.
If some of the unicodes work, but not others:
Continue readingSay we want the email
field on our User
model to be unique, so we set the Schema to be:
const UserSchema = new Schema({
email: {type: String, required: true, unique: true}
});
Somehow, it just doesn’t work. As it turns out, there are plenty of reasons why this wouldn’t work. Let’s see which one got you.
Continue readinggit push
on master
branchyarn run build
or any other scripts)I’m on DigitalOcean’s server, but this works on any self hosted servers.
Continue reading