Skip to content

Instantly share code, notes, and snippets.

View dhuma1981's full-sized avatar
🎯
Focusing

Dhrumil Shah dhuma1981

🎯
Focusing
View GitHub Profile
@jeroen-meijer
jeroen-meijer / fluttercleanrecursive.sh
Created September 15, 2019 13:00
Flutter Clean Recursive - Clear up space on your hard drive by cleaning your Flutter projects. This script searches for all Flutter projects in this directory and all subdirectories and runs 'flutter clean'. Note: may take a long time for folders with large amounts of projects.
#!/bin/sh
# To run, download the script or copy the code to a '.sh' file (for example 'fluttercleanrecursive.sh') and run like any other script:
# sh ./fluttercleanrecursive.sh
# or
# sudo sh fluttercleanrecursive.sh
echo "Flutter Clean Recursive (by jeroen-meijer on GitHub Gist)"
echo "Looking for projects... (may take a while)"
@rodydavis
rodydavis / flutter_calendar.dart
Created May 2, 2019 13:50
Working version of a desktop calendar built with Flutter.
import 'dart:async';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import '../../constants.dart';
import '../../utils/index.dart';
import 'index.dart';
class FullCalendar extends StatefulWidget {
import 'package:flutter/material.dart';
import 'dart:math';
class FoldablePage extends StatefulWidget {
@override
_FoldableState createState() => _FoldableState();
}
class _FoldableState extends State<FoldablePage>
with SingleTickerProviderStateMixin {
@elizacamber
elizacamber / GetYoutubePlayPlaylistIntent.java
Created August 8, 2017 08:58
Intent for playing a playlist in the youtube app
public static Intent getYoutubePlayPlaylistIntent(Context context, String googleId) {
String url = String.valueOf("https://www.youtube.com/playlist?list=");
String mGoogleId = String.valueOf(googleId);
if (mGoogleId.length() != 0) {
url = url.concat(mGoogleId);
}
Uri uri = Uri.parse(url).buildUpon().appendQueryParameter("playnext", "1").build();
Intent intent = new Intent("android.intent.action.VIEW", uri).setPackage("com.google.android.youtube");
PackageManager packageManager = context.getPackageManager();