git branch --show-current
git commit --allow-empty -m "Init branch"
# This script is made for simple cleaning up of downloaded icon packages | |
# - Remove meaningless chars in front of the name | |
# - Remove not needed folders | |
# - Move folder into 'packs' folder for better structure | |
import shutil, os, glob | |
path = input("Select pack name: ") | |
files = os.listdir(path + "/svg") | |
fileExtensions = ["eps", "license", "png", "psd", "svg"] |
// Usage: | |
// <img src="broken.jpg" default="placeholder.jpg"> | |
import { Directive, Input } from '@angular/core' | |
@Directive({ | |
selector: 'img[default]', | |
host: { | |
'(error)':'updateUrl()', | |
'[src]':'src' |
import { NgModule } from '@angular/core'; | |
import { | |
MatAutocompleteModule, | |
MatBadgeModule, | |
MatBottomSheetModule, | |
MatButtonModule, | |
MatButtonToggleModule, | |
MatCardModule, | |
MatCheckboxModule, | |
MatChipsModule, |
// Usage: | |
// <div *ngFor="let item of items | enum"> {{item.key}} | {{item.value}} </div> | |
import { Pipe, PipeTransform } from '@angular/core'; | |
@Pipe({ | |
name: 'enum' | |
}) | |
export class EnumPipe implements PipeTransform { | |
transform(object: Object): Array<{ key: string, value: string }> { |
import { Directive, ElementRef, Input, OnInit } from '@angular/core'; | |
@Directive({ | |
selector: '[matBadgeIcon]' | |
}) | |
export class MatBadgeIconDirective implements OnInit{ | |
@Input() matBadgeIcon: string; |
# Create build img | |
FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build | |
WORKDIR /app | |
# Copy csproj and restore as distinct layers | |
COPY *.sln . | |
COPY ./{PROJECT_NAME}/*.csproj ./{PROJECT_NAME}/ | |
RUN dotnet restore | |
# Copy everything else and build app |
# Use iis as base image and install dotnet 3.0.1 hosting pack | |
FROM microsoft/iis as base | |
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'Continue'; $verbosePreference='Continue';"] | |
ADD https://download.visualstudio.microsoft.com/download/pr/32b71802-0b4d-4064-a7e6-083b5155d3b1/080cf60a5c06be4ed27e2eac6c693f2f/dotnet-hosting-3.0.1-win.exe "C:/setup/dotnet-hosting-3.0.1-win.exe" | |
RUN start-process -Filepath "C:/setup/dotnet-hosting-3.0.1-win.exe" -ArgumentList @('/install', '/quiet', '/norestart') -Wait | |
RUN Remove-Item -Force "C:/setup/dotnet-hosting-3.0.1-win.exe" | |
############################################################################################################## |
:root { | |
/* Just for theming purposes */ | |
--mat-elevation-color: 0, 0, 0; | |
} | |
.mat-elevation-z0 { | |
box-shadow: 0 0 0 0 rgba(var(--mat-elevation-color), .2), | |
0 0 0 0 rgba(var(--mat-elevation-color), .14), | |
0 0 0 0 rgba(var(--mat-elevation-color), .12); | |
} |
console.log(` | |
_ _ _ _ | |
| | (_) | | | | | |
_ __ | |__ _ __ _ __ ___ _ ___| | _| |_ | |
| '_ \\| '_ \\| '_ \\| '__/ _ \\| |/ _ \\ |/ / __| | |
| | | | |_) | |_) | | | (_) | | __/ <| |_ | |
|_| |_|_.__/| .__/|_| \\___/| |\\___|_|\\_\\\\__| | |
| | _/ | | |
|_| |__/ | |
`); |