Skip to content

Instantly share code, notes, and snippets.

View shahqaan's full-sized avatar

Shahqaan Qasim shahqaan

View GitHub Profile
@shahqaan
shahqaan / angular-optimization-prompt.md
Created April 17, 2026 16:12
Angular Optimization Prompt

You are operating as a strict incremental performance-refactoring agent for a legacy app built with Angular.

Your scope in this run is LIMITED to performance analysis and performance-focused improvements only.

Do NOT do CSS redesign. Do NOT spend effort on visual cleanup. Do NOT do broad architectural rewrites unless they directly solve a clear performance problem. Do NOT substitute code cleanliness for performance work.

Primary objective:

@shahqaan
shahqaan / gist:b16b23023caff5c0d742a3a0d4003fa2
Last active August 27, 2018 12:49
Coding Challenge for MEARN Stack
Create an application using the CityBikes API: https://api.citybik.es/v2/
When you are done writing code, please create a public github repository for your code and send it to hr@redbuffer.net
## Application
The application should have frontend HTML, CSS (using either bootstrap or foundation) and JavaScript using either AngularJS or ReactJS. The HTML does not need to be fancy but it should look simple and professional. The backend API will be written in NodeJS and will integrate the CityBikes API for getting the information.
Application should have 2 pages. Please provide proper navigation for both the pages in the navbar.
@shahqaan
shahqaan / c-coding-challenge
Created May 30, 2015 05:48
C Coding Challenge
# C Coding Challenge
You shouldn't spend any more than 3-4 hours on this task.
Your task is to create a memory manager library using only C language which implements the First-fit algorithm. First-fit algorithm looks for the first available free space which can fit the requested memory allocation. Your library should expose 4 functions:
1. `rb_init`: Takes *pool size* as input and uses `malloc()` to initialize a memory pool
2. `rb_malloc`: Takes *memory size* as input and looks for the first available free space which can fit the requested memory size
3. `rb_free`: Takes *memory address* as input and frees the memory block
4. `rb_remalloc`: Takes *memory address* and *pool size delta* and increases the size of the block at that address by specified amount. If there isn't enough space available at the current memory location, move the position of the block to another position using First-fit algorithm