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 http://flatuicolors.com/ and converted into Android colors.xml
-->
<resources>
<color name="turquoise">#1abc9c</color>
<color name="emerald">#2ecc71</color>
<color name="peter_river">#3498db</color>
@mauimauer
mauimauer / AA-AndroidWearCrashlytics.md
Last active Aug 29, 2017
Forward Wear Crashed to Smartphone/Tablet for reporting via Crashlytics (or other Crash Analytics solutions)
View AA-AndroidWearCrashlytics.md

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.

##Wear

  • WearApp.java
  • AndroidManifest.xml
  • ErrorService.java
@staltz
staltz / introrx.md
Last active Dec 12, 2019
The introduction to Reactive Programming you've been missing
View introrx.md
@thde
thde / whois.conf
Last active Nov 27, 2019
/etc/whois.conf WHOIS records for nTLDs.
View whois.conf
##
# WHOIS servers for new TLDs (http://www.iana.org/domains/root/db)
# Current as of 2017-12-10 UTC
##
\.aarp$ whois.nic.aarp
\.abarth$ whois.afilias-srs.net
\.abbott$ whois.afilias-srs.net
\.abbvie$ whois.afilias-srs.net
\.abc$ whois.nic.abc
@denji
denji / README.md
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
View README.md
@joshdholtz
joshdholtz / SomeFragment.java
Last active Oct 31, 2019
Android Google Maps V2 - MapView in XML
View SomeFragment.java
public class SomeFragment extends Fragment {
MapView mapView;
GoogleMap map;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.some_layout, container, false);
@christopherperry
christopherperry / adb+
Created Jul 30, 2012
A bash script that let's you issue adb commands to multiple devices at once
View adb+
#!/bin/bash
# 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 com.example.android.apis
@fohlin
fohlin / forms.py
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...)
View forms.py
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.