Skip to content

Instantly share code, notes, and snippets.

View splincode's full-sized avatar
💬
печатает...

Максим Иванов splincode

💬
печатает...
View GitHub Profile
:root {
--tui-font-heading-h1: 700 calc(var(--tui-font-offset) + 3.125rem) / 1.12 'Tinkoff Sans';
--tui-font-heading-h2: 700 calc(var(--tui-font-offset) + 2.75rem) / 1.09 'Tinkoff Sans';
--tui-font-heading-h3: 500 calc(var(--tui-font-offset) + 2.25rem) / 1.11 'Tinkoff Sans';
--tui-font-heading-h4: 500 calc(var(--tui-font-offset) + 1.75rem) / 1.14 'Tinkoff Sans';
--tui-font-heading-h5: 500 calc(var(--tui-font-offset) + 1.5rem) / 1.17 'Tinkoff Sans';
--tui-font-heading-h6: 500 calc(var(--tui-font-offset) + 1.25rem) / 1.2 'Tinkoff Sans';
--tui-font-body-l-bold: 500 calc(var(--tui-font-offset) + 1.0625rem) / 1.65 'Neue Haas Unica W1G';
--tui-font-body-l: 400 calc(var(--tui-font-offset) + 1.0625rem) / 1.65 'Neue Haas Unica W1G';
@splincode
splincode / repo-rinse.sh
Created July 31, 2023 14:17 — forked from nicktoumpelis/repo-rinse.sh
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive

Container is a replica of container, image is a blueprint

List container activitily

$ docker ps -a

List installed images

import { TestBed } from '@angular/core/testing';
export interface ZooStateModel {
feedAnimals: string[];
}
@StateRepository()
@State<ZooStateModel>({
name: 'zoo',
defaults: {
import { TestBed } from '@angular/core/testing';
export interface ZooStateModel {
feedAnimals: string[];
}
export class FeedAnimals {
public static type: string = '[FeedAnimals]: action';
constructor(public animalsToFeed: string[]) {}
}
export interface Course {
id: number;
description: string;
iconUrl?: string;
courseListIcon?: string;
longDescription?: string;
category: string;
seqNo: number;
lessonsCount?: number;
@StateRepository()
@State({
name: 'courses',
defaults: createEntityCollections()
})
@Injectable()
export class CoursesEntitiesState extends NgxsDataEntityCollectionsRepository<Course> {}
@StateRepository()
// novels.state.ts
@Persistence({
existingEngine: sessionStorage
})
@State<Novel[]>({
name: 'novels',
defaults: []
})
@Injectable()
export class NovelsState {}
// novels.state.ts
@State<Novel[]>({
name: 'novels',
defaults: []
})
@Injectable()
export class NovelsState {}
// detectives.state.ts
@State<Detective[]>({
@StateRepository()
@State({
name: 'counter',
defaults: 0
})
@Injectable()
class CounterState extends NgxsDataRepository<number>
implements NgxsDataDoCheck, NgxsDataAfterReset {
private subscription: Subscription;