Skip to content

Instantly share code, notes, and snippets.

View JSBerrocoso's full-sized avatar

JSBerrocoso JSBerrocoso

View GitHub Profile
@JSBerrocoso
JSBerrocoso / build.gradle
Created October 6, 2017 10:05
Aggregated Jacoco reports in a multi-project Gradle build
allprojects {
apply plugin: 'java'
apply plugin: 'jacoco'
repositories {
jcenter()
}
jacoco {
toolVersion = '0.7.1.201405082137'
@JSBerrocoso
JSBerrocoso / material text sizes.md
Created November 23, 2016 11:03 — forked from passsy/material text sizes.md
Material font sizes
@JSBerrocoso
JSBerrocoso / Parse server install
Created June 21, 2016 12:15 — forked from Maarten-Wijnants/Parse server install
Parse server installation instructions
// Node.js 4.3
cd ~
sudo apt-get install curl
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
nvm install 4.3
sudo apt-get remove node
// mongodb 3.0.9
https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
@JSBerrocoso
JSBerrocoso / CollapsingTitleLayout.java
Last active September 16, 2015 10:40 — forked from chrisbanes/CollapsingTitleLayout.java
CollapsingTitleLayout
/*
* 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
@JSBerrocoso
JSBerrocoso / MainActivity.java
Last active September 3, 2015 09:56 — forked from blackcj/MainActivity.java
Design support library with CoordinatorLayout, SwipeRefreshLayout and RecyclerView.
import android.os.Bundle;
import android.support.design.widget.AppBarLayout;
import android.support.design.widget.TabLayout;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import com.blackcj.designsupportexample.adapters.RecyclerViewAdapter;
@JSBerrocoso
JSBerrocoso / EndlessRecyclerOnScrollListener.java
Last active September 1, 2015 11:52 — forked from ssinss/EndlessRecyclerOnScrollListener.java
Endless RecyclerView OnScrollListener
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
public abstract class EndlessRecyclerOnScrollListener extends RecyclerView.OnScrollListener {
public static String TAG = EndlessRecyclerOnScrollListener.class.getSimpleName();
private int previousTotal = 0; // The total number of items in the dataset after the last load
private boolean loading = true; // True if we are still waiting for the last set of data to load.
private int visibleThreshold = 5; // The minimum amount of items to have below your current scroll position before loading more.
int firstVisibleItem, visibleItemCount, totalItemCount;
@JSBerrocoso
JSBerrocoso / styles.xml
Last active August 29, 2015 14:22 — forked from Aracem/styles.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- TextView Empty Base-->
<style name="TextViewBase" parent="android:TextAppearance.Holo.Widget.TextView"/>
<!-- ActionBar Title -->
<style name="CustomActionBarTitleBase" parent="TextAppearance.AppCompat.Widget.ActionBar.Title"/>
<!-- Text Views Default Base -->
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2015 The Android Open Source Project
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
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Social media and other company colors -->
<eat-comment />
<color name="facebook">#FF3B5998</color>
<color name="twitter">#FF00ACED</color>
<color name="google_plus">#FFDD4B39</color>
<color name="youtube">#FFBB0000</color>
signing.debug.storePassword=myPassword
signing.debug.keyAlias=androiddebugkey
signing.debug.keyPassword=myPassword
signing.release.storePassword=myReleasePassword
signing.release.keyAlias=androidreleasekey
signing.release.keyPassword=myReleasePassword
deploygate.userName=myUserName
deploygate.token=myToken