Skip to content

Instantly share code, notes, and snippets.

@blessanm86
blessanm86 / reporter.ts
Created July 30, 2023 12:11
Playwright Kiss Terminal Report
import type {
Reporter,
TestCase,
TestResult,
TestStatus,
} from '@playwright/test/reporter';
import * as path from 'path';
import { groupBy } from 'lodash';
import { AsciiTable3, AlignmentEnum } from 'ascii-table3';
// @ts-ignore
@blessanm86
blessanm86 / snippets.md
Created December 27, 2021 07:06
Snippets

Open project in intellij with idea command

  • create the file /usr/local/bin/idea
#!/bin/sh

open -na "IntelliJ IDEA.app" --args "$@"
  • You can open project now with idea .
  • in case of permission issues chmod +x /usr/local/bin/idea
@blessanm86
blessanm86 / rust-notes.md
Last active December 19, 2021 14:47
Some notes I can refer while I pick up rust

Installation

curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh

You may also need to install a linker via xcode

xcode-select --install

To update rust rustup update

@blessanm86
blessanm86 / importCSV.js
Created October 27, 2021 14:03
Google script to import CSV file to google sheet.
function importCSVFiles()
{
var ss = SpreadsheetApp.getActiveSpreadsheet();
Logger.log(`Active Spreadsheet: ${ss.getName()}`);
const rootFolderId = '1EDAXA7TbzCnzmczRMHD_LxoF0yopS5D2'; // Root folder
const csvFolderName = 'Data'; // Folder containing csv files and the Archive folder
const archiveFolderId = '1clsKkp0bauYkbg0uQj8LfaHIQIrpJWO8'; // Archive Folder
const destinationSheetName = 'final'; // destination sheet in spreadsheet
@blessanm86
blessanm86 / dev-env-setup.md
Last active August 28, 2020 14:22
A list of links and snippets I can reuse/refer when setting up my dev environment
@blessanm86
blessanm86 / convertArrayToTreeWithSorting.md
Last active August 16, 2020 18:27
A javascript function that converts a flat array into a tree. Support sorting
function convertCommentsToTree(comments) {
  const commentsMap = comments.reduce((acc, comment) => {
    comment.children = [];
    acc[comment.id] = comment;
    return acc;
  }, {});

  const sortedParentIds = new Set();
@blessanm86
blessanm86 / translation.md
Last active May 24, 2023 10:01
Zalon Translation Journey

Zalon Translation Jounery

2016

  • Zalon was only serving German speaking countries.

  • So we were already supporting 3 locales Germany (de-DE), Austria (de-AT) and Switzerland (de-CH)

  • Internationalization work was already done for our tools and the master copy for the apps were externalized.

  • Translation were managed in a tool named Transfix

    Workflow

  • The team (Product, UX, Tech) worked together on designing features and then product and UX briefed the copywriter about the feature and shared the master copy.

@blessanm86
blessanm86 / german-driving-license.md
Last active May 3, 2024 15:15
Quick Ref Notes for German Driving License Test

This is unmaintained and was created for personal use. As I passed the exam I have no use to keep this up to date. Feel free to fork

What are the consequences for a person driving a motor vehicle under the influence of drugs (e.g. hashish, heroin, cocaine)?

[x] Confiscation of driving licence or driving ban
[x] Compulsory medical/psychological examination
[x] Fine and/or imprisonment

In which instances do you have to approach a pedestrian crossing with particular care?