Skip to content

Instantly share code, notes, and snippets.

View ramyareye's full-sized avatar
🏠
Working from home

ramyareye

🏠
Working from home
View GitHub Profile
@ramyareye
ramyareye / useSWRInfinite-example.js
Last active December 21, 2020 12:34
useSWRInfinite example
import React, {useEffect, useState, useRef} from 'react';
import {useSWRInfinite} from 'swr';
import Layout from 'components/layouts';
import ErrorPage from 'components/Error';
import ActorCard from 'components/actorCard';
import VerticalList from 'components/verticalList';
import gate from 'gate';
import useOnScreen from 'hooks/useOnScreen';
@ramyareye
ramyareye / number_to_roman.js
Created July 25, 2022 04:15
number to roman
var roman = {
M: 1000,
CM: 900,
D: 500,
CD: 400,
C: 100,
XC: 90,
L: 50,
XL: 40,
X: 10,