Skip to content

Instantly share code, notes, and snippets.

@cyrusthecool
cyrusthecool / js-tricky-bits.md
Created August 6, 2018 06:17 — 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.

@cyrusthecool
cyrusthecool / atom_snippits.md
Created July 6, 2018 02:14 — forked from zailleh/atom_snippits.md
A brief cheat-sheet on adding custom snippets to Atom

Creating Snippets in Atom

Main Points

  1. Where to Add Snippets
  2. How to find out the language selector (scope)
  3. How to format a snippit

Where to Add Snippets

In Atom, you can add snippets by going to the Atom menu and going to Snippets...

def show_menu
puts "Calculator"
puts"-" * 40
puts "[a] - Addition"
puts "[m] - Multiplication"
puts "[s] - Subtraction"
puts "[d] - Division"
puts "[r] - Square Root"
puts "[e] - Exponent"
@cyrusthecool
cyrusthecool / README-Template.md
Created June 28, 2018 04:36 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

As others have noted, README should be simple and short, but a good README can save time especially if it's for something like command-line parameter parsing library.

Here's what I think it should include:

name of the projects and all sub-modules and libraries (sometimes they are named different and very confusing to new users)
descriptions of all the project, and all sub-modules and libraries
5-line code snippet on how its used (if it's a library)
copyright and licensing information (or "Read LICENSE")
instruction to grab the documentation

instructions to install, configure, and to run the programs