Skip to content
View gabrielmlinassi's full-sized avatar
🏠
Working from home
🏠
Working from home

Block or report gabrielmlinassi

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
gabrielmlinassi/README.md

Prefered FE stack => Nextjs + ReactQuery + Tailwind + RadixUI/shadcdn + Tailwind + Zustand
Prefered BE stack => Express + Sqlite + Drizzle
Interests => C++, Wasm, Blockchain

git reset --hard HEAD~1
git push -f

Pinned Loading

  1. useMediaQuery & useBreakpoints hooks... useMediaQuery & useBreakpoints hooks for handling conditional rendering on multiple breakpoints (Adapted for Next.js)
    1
    // -------------------------
    2
    // useMediaQuery
    3
    
                  
    4
    import { useState, useEffect, useLayoutEffect } from "react";
    5
    
                  
  2. How to implement debounce How to implement debounce
    1
    // #1. With a controlled input
    2
    import { useState, useEffect } from 'react';
    3
    const debounce = require("lodash.debounce");
    4
    
                  
    5
    function SearchBar({ onSearch, wait = 500 }) {
  3. workaround aspect-ratio safari workaround aspect-ratio safari
    1
    import { useRef, useEffect, useState } from "react";
    2
    
                  
    3
    export default function Test() {
    4
      const [height, setHeight] = useState(0);
    5
      const ref = useRef<HTMLDivElement>(null);
  4. GraphQL with Vanilla JavaScript GraphQL with Vanilla JavaScript
    1
    const api = axios.create({
    2
      baseURL: "xxx/graphql",
    3
      method: "POST",
    4
      headers: { "Content-Type": "application/json" },
    5
    });