import { Injectable } from '@angular/core';
import { CookieService } from 'ngx-cookie-service';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
import { IDValueDTO } from './dtos';
@Injectable({
This file contains 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 glob | |
import mariadb | |
import sys | |
# Semi automated - routing file generator for Angular | |
# | |
# Usage: | |
# pythoh routes-scanner.py > app-routing.module.ts | |
fourzerofour_handler = "front/front-pagenotfound" |
This file contains 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
#pragma once | |
/** | |
* Purpose: Deep scan directories for a search pattern in known file extensions. | |
* | |
* Usage: | |
* | |
* SamplesScanner sc = SamplesScanner(); | |
* QString path = "D:\\lmms\\build\\Debug\\data\\samples"; | |
* QString pattern = "*.ds"; |
Project | Size | Notes |
---|---|---|
vcpkg x64, x86 | 7.5 GB | My statistics includes packages unessential to LMMS as well |
AppData/Local/vcpkg | 840 MB | Archives |
LMMS Sources + .git | 500 MB | Including submodules |
LMMS/build | 5 GB | created after compilation |
LMMS/target | < 1 GB | created after compilation |
LMMS packaging |
This file contains 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 { ActivatedRoute } from '@angular/router'; | |
constructor(private activatedRoute: ActivatedRoute) {} | |
ngOnInit(){ | |
const id = this.activatedRoute.snapshot.paramMap.get('id'); | |
} |
This file contains 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
<form name="login"> | |
<p> | |
<label>Username</label> | |
<input class="w3-input" type="text" name="username" [(ngModel)]="login.username" placeholder="Username" /> | |
</p> | |
<p> | |
<label>Password</label> | |
<input class="w3-input" type="text" name="password" [(ngModel)]="login.password" placeholder="Password" /> |
This file contains 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 routes: Routes = [ | |
{path: '', redirectTo: "home", pathMatch:"full"}, | |
{path: 'home', component: HomeComponent, title: ''}, | |
{path: 'dashboard', component: DashboardComponent, title: ''}, | |
{path: 'login', component: LoginComponent, title: ''}, | |
{path: 'logout', component: LogoutComponent, title: ''}, | |
{path: '**', component: PagenotfoundComponent, title: ''}, | |
]; |
This file contains 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 { Injectable } from '@angular/core'; | |
import { HttpClient, HttpHeaders } from '@angular/common/http'; | |
import { CredentialsDTO, EndpointDTO, NameValueDTO } from './objects'; | |
@Injectable({ | |
providedIn: 'root' | |
}) | |
export class ApiService { | |
private _gateway = "https://localhost:5001"; |
This file contains 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
<div class="w3-container w3-blue"> | |
<h2>Signup</h2> | |
</div> | |
<form (ngSubmit)="onSubmit()" class="w3-container"> | |
<div> | |
<p>Full Name</p> | |
<input [(ngModel)]="application.fullname" name="fullname" #fullname="ngModel" class="w3-input w3-leftbar w3-border w3-border-blue" type="text" required minlength="5" [placeholder]="application.fullname" _placeholde="John Doe" /> | |
</div> | |
<div> |
This file contains 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
using dtos; | |
using Microsoft.AspNetCore.Mvc; | |
namespace web.api | |
{ | |
[Route("api/[controller]")] | |
[ApiController] | |
public class ConfigurationsController : ControllerBase | |
{ | |
[HttpGet] |
NewerOlder