Skip to content

Instantly share code, notes, and snippets.

View hrishikesh-kadam's full-sized avatar

Hrishikesh Kadam hrishikesh-kadam

View GitHub Profile
@hrishikesh-kadam
hrishikesh-kadam / install-bundletool.sh
Created June 2, 2023 19:14
Install Bundletool Script
#!/usr/bin/env bash
set -e -o pipefail
if [[ $GITHUB_ACTIONS == "true" ]]; then
# To avoid GitHub API rate limiting
VERSION=$( \
curl --silent --show-error --location --fail \
--output /dev/null \
--write-out "%{url_effective}" \
@hrishikesh-kadam
hrishikesh-kadam / main.dart
Last active April 29, 2024 09:30
Initial route other than '/' in Navigation 2.0 / Router
import 'package:flutter/material.dart';
void main() {
runApp(BooksApp());
}
class Book {
final String title;
final String author;
@hrishikesh-kadam
hrishikesh-kadam / CustomPicasso.java
Last active May 5, 2020 13:15
Custom Picasso for redirecting image URLs
import android.content.Context;
import android.util.Log;
import com.jakewharton.picasso.OkHttp3Downloader;
import com.squareup.picasso.Picasso;
/**
* Created by Hrishikesh Kadam on 19/12/2017
*/
@hrishikesh-kadam
hrishikesh-kadam / ImagePicker.java
Created August 20, 2017 17:10 — forked from Mariovc/ ImagePicker.java
Utility for picking an image from Gallery/Camera with Android Intents
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ResolveInfo;
import android.content.res.AssetFileDescriptor;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Matrix;
import android.media.ExifInterface;