Skip to content

Instantly share code, notes, and snippets.

View mstorino's full-sized avatar

Maggie Storino mstorino

  • PartySlate
  • Chicago
View GitHub Profile
@mstorino
mstorino / javascript(vocab).js
Last active September 19, 2017 02:23
Javascript vocabulary: talk like a boss
# Javascript Vocabulary
Talk code like a boss.
### How does Javascript fit in?
`<HTML> .html controls the content`
`{CSS} .css controls the presentation`
`Javascript() .js controls the interaction / behavior`
@mstorino
mstorino / bootstrapMediaQueries.md
Created September 14, 2017 02:21
Bootstrap 3 Media Queries

/================================================== = Bootstrap 3 Media Queries = ==================================================/

/*==========  Mobile First Method  ==========*/

/* Custom, iPhone Retina */ 
@media only screen and (min-width : 320px) {

}

@mstorino
mstorino / gitCheat.md
Last active September 13, 2017 19:31
Common Git Commands

Git Commands

These are the basic commands for Git.

Create Repo

Create new repo on git by clicking "new" button on main profile page. Then it will direct you to a screen where you may clone it to your machine, copy that link then follow the next steps to clone it.

clone repo

@mstorino
mstorino / cmdline.md
Last active September 13, 2017 19:36
Common Command Line Commands

Bash / Terminal Commands

These are the basic commands for navigating directories in a Terminal or Git Bash window

Moving in directories

Change Directory

cd

#add 'node_modules' to .gitignore file
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
@mstorino
mstorino / modalDelete.js
Created May 28, 2017 13:34
Delete an item w/o requiring full page refresh
$(".deleteButton").on("click", function(event){
event.preventDefault();
$.ajax({
url: '/api/users/'+pulled_from_input_field,
type: 'DELETE'
success: function(data) {
console.log('user' + pulled_from_input_field + 'sucessfully deleted')
}
})
})
@mstorino
mstorino / rest.txt
Created April 27, 2017 00:23
RESTful API Routes
GET / users (index or collection route)
GET /users/:id (instance or member route)
POST /users (params in request body)
PUT /users/:id (params in request body)
PATCH /users/:id (params in request body)
DELET /users/:id
@mstorino
mstorino / APIUserExpMar4
Created March 4, 2017 17:33
API: User Experience
Button Data doesn't have to equal text of button.
<button data-animal="cat">meow</button>
<button data-animal="dog">woof</button>
<button data-animal="bird">chirp</button>
@mstorino
mstorino / APIAJAXMar4
Created March 4, 2017 17:15
API: Transverse Data, Add to HTML (Gif Exp. Where You add Name & Click)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Quoth the Giphy</title>
</head>
<body>
<div id="buttons">
@mstorino
mstorino / template.html
Created February 4, 2017 16:15 — forked from wrburgess/template.html
HTML Template
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Title Text</title>
<link rel="stylesheet" href="[PATH or URL]">
</head>
<body>