Skip to content

Instantly share code, notes, and snippets.

https://glitch.com/edit/#!/quaint-tuna?path=src/index.js:31:19
Interest calculator I: Connecting-Stateless Component Connecting to the Store:
https://glitch.com/edit/#!/careful-territory?path=src/reducers/index.js:22:31
Interest calculator II: Dispatching: Imported all the functions from actions, and used an onChange method for each input type
https://glitch.com/edit/#!/jet-cloud?path=src/components/interest-calculator.js:18:67
@tgray6
tgray6 / gist:ea9b7ef61a5b7aedba55f04163517542
Created May 2, 2018 16:56
Action, reducer and store drills
Setting language:
https://glitch.com/edit/#!/reminiscent-recess?path=src/reducers/index.js:9:36
CRUD reducer:
https://glitch.com/edit/#!/neat-toothbrush?path=src/reducers/index.js:9:35
@tgray6
tgray6 / gist:7d9c7b4a0ed058e2e6886a683c818952
Created April 17, 2018 16:35
Communication Drills-React
Surprise Gif:
https://glitch.com/edit/#!/abalone-bucket?path=src/index.js:5:0
Rate Calculator:
https://glitch.com/edit/#!/holy-root?path=src/index.js:1:26
Live Search:
https://glitch.com/edit/#!/bead-repair?path=src/components/live-search.js:8:21
Drill #1: Navigation Bar-Stateless Component Implementing Top Navigation Bar:
https://glitch.com/edit/#!/slow-danger?path=src/components/navigation-bar.js:8:46
Drill #2: Address Book-Stateless/Stateful Component Implementation
https://glitch.com/edit/#!/typical-thrill?path=src/components/address-book.js:8:15
// mongoimport --db tempTestDb --collection restaurants --drop --file ~/Desktop/primer-dataset.json
// mongo
// show dbs (shows all databases)
// use tempTestDb (chooses specific database to use)
// (shows collections in the current database(showed ["restaurants"]), its how i knew to use db.restaurants.find() below.
@tgray6
tgray6 / gist:92e5e5d2c5e18915dd7489eccfc88f4e
Created October 19, 2017 16:58
Request and Response Drills
Echo endpoing:
https://glitch.com/edit/#!/coherent-fear
Mad Lib Generator:
https://glitch.com/edit/#!/receptive-lunch
NOTE: It is set to https, but you may still not see results when you search, if so, look above in your searchbar(if your on chrome) and
allow the site to "load unsafe scripts".
BUG: Some games come back with NULL in the deck(description under the title). Need to make it where null is replaced with something. Search for "big one" for an example.
BUG2: Games with long deck descriptions fall outside of the flexbox.
@tgray6
tgray6 / gist:aedfa73e6cbd531b87318b7ac56f9f95
Created October 3, 2017 17:07
Game Review API Wireframe, notes on window change, and User flow
Game Review API Wireframe, notes on window change, and User flow:
**When user searches, latest reviews gets hidden and searched game is populated in its place
GAME IMAGE FIRST, THEN BELOW THAT:
Game Name:
Platform(s)
Publisher(s)
Developer(s)
Genres
Themes
@tgray6
tgray6 / gist:543862655b4ba621c2995b8426d29b6b
Last active October 3, 2017 15:06
Giant Bomb Video Game Review API
Giant Bomb-HTTPS API from Todd Motto's list of public APIs in te curriculum.
Help users search for a game title and see the game details and reviewer score.
As a plus, if I am able, I will have a "latest reviews" section on the main page below the search bar.