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 assert = require('assert'); | |
/******************************** | |
* We want make a package of goal kilos of skittles. We have | |
* inventory of small bags (1 kilos each) and big bags (5 kilos each). | |
* Return the number of small bags to use, assuming we always | |
* use big bags before small bags. Return -1 if it can't be done. | |
* | |
* See the asserts below for examples of input | |
* and expected output. |
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 assert = require('assert'); | |
/******************************** | |
* Return true if the array contains, somewhere, three increasing | |
* adjacent numbers like .... 4, 5, 6, ... or 23, 24, 25. | |
* | |
* See the asserts below for examples of input | |
* and expected output. | |
* | |
* If you have node installed, all you need to do to test |
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
let self = this; | |
this.formObject = { | |
formName: "Build Lot", | |
includeEditor: true, | |
editorName:"build-lot-desc", | |
elementsObj:{ | |
"build-lot-name":{ | |
label: "Build Lot Name", | |
placeholder: "Enter Build Lot ...", | |
value: "", |
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 {animate, animateChild, query, stagger, style, transition, trigger} from "@angular/animations"; | |
export class Animations { | |
public static fadeIn = trigger('fadeIn', [ | |
transition(':enter', [ | |
style({ opacity: '0', marginTop: '10px'}), | |
animate('.2s ease-in', style({ opacity: '1', marginTop: '0px' })), | |
]), | |
]); |