Skip to content

Instantly share code, notes, and snippets.

View ace4port's full-sized avatar
🎯
(╯‵□′)╯︵┻━┻

Abdullah Waqar ace4port

🎯
(╯‵□′)╯︵┻━┻
View GitHub Profile
@ace4port
ace4port / esm-package.md
Created April 21, 2023 02:57 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@ace4port
ace4port / before-after-the-content-property.markdown
Created June 16, 2021 03:16
::before & ::after - the content property
@ace4port
ace4port / before-after-designing-awesome-stuff.markdown
Created June 16, 2021 03:15
::before & ::after - designing awesome stuff
@ace4port
ace4port / index.html
Created June 15, 2021 13:00
Simple CSS loaders
<div class="page">
<header class="header">
<h1 class="header-title">Simple CSS loaders</h1>
<p class="header-subtitle">single html element css animation</p>
</header>
<main class="container">
<div class="item">
<i class="loader --2"></i>
</div>
@ace4port
ace4port / index.html
Created June 15, 2021 12:57
Kinetic CSS loaders
<div class="page">
<header class="header">
<h1 class="header-title">Kinetic CSS loaders</h1>
<p class="header-subtitle">single html element css animation</p>
</header>
<main class="container">
<div class="item">
<i class="loader loader--2"></i>
</div>
@ace4port
ace4port / colors
Created June 5, 2021 09:15
css colors table for d3 vis
Specification,Keyword,RGB hex value
CSS Level 1,black,#000000
CSS Level 1,silver,#c0c0c0
CSS Level 1,gray,#808080
CSS Level 1,white,#ffffff
CSS Level 1,maroon,#800000
CSS Level 1,red,#ff0000
CSS Level 1,purple,#800080
CSS Level 1,fuchsia,#ff00ff
CSS Level 1,green,#008000