Skip to content

Instantly share code, notes, and snippets.

View arthu's full-sized avatar
๐Ÿ’ญ
I may be slow to respond.

arthur arthu

๐Ÿ’ญ
I may be slow to respond.
View GitHub Profile
@arthu
arthu / emoji.js
Created July 8, 2021 15:38 — forked from codediodeio/emoji.js
Just a string filled with Emojis
export const emojis =
'๐Ÿ˜€,๐Ÿ˜ƒ,๐Ÿ˜„,๐Ÿ˜,๐Ÿ˜†,๐Ÿ˜…,๐Ÿ˜‚,๐Ÿคฃ,๐Ÿ˜Š,๐Ÿ™‚,๐Ÿ™ƒ,๐Ÿ˜‰,๐Ÿ˜Œ,๐Ÿ˜,๐Ÿ˜˜,๐Ÿ˜—,๐Ÿ˜™,๐Ÿ˜š,๐Ÿ˜‹,๐Ÿ˜›,๐Ÿ˜,๐Ÿ˜œ,๐Ÿคช,๐Ÿคจ,๐Ÿง,๐Ÿค“,๐Ÿ˜Ž,๐Ÿคฉ,๐Ÿ˜,๐Ÿ˜’,๐Ÿ˜ž,๐Ÿ˜”,๐Ÿ˜Ÿ,๐Ÿ˜•,๐Ÿ™,๐Ÿ˜ฃ,๐Ÿ˜–,๐Ÿ˜ซ,๐Ÿ˜ฉ,๐Ÿ˜ข,๐Ÿ˜ญ,๐Ÿ˜ค,๐Ÿ˜ ,๐Ÿ˜ก,๐Ÿคฌ,๐Ÿคฏ,๐Ÿ˜ณ,๐Ÿ˜ฑ,๐Ÿ˜จ,๐Ÿ˜ฐ,๐Ÿ˜ฅ,๐Ÿ˜“,๐Ÿค—,๐Ÿค”,๐Ÿคญ,๐Ÿคซ,๐Ÿคฅ,๐Ÿ˜ถ,๐Ÿ˜,๐Ÿ˜‘,๐Ÿ˜ฌ,๐Ÿ™„,๐Ÿ˜ฏ,๐Ÿ˜ฆ,๐Ÿ˜ง,๐Ÿ˜ฎ,๐Ÿ˜ฒ,๐Ÿ˜ด,๐Ÿคค,๐Ÿ˜ช,๐Ÿ˜ต,๐Ÿค,๐Ÿคข,๐Ÿคฎ,๐Ÿคง,๐Ÿ˜ท,๐Ÿค’,๐Ÿค•,๐Ÿค‘,๐Ÿค ,๐Ÿ˜ˆ,๐Ÿ‘ฟ,๐Ÿ‘น,๐Ÿ‘บ,๐Ÿคก,๐Ÿ’ฉ,๐Ÿ‘ป,๐Ÿ’€,๐Ÿ‘ฝ,๐Ÿ‘พ,๐Ÿค–,๐ŸŽƒ,๐Ÿ˜บ,๐Ÿ˜ธ,๐Ÿ˜น,๐Ÿ˜ป,๐Ÿ˜ผ,๐Ÿ˜ฝ,๐Ÿ™€,๐Ÿ˜ฟ,๐Ÿ˜พ,๐Ÿคฒ,๐Ÿ‘,๐Ÿ™Œ,๐Ÿ‘,๐Ÿค,๐Ÿ‘,๐Ÿ‘Ž,๐Ÿ‘Š,โœŠ,๐Ÿค›,๐Ÿคž,๐ŸคŸ,๐Ÿค˜,๐Ÿ‘Œ,๐Ÿ‘‰,๐Ÿ‘ˆ,๐Ÿ‘†,๐Ÿ‘‡,โœ‹,๐Ÿคš,๐Ÿ–,๐Ÿ––,๐Ÿ‘‹,๐Ÿค™,๐Ÿ’ช,๐Ÿ–•,๐Ÿ™';
export const emojisArray = emojis.split(',');
export const emojiRandom = () =>
emojisArray[Math.floor(Math.random() * emojisArray.length)];
@arthu
arthu / print.js
Created July 8, 2021 15:36 — forked from codediodeio/print.js
print
export const print = (v) => {
const el = document.createElement('h3');
el.innerText = '๐Ÿ”ต ' + v;
document.body.appendChild(el);
}
import { useForm } from 'react-hook-form';
import { useRouter } from 'next/router';
import { useAuth } from 'hooks/useAuth';
const ResetPasswordForm: React.FC = () => {
const { register, errors, handleSubmit } = useForm();
const auth = useAuth();
const router = useRouter();
const onSubmit = (data: { email: string }) => {
auth.sendPasswordResetEmail(data.email);
router.push('/login');