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
"new-parens": "error", | |
"no-implicit-coercion": "error", | |
"prefer-template": "error", | |
"linebreak-style": ["error", "unix"], | |
"object-shorthand": ["error", "always"], |
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
bracketSpacing: true | |
bracketSameLine: true | |
semi: true | |
singleQuote: true | |
trailingComma: all | |
arrowParens: always | |
endOfLine: lf | |
htmlWhitespaceSensitivity: strict | |
printWidth: 120 | |
tabWidth: 2 |
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 { isNil } from 'lodash-es'; | |
import { ReplaySubject } from 'rxjs'; | |
import { filter, finalize, map } from 'rxjs/operators'; | |
@Injectable({ | |
providedIn: 'root', | |
}) | |
export class ResizeObserverService { | |
private readonly entries: ReplaySubject<Array<ResizeObserverEntry>> = new ReplaySubject(1); |
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
// see article with examples in JAVA here: https://dzone.com/articles/design-patterns-the-strategy-and-factory-patterns | |
// example for educational purposes shownig close and mature syntax of modern TypeScript | |
enum AccountTypes {CURRENT, SAVINGS, HIGH_ROLLER_MONEY_MARKET, STANDARD_MONEY_MARKET} | |
//////////////////////////////////////// | |
/// the interface that is used by the strategy | |
//////////////////////////////////////// | |
interface InterestCalculationStrategy { |
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
RewriteCond %{HTTP_HOST} !^www\.(.*)$ [OR] | |
RewriteCond %{HTTP_HOST} ^www\.(.*)\.(com|net|org|info|eu)$ | |
RewriteRule ^(.*)$ http://www.%1.de/$1 [L,R=301] |