Skip to content

Instantly share code, notes, and snippets.

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

Humayun Kabir humayunkabir

🏠
Working from home
View GitHub Profile
var SELECTORS = {
state: [
'inverse',
'toggled',
'switched',
'original',
'initial',
'identified',
'disabled',
'loading',
@humayunkabir
humayunkabir / sass-7-1-pattern.scss
Last active August 8, 2018 09:41 — forked from rveitch/sass-7-1-pattern.scss
Sass 7-1 Pattern
sass/
|
|– abstracts/
| |– _variables.scss # Sass Variables
| |– _functions.scss # Sass Functions
| |– _mixins.scss # Sass Mixins
| |– _placeholders.scss # Sass Placeholders
|
|– base/
| |– _reset.scss # Reset/normalize
@humayunkabir
humayunkabir / App.tsx
Last active December 7, 2021 13:02
Validation hook for React Hook Form with Joi
import { useState } from 'react';
import useValidation from './hooks/useValidation';
import Joi from 'joi';
const schema = Joi.object({
email: Joi.string()
.email({ tlds: { allow: false } })
.required(),
password: Joi.string().min(8).required(),
});