Movie | Aadi | Mouli | Soni |
---|---|---|---|
Kimetsu no Yaiba | 1 | 0 | 0 |
This file contains hidden or 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
# Brew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew update | |
# ZSH | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# Add brew to path | |
(echo; echo 'eval "$(/opt/homebrew/bin/brew shellenv)"') >> ~/.zshrc | |
eval "$(/opt/homebrew/bin/brew shellenv)" |
This file contains hidden or 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 { useCallback, useState, useEffect } from 'react' | |
const defaultState = { error: null, isLoading: false, result: null } | |
export const useAsyncCallback = (callback, deps = []) => { | |
const [state, setState] = useState(defaultState) | |
const cb = useCallback( | |
(...args) => { | |
const req = callback(...args) |
This file contains hidden or 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 { useCallback, useMemo } from 'react' | |
import { debounce } from 'lodash' | |
export const useAsyncDebounced = (callback, time) => { | |
const debounced = useMemo( | |
() => | |
debounce( | |
(res, rej, ...args) => | |
callback(...args) | |
.then(res) |
This file contains hidden or 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
const fs = require('fs') | |
const path = require('path') | |
const momentLocaleFolder = path.join(__dirname, 'locale') | |
const dayjsLocaleFolder = path.join(__dirname, 'src/locale') | |
const saveFolder = path.join(__dirname, 'src/locale') | |
const Moment = require(path.join(__dirname, './moment')) | |
function objectToString(obj, prefix = ' ') { | |
let string = '{' |
This file contains hidden or 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
server { | |
listen 80; | |
listen [::]:80 default; | |
listen 443 ssl; | |
index index.php index.html; | |
server_name ~^(?<subdomain>[^.]+).example.com; | |
root /var/www/$subdomain; | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>walker vs tree walker</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |