Skip to content

Instantly share code, notes, and snippets.

@jcharles22
jcharles22 / gist:c4fbe2c2c78062c7db85553c8bbc5b56
Created May 29, 2019 02:38
Web APIs with Express Drills
//Drill 1
app.get('/sum', (req, res) => {
const a = parseInt(req.query.a);
const b = parseInt(req.query.b);
if(!a || !b) {
res.send('Please send 2 numbers');
} else {
res.send(`The sum of ${a} and ${b} is ${a+b}`)
}
})
@jcharles22
jcharles22 / gist:442149e779b5f499aecede1431001ef4
Created April 13, 2019 00:55
API Hack capstone FeedBack
One user ran into a problem when the didnt sperate the city and state with a comma.
one user thought it would be nice to be able to save venues they were interested in to a list.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jcharles22
jcharles22 / Untitled spreadsheet - Sheet1.pdf
Last active April 2, 2019 01:26
api capstone user story
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Help users see what venues there are to go to and the weather for that city from four square api and apixu to get current weather.
@jcharles22
jcharles22 / gist:76d6819a29454837a79b998241b42e7f
Created March 28, 2019 00:40
Reading API documentation Module
Visit the YouTube API documentation discussed above and find the subscription list endpoint documentation.List 1 required parameter and 2 optional parameters for this endpoint. For each parameter listed, state the data type and give an example of the allowed values.
Required Part = string
Opitional ChannelId = string mine = boolean
Visit the Google Maps Geocoding API documentation found here: https://developers.google.com/maps/documentation/geocoding/intro. Construct the full URL for requesting the geographic coordinates of The Statue of Liberty in JSON format. Do the same for your own address.
Statue of Liberty the end needs to be changed to your api key
https://maps.googleapis.com/maps/api/geocode/json?&address=The%20Statue%20of%20Liberty,+CA&key=YOUR_API_KEY
Cartersville, Ga the end needs to be changed to your api key
https://maps.googleapis.com/maps/api/geocode/json?&address=cartersville%2C%20ga,+CA&key=YOUR_API_KEY
@jcharles22
jcharles22 / Capture1.JPG
Last active March 24, 2019 17:17
Asynchronous web apps: how web apps work
Capture1.JPG
Live Page: https://jcharles22.github.io/Jared-Charles-s-Portfolio/
Repo: https://github.com/jcharles22/Jared-Charles-s-Portfolio
@jcharles22
jcharles22 / desktop about me.jpg
Last active March 22, 2019 03:18
design portfolio
desktop about me.jpg
<main role="main">
<h1>Jared Charles</h1>
<p>I am a fullstack developer!</p>
</main>
<p>About Me:</p>
<ul>
<li>I am currently working through the Thinkful fullstack
course. My biggest hobby is programming it lets me make something that didn't exist
and i love problem solving. Outside of programming, i am either playing basketball,
hanging out with friends, or just spending time with my wife.