Skip to content

Instantly share code, notes, and snippets.

@ross-u
ross-u / README.md
Last active February 13, 2024 23:43
CSS | Responsive Web Design - Summary
@ross-u
ross-u / ad.md
Created October 8, 2019 15:27 — forked from diurivj/ad.md

React | Hooks

Learning Goals

After this lesson you will be able to:

  • Understand what are React Hooks and why are so hot 🔥
  • Understand how to use useState()
@gokulkrishh
gokulkrishh / useful-npx-commands.md
Last active April 10, 2025 17:31
List of useful npx (Node Package Runner) commands (https://git.io/useful-npx-commands)

NPX (NPM Package Runner) Commands

List of useful npx (NPM Package Runner) commands.

What is NPX?

Using NPX we can execute/run node binaries without the need to install it locally or globally.

Commands

@fworks
fworks / install-zsh-windows-git-bash.md
Last active April 9, 2025 09:11
Zsh / Oh-my-zsh on Windows Git Bash

Materials

Presentation

Feel free to use this presentation as a reference.

Starting Code

Open this CodeSandbox and start editing. It will automatically create a fork (that is, a duplicate) for you to work on.

@seunggabi
seunggabi / semantic-branch-names.md
Last active June 19, 2025 03:42
Semantic Branch Names

Semantic Branch Names

See how a minor change to your branch name style can make you a better programmer.

Format: <type>/#<issueNumber>-<alias>

Example

@caprosset
caprosset / README.md
Last active August 30, 2023 00:39
Migrating your database from mLab (Heroku add-on) to Mongo Atlas

Migrating your database from mLab (Heroku add-on) to MongoDB Atlas

This is the message you should have received from Heroku in your mailbox some weeks/days ago:

[Shutdown Notice]: mLab MongoDB add-on Dear Heroku customer,

We have identified you as the owner of, or collaborator on, the following apps that have the mLab MongoDB add-on installed:

...list of projects...

@boudra
boudra / db.js
Last active September 10, 2024 11:55
Using docker-compose for Postgres
const Sequelize = require("sequelize");
const sequelize = new Sequelize("postgres://user:pass@localhost:5432/codeworks");
sequelize.authenticate().then(() => {
console.log("connected to database");
}).catch(() => {
console.error("failed to connect to database");
})
@sindresorhus
sindresorhus / esm-package.md
Last active June 18, 2025 06:37
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.
@ross-u
ross-u / markdown-details-collapsible.md
Created February 3, 2022 15:32 — forked from pierrejoubert73/markdown-details-collapsible.md
How to add a collapsible section in markdown.

A collapsible section containing markdown

Click to expand!

Heading

  1. A numbered
  2. list
    • With some
    • Sub bullets