Skip to content

Instantly share code, notes, and snippets.

@papplo
papplo / Advanced JS
Last active September 10, 2024 12:23
# Advanced JS | Summary
The purpose of this sprint is to learn:
- Types, values and properties
- Function expressions vs function declarations
- Hoisting
- Closures
- Strict mode
- Context
@papplo
papplo / vanilla-js-cheatsheet.md
Created April 23, 2018 11:47 — forked from thegitfather/vanilla-js-cheatsheet.md
Vanilla JavaScript Quick Reference / Cheatsheet
@michaeltreat
michaeltreat / mongodb_shell_commands.md
Last active May 20, 2025 19:11
Quick Cheat Sheet for Mongo DB Shell commands.

MongoDB Shell Commands Cheat Sheet.

This is a Cheat Sheet for interacting with the Mongo Shell ( mongo on your command line). This is for MongoDB Community Edition.

Preface:

Mongo Manual can help you with getting started using the Shell.

FAQ for MongoDB Fundamentals and other FAQs can be found in the side-bar after visiting that link.

@isabellachen
isabellachen / postgres-getting-started.md
Last active September 10, 2024 11:51
How to get up and running with postgres

Get up and running with Postgres sql

brew install postgresql

Make sure Postgres is installed by checking what version is installed

postgres -V

Start up Postgres

@timvisee
timvisee / falsehoods-programming-time-list.md
Last active June 17, 2025 12:56
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@doulmi
doulmi / download_all_branches.sh
Created June 23, 2017 14:16
Download All branches
#!/bin/bash
set -x #echo on
remote_url=$(git config --get remote.origin.url)
for branch in $(git branch --all | grep '^\s*remotes' | egrep --invert-match '(:?HEAD|master)$'); do
branch_name=$(echo $branch| cut -d'/' -f 3)
git clone -b $branch_name $remote_url $branch_name
done
@robertpainsi
robertpainsi / commit-message-guidelines.md
Last active June 13, 2025 18:32
Commit message guidelines

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
@keithmorris
keithmorris / drive-format-ubuntu.md
Last active June 18, 2025 13:21
Partition, format, and mount a drive on Ubuntu
@evantoli
evantoli / GitConfigHttpProxy.md
Last active June 9, 2025 06:25
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@rveitch
rveitch / sass-7-1-pattern.scss
Last active June 1, 2025 07:25
Sass 7-1 Pattern
sass/
|
|– base/
| |– _reset.scss # Reset/normalize
| |– _typography.scss # Typography rules
| ... # Etc…
|
|– components/
| |– _buttons.scss # Buttons
| |– _carousel.scss # Carousel