Skip to content

Instantly share code, notes, and snippets.

View jclk86's full-sized avatar

John Chan jclk86

  • New York City
View GitHub Profile
@jclk86
jclk86 / gist:883835df9f0abe7c7b1992ea397e1b78
Last active December 8, 2019 06:30
Soft launch retro email
https://docs.google.com/spreadsheets/d/1BLC4Wny2aWihleqSFLHTdxTVKKDuDzpdT4d0GbgxZUQ/edit?usp=sharing
How many applications are getting a response, even if it’s a rejection?
I applied for 5, i got responses back from 2. I got rejected from those 2 that responded.
How many and what kind of networking efforts are yielding positive results?
I need to do a better job with this. Once I graduate, I'll be able to attend more networking events. I have gone to REACTJS, JAVASCRIPT meetups and plan to go to codejams and hackathons. I've been to a couple of them and talked with a few people, but nothing really progressed. I reached out to former Thinkful/Bloc students and other people who have gone to coding programs. Some responded. Some didn't. Some gave advice, but overall no real leads. Currently, it's time constraints that's difficult to manage prior to graduation.
How many first interviews/phone screens are leading to a second one?
I had 1 phone interview for a BOT DEVELOPER role, but they wanted someone
@jclk86
jclk86 / gist:45c4a83603a6454bd98ec6c3a76784b4
Created December 3, 2019 00:37
selevtion sort linked list
function sortLinkedList(linkedList) {
let currentNode = linkedList.head
let head = linkedList.head
let storeNode;
let shouldSort = true;
// traverse nodes so long as there's a value next to current node
// while list is still unsorted, keep going.
while (shouldSort) {
Access to fetch at 'https://arcane-refuge-94724.herokuapp.com/api/auth/login' from origin 'https://jclk86-travelist.now.sh' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
@jclk86
jclk86 / gist:eb21cd7b29bf8dd66175b84821ccb13f
Last active November 12, 2019 01:07
Feedback for Travelist #2
Questions:
1. What were your first impressions upon seeing the application?
Sam: It looks modern. Your initial design needs to have more though. The black or white background seems a bit dull. The reason why this type of design works for 9Gag or Reddit or any other site like that is -- first they're not travel-specific, so they don't need to conform to a specific theme -- and the other thing is they have more features in terms not just voting and categories, but also more topics, ads, icons that make the site seem super busy and populated. Your site right now has some similar features, but needs a little more to seem a little more 'exciting'.
Brian: The theme of the site could use a little more work. It is pretty bare.
2. What did you think of the mobile version of the application?
Sam: Apart from what I mentioned before about it not being too exciting, the mobile version looks a bit cramped, namely the header. I think the moon icon gets in the way in some of the smaller devices.
APP NAME: TRAVELIST
Link: https://jclk86-travelist.now.sh
github link client: https://github.com/jclk86/travelist-client
github link server: https://github.com/jclk86/travelist-server
To access site:
Login: CNorris Password: Password123!
or Register as a new user.
Gathered feedback from 2 individuals: Sam and Jimmy.
App Name: Travelist
Live Link: https://jclk86-travelist.now.sh
Sign-in: CNorris
Password: Password123!
Sign Up Form:
- If first name, last name, username, password, image_url, description, and email all entered correctly. --> Landing Page
- If any entered info is invalid or missing, except for image --> error message appears on form and submit button remains disabled
- If username or email taken --> message appears that username or password is taken and prompts user to sign-in
› 1 snapshot obsolete.
• AddItemForm Component Renders an AddItemForm without issue 1
FAIL src/Components/AddItemForm/AddItemForm.test.js
AddItemForm Component
√ Renders an AddItemForm without issue (11ms)
× fires submit (69ms)
● AddItemForm Component › fires submit
InvalidTokenError: Invalid token specifiedInvalidTokenError:
handleSubmitBasicAuth = event => {
event.preventDefault();
this.setState({ error: null });
const { username, password } = event.target;
AuthApiService.postLogin({
username: username.value,
password: password.value
})
.then(res => {
in terminal:
1. npm run build
2. npx serve -s build
3. now --name stocked-client ./build
4. create now.json file and place into ./build folder.
5. In now.json file insert following:
{
"version": 2,
"name": "bookmarks-app",
@jclk86
jclk86 / gist:d78239a6db76147f2d2b5b3ff9b19e44
Last active September 28, 2019 15:14
User Stories for Ecommerce Site
As a new user, I am forced to register upon checkout. High.
As a new user, I can add items to a cart. High.
As a new user, I get to see a list of products being sold. High.
As a returning user, I am forced to login upon checkout. High.
As a returning user, upon checkout, I must enter in credit card info. High.
As a returning user, I can access a cart of my items. High.
As a returning user, I can access my purchase history. Low.
As a returning user, upon purchasing an item, I can see a verfication of my purchase.
As the administrator, I can access the purchase history of all buyers. Medium.
As the administrator, I can add items. High.