Email: zulqurnainjj@gmail.com | Phone: +923364116933
GitHub: github.com/zulqurnain
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:
- 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?"
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.
| fun handleLocationAccess( | |
| activity: ComponentActivity, | |
| fusedLocationClient: FusedLocationProviderClient, | |
| onLocationReady: (Location) -> Unit, | |
| onFailure: (String) -> Unit | |
| ) { | |
| val permissionLauncher = activity.registerForActivityResult( | |
| ActivityResultContracts.RequestPermission() | |
| ) { isGranted -> | |
| if (isGranted) { |
| 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 |
| 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.* |
| 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) |
| <?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" |