Skip to content

Instantly share code, notes, and snippets.

Fayaz Bin Salam p32929

Block or report user

Report or block p32929

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View flutter_playground.dart
import 'package:flutter/material.dart';
void main() {
class TopBar extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
p32929 /
Created May 6, 2019 — forked from dropmeaword/
Playing around with Chrome's history

Browser histories

Unless you are using Safari on OSX, most browsers will have some kind of free plugin that you can use to export the browser's history. So that's probably the easiest way. The harder way, which seems to be what Safari wants is a bit more hacky but it will also work for other browsers. Turns out that most of them, including Safari, have their history saved in some kind of sqlite database file somewhere in your home directory.

The OSX Finder cheats a little bit and doesn't show us all the files that actually exist on our drive. It tries to protect us from ourselves by hiding some system and application-specific files. You can work around this by either using the terminal (my preferred method) or by using the Cmd+Shft+G in Finder.


Once you locate the file containing the browser's history, copy it to make a backup just in case we screw up.

p32929 / Colors
Last active May 2, 2019
Just some material design colors that I mostly try to use :/
View Colors
<color name="red">#D32F2F</color>
<color name="pink">#C2185B</color>
<color name="purple">#7B1FA2</color>
<color name="deep_purple">#512DA8</color>
<color name="indigo">#303F9F</color>
<color name="blue">#1976D2</color>
<color name="light_blue">#0288D1</color>
<color name="cyan">#0097A7</color>
<color name="teal">#00796B</color>
<color name="green">#388E3C</color>
p32929 /
Last active May 14, 2020
Many Android manufacturers cause trouble by implementing battery optimizations that cause apps to behave unexpectedly at runtime. This util class allows you to show a dialog to users having such phones and sends them to the settings screen where they can turn of battery optimizations for your app.
MIT License
Copyright (c) 2018 Fayaz Bin Salam
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
You can’t perform that action at this time.