[alias]
st = status
aa = add .
ca = "!git add . && git commit"
c = commit
cm = commit -m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This job is right below "publish_results" | |
comment_on_jira: | |
name: "Comment on Jira" | |
if: github.event.action == 'opened' | |
needs: [linting, unit_test, end_to_end_test, deploy_pr_frontend, deploy_storybook, plan_staging, plan_prod] | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Login to JIRA" |
Here are the steps:
- Copy the Youtube video's link into VLC's "Open Network Stream" option (Media > Open Network Stream)
- Click Tools > Media Information
- Copy the "Location" text at the bottom and paste it into the browser
- Right-click the video in the browser and select "Save video as"
- Convert the downloaded video into .mp3 using FFmpeg: link
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[filter "lfs"] | |
clean = git-lfs clean -- %f | |
smudge = git-lfs smudge -- %f | |
required = true | |
[user] | |
name = Binh Nguyen | |
[user] | |
email = [email protected] | |
[winUpdater] | |
recentlySeenVersion = 2.25.0.windows.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"metadata": { | |
"id": "464f4ac7-af65-4aa9-9907-4ba7fa419085", | |
"publisherId": "bungcip.better-toml", | |
"publisherDisplayName": "bungcip" | |
}, | |
"name": "better-toml", | |
"publisher": "bungcip", | |
"version": "0.3.2" |
useCallback(fn, deps)
is equivalent to useMemo(() => fn, deps)
.
useCallback |
useMemo |
|
---|---|---|
Function signature | const someCallback = useCallback(() => { expensivelyCompute(a) }, [a]); |
const someValue = useMemo(() => expensivelyCompute(a), [a]); |
What it does | someCallback will only change if a changes. An example usage is when someCallback is passed down as a prop. The child receiving someCallback will only re-render when a changes. |
someValue will only be re-computed if a changes. Essentially the same someValue will never be calculated twice in a row (assuming expensivelyCompute() is a pure function, of course). |
NewerOlder