npm install sonarqube-scanner --save-dev
"devDependencies": {| // Example: https://codepen.io/marcelo-ribeiro/pen/OJmVOyW | |
| const accentsMap = new Map([ | |
| ["A", "Á|À|Ã|Â|Ä"], | |
| ["a", "á|à|ã|â|ä"], | |
| ["E", "É|È|Ê|Ë"], | |
| ["e", "é|è|ê|ë"], | |
| ["I", "Í|Ì|Î|Ï"], | |
| ["i", "í|ì|î|ï"], | |
| ["O", "Ó|Ò|Ô|Õ|Ö"], | 
| # these versions are current as of May 18th 2021 | |
| # info from https://www.npmjs.com/package/@angular/cli -> Versions | |
| #Angular 2: looks like this is the last RC version before switching to angular 4 | |
| npx -p @angular/[email protected] ng new angular2app | |
| #Angular 4: the last CLI version before Angular 5 | |
| npx -p @angular/[email protected] ng new angular4app | |
| #Angular 5: the last CLI version before Angular 6 | 
| import java.util.ArrayList; | |
| import java.util.Collection; | |
| import java.util.Collections; | |
| import java.util.List; | |
| /** | |
| * Reference: https://stackoverflow.com/questions/19688235/how-to-implement-pagination-on-a-list | |
| * @author elvis | |
| * @version $Revision: $<br/> | |
| * $Id: $ | 
| <table id="customers"> | |
| <tr> | |
| <th>Nombre</th> | |
| <th>Tipo Fechs</th> | |
| <th>Fecha</th> | |
| <th>Enviar correo?</th> | |
| </tr> | |
| <ng-container *ngFor="let empleado of empleados"> | |
| <tr *ngFor="let field of empleado.aniversarios"> | |
| <td class="field"> | 
| # If you're looking to preserve the existing branches and commit history, here's one way that worked for me. | |
| git clone --mirror https://github.com/account/repo.git cloned-repo | |
| cd cloned-repo | |
| git push --mirror {URL of new (empty) repo} | |
| # at this point only remote cloned-repo is correct, local has auto-generated repo structure with folders such as "branches" or "refs" | |
| cd .. | |
| rm -rf cloned-repo | |
| git clone {URL of new (empty) repo} | 
jasmine.getEnv().allowRespy(true);
OR
beforeEach(() => { spyOn(some, "method").and.returnValue(X) })
it("Test", () => { some.method = jasmine.createSpy().and.returnValue(Y)
| // Karma configuration file, see link for more information | |
| // https://karma-runner.github.io/1.0/config/configuration-file.html | |
| module.exports = function (config) { | |
| config.set({ | |
| basePath: "", | |
| frameworks: ["jasmine", "@angular-devkit/build-angular"], | |
| plugins: [ | |
| require("karma-jasmine"), | |
| require("karma-chrome-launcher"), | 
  ip                    domain
  10.51.97.138		app.com
  https://medium.com/@richardr39/using-angular-cli-to-serve-over-https-locally-70dab07417c8#fromHistory
"start": "ng serve --port 443 --host 0.0.0.0 --disable-host-check --ssl --ssl-key E:\certs\localhost.key --ssl-cert E:\certs\localhost.crt",
| const { Observable } = require('rxjs'); | |
| const { filter } = require('rxjs/operators'); | |
| /** | |
| * PROMISE | |
| */ | |
| // A promise can only return a single value | |
| const promesa = () => { | |
| return new Promise((resolve, reject) => { |