Skip to content

Instantly share code, notes, and snippets.

View Robyer's full-sized avatar

Robert Pösel Robyer

View GitHub Profile
/*
Fixed version for https://github.com/Quivr/Android-Week-View/edit/develop/library/src/main/java/com/alamkanak/weekview/WeekView.java
This is code for answer: https://stackoverflow.com/a/50247323/2801482
*/
package com.alamkanak.weekview;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
@Robyer
Robyer / spotihosts
Created October 28, 2017 11:02 — forked from Shujito/spotihosts
The hosts file entries to block Spotify audio ad servers.
# taken from here:
# https://www.reddit.com/r/Piracy/comments/4kn6rq/comprehensive_guide_to_blocking_ads_on_spotify/
0.0.0.0 adclick.g.doublecklick.net
0.0.0.0 adeventtracker.spotify.com
0.0.0.0 ads-fa.spotify.com
0.0.0.0 analytics.spotify.com
0.0.0.0 audio2.spotify.com
0.0.0.0 b.scorecardresearch.com
0.0.0.0 bounceexchange.com
0.0.0.0 bs.serving-sys.com
@Robyer
Robyer / maven-publish-helper-usage.gradle
Last active June 15, 2023 04:22
Gradle script for publishing Android library with sources and javadoc to Maven repository using maven-publish plugin.
// You can use maven-publish-helper.gradle script without changes and even share it between multiple
// modules. Just place the maven-publish-helper.gradle file in the root directory of your project,
// then apply it at the bottom of your module's build.gradle file like this:
// ...content of module's build.gradle file...
apply from: '../maven-publish-helper.gradle'
publishing {
publications {
@Robyer
Robyer / live-form-validation.js
Last active July 27, 2021 14:39 — forked from pavelplzak/live-form-validation.js
Live Form Validation for Nette 2.3
Source moved to: https://github.com/Robyer/nette-live-form-validation