Skip to content

Instantly share code, notes, and snippets.

@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");
})
@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...

@seunggabi
seunggabi / semantic-branch-names.md
Last active June 14, 2025 05:02
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

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.

@fworks
fworks / install-zsh-windows-git-bash.md
Last active April 9, 2025 09:11
Zsh / Oh-my-zsh on Windows Git Bash
@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

@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()
@ross-u
ross-u / README.md
Last active February 13, 2024 23:43
CSS | Responsive Web Design - Summary
@ross-u
ross-u / README.md
Last active July 5, 2024 13:09
JS | Array methods - map() & forEach() exercise

JS | Array methods - map() & forEach()


Capitalize the Capitals - Exercise


img

@ross-u
ross-u / README.md
Last active January 16, 2021 13:23
JS | Objects - Objectively - Exercise

JS | Objects

Objectively - Exercise


img