- Create a gist if you haven't already.
- Clone your gist:
# make sure to replace `<hash>` with your gist's hash git clone https://gist.github.com/<hash>.git # with https git clone [email protected]:<hash>.git # or with ssh
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
# In case you have different JDK versions on PC and wish to switch between them easily | |
# Current pattern is JAVA\d+_HOME | |
# So make sure you have ENV variables like JAVA17_HOME, etc. | |
if (-not $env:JAVA_HOME) { $env:JAVA_HOME = [Environment]::GetEnvironmentVariable('JAVA_HOME', 'User') } | |
Write-Host "(Current: $env:JAVA_HOME)" | |
# Alternative to OGV | |
#$javaVersion = Read-Host "Select JAVA version: " | |
#$javaVersion = $javaVersion.Trim() |
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
return of(null).pipe( | |
tap(() => console.log(123)), | |
flatMap(() => this.router.events), | |
tap(() => console.log(7892)), | |
filter(event => event instanceof NavigationEnd) |
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
module.exports = { | |
testMatch: ['**/+(*.)+(spec).+(ts|js)?(x)'], | |
transform: { | |
'^.+\\.(ts|js|html)$': 'ts-jest' | |
}, | |
resolver: '@nrwl/jest/plugins/resolver', | |
moduleFileExtensions: ['ts', 'js', 'html'], | |
collectCoverage: true, | |
coverageReporters: ['html', 'lcov', 'text'], | |
verbose: true, |
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
null |
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
{ | |
"planet": "Earth" | |
} |
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
{ | |
"planet": "Earth" | |
} |
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
apply plugin: 'java' | |
sourceCompatibility = 1.8 | |
targetCompatibility = 1.8 | |
// compileJava.options.fork = true | |
// compileJava.options.forkOptions.executable = /path_to_javac | |
repositories { | |
mavenCentral() |
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
09:42:23 > [email protected] postinstall /build/SECRET/node_modules/cypress | |
09:42:23 > node index.js --exec install | |
09:42:23 | |
09:42:23 Installing Cypress (version: 3.3.2) | |
09:42:23 | |
09:42:23 [?25l[07:42:22] Downloading Cypress [started] | |
09:42:23 [07:42:23] Downloading Cypress 0% 0s [title changed] | |
09:42:24 [07:42:23] Downloading Cypress 2% 6s [title changed] | |
09:42:24 [07:42:24] Downloading Cypress 3% 9s [title changed] | |
09:42:24 [07:42:24] Downloading Cypress 3% 12s [title changed] |
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 class Bungo { | |
constructor(private service1: Sevice1, | |
private service2: Sevice2) { | |
} | |
findAllRowsBasedOnOtherRows(otherRows: string[]): string[] { | |
this.service1.findAllRows$() | |
.pipe( | |
flatMap((service1Rows: Service1Row[]) => { | |
return this.service2.finalAllRows$() |
NewerOlder