Skip to content

Instantly share code, notes, and snippets.

View dphurley's full-sized avatar

Danny Hurley dphurley

View GitHub Profile
@dphurley
dphurley / Default.json
Created February 7, 2022 19:07
iterm config
{
"Ansi 3 Color" : {
"Red Component" : 1,
"Color Space" : "sRGB",
"Blue Component" : 0.636962890625,
"Alpha Component" : 1,
"Green Component" : 0.99755153805017471
},
"Tags" : [
Tools:
- Homebrew (Mac only)
- "brew install" installs command-line and system tools, "brew install nodejs"
- "brew cask install" installs visual tools, such as "brew cask install visual-studio-code"
- VS Code
- Node.js / NPM
- Express generator - https://expressjs.com/en/starter/generator.html
- this will generate all of the scaffolding for an Express server, so that all you need to do is
type "npm start" to get the server running
- Sourcetree is a great visual Git tool if you want to skip over command-line Git
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.34692373871803284</real>
@dphurley
dphurley / config
Last active April 27, 2018 20:44
Terminator Config for Ubuntu
[global_config]
always_split_with_profile = True
handle_size = 0
title_hide_sizetext = True
title_receive_bg_color = "#57afec"
title_transmit_bg_color = "#585858"
[keybindings]
close_term = <Shift><Alt>w
copy = <Primary>c
new_window = <Primary>n

Overview

New York City Search Engine - Killer Feature

The City of New York needs your help again!

Now that they have a new user management system, they want to promote their app further. The city is looking to a killer feature to their app that will attract new users.

They are requesting proposals for this new feature. It will need to be well thought-out, scalable,

Overview

New York City Search Engine

The City of New York has a data API they would like to add a front-end to. The API handles the ability to search for keywords or limit results you will be making requests to this API and displaying it's results. On top of a front-end, the City would also like the ability to save and manage User information (without any need for authentication).

The city has requested proposals for a solution to their problem. Your assignment is to build and execute on a solution, from proposal through delivery.

import axios from 'axios'
export function saveAuthTokens (headers) {
// Set Axios Headers with Auth tokens for the next request.
axios.defaults.headers['access-token'] = headers['access-token']
axios.defaults.headers.client = headers.client
axios.defaults.headers.uid = headers.uid
axios.defaults.headers.expiry = headers.expiry
// Save Auth tokens to localStorage to persist log-in if the window is closed
"\e[A":history-search-backward
"\e[B":history-search-forward
const express = require('express')
const router = express.Router()
router.get('/', (request, response) => {
response.send('I work!')
})
module.exports = router
const express = require('express')
const app = express();
const studentsController = require('./controllers/students_controller')
app.use('/students', studentsController)
const port = 3000;
app.listen(port, () => {
console.log(`Express started on ${port}`)