#
# TD Ameritrade IP Company, Inc. (c) 2014-2018
#
# Uses basic most recent value from ATR study then
# displays value in a colorized label
#
# Modified by Nate Geslin (teamtomkins23@gmail.com)
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
describe('.max()', () => { | |
describe('when `valueOne` is equal to `valueTwo`', () => { | |
test.todo('should return `valueOne`'); | |
}); | |
describe('when `valueOne` is less than `valueTwo`', () => { | |
test.todo('should return `valueTwo`'); | |
}); | |
describe('when `valueOne` is greater than `valueTwo`', () => { |
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
const max = (valueOne: number, valueTwo: number): number => { | |
if (valueOne === valueTwo) { | |
return valueOne; | |
} | |
return valueOne < valueTwo ? valueOne : valueTwo; | |
}; |
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
import { StudentModel } from "./Student.model"; | |
export class StudentCollection { | |
private _items: StudentModel[] = []; | |
get length(): number { | |
return this._items.length; | |
} | |
public addItems(itemsToAdd: StudentModel[]): void { |
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
export class StudentModel { | |
public age: number = -1; | |
public familyName: string = ""; | |
public givenName: string = ""; | |
get fullName(): string { | |
return `${this.givenName} ${this.familyName}`; | |
} | |
constructor(age: number, familyName: string, givenName: string) { |
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
<UiExperiments | |
a={ | |
<UiMainButton_V1 | |
classes={{ root: classes.button }} | |
minWidth={90} | |
testId={`${props.testId}_go-to-start-button`} | |
TouchRippleProps={{ classes: { ripple: classes.buttonRipple } }} | |
onClick={props.snapStartHandler} | |
> | |
{localizationStore.translate('ShaperPage:start')} |
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
<UiExperiment | |
a={<p>Using Experiments is simple and Awesome!</p>} | |
b={<UiTypography component={'p'} size={'body'}>Using Experiments is simple and Awesome!</UiTypography>} | |
isExperiementActive={true} | |
/> |
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
import React from 'react'; | |
export enum ExperimentName { | |
a = 'a', | |
b = 'b', | |
} | |
export type Experiment = { | |
[key in ExperimentName]: React.ReactNode; | |
}; |
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
[ | |
{ | |
"name": "SofleKeyboard - nacerous", | |
"author": "Josef Adamcik", | |
"switchMount": "cherry" | |
}, | |
[ | |
{ | |
"y": 0.2, | |
"x": 3, |