Skip to content

Instantly share code, notes, and snippets.

View Bujhm's full-sized avatar
🐢
I may be slow to respond.

Igor Bujhm

🐢
I may be slow to respond.
View GitHub Profile
@Bujhm
Bujhm / useDebounce.js
Created September 14, 2024 00:22 — forked from dwhiteGUK/useDebounce.js
Hooks
import { useEffect, useState } from 'react';
const useDebounce = (value, delay = 500) => {
// State and setters fpr debounced value
const [debouncedValue, setDebouncedValue] = useState(value);
useEffect(() => {
const handler = setTimeout(() => {
setDebouncedValue(value);
}, delay);
@Bujhm
Bujhm / gist:ac3645230925f84d207f534b2cdc0412
Created May 8, 2026 05:41 — forked from monsat/gist:1143625
"git log-all" is command for viewing logs with branch tree
# via http://d.hatena.ne.jp/yukioc/20090920/1253413686
git config --global alias.log-all "log --graph --all --color --pretty='%x09%h %cn%x09%s %Cred%d%Creset'"