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
// path: ./keyboards/gmmk/pro/ansi/keymaps/viapro/config.h | |
#pragma once | |
#ifdef RGB_MATRIX_ENABLE | |
#define RGB_DISABLE_WHEN_USB_SUSPENDED true | |
#define RGB_DISABLE_TIMEOUT 900000 // 15 minutes (15 * 60 * 1000ms) | |
// Effects | |
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS // Heatmap, Rain | |
#define RGB_MATRIX_KEYPRESSES // REACTIVE, SPLASH modes |
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
// path: qmk_firmware/keyboards/gmmk/pro/ansi/keymaps/viapro/config.h | |
#pragma once | |
#ifdef RGB_MATRIX_ENABLE | |
#define RGB_DISABLE_WHEN_USB_SUSPENDED true | |
#endif // RGB_MATRIX_ENABLE |
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
"architect": { | |
"build": { | |
"builder": "@angular-devkit/build-angular:browser", | |
"configurations": { | |
"production": { | |
"budgets": [ | |
], | |
"outputHashing": "all" | |
}, | |
"development": { |
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
server { | |
## port | |
listen 80; | |
## Your website name goes here. | |
server_name example.com; | |
## Your only path reference. | |
root /var/www/example.com/public_html; | |
## This should be in your http block and if it is, it's not needed here. |
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 tsConfig = require('./tsconfig.json'); | |
const tsConfigPaths = require('tsconfig-paths'); | |
const path = require('path'); | |
const outDir = path.normalize(tsConfig.compilerOptions.outDir); | |
const rootDir = path.normalize(tsConfig.compilerOptions.rootDir); | |
const baseUrl = path.join(__dirname, tsConfig.compilerOptions.baseUrl); | |
let paths = tsConfig.compilerOptions.paths; |
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 {ConnectionPositionPair} from '@angular/cdk/overlay'; | |
export const POSITION_MAP: { [key: string]: ConnectionPositionPair } = { | |
top: new ConnectionPositionPair( | |
{ originX: 'center', originY: 'top' }, | |
{ overlayX: 'center', overlayY: 'bottom' } | |
), | |
topCenter: new ConnectionPositionPair( | |
{ originX: 'center', originY: 'top' }, | |
{ overlayX: 'center', overlayY: 'bottom' } |
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 express = require('express'); | |
const path = require('path'); | |
const app = express(); | |
// Serve only the static files form the dist directory | |
app.use(express.static(__dirname + '/dist/<name-of-app>')); | |
app.get('/*', (req, res) => { | |
res.sendFile(path.join(__dirname + '/dist/<name-of-app>/index.html')); |
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
server { | |
listen 80; | |
server_name http://abc.com; | |
root /path/to/your/app; | |
# eg. root /var/www/html/abc-app/dist |
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 { | |
HttpHandler, | |
HttpProgressEvent, | |
HttpInterceptor, | |
HttpSentEvent, | |
HttpHeaderResponse, | |
HttpUserEvent, | |
HttpRequest, | |
HttpResponse |
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
export const routes: Routes = [ | |
{ | |
path: 'login', | |
component: LoginComponent | |
}, { | |
path: 'register', | |
component: RegisterComponent | |
}, { | |
path: '', | |
children: [ |
NewerOlder