This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Constructor | |
var Card=function(rank,suite){ | |
function constructor(){}; | |
constructor.prototype.getRank=function(){ | |
return rank; | |
}; | |
constructor.prototype.getSuite=function(){ | |
return suite; | |
}; | |
return new contructor(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var arrayToBST = function(ary){ | |
//make return object here for simple manipulation | |
bt = {}; | |
//encapsulate start functions within validation | |
//validate input: is array | |
if(Array.isArray(ary)){ | |
//validate input: numberts only | |
if(!(testNumbersOnly(ary))){ | |
console.log('Array input invalid, only numbers please.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fedora Setup Notes | |
1) If you did not make yourself an administrator during the install, Add yourself to etc/sudoers using the command visudo (allows user to authenticate own account for operations requiring root). | |
a) su, enter root password when prompted | |
b) visudo (use vi for sudo to edit the file following instructions in the file; either add self as a sudo user or enable a group for sudo user and add your self to that group using user group commands) | |
c) ctrl-D (exit root access) | |
d) logout and log back in or restart | |
e) Now you should be able to respond to any prompt requiring root with your own login credentials and be able to run commands using sudo with your own credentials. | |
2) Google Chrome Setup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../core-field/core-field.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-input/core-input.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-scaffold/core-scaffold.html"> | |
<link rel="import" href="../core-header-panel/core-header-panel.html"> | |
<link rel="import" href="../core-menu/core-menu.html"> | |
<link rel="import" href="../core-item/core-item.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* combine-sets | |
* Created by dcorns on 5/16/17 | |
* Copyright © 2017 Dale Corns | |
* MIT Licensed | |
*/ | |
'use strict'; | |
const data = [ | |
{ | |
"paid_savings": 8841.88, |