Skip to content

Instantly share code, notes, and snippets.

Senior Frontend Interview Questions

Some questions about frontend development that might be in your next job interview. The questions were formulated by @mauvieira, a super senior fullstack developer

General Frontend

  • What are the strategies we can use to optimize the performance of web applications?

    • CDNs, GraphQL (maybe) to reduce overfetching, improve backend performance, use SSR and/or SSG, lazy loading for loading assets only when it's needed, minimize and compress HTML, CSS and JS files, and optimize images by compressing and resizing them.
  • What are Web Vitals (LCP, FID, CLS)? And how are they applied in the real world?

@p-tchaikovsky
p-tchaikovsky / custom-instructions
Created February 17, 2025 02:21 — forked from usrbinkat/custom-instructions
Alt-Text ChatGPT Bot
You are an accessibility-focused system generating inclusive alt text for images, including the complexity of memes and meme culture, intended for social media posting. Your output must be a single plain-text string, ending with a period, that users can place directly into the alt text field. Use these consolidated instructions:
1) Purpose and Scope:
- Make visuals accessible and inclusive to individuals with visual impairments or cognitive challenges.
- Focus on meme culture, humor, and cultural references, ensuring the audience understands both literal content and implied meaning.
2) Key Descriptive Principles:
- Provide meaningful descriptions highlighting the primary elements, implied context, and intent of the image.
- Respect an overall character limit of 2000 characters, though strive for concise alt text (1–2 sentences where possible).
@p-tchaikovsky
p-tchaikovsky / 00-README.md
Created February 17, 2025 02:21 — forked from usrbinkat/00-README.md
Ubiquiti Unifi Access Point Network Application Controller on Kubernetes

K8s UniFi Network Application Deployment

NOTICE: under active development, currently facing pvc permissions issues

Spike busting gist of a production-ready Kubernetes manifest for running Ubiquiti’s UniFi Network Application (a.k.a. UniFi Controller) backed by a MongoDB database. All data is persisted in PersistentVolumeClaims (PVCs), and both containers ultimately run as non-root for better security.


Overview

@p-tchaikovsky
p-tchaikovsky / GitOps_TechStack_Analysis.md
Created February 17, 2025 02:20 — forked from usrbinkat/GitOps_TechStack_Analysis.md
Cloud Orchestration Tech Stack

Comparative Analysis of Two GitOps-Oriented Platform Architectures for Science and AI Communities

This document provides a principal-level, deeply contextualized comparative analysis of two distinct GitOps-oriented infrastructure management approaches. Both models rely on declarative configurations stored in Git, continuous reconciliation, and integration with Internal Developer Platforms (IDPs). Yet, they differ in their core technologies, skillset alignments, operational complexities, long-term maintainability, and their suitability for scaling across hundreds of diverse downstream teams in a multi-hybrid-cloud, compliance-heavy science and AI environment.

Contents

@p-tchaikovsky
p-tchaikovsky / how-to.md
Created February 17, 2025 02:20 — forked from usrbinkat/how-to.md
huggingface models on amazon sagemaker - pulumi iac

How To

  1. We’ll make a directory

  2. And create a new project from pulumi templates

mkdir ai && cd ai
pulumi new sagemaker-aws-python
@p-tchaikovsky
p-tchaikovsky / root_mi_box_s_2nd_gen.md
Created February 7, 2025 13:44 — forked from supechicken/root_mi_box_s_2nd_gen.md
A tutorial for rooting Xiaomi TV Box S 2nd Gen (jaws) without UART/teardown

Rooting Xiaomi TV Box S 2nd Gen (jaws) without UART/teardown

Table of contents

  • Prerequisites
  • Step 1: Download the stock ROM for Xiaomi TV Box S 2nd Gen
  • Step 2: Extract boot image from the OTA archive
  • Step 3: Update the system with downloaded OTA archive
  • Step 4: Patch boot image with Magisk
  • Step 5: Unlock bootloader with fastboot
  • Step 6: Reboot to system and complete setup
@p-tchaikovsky
p-tchaikovsky / README
Created July 28, 2024 01:48 — forked from jmatsushita/README
Setup nix, nix-darwin and home-manager from scratch on an M1 Macbook Pro
###
### [2023-06-19] UPDATE: Just tried to use my instructions again on a fresh install and it failed in a number of places.
###. Not sure if I'll update this gist (though I realise it seems to still have some traffic), but here's a list of
###. things to watch out for:
### - Check out the `nix-darwin` instructions, as they have changed.
### - There's a home manager gotcha https://github.com/nix-community/home-manager/issues/4026
###
# I found some good resources but they seem to do a bit too much (maybe from a time when there were more bugs).
# So here's a minimal Gist which worked for me as an install on a new M1 Pro.
@p-tchaikovsky
p-tchaikovsky / GTWalsheimPro.css
Created January 17, 2024 14:27 — forked from mfd/GTWalsheimPro.css
GT Walsheim Pro
@font-face {
font-family: GT Walsheim Pro;
src: local("GT Walsheim Pro Regular"),local("GTWalsheimProRegular"),url(GTWalsheimProRegular.woff2) format("woff2"),url(GTWalsheimProRegular.woff) format("woff"),url(GTWalsheimProRegular.ttf) format("truetype");
font-weight: 400;
font-style: normal
}
@font-face {
font-family: GT Walsheim Pro;
src: local("GT Walsheim Pro Bold"),local("GTWalsheimProBold"),url(GTWalsheimProBold.woff2) format("woff2"),url(GTWalsheimProBold.woff) format("woff"),url(GTWalsheimProBold.ttf) format("truetype");
@p-tchaikovsky
p-tchaikovsky / keybase.md
Created January 4, 2024 10:25
keybase.md

Keybase proof

I hereby claim:

  • I am p-tchaikovsky on github.
  • I am chayn1k (https://keybase.io/chayn1k) on keybase.
  • I have a public key ASB7X_iCMf3djinKrMZ7h5O_4BhQzuPsbCoSDz9j6lBAigo

To claim this, I am signing this object: