Skip to content

Instantly share code, notes, and snippets.

View RyanNorooz's full-sized avatar
⚜️
in pain

Rayan Noroozi RyanNorooz

⚜️
in pain
View GitHub Profile
@RyanNorooz
RyanNorooz / tailwind.config.js
Last active July 26, 2022 11:46 — forked from samselikoff/tailwind.config.js
Firefox plugin for Tailwind CSS. Add styles that target Firefox browser only.
const plugin = require('tailwindcss/plugin')
module.exports = {
plugins: [
// firefox only modifier
plugin(({ addVariant, e, postcss }) => {
addVariant('firefox', ({ container, separator }) => {
const isFirefoxRule = postcss.atRule({
name: 'supports',
params: '(-moz-appearance:none)',
@RyanNorooz
RyanNorooz / clear-console.js
Last active January 4, 2022 01:29 — forked from timneutkens/index.js
Clear console/terminal in node.js the right way (preserve terminal history)
const readline = require('readline')
const blank = '\n'.repeat(process.stdout.rows)
console.log(blank)
readline.cursorTo(process.stdout, 0, 0)
readline.clearScreenDown(process.stdout)