Skip to content

Instantly share code, notes, and snippets.

View asynchroza's full-sized avatar
🌴
On vacation

Mihail Bozhilov asynchroza

🌴
On vacation
View GitHub Profile
const a = { something: "Something" };
const b = a;
b.something = "Not Something";
console.log(a);
const c = { a };
const d = { ...c };
@asynchroza
asynchroza / index.js
Created May 26, 2026 08:15
Interview Task
async function checkout(userId, items) {
const order = await db.orders.create({
userId,
status: "pending",
createdAt: Date.now()
});
items.forEach(async item => {
const inventory = await db.inventory.get(item.productId);

You have a system where users can create dynamic forms and send them to other users for completion. The system also includes a review workflow in which users with review permissions can leave comments and request changes before a submission is finalized.

To reduce the manual effort involved in reviewing and finalizing submissions, the application should be able to analyze users’ answers and determine whether the provided responses are likely sufficient, incomplete, or require additional clarification.

How would you design and implement this answer analysis process?

@asynchroza
asynchroza / grepping.md
Created January 27, 2026 07:49
File searching/grepping

Ripgrep search through file's contents

rg --files-with-matches "openapi"
@asynchroza
asynchroza / git.md
Last active September 24, 2025 19:38
Git commands

Rename a branch

git branch -m <old-name> <new-name>

Change base branch

git rebase --onto   
@asynchroza
asynchroza / reset_tilde.sh
Created January 15, 2025 10:00
Reset keyboard mappings with hidutil
#!/bin/bash
hidutil property --set '{"UserKeyMapping":[]}'
@asynchroza
asynchroza / tmux.conf
Created January 6, 2025 21:14
Enable tmux to propagate keys correctly (to vim)
set -s extended-keys on
set -as terminal-features 'xterm*:extkeys'

k get <resource> <name?> - fetch resource/s

k create <resource> generic <name> <..attributes> --dry-run=client -o yaml > <filename>.yaml - generate resource definition template

k get pod <pod-name> -n <namespace> -o yaml > pod.yaml - export a pod definition

k delete pod - delete a pod