Skip to content

Instantly share code, notes, and snippets.

View mathdroid's full-sized avatar
☢️
not good, not terrible

Odi mathdroid

☢️
not good, not terrible
View GitHub Profile
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
@mathdroid
mathdroid / never.gif
Last active February 11, 2024 22:25
Never
never.gif
@mathdroid
mathdroid / 1.windows-steps.ps1
Last active January 14, 2024 13:07
WSL2 Setup
# 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
@mathdroid
mathdroid / you.gif
Last active June 10, 2022 09:05
You
you.gif
@mathdroid
mathdroid / ❤️.gif
Last active June 10, 2022 09:05
❤️
❤️.gif
@mathdroid
mathdroid / give.gif
Last active June 10, 2022 09:05
Give
give.gif
@mathdroid
mathdroid / gonna.gif
Last active June 10, 2022 09:05
Gonna
gonna.gif
@mathdroid
mathdroid / up.gif
Last active June 10, 2022 09:04
Up
up.gif
@mathdroid
mathdroid / useCachedState.ts
Created September 20, 2021 09:26
useCachedState
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, {
@mathdroid
mathdroid / rick.4.gif
Created May 11, 2019 00:24
Gist for rick.4.gif. Generated by `crop-github-images-cli`.
rick.4.gif