Skip to content

Instantly share code, notes, and snippets.

Matheus Jardim Bernardes matheusjardimb

Block or report user

Report or block matheusjardimb

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 android_colors
<?xml version="1.0" encoding="utf-8"?>
Great set of colors from from and converted into Android colors.xml
<color name="turquoise">#1abc9c</color>
<color name="emerald">#2ecc71</color>
<color name="peter_river">#3498db</color>
mauimauer /
Last active Aug 29, 2017
Forward Wear Crashed to Smartphone/Tablet for reporting via Crashlytics (or other Crash Analytics solutions)

Send uncaught Exceptions from Android Wear to Android

This is a short Gist showing how I transmit any uncaught exceptions happening in the Wearable part of my App to the connected Smartphone/Tablet. This is necessary because Android Wear devices are not directly connected to the Internet themselves.


  • AndroidManifest.xml
staltz /
Last active Dec 12, 2019
The introduction to Reactive Programming you've been missing
thde / whois.conf
Last active Nov 27, 2019
/etc/whois.conf WHOIS records for nTLDs.
View whois.conf
# WHOIS servers for new TLDs (
# Current as of 2017-12-10 UTC
denji /
Last active Nov 26, 2019 — forked from istepanov/gist:3950977
Remove/Backup – settings & cli for macOS (OS X) – DataGrip, AppCode, CLion, Gogland, IntelliJ, PhpStorm, PyCharm, Rider, RubyMine, WebStorm
joshdholtz /
Last active Oct 31, 2019
Android Google Maps V2 - MapView in XML
public class SomeFragment extends Fragment {
MapView mapView;
GoogleMap map;
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.some_layout, container, false);
christopherperry / adb+
Created Jul 30, 2012
A bash script that let's you issue adb commands to multiple devices at once
View adb+
# Script adb+
# Usage
# You can run any command adb provides on all your currently connected devices
# ./adb+ <command> is the equivalent of ./adb -s <serial number> <command>
# Examples
# ./adb+ version
# ./adb+ install apidemo.apk
# ./adb+ uninstall
fohlin /
Created Jan 8, 2011
A version of Django's UserCreationForm that uses email instead of username, with some nifty features. (Maybe not super robust yet, in terms of concurrency...)
import re
from django import forms
from django.contrib.auth.models import User
from django.contrib.auth.forms import UserCreationForm
class UniqueUserEmailField(forms.EmailField):
An EmailField which only is valid if no User has that email.
def validate(self, value):
You can’t perform that action at this time.