Skip to content

Instantly share code, notes, and snippets.

View bphkns's full-sized avatar
🏠
Working from home

Bikash Phukan bphkns

🏠
Working from home
  • Spotdraft
  • Hyderabad,India
View GitHub Profile
async find() {
return 'Hello';
}
@bphkns
bphkns / styles.scss
Created September 16, 2020 11:30
angular mat style
@import "~@angular/material/theming";
@include mat-core();
html, body {
margin: 0;
height: 100%;
}
$soho-app-primary: mat-palette($mat-blue,700);
@bphkns
bphkns / README.md
Created November 4, 2021 15:31 — forked from acamino/README.md
Shortcuts to Improve Your Bash & Zsh Productivity

Shortcut — Action

  • CTRL + A — Move to the beginning of the line
  • CTRL + E — Move to the end of the line
  • CTRL + [left arrow] — Move one word backward (on some systems this is ALT + B)
  • CTRL + [right arrow] — Move one word forward (on some systems this is ALT + F)
  • CTRL + U — (bash) Clear the characters on the line before the current cursor position
  • CTRL + U —(zsh) If you're using the zsh, this will clear the entire line
  • CTRL + K — Clear the characters on the line after the current cursor position
  • ESC + [backspace] — Delete the word in front of the cursor
set -g default-terminal "screen-256color"
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
unbind %
bind | split-window -h
unbind '"'
set -g default-terminal "screen-256color"
set -g prefix C-a
unbind C-b
bind-key C-a send-prefix
unbind %
bind | split-window -h
unbind '"'
@bphkns
bphkns / nx-library-tagging-eslint.md
Last active July 2, 2025 06:46
Nx Library Tagging & ESLint Rules for Architecture Boundaries

Nx Library Tagging & ESLint Rules

Problem Statement

Our Angular monorepo with 360 libraries and 18 applications has architectural violations:

Current Issues

  • 15 API libraries importing UI components (breaks build optimization/tree-shaking)
  • 68 core/API files importing @spotdraft/draftkit UI utilities
  • No architectural tags - all project.json files have "tags": []
@bphkns
bphkns / async-guide-run-approaches.md
Last active September 3, 2025 10:16
Async Mode Approaches for Guide Run - Comprehensive analysis of different async processing strategies for handling guide run timeouts

Async Mode Approaches for Guide Run

Current Implementation Analysis

Synchronous Approach (Current)

  • Flow: Guidelines processed concurrently using RxJS mergeMap with controlled concurrency
  • HTTP: Direct POST requests to /validate_guideline endpoints
  • Timeouts: Relies on default HTTP timeouts (typically 2-5 minutes)
  • User Experience: Real-time progress updates as each guideline completes