Skip to content

Instantly share code, notes, and snippets.

View MiguelCatalan's full-sized avatar
🏍️

Miguel Catalan Bañuls MiguelCatalan

🏍️
View GitHub Profile
@chrisbanes
chrisbanes / FloatLabelLayout.java
Last active March 15, 2024 06:39
FloatLabelLayout
/*
* 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
@JMPergar
JMPergar / LogManager.java
Last active August 29, 2015 14:02
LogManager.java
import android.util.Log;
public final class LogManager {
public static final int VERBOSE = 0;
public static final int DEBUG = 1;
public static final int INFO = 2;
public static final int WARN = 3;
public static final int ERROR = 4;
public static final int WTF = 5;
@scabilbao
scabilbao / FloatingView.java
Created June 9, 2014 08:48
Android Floating View
/**
Copyright Grupo SCA 2014 (@SCA_Consultores)
Licensed under the GPL General Public License, Version 3.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.gnu.org/licenses/gpl.html
Unless required by applicable law or agreed to in writing, software
@staltz
staltz / introrx.md
Last active April 24, 2024 19:47
The introduction to Reactive Programming you've been missing
@jkeyes
jkeyes / _vimeo.html
Last active November 16, 2016 20:07
ResponsiveEmbedConverter
<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; height: auto; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style>
<div class='embed-container'>
<iframe src='{{ scheme }}://player.vimeo.com/video/{{ video_id }}' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
</div>
@meoyawn
meoyawn / EmptyRecyclerView.java
Created November 1, 2014 11:20
RecyclerView doesn't have an emptyView support, we gotta fix that
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class EmptyRecyclerView extends RecyclerView {
@Nullable View emptyView;
@gallir
gallir / gist:4b88005310587b056ca4
Created February 2, 2015 19:52
Seach a word recursively in all files under the current working direcrtory
#! /usr/bin/env bash
if [ $# -eq 0 ]
then
echo "No word supplied"
fi
word=$1
find . -type f -and -not -path '*/.git/*' -and -not -path '*/.svn/*' -exec grep -i -H "$word" {} \;
@AnirudhaAgashe
AnirudhaAgashe / EmptyRecyclerView.java
Last active June 25, 2017 03:00 — forked from meoyawn/EmptyRecyclerView.java
RecyclerView with provosion to add empty view like list view. Displayed when the data set is empty
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.View;
public class EmptyRecyclerView extends RecyclerView {
@lauw
lauw / SnappingRecyclerView.java
Created May 4, 2015 23:00
Snapping RecyclerView (Horizontal)
/*
* Copyright 2015 Laurens Muller.
*
* 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
@easternHong
easternHong / build.gradle
Last active August 29, 2020 07:59
android studio gradle checkstyle findbugs pmd lint
//go to https://github.com/easternHong/vb-android-app-quality
//get the config file and put them into app/config/..
apply plugin: 'pmd'
apply plugin: 'findbugs'
apply plugin: 'checkstyle'
task findbugs(type: FindBugs) {
description 'Run findbugs'
group 'verification'
classes = fileTree('build/intermediates/classes/debug/')