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
@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 / 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)

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 / 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.

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

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. 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

A left rotation operation on an array of size shifts each of the array's elements unit to the left. For example, if left rotations are performed on array , then the array would become .

Given an array of integers and a number, , perform left rotations on the array. Then print the updated array as a single line of space-separated integers.

Input Format

The first line contains two space-separated integers denoting the respective values of (the number of integers) and (the number of left rotations you must perform). The second line contains space-separated integers describing the respective elements of the array's initial state.

Constraints

Introduction to Software / Web Development

  1. Humans and Written Languages (10 min)
    1. Breaking down the following English sentence.
      1. "Hello. Did you know that it is 271 days until my birthday!"
      2. Our eyes and brains have been trained to interpret characters and symbols.
    2. Morse code
      1. We can teach our brains and eyes to interpret other languages
      2. Let's interpret the following message
  2. ... --- ...

Introduction to Software / Web Development

  1. Humans and Written Languages (10 min)
    1. Breaking down the following English sentence.
      1. "Hello, did you know that it is 271 days until my birthday!"
      2. Our eyes and brains have been trained to interpret characters and symbols.
    2. Morse code
      1. We can teach our brains and eyes to interpret other languages
      2. Let's interpret the following message
  2. ... --- ...