Skip to content

Instantly share code, notes, and snippets.

View McQuinTrix's full-sized avatar
❤️
Developing Something !

Harshal McQuinTrix

❤️
Developing Something !
View GitHub Profile
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: "",
@McQuinTrix
McQuinTrix / basic-animations.ts
Last active September 21, 2018 20:58
Making Animations in Angular Reusable
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' })),
]),
]);
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.
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