Skip to content

Instantly share code, notes, and snippets.

Avatar
🎉
Mostly Android stuff now, also FP

Jorge Castillo JorgeCastilloPrz

🎉
Mostly Android stuff now, also FP
View GitHub Profile
@rallat
rallat / gist:131491722a4b677e8a24353476850812
Created Jun 24, 2019
This script compares the similarity between
View gist:131491722a4b677e8a24353476850812
#!/bin/bash
# This command expects two params.
# First param is the directory of the png.
# Second param is the directory of the webp.
# It will traverse the first directory and compare that file with the same webp in the second directory
# This script requires to download similar script from http://www.fmwconcepts.com/imagemagick/similar/index.php
# and leave it the same directory as this script. This script will be the one leveraging imagemagick
pngDir=$1
webpDir=$2
find $1 -name "*.png" | cut -sd / -f 11- | sed 's/\.png$//1'|while read fname; do
@artem-zinnatullin
artem-zinnatullin / build.gradle
Last active Nov 9, 2019
Android Unit tests logging configuration
View build.gradle
android {
// ...
testOptions.unitTests.all {
testLogging {
events 'passed', 'skipped', 'failed', 'standardOut', 'standardError'
}
}
}
@Aracem
Aracem / ParallaxPageTransformer.java
Last active Apr 9, 2020
Parallax transformer for ViewPagers that let you set different parallax effects for each view in your Fragments.
View ParallaxPageTransformer.java
package com.aracem.utils.animations.pagetransformation;
import org.jetbrains.annotations.NotNull;
import android.support.v4.view.ViewPager;
import android.view.View;
import java.util.ArrayList;
import java.util.List;
You can’t perform that action at this time.