Skip to content

Instantly share code, notes, and snippets.

Avatar
❤️
Developing Something !

Harshal McQuinTrix

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