Skip to content

Instantly share code, notes, and snippets.

View RobertVFrazier's full-sized avatar

Robert V Frazier RobertVFrazier

  • Simpsonville, SC
View GitHub Profile
@RobertVFrazier
RobertVFrazier / Echo_endpoint_Wade_Robert.js
Created November 14, 2017 04:13
Echo endpoint exercise - Wade & Robert
const express = require('express');
const app = express();
app.get('/echo/:what', function(req, res){
res.json({
host: req.hostname,
query: req.query,
params: req.params
});
});
@RobertVFrazier
RobertVFrazier / Mad_lib_generator_Wade_Robert.js
Created November 14, 2017 04:27
Mad lib generator - Wade & Robert
'use strict';
const express = require('express');
const app = express();
app.get('/', function (req, res) {
res.json (`There's a ${req.query.adjective1} new ${req.query.name} in ${req.query.place} and everyone's talking. Stunningly ${req.query.adjective2} and ${req.query.adverb} ${req.query.adjective3}, all the cool kids know it. However, ${req.query.name} has a secret - ${req.query.name}'s a vile vampire. Will it end with a bite, or with a stake through the ${req.query.noun}?`
)});
// listen for requests
@RobertVFrazier
RobertVFrazier / 11_13_exercises_Wade_Robert.txt
Created November 14, 2017 04:29
11/13 exercises - Wade & Robert
Echo endpoint exercise - Wade & Robert
https://gist.github.com/RobertVFrazier/91ef8a53f4ba5aa71436e719bdba6c4a
Mad lib generator - Wade & Robert
https://gist.github.com/RobertVFrazier/7b4ae90e950d71ac218d371531c46303
@RobertVFrazier
RobertVFrazier / 12_11_React_component_drills
Created December 11, 2017 19:38
12_11_2017 React component drills Robert Frazier
Navigation bar
https://glitch.com/edit/#!/alive-pancreas?path=src/components/navigation-bar.css:10:60
Address book
https://glitch.com/edit/#!/unruly-repair?path=src/components/contact.js:14:4
@RobertVFrazier
RobertVFrazier / 12_12_React_communication_drills.txt
Last active December 4, 2018 18:33
12_12 React communication drills
Surprise!
https://glitch.com/edit/#!/steel-whistle?path=src/components/surprise.js:28:0
Hourly rate calculator
https://glitch.com/edit/#!/robust-broker?path=src/components/rate-calculator.js:1:0
Live Search
https://glitch.com/edit/#!/peach-hardcover?path=src/components/character-list.js:9:5
@RobertVFrazier
RobertVFrazier / 12_18_Action_reducer_and_store_drills.txt
Last active December 18, 2017 20:43
12/18 Action, reducer and store drills
i18n state
https://glitch.com/edit/#!/common-sneeze
CRUD reducer
https://glitch.com/edit/#!/treasure-beat
@RobertVFrazier
RobertVFrazier / 12_19_React_Redux_drills
Created December 19, 2017 19:34
12/19 React-Redux drills
Interest calculator I: Connecting
https://glitch.com/edit/#!/striped-epoch
Interest calculator II: Dispatching
https://glitch.com/edit/#!/sore-drifter
@RobertVFrazier
RobertVFrazier / Objects_drills_2.txt
Created January 31, 2018 15:40
Objects drills 2
Make student reports
https://repl.it/@Robert_Frazier/Make-student-reports-drill
Enroll in summer school
https://repl.it/@Robert_Frazier/Enroll-in-summer-school-drill
Find by id
https://repl.it/@Robert_Frazier/find-by-id-drill
Validate object keys
@RobertVFrazier
RobertVFrazier / Robert_Frazier_Quiz_App.txt
Created February 12, 2018 23:35
Links for the quiz app - Robert Frazier
Link for github repository: https://github.com/RobertVFrazier/Quiz-program
Link for the web page hosted on github: https://robertvfrazier.github.io/Quiz-program/
@RobertVFrazier
RobertVFrazier / Choosing_an_API.txt
Created March 1, 2018 04:11
Choosing an API for the API capstone project
I will use the Flickr API to convert text strings into a series of photographs of letters, similar in appearance to a ransom note.
I found an example of doing this, and I think it would be interesting to figure out how to do it myself in Jquery instead of PHP,
with a better user interface, and fixing the punctuation bugs I found when I tested it.
The user will enter a text string into a field, then click a button to submit it. A lightbox will pop up, displaying each character
(letter, numeral, or punctuation) as a photograph inside a square box. Clicking on any of the boxes will get a new, random photograph
of the same character. There will be a button labeled "X" in the upper-right corner of the lightbox; clicking this will close the
lightbox and return focus to the text input field.