To init the server
npm run sonar:init-serverTo run the analysisnpm run sonar:analysis
To inspect the analysis, go to http://localhost:9000. The credentials are admin and password 12345
| version: '3' | |
| services: | |
| postgresql: | |
| image: postgres:alpine | |
| ports: | |
| - 5435:5435 | |
| volumes: | |
| - ./database/db:/var/lib/postgresql/data | |
| - ./database/db-restores:/tmp/restore |
| mkdir "01 Enero"; | |
| mkdir "02 Febrero"; | |
| mkdir "03 Marzo"; | |
| mkdir "04 Abril"; | |
| mkdir "05 Mayo"; | |
| mkdir "06 Junio"; | |
| mkdir "07 Julio"; | |
| mkdir "08 Agosto"; | |
| mkdir "09 Septiembre"; | |
| mkdir "10 Octubre"; |
| import { spawn } from 'child_process'; | |
| export function spawnAsync(command: string, args?: string[]): Promise<void> { | |
| return new Promise((resolve, reject) => { | |
| const process = spawn(command, args); | |
| process.stdout.on('data', data => { | |
| console.log(data.toString()); | |
| }); | |
| process.stderr.on('data', data => { |
| import { promisify } from 'util'; | |
| export async function fileExists(path: string): Promise<boolean> { | |
| try { | |
| await promisify(access)(path); | |
| return true; | |
| } catch (err) { | |
| if (isAccessError(err) && err.code === 'ENOENT') { | |
| return false; | |
| } |
| import { | |
| AfterViewInit, | |
| Directive, | |
| ElementRef, | |
| Inject, | |
| Input, | |
| } from '@angular/core'; | |
| import { DOCUMENT } from '@angular/common'; | |
| import { MapPathsDirective } from './map-path.directive'; |
| local platform = script.Parent | |
| local isTouched = false | |
| local function fade(fadeDuration: number, reaperance: number) | |
| local fadeIntervals = 29 | |
| local intervalFraction = fadeDuration / fadeIntervals | |
| return function () | |
| if not isTouched then |
To init the server
npm run sonar:init-server
To run the analysisnpm run sonar:analysisTo inspect the analysis, go to http://localhost:9000. The credentials are admin and password 12345
| # Download the image | |
| docker pull sonarqube | |
| docker pull sonarsource/sonar-scanner-cli | |
| # Create the container | |
| docker run --name=sonarqube -p 9000:9000 sonarqube | |
| # Star the stoped container | |
| docker start sonarqube --interactive |
| nx run your-project:executor |
| import { TreeNode } from './node'; | |
| export class PerfectBinaryTree<T> { | |
| /** | |
| * The height or levels the binary tree | |
| */ | |
| private _height: number; | |
| public get height(): number { | |
| return this._height; | |
| } |