Skip to content

Instantly share code, notes, and snippets.

View arsenipachkovski's full-sized avatar
🔥

Arséni Pachkovski arsenipachkovski

🔥
View GitHub Profile
@arsenipachkovski
arsenipachkovski / add-prefix-to-tailwind-classes.js
Created March 19, 2024 10:57
Simple script to add prefix to existing tailwind classes
const fs = require("fs");
const path = require("path");
const glob = require("glob");
const PREFIX = "tw-";
const rootDir = "./src";
function replaceClassNames(classNamesString) {
const classNames = classNamesString.split(" ");
@arsenipachkovski
arsenipachkovski / web-servers.md
Created November 14, 2020 17:26 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@arsenipachkovski
arsenipachkovski / gist:b0c29676e3d89f3ee1d55927628b41d9
Last active July 15, 2020 15:04 — forked from sreez/gist:c624b3e440b66f9d16a9dc39a2297ed1
taiwindcss default list of padding , font size and line height against equivalent pixels for font base 16px
0px 0rem .p-0
4px 0.25rem .p-1
8px 0.5rem .p-2
12px 0.75rem .p-3, .leading-3, .text-xs
14px 0.875rem .text-sm
16px 1rem .p-4, .leading-4, .text-base
18px 1.125rem .text-lg
20px 1.25rem .p-5, .leading-5, .text-xl
24px 1.5rem .p-6, .leading-6, .text-2xl
28px 1.75rem .leading-7