Skip to content

Instantly share code, notes, and snippets.

View scwebd's full-sized avatar

Sarah Cullen scwebd

  • Denver, CO
View GitHub Profile
*What _is_ Express middleware, anyway?*
>> *Using Express Middleware:* https://expressjs.com/en/guide/using-middleware.html
>> *A Simple Explanation of Express Middleware:* https://medium.com/@agoiabeladeyemi/a-simple-explanation-of-express-middleware-c68ea839f498
*Building Blocks of Express.js:* https://www.codeschool.com/courses/building-blocks-of-express-js
*Express get URL and POST params:* https://scotch.io/tutorials/use-expressjs-to-get-url-and-post-parameters
*Building a RESTful API w/Node and Express:* https://scotch.io/tutorials/build-a-restful-api-using-node-and-express-4
HTTP Status Codes Explained:
Status Cats: https://http.cat/
Status Dogs: https://httpstatusdogs.com/
Status Comics: https://moz.com/blog/response-codes-explained-with-pictures
-- Create the database movie_planner_db and specified it for use.
CREATE DATABASE movie_planner_db;
USE movie_planner_db;
-- Create the table plans.
CREATE TABLE movies
(
id int NOT NULL AUTO_INCREMENT,
movie varchar(255) NOT NULL,
PRIMARY KEY (id)
-- Create the database wishes_db and specified it for use.
CREATE DATABASE wishes_db;
USE wishes_db;
-- Create the table wishes.
CREATE TABLE wishes
(
id int NOT NULL AUTO_INCREMENT,
wish varchar(255) NOT NULL,
PRIMARY KEY (id)
DROP DATABASE IF EXISTS chirpy;
CREATE DATABASE chirpy;
USE chirpy;
CREATE TABLE `chirps` (
`id` Int( 11 ) AUTO_INCREMENT NOT NULL,
`author` VARCHAR( 255) NOT NULL,
`body` VARCHAR( 255 ) NOT NULL,
`created_at` DATETIME NOT NULL,
sequelize init:config & sequelize init:models
<nav className="navbar navbar-expand-lg navbar-dark bg-dark">
<a className="navbar-brand" href="#">Pupste</a>
<button className="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span className="navbar-toggler-icon"></span>
</button>
<div className="collapse navbar-collapse" id="navbarNav">
<ul className="navbar-nav">
<li className="nav-item">
<a className="nav-link" href="#">About</a>
</li>
PHP/Composer/Laravel Installation Instructions
*IMPORTANT: @channel, please install PHP, Composer, and Laravel before tomorrow's class.*
>> PHP installation instructions can be found in the PDF soon to follow. FYI PC users: MAMP is a good alternative to XAMPP; give it a try if you have trouble with XAMPP.
>> To install Composer, Mac users should run this command in their terminal: `curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer`
>> PC users should be able to download and run ‘Composer-Setup.exe’ here: https://getcomposer.org/doc/00-intro.md#installation-windows
node --max-old-space-size=4096 linearSearch.js