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 / intro_to_the_console.md
Last active January 26, 2017 01:41 — forked from wrburgess/intro_to_the_console.md
Intro to the Console

Intro to the Console for Maggie

  • cd (changes directory)

  • cd ~ (changes to home directory)

  • cd .. (moves up one directory)

  • ls (lists files in folder)

@mstorino
mstorino / exercise.html
Created January 26, 2017 01:59 — forked from wrburgess/exercise.html
exercise1.html
<!-- Activity 1: Basic HTML Bio -->
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<title>Activity 1: Basic HTML Bio</title>
</head>
@mstorino
mstorino / Class2Notes.txt
Created January 26, 2017 03:04
Class 2 Notes
Use class more than id
bkground images load slow
<!-- CSS Stylesheets with Relative Paths -->
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<title>CSS Stylesheets with Relative Paths</title>
<!-- This line is money! It points your HTML to the CSS file. -->
@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>
@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 / 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 / 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 / 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')
}
})
})
#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