Skip to content

Instantly share code, notes, and snippets.

View vmasek's full-sized avatar
:shipit:
shipping it

Vojtech Mašek vmasek

:shipit:
shipping it
View GitHub Profile
@vmasek
vmasek / loadBoxStructure.json
Last active July 18, 2022 10:32
payload test
This file has been truncated, but you can view the full file.
{"ganttDTO":{"data":[{"startDate":"2017-05-05","endDate":"2017-05-05","mode":"AUTO_BOTTOM_UP","editable":true,"accessible":true,"periodCalculatedForAssignee":true,"columns":{"4321":{},"4322":{"NONE":{"dataTypeId":"BUILTIN_COLOR","value":"SLATE"}},"4323":{"NONE":{"dataTypeId":"MILESTONE","value":"TASK"}},"4324":{"NONE":{"dataTypeId":"PERIOD_MODE","value":"AUTO_BOTTOM_UP"}},"4325":{"NONE":{"dataTypeId":"INDIVIDUAL_RESOURCE","id":"EXT_USER@2@admin","isArchived":false,"displayName":"admin","avatarUrlSmall":"https://qa.softwareplant.com/audit/secure/useravatar?size=small&avatarId=10341","avatarUrlNormal":"https://qa.softwareplant.com/audit/secure/useravatar?size=medium&avatarId=10341"}},"4327":{"NONE":{"dataTypeId":"SKILLS","skills":[]}},"4328":{"NONE":{"dataTypeId":"KEY","url":"https://qa.softwareplant.com/audit/browse/TP10K-4861","value":"TP10K-4861","extPlatformId":2,"extTaskId":"21060"}},"4330":{"SUBTASK_STATUS_CATEGORIES_PERCENTAGE":{"dataTypeId":"STATUS","id":"10000","sequence":7,"name":"To Do","description"
@vmasek
vmasek / reamde-cheat-sheet.md
Created April 20, 2022 14:30
GitHub readme cheat sheet

load image based on the GH theme

![Logo](dark.png#gh-dark-mode-only)

![Logo](light.png#gh-light-mode-only)

@vmasek
vmasek / list.md
Created April 1, 2022 08:29
CSS learning resources
@vmasek
vmasek / commands.md
Created March 16, 2022 09:58
SASS/SCSS migration
  • Run npx --yes sass-migrator division **/*.scss to fix the / divisions
@vmasek
vmasek / web-dev-words.txt
Last active December 22, 2021 17:37
Codenames web development word pack
ABSTRACTION
ACCENT
ACCESSIBILITY
ACTIVATION
ADDRESS
AGENT
AGILE
AJAX
ALGORITHM
ALIGNMENT
@vmasek
vmasek / filter-predicate.ts
Created March 14, 2021 01:33
Filter null & undefined predicate
const wololo: (string | number)[] =
['x', 42, null, undefined, 'foo']
.filter(<T>(item: T | null | undefined): item is T => !!item);
@vmasek
vmasek / articles.component.ts
Last active May 2, 2020 12:16
Using activated route query parameters to fetch articles
@Component({
selector: 'app-articles-list',
templateUrl: './articles-list.component.html',
styleUrls: ['./articles-list.component.scss'],
})
export class ArticlesListComponent implements OnDestroy {
readonly defaultPageSize = 6;
private readonly unsubscribe$ = new Subject<void>();
@vmasek
vmasek / let.directive.ts
Created July 25, 2019 17:56
let dynamic directive
import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';
/**
* This interface represents context of the directive.
*
* It defines two properties ($implicit and viLet) which enables same behavior with different syntax.
* It is not required to have both, it is just a way to provide support for both syntax.
*/
interface LetContext<T extends { [key: string]: unknown }> {
/**
@vmasek
vmasek / app.component.ts
Created July 24, 2019 18:30
let directive multiple values example
@Component({
selector: 'app-root',
template: `
<h1>mouse</h1>
<p
*viLet="{
click: mouseClick$ | async,
move: mouseMove$ | async,
interval: interval$ | async,
} as mouse"
@vmasek
vmasek / inkscape-cheat-sheet.md
Last active November 12, 2020 12:11
Inkscape cheat sheet