Skip to content
View raincoffeecode's full-sized avatar

Block or report raincoffeecode

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. useLocalStorage Hook
    1
    "use client"
    2
    
                  
    3
    import type { Dispatch, SetStateAction } from "react"
    4
    import { useCallback, useEffect, useState, useSyncExternalStore } from "react"
    5
    
                  
  2. ThemeProvider
    1
    "use client"
    2
    
                  
    3
    import {
    4
      ReactNode,
    5
      createContext,
  3. leetcode Public

    My solutions to LeetCode problems

    TypeScript 1

  4. VercelKVDataSource
    1
    import { kv } from "@vercel/kv"
    2
    import DataLoader from "dataloader"
    3
    
                  
    4
    export default class VercelKVDataSource<TData> {
    5
      private dataLoader: DataLoader<string, TData>
  5. TypeScript Cheat Sheet
    1
    // Empty array
    2
    Array(n).fill(0)
    3
    
                  
    4
    // Empty array if values are arrays or objects
    5
    Array.from({ length: n }, () => [true])
  6. useSystemDarkMode hook
    1
    "use client"
    2
    
                  
    3
    import { useCallback, useSyncExternalStore } from "react"
    4
    
                  
    5
    export type SystemDarkModeHookResponse = {