Skip to content

Instantly share code, notes, and snippets.

@michaelmiller2116
michaelmiller2116 / codeWarsSolutions
Last active March 26, 2018 22:44
Just a great list of solutions that I wish I had thought of.
Given two integers a and b, which can be positive or negative, find the sum of all the numbers between including them too and return it. If the two numbers are equal return a or b.
Note: a and b are not ordered!
Examples
GetSum(1, 0) == 1 // 1 + 0 = 1
GetSum(1, 2) == 3 // 1 + 2 = 3
GetSum(0, 1) == 1 // 0 + 1 = 1
GetSum(1, 1) == 1 // 1 Since both are same
GetSum(-1, 0) == -1 // -1 + 0 = -1
@michaelmiller2116
michaelmiller2116 / apiTemplates.md
Last active April 18, 2018 21:25
API templates

Fetch Url Then Parse Then Handle Catch

Example:

@michaelmiller2116
michaelmiller2116 / ideasForAPI.md
Last active April 18, 2018 14:32
Ideas with APIs

An app that helps you locate art on a map. Maybe categorized by period, genre, medium, artist, artist's nationality, etc.

An app that organizes your grocery shopping experience. User imports their grocery list, and the app not only shows them what

aisle the item is located in, but routes their shopping trip for time efficiency.

API:http://www.supermarketapi.com/Methods_v1.aspx - Currently I am having trouble retreiving data... wtf none of the items I see have aisle numbers!

An app that lets you post your coding problem within a mile/meter radius, and nearby programmers can come/meet to help. Maybe you could build points for helping other coders.

API:

@michaelmiller2116
michaelmiller2116 / nativeArrayMethods.js
Created April 26, 2018 18:57
Native Array Methods
// Objective - Describe and implement the following native array methods:
// forEach, some, every, filter, map, and reduce.
// FOREACH
// There are a number of helpful functions built-in
// to JavaScript's regular arrays. These methods
// are both higher order functions and **functional**
// in that they do not manipulate the array they
// are working on. That is, they are non-destructive.
@michaelmiller2116
michaelmiller2116 / reactCheatSheet.md
Last active May 9, 2018 21:24
React Cheat Sheet
@michaelmiller2116
michaelmiller2116 / shrike_videos.md
Last active June 5, 2018 22:07
Galvanize Shrike/Youtube videos

Node.js Express JSON API - CRUD Stickers We'll be using:

Postgres for our database

knex.js for our database migrations, seeds and queries.

express.js for our JSON routes

Mocha, Chai and SuperTest to test our routes

@michaelmiller2116
michaelmiller2116 / mern.md
Created July 5, 2018 21:33
Building a MERN stack

What does MERN stand for? MongoDB, Express, React, Node.js Start with backend npm init in empty directory change entry point to server.js in package.json

Install dependencies npm i express body-parser mongoose concurrently npm i -D nodemon

@michaelmiller2116
michaelmiller2116 / deployExpressPostgreSQLtoHeroku.md
Created July 24, 2018 05:06
How to Deploy An Express App to Heroku with Postgresql Database Using Git

You will need a git repo on the hub before doing this... of course

From server directory:

$ heroku create $ git push heroku master

To display logs for Heroku, use the following command: $ heroku logs --tail

@michaelmiller2116
michaelmiller2116 / mdcheat.md
Created July 31, 2018 17:13
Markdown Cheatsheet

Heading 1

Heading 2

Heading 3

Heading 4

Heading 6
Heading 7

This text is italic