Skip to content

Instantly share code, notes, and snippets.

View ElenaG518's full-sized avatar

ElenaG518 ElenaG518

View GitHub Profile
@ElenaG518
ElenaG518 / React Redux drills
Created October 28, 2018 01:14
React Redux drills
https://glitch.com/edit/#!/broken-opera
@ElenaG518
ElenaG518 / Action, reducer and store drills
Created October 26, 2018 04:27
Action, reducer and store drills
https://glitch.com/edit/#!/bird-pyramid
https://glitch.com/edit/#!/gorgeous-surprise
@ElenaG518
ElenaG518 / React Drills
Created October 18, 2018 00:43
React Drills
https://api.glitch.com/react-addbook-example/git
https://api.glitch.com/react-header-bar-example/git
@ElenaG518
ElenaG518 / Node Capstone Short list, screens, and user flow
Created September 21, 2018 00:18
Node Capstone Short list, screens, and user flow
#Short list of user stories
As a user, I should be able to create journeys, including name, location, and dates
As a user, I should be able to post journal entry to each journey or sub-journey
As a user, I should be able to add or delete pictures to journeys and sub-journeys
As a user, I should be able to share my journey with friends and to allow others to post, edit and delete their comments on my journeys and sub-journeys
#List Out the Screens the User Will See
Screen for creating journeys, adding name, location, and dates,
Screen for adding journal entry and pictures
@ElenaG518
ElenaG518 / Epic Journey node Capstone
Created September 20, 2018 22:16
Epic Journey node Capstone
#EPIC journey
##Epic:
Epic Journey app allows users to keep track of the places they visit by adding location, a description or journal of their visit, and photos or videos of their trip. Each trip can be broken down into smaller trips, like for instance, going to Baja California Sur can be broken into La Paz, Cabo Pulmo, Pozas Santa Rita, etc. with each smaller trip having it’s own location, journal entry, and photos. This way users can keep track of the places they visited, the location, their impressions of the place, and include photos.
##User Stories:
As a user, I should be able to sign up for Epic Journey
As a user, I should be able to log in to Epic Journey
As a user, I should be able to reset my password
Last login: Fri Aug 31 09:04:17 on ttys000
Elenas-MacBook-Air:~ pachibook$ mongoimport --db tempTestDb --collection restaurants --drop --file ~/Projects/learn-mongo/primer-dataset.json
2018-08-31T09:06:48.822-0700 connected to: localhost
2018-08-31T09:06:48.824-0700 dropping: tempTestDb.restaurants
2018-08-31T09:06:49.137-0700 imported 3950 documents
Elenas-MacBook-Air:~ pachibook$ mongo
MongoDB shell version v4.0.1
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 4.0.1
Server has startup warnings:
@ElenaG518
ElenaG518 / request and response drills
Created August 20, 2018 02:42
request and response drills
https://glitch.com/edit/#!/express-request-respnse-echo?path=server.js:15:27
https://glitch.com/edit/#!/echo-response-attempt?path=server.js:26:2
https://glitch.com/edit/#!/express-madlib-generator
@ElenaG518
ElenaG518 / gist:0b98f6f8ec66eea6405e9f63a465fce2
Created August 10, 2018 16:57
bug fixes for my-public-lands
fixed the toggle button
fixed the string word-wrap
I want to be able to find information for all national parks in any given state
So that I may be able to plan my vacation.
@ElenaG518
ElenaG518 / VariableScope
Created July 11, 2018 00:30
Variable Scope
What is scope? Your explanation should include the idea of global vs. local scope.
Scope means where the variable lives and how it can be accessed. the value of global scoped variables var and let can be accessed and modified by any
function that refers to it. When you declare a variable in the global scope, it is available everywhere in your code.
Any variable that is declared outside of a function in JavaScript has global scope. When you declare a variable within a function,
that variable only lives within the function, meaning it's scope is local. This means that when you define a variable in a function that
has the same name as a variable in the global scope, the local variable will take precedence over the global one.
Why are global variables avoided?
Global variables should be avoided because they could inadvertently be reassigned a value by a function that refers to it,
even functions in a different file in which the global variable is being defined. This could create problems in the expected