Skip to content

Instantly share code, notes, and snippets.

@joen93
joen93 / keybase.md
Last active February 15, 2022 16:26

Keybase proof

I hereby claim:

  • I am joen93 on github.
  • I am joen93 (https://keybase.io/joen93) on keybase.
  • I have a public key ASBP3ifFmBQ4n9EktQJT8-6O-aGp3z7TVM1L_XpSUejJHQo

To claim this, I am signing this object:

@joen93
joen93 / RxErrorHandlingCallAdapterFactory.java
Created April 5, 2017 12:56
RxJava2 and Retrofit 2.2.0 compatible factory, which wraps the {@link RxJava2CallAdapterFactory} and takes care of the error conversion.
/**
* RxJava2 and Retrofit 2.2.0 compatible factory,
* which wraps the {@link RxJava2CallAdapterFactory} and takes care of the error conversion.
*
* Based on: https://github.com/square/retrofit/issues/1102#issuecomment-241250796
*/
public class RxErrorHandlingCallAdapterFactory extends CallAdapter.Factory {
private final RxJava2CallAdapterFactory mOriginalCallAdapterFactory;
private RxErrorHandlingCallAdapterFactory() {
@joen93
joen93 / agnoster-timestamp.zsh-theme
Created August 27, 2020 22:17
This theme is a modified version of the agnoster theme. It prefixes the the prompt with a timestampt segment, in the same color as the second segment
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
# Modified by Joen93 - Prefix timestamp segment in same color as second segment of the prompt
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).