Skip to content

Instantly share code, notes, and snippets.

View taesup's full-sized avatar

Edward Kim taesup

View GitHub Profile
@taesup
taesup / smallest_multiple.js
Created July 25, 2019 07:49
Given a set of factors, find the smallest number where all the factors evenly divide into the number
console.time('test');
function smallestMultiple(num) {
if (num === 1) {
return 1;
}
// generate factors from 4 to num
let factors = {};
for (let i = 2; i <= num; i++) {
// factorization

Prequisites: AWS Account

In AWS Console:

  1. Go to IAM Service and create new group, name it S3FullAccessGroup, attach the AmazonS3FullAccess policy to it.
  2. In IAM Service, add new user. Name it something like yourName_macbookpro_cli. Make sure only programmatic access is checked off. Add the user to the S3FullAccessGroup.
  3. When done with wizard, it will give you your secret access key only ONCE. Don't leave this page yet.

In Local Development Terminal:

  1. OSX: brew install awscli Linux: sudo apt update sudo apt install awscli
  2. aws configure

100ms - The time it takes for a human to perceive a noticable change

16ms - One frame (given 60 frames a second)

2MB - The average size of most webpages

3s - The first noticable valley where users start to drop off your site

10s - Nobody is still around

@taesup
taesup / job-titles.md
Last active January 20, 2020 19:44
Job Titles and What they mean

C Level -- (Corporation)

President -- (Company/Entity)

(S)VPs -- Divisions (Finance, Marketing)

Director -- Line of Business (Mobile, Web)

Principal Software Engineer -- Entire Application

Senior Staff Software Engineer -- Frontend / Backend

Staff Software Engineer -- Modules

Senior Software Engineer -- Classes

Software Engineer -- Methods

Associate Software Engineer -- Tests

@taesup
taesup / docker-server-setup.md
Last active July 22, 2019 20:25
Docker based server provisioning

Docker Deployment for DevLeague

{username} = your username
{ip} = your DO droplet ip address
{repo} = your repo address
{email} = your email

Pre-reqs

@taesup
taesup / geemail-review.md
Created September 28, 2018 20:05
GeeMail review documentation

Objectives

  1. Fork this repository to your own GitHub profile and clone to your local machine.
  1. Create a basic page layout via HTML/CSS with a top header section with the name of the application and a content section where you will display the messages.

  2. When your page loads, via JavaScript access our prepopulated data stored in the window.geemails variable. Each object in the array has the following properties:

    • date - The date message was sent
    • subject - The subject of the message
@taesup
taesup / new-curriculum.md
Last active September 27, 2018 22:40
Revamping the web development curriculum

Module we could remove

  • Buzzword bingo
    • Teaches: API Usage -> pushed to Express Gallery
  • Network broadcast news
    • Teaches: Sockets -> pushed to HTTP Socket Server
  • Bookshelf.js
    • Teaches: ORM -> Nothing
  • JS Constructors
  • Teaches: Prototype -> Already covered in JS-zombies
@taesup
taesup / Exit-Information.md
Last active May 1, 2021 18:46
Exit Information
@taesup
taesup / s3-deployment-devleague.md
Last active December 19, 2018 00:59
Depolying on S3 for devleague

S3 Deployment for DevLeague

{username} = your username
{ip} = your DO droplet ip address
{repo} = your repo address
{email} = your email

Pre-reqs