Skip to content

Instantly share code, notes, and snippets.

View Stayl045's full-sized avatar

Stayl045 Stayl045

View GitHub Profile
@Stayl045
Stayl045 / index.html
Created January 21, 2022 15:30
Lord of the Rings Wiki Article
<header>
<h1>The Lord of the Rings</h1>
<p class= "heading-2">From Wikipedia, the free encyclopedia</p>
<div>
<img src="https://image.cnbcfm.com/api/v1/image/106832365-1611930800281lord-of-the-rings-Cropped-jpg?v=1611930819" alt="Lord of the Rings">
</div>
</header>
<main>
<article>
@Stayl045
Stayl045 / remove-node-modules.md
Created February 24, 2022 20:36 — forked from lmcneel/remove-node-modules.md
How to remove node_modules after they have been added to a repo

How to remove node_modules

Create a .gitignore file

  1. Check for an existing .gitignore file in the project directory
ls -a
@Stayl045
Stayl045 / README.md
Created March 17, 2022 14:45 — forked from ashx3s/README.md
Javascript Imports and Exports

How to import javascript files into one another

Common JS Module System

module.exports/require

  • This is the older way that node would import files into one another.
  • Use it with normal javascript files. This works whether you have a package.json or not
  • Some node packages may not be compatible with this syntax. But it is still in use