Skip to content

Instantly share code, notes, and snippets.

@prokopsimek
prokopsimek / npm-publish.yml
Created April 26, 2023 07:58
Automating SDK releases on Github Action
# This workflow will publish a package to npmjs.com when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js Package
on: push
jobs:
publish-npm:
if: "github.ref == 'refs/heads/main' && github.event_name == 'push' && contains(github.event.head_commit.message, 'chore(release)')"
@prokopsimek
prokopsimek / test_gh_comments_in_markdown.md
Last active December 18, 2019 13:25
test_gh_comments_in_markdown.md

text1

text 2

@prokopsimek
prokopsimek / understanding_git.md
Created August 20, 2019 10:42
Understanding Git (by Zvonimir Spajic)

| Test scenario | Description | Test Steps | Expected Result | Status | | Login with valid credentials | Test of login into the application to ensure that a valid user is able to log-in | 1. Open the application 2. Select the log-in function 3. Enter valid username and password 4. Press ENTER or click on the log-in button | The user should be logged in | Passed |

"Test scenario" Description "Test Steps" "Expected Result" Status
Login with valid credentials Test of login into the application to ensure that a valid user is able to log-in 1. Open the application
2. Select the log-in function
3. Enter valid username and password
4. Press ENTER or click on the log-in button
The user should be logged in Passed
Test scenario Description Test Steps Expected Result Status
@prokopsimek
prokopsimek / decorators.ts
Created January 13, 2019 21:16
TypeScript decorators introduction test
// src.: http://blog.wolksoftware.com/decorators-reflection-javascript-typescript
// run: ts-node decorators.ts
function log(target: any, key: string, value: any) {
return {
value(...args: any[]) {
let a = args.map(a => JSON.stringify(a)).join()
let result = value.value.apply(this, args)
let r = JSON.stringify(result)
console.log(`Call: ${key}(${a}) => ${r}`)
@prokopsimek
prokopsimek / apps.md
Created November 22, 2018 13:09 — forked from LeZuse/apps.md
Mac apps
@prokopsimek
prokopsimek / portainer.yml
Last active December 20, 2022 16:18
docker stack setup swarmpit & portainer
version: '3'
services:
agent:
image: portainer/agent
environment:
# REQUIRED: Should be equal to the service name prefixed by "tasks." when
# deployed inside an overlay network
AGENT_CLUSTER_ADDR: tasks.agent
# AGENT_PORT: 9001
[
{
"data": {
"id": "Code management & Trello & Jira",
"name": "Code management & Trello & Jira"
}
},
{
"data": {
"id": "traineeCode management & Trello & Jira",
@prokopsimek
prokopsimek / History|-101c2795|entries.json
Last active March 3, 2023 12:39
Prokop's VisualStudioCodeConfig sync
{"version":1,"resource":"file:///Users/prokop/repos/_dxheroes/dx-knowledge-base/server/services/ArticlesImporter.service.ts","entries":[{"id":"6PZl.ts","source":"Fix all fixable ESLint issues","timestamp":1674631353415},{"id":"HGXu.ts","timestamp":1674631361781},{"id":"VmOM.ts","timestamp":1674631865992},{"id":"uZTG.ts","source":"undoRedo.source","timestamp":1674632007383},{"id":"XSs1.ts","timestamp":1674632019098},{"id":"nP5K.ts","timestamp":1674632085589},{"id":"MSJn.ts","source":"Convert to default import","timestamp":1674632200956},{"id":"oDxr.ts","source":"Fix all fixable ESLint issues","timestamp":1674632226132},{"id":"P2ni.ts","timestamp":1674632235199},{"id":"z2Ja.ts","timestamp":1674632245896},{"id":"o3Kj.ts","source":"Fix all fixable ESLint issues","timestamp":1674632254990},{"id":"z13W.ts","timestamp":1674632281662},{"id":"2mFJ.ts","source":"Fix all fixable ESLint issues","timestamp":1674632286402},{"id":"MHzp.ts","source":"undoRedo.source","timestamp":1674632319402},{"id":"PA3O.ts","timestamp":167
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->