Skip to content

Instantly share code, notes, and snippets.

View phlco's full-sized avatar

Phillip Lamplugh phlco

  • Los Angeles, CA
View GitHub Profile
@phlco
phlco / 0_reuse_code.js
Created March 11, 2017 01:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Linting Code!

Setup

Install the eslint linter globally via node

npm install -g eslint
@phlco
phlco / sample.js
Last active December 16, 2016 17:48
/**
* Calculates area
* @param {Number} w - represents width
* @param {Number} h - represents height
* @return {Number} Sum of w and h
*/
function area(w, h) {
return w * h;
}

Project 4 Links

Name Github
Berry [Pokemon Dream ][berry-github]
Clarissa [Moe][clarissa-github]
James [Esport Lounge][james-github]
Joseph [Deal Boat][joseph-github]
Mondale [RepMe][mondale-github]
Sochin [Recipe App][sochin-github]
@phlco
phlco / seeds_async.js
Created October 26, 2016 02:39
async and promises
require('./db');
var Person = require('./person');
var Story = require('./story');
async function seed() {
await Person.remove({});
await Story.remove({});
let user = new Person({ name: 'Herman Melville' });
@phlco
phlco / project_2.md
Created September 23, 2016 17:27
Project 2 links

Project 2 Links

Name Github
Berry [Health Diet Everyday][berry-github]
Clarissa [Catering App][clarissa-github]
James [Gint][james-github]
Joseph [SilverReed][joseph-github]
Mondale [Flickster][mondale-github]
Sochin [Dev Site][sochin-github]
@phlco
phlco / project_code_review.md
Created September 2, 2016 18:58
some code from my project

Here is my code that checks for win logic. I enjoy it.

function checkWin(){

}

Project 1 Links

Name Game Type Trello Github
Berry Hangman [Link][berry-trello] [project1][berry-github]
Clarissa Guess the Music Scale [Link][clarissa-trello] [maqam][clarissa-github]
James Checkers [Link][james-trello] [checkers][james-github]
Joseph Blackjack [Link][joseph-trello] [Project1][joseph-github]
Mondale Simon [Link][mondale-trello] [Simon][mondale-github]
Rony Connect Four [Link][rony-trello] [RaConnect4][rony-github]/[HangMan][ronny-hangman]

Outcomes Tracker Sort by Last Name

function sort() {
  var names = Array.from( document.querySelectorAll('.student-name') );
  names.sort(function(a, b) {
    var a = a.textContent.trim().split(' ')[1];
    var b = b.textContent.trim().split(' ')[1];
    return a == b ? 0 : (a < b ? -1 : 1);
  });

Hello!

Things I like

  • cheese