Skip to content

Instantly share code, notes, and snippets.

View Thersis94's full-sized avatar

Thersis94

  • Denver, CO
View GitHub Profile
select *
from employee join department on employee.department = department.id
where dept_name='Sales'
select emp_name
from employee_project join project on employee_project.project_id = project.id join employee on emp_id = employee.id
where project_name='Plan christmas party'
create table bookmarks (
id integer primary key generated by default as identity,
title text not null,
description text,
rating integer default 1,
url text
);
insert into bookmarks (
title,
description,
select *
from restaurants as r
select *
from restaurants
where cuisine='Italian'
select id,name
from restaurants as r
where cuisine='Italian'
const express = require("express");
const app = express();
const morgan = require("morgan");
app.use(morgan("dev"));
app.listen(8000, () => {
console.log("Express server is listening on port 8000!");
});
const fs = require('fs');
const path = require('path');
const source = process.argv[2];
const target = process.argv[3];
// read contents of source
const contentsOfSource = fs.readFileSync(source, 'utf-8');
// get lines of source into an array, remove empty lines
Thinkful meetup
Denver Startup week Jobfair
Denver Dev Day
@Thersis94
Thersis94 / Thinkful Checkpoint 15
Created September 13, 2019 02:45
Thinkful Checkpoint 15 React Context Questions
1. What situations would be good to use context?
A good situation to use context in would be if you need to drill through multiple layers of components,
or if you have a lot of components that all need to access STATE.
2. If you need to pass a prop down 1 or 2 levels, is context necessary?
No the use of context is not always necessary. Sometimes you are better of just passing props if you only need to pass that
information through one or two components. It can also make component reuse more difficult if used in inapropriate situations.
3. Can you pass a component instance as a prop to avoid the need for context?
Yes! You can simply pass a component instance down through your components instead of using context. This can save you a headache
when you need to pass more props.
4. Can you write your own components that accept render props?
@Thersis94
Thersis94 / API Hack Feedback
Created August 18, 2019 20:22
API Hack Feedback
The only feedback that I recieved was to add a drop menu that included all of thge ingredients that you can access through the api.
@Thersis94
Thersis94 / User Flow and Wireframe for API Hack App
Created August 3, 2019 19:41
User Flow and Wireframe for API Hack App
Picture of user flow and wireframe in the comments.
@Thersis94
Thersis94 / Cocktail Website User Stories
Created August 3, 2019 18:46
Cocktail Website User Stories
New User - Search by drink name - High
New User - Search drinks by ingredients - High
New User - Filter search by Alcohilic or non-Alcoholic - Medium
New User - See a random drink - Low
Returning User - Search by drink name - High
Returning User - Search by ingredients - High
Returning User - See recently added drinks - Medium
Returning User - See popular drinks - Medium