Skip to content

Instantly share code, notes, and snippets.

@GlenCorreia
GlenCorreia / js-tricky-bits.md
Created September 28, 2018 10:22 — forked from amysimmons/js-tricky-bits.md
Understanding closures, callbacks and promises in JavaScript

#Understanding closures, callbacks and promises

For a code newbie like myself, callbacks, closures and promises are scary JavaScript concepts.

10 months into my full-time dev career, and I would struggle to explain these words to a peer.

So I decided it was time to face my fears, and try to get my head around each concept.

Here are the notes from my initial reading. I'll continue to refine them as my understanding improves.

@GlenCorreia
GlenCorreia / markdown_cheatsheet.txt
Created October 1, 2018 07:34
A simple and short overview of markdown techniques.
Italics and Bold
=> Italics: _some text_
=> Bold: **bold text**
=> Bold and Italics: **_bolditalics_** OR _**bolditalics**_ OR _bold **and** italics_
Headers
=> h1: #header1
=> h2: ##header2
=> h3: ###header3
=> h4: ####header4
@GlenCorreia
GlenCorreia / rails http status codes
Created April 25, 2021 00:09 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
/*
* ------------------------------------------------------------
* "THE BEERWARE LICENSE" (Revision 42):
* <author> wrote this code. As long as you retain this
* notice, you can do whatever you want with this stuff. If we
* meet someday, and you think this stuff is worth it, you can
* buy me a beer in return.
* ------------------------------------------------------------
*/