Skip to content

Instantly share code, notes, and snippets.

View South-Paw's full-sized avatar
👨‍💻

Alex Gabites South-Paw

👨‍💻
View GitHub Profile
@South-Paw
South-Paw / mongodb-oid.ts
Last active December 12, 2020 00:14
MongoDB Object ID generator TypeScript
export const uuid = () =>
((new Date().getTime() / 1000) | 0).toString(16) +
'xxxxxxxxxxxxxxxx'.replace(/[x]/g, () => ((Math.random() * 16) | 0).toString(16)).toLowerCase();
@South-Paw
South-Paw / reset-test.html
Created May 8, 2019 02:41
Basic HTML elements for testing CSS resets and base theme styles of a component library/design system on.
<h3>Headings</h3>
<h1>h1. Heading</h1>
<h2>h2. Heading</h2>
<h3>h3. Heading</h3>
<h4>h4. Heading</h4>
<h5>h5. Heading</h5>
<h6>h6. Heading</h6>
<hr />
@South-Paw
South-Paw / gist:ab7a5bff5f4ca2a9555c728947083f10
Last active December 27, 2018 01:01
Git: Add empty initial commit
git commit --allow-empty -m "Initial commit"