npm install -g @lhci/cli
This file contains hidden or 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
| .github/workflows/lighthouse-ci.yml | |
| ```yml | |
| name: Lighthouse CI | |
| on: [push] | |
| jobs: | |
| lhci: | |
| name: Lighthouse CI | |
| runs-on: ubuntu-latest | |
| steps: |
This file contains hidden or 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 numbers = [1,2,3,4]; | |
| // Mutable | |
| for (let index = 0; index < numbers.length; index++) { | |
| numbers[index] = numbers[index] + 2; | |
| } | |
| console.log(numbers); | |
| // Inmutable v1 | |
| const newNumbers = []; | |
| for (let index = 0; index < numbers.length; index++) { |
This file contains hidden or 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 { Component, OnInit, forwardRef } from '@angular/core'; | |
| import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; | |
| @Component({ | |
| selector: 'app-stepper', | |
| templateUrl: './stepper.component.html', | |
| styleUrls: ['./stepper.component.scss'], | |
| providers: [ | |
| { | |
| provide: NG_VALUE_ACCESSOR, |
npm install --save @nestjs/typeorm typeorm pg
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { configService } from './config/config.service';
- Create machines / nodes
node-01
node-02
node-03
- Update machine
import { AbstractControl } from '@angular/forms';
export class MyValidations {
static age(control: AbstractControl) {
const value = control.value;
if (value < 18) {
return {isYoung: true};
}