Skip to content

Instantly share code, notes, and snippets.

View thebinarypenguin's full-sized avatar

Ethan Zimmerman thebinarypenguin

View GitHub Profile
'use strict';
/**
* Display a Pascal Triangle
*
* @param {number} numRows Number of rows to display
*/
const displayPascalTriangle = function (numRows = 0) {
if (numRows < 0) {
**This will be used for Module 2.1, 2.2 and 2.3. Bookmark your copy of this doc for upcoming assignments**
MODULE 2.1: EVENT PLANNING
Event #1: https://www.meetup.com/Web-Dev-Office-Hours/events/256421911/?rv=cr1&_xtd=gatlbWFpbF9jbGlja9oAJGQxMjI0ZmY4LWMwYjItNDJjMS1hMzU2LWEwYzM5YWE1ZmM0YQ&_af=event&_af_eid=256421911
What: Web Dev Office Hours: All about JavaScript
Where: Kups Kafe, Duluth
When: 8pm-10pm (every week)
Goals: Meet, Connect
[x] 483px horizontal scroll
decrease max width of "crooked card"
[x] Tests ???
While you have terrific validation and error-handling in place - I do not
see any tests written for client or server.
Client Tests: (stored alongside each component as *.spec.js)
Which database tables are created in the migrations?
user, language, word
What are the endpoints for user registration, login and refresh?
/api/auth/token, /api/user
What endpoints have been implemented in the language router?
@thebinarypenguin
thebinarypenguin / gist:33a083fdbfd7666d932e620b15c9d496
Created March 13, 2019 14:17
Capstone Requirements: Assignment
Scribblez - A new way to share notes with your friends.
This is a social note-sharing site not dissimilar to Twitter. What I find
interesting about this project is the sharing model I plan to implement.
Note Sharing
- Users can create custom groups of users for example "Family" or
"Work Friends"
Should the client or the server take more security precautions?
The server is the ultimate protector of data
What's the difference between local storage and session storage?
local storage lives forever until deleted, session storage live until the browser tab is closed.
What problem does a JWT expiry time solve?
@thebinarypenguin
thebinarypenguin / gist:a9989464627684c5b2595407dea49916
Created February 26, 2019 14:54
Postgres host based authentication, trust local
# Database administrative login by Unix domain socket
local all postgres peer
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
@thebinarypenguin
thebinarypenguin / use-alternative.sql
Created February 25, 2019 21:01
What is the postgres version of USE?
CREATE ROLE dunder_mifflin_admin;
CREATE DATABASE bookmarks OWNER dunder_mifflin_admin;
-- USE bookmarks ---
CREATE TABLE bookmarks (
id INTEGER primary key generated by default as identity,
title text NOT NULL,
url text NOT NULL,
@thebinarypenguin
thebinarypenguin / gist:be72e76cc8212bcd77bfc00b16e6ae67
Created February 25, 2019 15:05
Thinkful ubuntu postgresql notes
---
Log into psql using peer-authentication
sudo -u postgres psql
---
Set the default password for the postgres user
@thebinarypenguin
thebinarypenguin / gist:faa93b1491f2a85db096b8ab25aa8d6c
Created January 24, 2019 20:49
Thinkful Assignment: Quiz App
Repo: https://github.com/thinkful-ei-armadillo/ethan-robert-quiz-app
Live Demo: https://thinkful-ei-armadillo.github.io/ethan-robert-quiz-app/