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 http = require('http'); | |
const https = require('https'); | |
const fs = require('fs'); | |
const chalk = require('chalk'); | |
const yargs = require('yargs'); | |
const { hideBin } = require('yargs/helpers'); | |
const downloadFailed = errorMsg => { | |
fs.unlinkSync(tempFile); | |
console.error(chalk.red(`\u2717 Download failed: ${errorMsg}`)); |
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
#!/usr/bin/env bash | |
# | |
# gh-dl-release! It works! | |
# | |
# This script downloads an asset from latest or specific Github release of a | |
# private repo. Feel free to extract more of the variables into command line | |
# parameters. | |
# | |
# PREREQUISITES | |
# |
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
<ItemGroup> | |
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleTo"> | |
<_Parameter1>%ASSEMBLYNAME%</_Parameter1> | |
</AssemblyAttribute> | |
</ItemGroup> |
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
@mixin scrollbar-mixin() { | |
.mat-sidenav-content, | |
.mat-sidenav { | |
overflow-y: overlay !important; | |
} | |
.mat-sidenav-content:hover::-webkit-scrollbar, | |
.mat-sidenav:hover::-webkit-scrollbar { | |
display: initial; | |
} |
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 { Directive, Input, OnChanges, SimpleChanges } from '@angular/core'; | |
import { NG_VALIDATORS, Validator, AbstractControl, ValidationErrors } from '@angular/forms'; | |
@Directive({ | |
selector: '[greaterThan]', | |
providers: [ | |
{ | |
provide: NG_VALIDATORS, | |
useExisting: GreaterThanValidator, | |
multi: true, |