Skip to content

Instantly share code, notes, and snippets.

View paurakhsharma's full-sized avatar
💻
Hacking

Paurakh Sharma Humagain paurakhsharma

💻
Hacking
View GitHub Profile
@bizz84
bizz84 / update-android-project.sh
Created November 18, 2024 09:17
Script to update Gradle, Java and other Android project settings in a Flutter project
#!/bin/bash
# Update Gradle, Java and other Android project settings in a Flutter project
# See: https://gradle.org/releases/
DESIRED_GRADLE_VERSION="8.9"
# Build errors often show the required Java version
DESIRED_JAVA_VERSION="17"
# See: https://developer.android.com/ndk/downloads
DESIRED_NDK_VERSION="27.0.12077973"
# The minimum Android SDK version
@dahabit
dahabit / ios_clean.sh
Last active February 26, 2022 23:03
Shell file that clean any Pods or Flutter dependencies before build
#!/bin/sh
echo "========== Cleanup start =========="
rm -Rf ios/Pods
rm -Rf ios/.symlink
rm -Rf ios/Flutter/Flutter.framework
rm -Rf ios/Flutter/Flutter.podspec
rm -rf ios/Podfile.lock
rm -rf ~/Library/Developer/Xcode/DerivedData/* -y
rm -rf pubspec.lock
flutter clean
import 'package:flutter/material.dart';
class CarBox extends StatefulWidget {
final String carIconUrl;
final String title;
final bool selected;
final Function onTap;
CarBox(
{Key key, this.carIconUrl, this.title, this.selected = false, this.onTap})
: super(key: key);
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active November 18, 2024 15:17
Online Resources For Web Developers (No Downloading)
@GregKWhite
GregKWhite / diff-so-fancy-setup.markdown
Last active July 15, 2021 00:53
Describes how to set up diff-so-fancy
  • Install diff-so-fancy via their website (or just run npm install -g diff-so-fancy)
  • Add the following to your .gitconfig file:
[core]
  pager = diff-so-fancy | less --tabs=1,5 -R
  • I find that these colors work best with it, but it's up to you if you want to add them to your .gitconfig or not.
[color "diff"]
 meta = "yellow bold"