Skip to content

Instantly share code, notes, and snippets.

View puranik3's full-sized avatar
๐Ÿ 
Working from home

Prashanth Puranik puranik3

๐Ÿ 
Working from home
View GitHub Profile
@puranik3
puranik3 / debugging.md
Created July 3, 2025 16:24
Debugging React Native Android apk on Physical Device

Debugging a React Native app from an APK running on a physical Android device is slightly different from debugging in development mode (npx react-native run-android). Once you build a release APK, it's optimized, minified, and doesn't have debugging tools attached by default. Here's a structured approach depending on whether you're using a debug build APK or a release build APK.


๐Ÿ› ๏ธ Option 1: Debug Build APK (recommended for debugging)

If you built a debug APK (debug.apk), debugging is easy:

โœ… Steps:

@puranik3
puranik3 / leetcode-2958-longest-subarray.java
Last active June 11, 2025 12:01
2958. Length of Longest Subarray With at Most K Frequency
import java.util.HashMap;
class Solution {
public int maxSubarrayLength(int[] nums, int k) {
int N = nums.length;
int left = 0, right = 0, f, x;
int result = 1, cur;
HashMap<Integer, Integer> freq = new HashMap<>();
@puranik3
puranik3 / session-1-March-15-2025.md
Last active June 6, 2025 12:13
Outskill Gen AI Workshop, March 15, 16 2025

Outskill Gen AI Workshop, March 15, 16 2025

  • Notes by Prashanth Puranik

Organizer: Phani Krishna, Outskill
Session 1: Divij Bajaj, Microsoft

  • Gen AI is a type of AI that creates original content - such as test, images, videos - by learning patterns from large datasets
  • Use cases of AI
    • Digital assistants
  • Eg. Siri
<template>
<div class="row">
<div class="col-12">
<h3>
Sessions in this workshop
</h3>
<hr />
</div>
<div
v-if="loading"
@puranik3
puranik3 / QuickSortDemo.java
Last active June 9, 2025 18:26
Quick sort
package quicksort;
import java.util.Arrays;
public class QuickSortDemo {
private static void swap( int[] arr, int p1, int p2 ) {
int temp = arr[p1];
arr[p1] = arr[p2];
arr[p2] = temp;
}