Skip to content

Instantly share code, notes, and snippets.

View maheshmnj's full-sized avatar
💭
Bring it on 🔥

Mahesh Jamdade maheshmnj

💭
Bring it on 🔥
View GitHub Profile
@maheshmnj
maheshmnj / darkmode.dart
Last active March 29, 2024 13:55
Sample code showing dark mode transition similar to Telegram in flutter with circular transition. Blog Post: https://maheshmnj.medium.com/leveraging-clippaths-in-flutter-a5f34c795ae5
class DarkTransition extends StatefulWidget {
const DarkTransition(
{required this.childBuilder,
Key? key,
this.offset = Offset.zero,
this.themeController,
this.radius,
this.duration = const Duration(milliseconds: 400),
this.isDark = false})
: super(key: key);
@maheshmnj
maheshmnj / android.md
Last active March 12, 2024 03:49
Native Android hacks

Table of Contents

  1. Install apk from Appbundle

  2. App not compatible for android 12 Issue

You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver
with intent filter, but without the 'android:exported' property set. This file can't be installed
on Android 12 or higher. See: developer.android.com/about/versions/12/behavior-changes-12#exported
@maheshmnj
maheshmnj / postgres.md
Last active February 10, 2024 20:10
docs for using postgres sql cli tool psql

Start the server (for installation see Install instructions)

pg_ctl -D /opt/homebrew/var/postgresql@14 start

Stop the server

pg_ctl -D /opt/homebrew/var/postgresql@14 start
@maheshmnj
maheshmnj / ultra.dart
Last active December 17, 2023 20:50
Ultra Gradient in Flutter
import 'dart:ui';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
cls
@ECHO OFF
title Folder Locker
if EXIST "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto UNLOCK
if NOT EXIST Locker goto MDLOCKER
:CONFIRM
echo Are you sure u want to Lock the folder(Y/N)
set/p "cho=>"
if %cho%==Y goto LOCK
if %cho%==y goto LOCK
@maheshmnj
maheshmnj / adb.md
Last active November 8, 2023 18:29
Adb Push file to phone from laptop

adb push (Send data from Desktop to Target phone)

adb push ~/Desktop/notifications.drawio ./storage/emulated/0/Download
e.g
$ adb push ~/Documents/workspace/mobile-app/build/app/outputs/flutter-apk/app-release.apk ./storage/emulated/0/Download

image

@maheshmnj
maheshmnj / git.md
Last active November 5, 2023 02:57
git cheat Sheet
  1. Clone a project from remote to your system git clone https://github.example.com/project/example.git

  2. To know the status of your project

    • to know the uncommited changes
    • your current branch name etc run git status
  3. create a branch git branch <newBranchName>

@maheshmnj
maheshmnj / lcsort.dart
Last active November 5, 2023 00:19
algorithm to sort the books using the Library of Congress col numbers
import 'dart:math';
void main() {
/// Enter list of LCNumbers to sort in quotes ("") separated by comma (,)
List<Book> books = <String>[
"GN799.A41 H6 2017",
"PQ4843.O53 G313",
"CR6005.O35 L3 1954",
"GN799.A41 H6 1937",
"ZR605.A35 H5 1979",
@maheshmnj
maheshmnj / bottomnavbar.dart
Last active September 2, 2023 11:53
Demo app for a medium post "Everything about the Nested bottom navigation bar"
/*
* File: main.dart
* Project: BottomNavigationBar demo
* File Created: Wednesday, 26th May 2022 1:15:47 pm
* Author: Mahesh Jamdade
* -----
* Last Modified: Saturday, 28th May 2022 4:42:07 pm
* Modified By: Mahesh Jamdade
* -----
*/