Skip to content

Instantly share code, notes, and snippets.

View ingyesid's full-sized avatar

Yesid Lázaro Mayoriano ingyesid

  • Globant
  • Corozal - Sucre, Colombia
View GitHub Profile
[
{
"name": "Timon",
"description": "El travieso de la manada, hermano de pumba, hijo de Rozy. le encanta nadar.",
"photo_url": "https://media.istockphoto.com/id/1456853266/es/foto/retrato-del-perro-golden-retriever-con-correa-en-la-boca-sobre-fondo-amarillo.jpg?s=612x612&w=0&k=20&c=ykVjasaoxoiAxZaLtACeZDz-ILGybcTbwf062bPrD7s=",
"age": 2
},
{
"name": "Nala",
"description": "La más joven de la manada, super protectora como su mamá, le encanta salir a caminar y atacar las gallinas.",
@ingyesid
ingyesid / UploadWorkouts.java
Created January 3, 2016 17:02 — forked from baluubas/UploadWorkouts.java
Uploading a workout to Google Fit
package com.anderspersson.mioji.Services.GoogleFit;
import android.app.IntentService;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.support.annotation.NonNull;
@ingyesid
ingyesid / ChromeTabsUtils.java
Last active September 6, 2015 02:30
Utils for Android's CustomTabs Support Library
/*
* Copyright 2015 Diego Rossi (@_HellPie)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@ingyesid
ingyesid / layout.xml
Last active November 27, 2016 07:32
Colored Button Style With AppCompat +22
<Button
android:id="@+id/but_next"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/but_continue"
android:theme="@style/Button.Tinted" />
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.TextView;
/**
* Created by khaled bakhtiari on 10/26/2014.
* <a href="http://about.me/kh.bakhtiari">
*/
Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix.
All Clickable Views:
-----------
* ripple effect (Lollipop only) -- "colorControlHighlight"
Status Bar:
------------
* background (Lollipop only) - "colorPrimaryDark"
Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. To use the support version of these attributes, remove the android namespace. For instance, "android:colorControlNormal" becomes "colorControlNormal". These attributes will be propagated to their corresponding attributes within the android namespace for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix.
All Clickable Views:
-----------
* ripple effect (Lollipop only) -- "colorControlHighlight"
Status Bar:
------------
* background (Lollipop only) - "colorPrimaryDark"
/*
* Copyright 2014 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
import android.support.v8.renderscript.RenderScript;
import android.support.v8.renderscript.ScriptIntrinsicBlur;
import android.support.v8.renderscript.Allocation;
import android.support.v8.renderscript.Element;
private static final float BITMAP_SCALE = 0.4f;
private static final float BLUR_RADIUS = 7.5f;
/*
* Copyright (C) 2014 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software