Skip to content

Instantly share code, notes, and snippets.

View thebinarypenguin's full-sized avatar

Ethan Zimmerman thebinarypenguin

View GitHub Profile
@thebinarypenguin
thebinarypenguin / gist:91baf4c95e12d8b503692279b432ad94
Created January 20, 2019 02:11
Thinkful Assignment: Shopping List Pseudocode
Assignment: Provide pseudo code for the following user stories.
1. You should be able to add items to the list
The UI will have a form with an "item name" text input and an "add item"
submit button.
When the form is submitted, catch the event and call an "add item function"
followed by a "render shopping list" function
@thebinarypenguin
thebinarypenguin / gist:e05c57a7f030ce3de7055ac4d22c40be
Created January 22, 2019 13:59
Thinkful Assignment: Job visualization
In no particular order:
Commute: I don't like commuting. I want my commute to be a short as possible.
Dress: I like khaki's with a polo. I don't want to have to wear a button down
every day. I'm cool with jeans and a t-shirt as well.
Hour: I don't care too much as long as it's regular. I don't want to be
on-call.
@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/
@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 / 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: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:
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: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"
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?
[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)