Skip to content

Instantly share code, notes, and snippets.

View Zulqurnain's full-sized avatar
🎯
Focusing

Zulqurnain Haider Zulqurnain

🎯
Focusing
  • Rave Business Systems LLC
  • Lahore, Pakistan
View GitHub Profile

You are an expert software project assistant, specialized in guiding users through the entire lifecycle of a software project, from initial ideation to detailed planning and execution. Your role is to facilitate a comprehensive process, emphasizing exploration, research, and clear documentation before development begins.

Your Responsibilities:

  1. Project Ideation and Exploration Phase:
    • Brainstorming: Facilitate open-ended brainstorming about the project idea. Encourage the user to articulate their vision, goals, and initial ideas.
    • Problem Definition: Help the user to clearly define the problem their project intends to solve and what value will it bring to the intended users. Ask questions like:
      • "What specific problem are you addressing?"
  • "Why is this problem important to solve?"
@Zulqurnain
Zulqurnain / Github Leaked API Keys and Secrets.md
Last active August 8, 2025 19:39
it's a bundle of all the github syntax and search query help you find stuff for free on Github ;) , Some it was Contributed by @Zulqurnain myself ;D

ZULQURNAIN

GitHub Search Syntax for Finding API Keys/Secrets/Tokens

In the world of security, good reconnaissance is like good coffee — strong, focused, and capable of keeping you awake at night.
With APIs being everywhere these days, keeping tokens and secrets under wraps is a must… unless you enjoy strangers “borrowing” your cloud credits.

Sadly, human error is still a thing. Developers (even the smart ones) sometimes leave their API secrets hardcoded in code and push them to public repos on GitHub — basically gift-wrapping access for attackers.
Since GitHub is the go-to hangout spot for open-source code, it can also accidentally become a goldmine for leaked credentials.

@Zulqurnain
Zulqurnain / LocationFun.kt
Created April 3, 2025 19:05
Location Permission Issue resolve
fun handleLocationAccess(
activity: ComponentActivity,
fusedLocationClient: FusedLocationProviderClient,
onLocationReady: (Location) -> Unit,
onFailure: (String) -> Unit
) {
val permissionLauncher = activity.registerForActivityResult(
ActivityResultContracts.RequestPermission()
) { isGranted ->
if (isGranted) {
@Zulqurnain
Zulqurnain / GridSpacingItemDecoration.kt
Created November 10, 2022 00:31
GridLayoutManager used in RecyclerView , then use this Item Decoration for spacing
class GridSpacingItemDecoration(
private val spanCount: Int,
private val spacing: Int,
private val includeEdges: Boolean
) : RecyclerView.ItemDecoration() {
override fun getItemOffsets(
outRect: Rect,
view: View,
parent: RecyclerView,
package com.jutt.medsreminders.helper
import android.content.Context
import com.google.gson.Gson
import com.jutt.medsreminders.data.bo.PushNotificationData
import com.jutt.medsreminders.data.enums.PushNotificationAction
import com.jutt.medsreminders.data.models.Alert
import com.jutt.medsreminders.injection.Injector
import com.jutt.medsreminders.utils.NotificationChannelCreator
import com.jutt.medsreminders.utils.NotificationHandler
@Zulqurnain
Zulqurnain / Failure.kt
Created March 29, 2022 17:21 — forked from rommansabbir/Failure.kt
Sealed Class that return HTTP Failure (4xx, 5xx)
sealed class Failure {
/*Network Error*/
class NetworkConnection(var additionalData: Any? = null) : Failure()
/*Exception*/
class Exception(var additionalData: Any? = null) : Failure()
/**
* Although the HTTP standard specifies "unauthorized",
* semantically this response means "unauthenticated".
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import android.graphics.Color
import android.net.Uri
import android.os.Build
import android.view.Menu
import android.view.View
import android.view.WindowManager
import androidx.annotation.*
@Zulqurnain
Zulqurnain / MockCallInterceptor.kt
Last active December 27, 2021 23:39
MockCallInterceptor working in kotlin using Gson
class MockCallInterceptor<T> constructor(val value: T) : Interceptor {
override fun intercept(chain: Interceptor.Chain): Response {
val uri = chain.request().url().uri().toString()
val responseString: String = Gson().toJson(T::class.java)
val response = Response.Builder()
.code(200)
.message(responseString)
.request(chain.request())
.protocol(Protocol.HTTP_1_0)
@Zulqurnain
Zulqurnain / shadow.xml
Created September 7, 2021 08:23 — forked from lecho/shadow.xml
Android shadow drawable xml.
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- Drop Shadow Stack -->
<item>
<shape>
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
@Zulqurnain
Zulqurnain / ViewDrawableUtils.kt
Created September 7, 2021 07:14
Get One Sides Shadow In View
/**
* Get Shadow Drawable with most elevation on provided shadowGravity Attribute
*/
fun getBoxShadowBackground(
view: View,
@ColorRes backgroundColor: Int = android.R.color.white,
radiusInDP: Float = view.convertDpTpPx(5F),
@ColorRes shadowColor: Int = android.R.color.black,
elevation: Int = 0,
shadowGravity: Int = Gravity.BOTTOM