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
WEBVTT | |
00:00.000 --> 00:04.000 | |
Jika Anda nonton film ini, saya punya pesan sederhana. | |
00:05.000 --> 00:15.000 | |
Satu, tolong jadikan film ini sebagai landasan untuk Anda melakukan penghukuman. | |
00:16.000 --> 00:22.000 | |
Saya mau terlibat dalam film ini karena banyak orang yang akan makin paham |
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
import useSWR, { Key, useSWRConfig } from 'swr' | |
import { useEffect } from 'react' | |
export const useCachedState = <T>(key: Key, fallbackData?: T) => { | |
/// cache is used for subsequent uses | |
const { cache } = useSWRConfig() | |
/// if initial data is empty, use value from cache | |
const initialData = fallbackData ?? cache.get(key) | |
const { data, mutate } = useSWR(key, { |
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
//jscodeshift --rootDirs ./src --packageDir . --extensions ts --parser tsx -t abs.js src | |
/** | |
* This codemod expects 2 CLI arguments: | |
* - packageDir: the path of the directory containing the package.json. It's used to detect whether a path points | |
* to a dependency or an internal module. | |
* - rootDirs: root directory paths separated by a comma if you have more than one root. | |
* Let's say that you have two files: | |
* - src/component.js | |
* - src/index.js containing the import "import Component from 'component.js';" |
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
# 0. open a PowerShell as administrator | |
# 1. Enable WSL | |
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart | |
# 2. Enable VM Platform | |
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart | |
# 3. RESTART system, then open a PowerShell as administrator again | |
# MAKE SURE YOU HAVE RESTARTED BEFORE YOU CONTINUE |
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
.card { | |
box-shadow: rgba(0, 0, 0, 0.01) 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 4px 8px, rgba(0, 0, 0, 0.04) 0px 16px 24px, rgba(0, 0, 0, 0.01) 0px 24px 32px; | |
} |
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
class Human { | |
constructor(arg1, arg2) { | |
this.name = arg1; | |
this.age = arg2; | |
} | |
login() { | |
console.log("logging in"); | |
} |
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
function main(callback1, callback2) { | |
callback1(); | |
callback2(); | |
callback2(); | |
callback2(); | |
} | |
function helloWorld() { | |
console.log("hello world"); |
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
Placeholder for code.5.gif. |
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
Placeholder for code.1.gif. |
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
Placeholder for code.2.gif. |
NewerOlder