Skip to content

Instantly share code, notes, and snippets.

View ricklopez's full-sized avatar

Rick Lopez ricklopez

  • Me
  • San Francisco, CA
View GitHub Profile
  1. What is ES6
  2. Let & Const
    • uses block scoping
    • const cannot be reassigned
    • not hoisted
  3. Arrow Functions
    • uses block scoping
    • implied this value assignment
    • no prototype
  • The real purpose of arrow functions is to handle the THIS keyword withing nested / callback functions

Feedback

Feedback Form

Notes

  1. Sync vs Async
    • JS executes code in a synchronous manner one function at a time one statement at a time
    • JS is single threaded
      • that means only one statement is executed at a time.
    • Asynchronous mean two or more things happening at a time. In JS that means deferring remaining execution of a function
      • We need this because some operation can take be very slow:

1 Pretend I'm not technical - Can you teach me what a function is and why we use them? Objectives: Explain a technical concept

2 What is the difference between an object and an array in JavaScript? Objectives: Demonstrate an understanding of object literals Demonstrate an understanding of arrays

@ricklopez
ricklopez / The Technical Interview Cheat Sheet.md
Created July 13, 2018 01:04 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.

demo repl.it

This course is designed as a primer for our JS In-Depth Series of Group Sessions. This is ideal for Design Track students, Developer students struggling to understand JavaScript or students with limited programming experience. We will cover the building blocks of programming with JavaScript. This course assumes little or no experience with JavaScript.First

We have three primary goals today.

1. Walk away with a new mental model for learning and understanding JavaScript or any programming language for that matter.
2. Understand what is a variable
3. Understand what the heck is a function
@ricklopez
ricklopez / gist:ffbc39a9a565755635cfed4ea9033e45
Created September 19, 2018 03:47 — forked from asabaylus/gist:3071099
Github Markdown Heading Anchors

Anchors in Markdown

To create an anchor to a heading in github flavored markdown. Add - characters between each word in the heading and wrap the value in parens (#some-markdown-heading) so your link should look like so:

[create an anchor](#anchors-in-markdown)

@ricklopez
ricklopez / cmder-in-webstorm.md
Created September 21, 2018 00:23 — forked from sadikaya/cmder-in-webstorm.md
Cmder inside Webstorm terminal
  1. Set an environment variable called CMDER_ROOT to your root Cmder folder (in my case C:\Program Files (x86)\Cmder). It seems to be important that this does not have quotes around it because they mess with concatenation in the init script.
  2. In your IntelliJ terminal settings, use "cmd" /k ""%CMDER_ROOT%\vendor\init.bat"" as the Shell path. The double-double-quotes are intentional, as they counteract the missing double quotes in the environment variable.
@ricklopez
ricklopez / Knex-Setup.md
Created December 14, 2019 00:08 — forked from NigelEarle/Knex-Setup.md
Setup Knex with Node.js

Knex Setup Guide

Create your project directory

Create and initialize your a directory for your Express application.

$ mkdir node-knex-demo
$ cd node-knex-demo
$ npm init
@ricklopez
ricklopez / Knex-Setup.md
Created December 14, 2019 00:08 — forked from NigelEarle/Knex-Setup.md
Setup Knex with Node.js

Knex Setup Guide

Create your project directory

Create and initialize your a directory for your Express application.

$ mkdir node-knex-demo
$ cd node-knex-demo
$ npm init
@ricklopez
ricklopez / fetch-api-examples.md
Created February 21, 2020 02:58 — forked from justsml/fetch-api-examples.md
JavaScript Fetch API Examples