Skip to content

Instantly share code, notes, and snippets.

View LetsGetItDone's full-sized avatar

LetsGetItDone

View GitHub Profile

Keybase proof

I hereby claim:

  • I am letsgetitdone on github.
  • I am dougparker (https://keybase.io/dougparker) on keybase.
  • I have a public key ASCW3SgSc3bK93LI0tKht0oTvx8XcgzH7MD0zCDWTc456wo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am letsgetitdone on github.
* I am letsgetitdone (https://keybase.io/letsgetitdone) on keybase.
* I have a public key ASBJfFk-_FtNGl47x4NBri7CD-q1PVsSs3SUeNqx34Bs-go
To claim this, I am signing this object:
class HospitalEmployee {
constructor(name) {
this._name = name;
this._remainingVacationDays = 20;
}
get name() {
return this._name;
}
@LetsGetItDone
LetsGetItDone / minesweeper.js
Created July 6, 2018 03:36
board.map not a function line 77
const generatePlayerBoard = (numberOfRows, numberOfColumns) => {
const board = [];
for (let i = 0; i < numberOfRows; i++) {
const row = [];
for (let j = 0; j < numberOfColumns; j++) {
row.push(' ');
}
board.push(row);
}
@LetsGetItDone
LetsGetItDone / minesweeper.js
Created July 6, 2018 02:44
board.map not a function line 77
const generatePlayerBoard = (numberOfRows, numberOfColumns) => {
let board = [];
for (var i = 0; i < numberOfRows; i++) {
let row = [];
for (var j = 0; j < numberOfColumns; j++) {
row.push(' ');
} board.push(row);
}
@LetsGetItDone
LetsGetItDone / gist:254fbdd9b2a0926c1bc8f2a31a38a0e4
Created July 5, 2018 01:18
board is not adding " | " <pipes> to array
const generatePlayerBoard = (numberOfRows, numberOfColumns) => {
let board = [];
for (var i = 0; i < numberOfRows; i++) {
let row = [];
for (var j = 0; j < numberOfColumns; j++) {
row.push(' ');
} board.push(row);
}
@LetsGetItDone
LetsGetItDone / minesweeper.js
Created July 5, 2018 01:02
row.join --> not a function?
const generatePlayerBoard = (numberOfRows, numberOfColumns) => {
let board = [];
for (var i = 0; i < numberOfRows; i++) {
let row = [];
for (var j = 0; j < numberOfColumns; j++) {
row.push(' ');
} board.push(row);
}
@LetsGetItDone
LetsGetItDone / minesweeper.js
Created July 4, 2018 06:23
create a function and reference a global variable below
const printBoard = board => {
console.log('Current Board:');
console.log(board[0].join(' | '));
console.log(board[1].join(' | '));
console.log(board[2].join(' | '));
};
let board = [
[' ', ' ', ' '],
[' ', ' ', ' '],
@LetsGetItDone
LetsGetItDone / index.html
Created May 11, 2018 02:03
Using a class with element
<div class="service">
<div class="service-container">
<div class="icon paper">
<img src="./resources/images/paper-icon.png" alt="#">
<span>Comprehensive Exams</span>
</div>
<div class="icon ruler">
<!--solution-->
<div class="hero">
<h1>Broadway Design</
<p><a class="btn-nav" href="#">Home</a></p>
<p><a class="btn-nav" href="#process">Process</a></p>
<p><a class="btn-nav" href="#work">Work</a></p>
<p><a class="btn-nav" href="#team">Team</a></p>
<p><a class="btn-nav" href="#contact">Contact</a></p>
</div>