Skip to content

Instantly share code, notes, and snippets.

View hasan-almujtaba's full-sized avatar

Hasan Al Mujtaba hasan-almujtaba

View GitHub Profile
@antonmihaylov
antonmihaylov / WithClass.tsx
Created July 11, 2022 08:58
Tailwind component with variants wrapper
import type { ClassValue } from 'clsx'
import clsx from 'clsx'
import defaults from 'lodash/fp/defaults'
import entries from 'lodash/fp/entries'
import flow from 'lodash/fp/flow'
import isBoolean from 'lodash/fp/isBoolean'
import isFunction from 'lodash/fp/isFunction'
import isNumber from 'lodash/fp/isNumber'
import isObject from 'lodash/fp/isObject'
import isString from 'lodash/fp/isString'
@peltho
peltho / svelte.md
Last active January 20, 2025 08:08
Svelte cheatsheet
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>