Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeroen Debois joen93

View GitHub Profile
@joen93
joen93 / agnoster-timestamp.zsh-theme
Created Aug 27, 2020
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
View agnoster-timestamp.zsh-theme
# 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).
@joen93
joen93 / RxErrorHandlingCallAdapterFactory.java
Created Apr 5, 2017
RxJava2 and Retrofit 2.2.0 compatible factory, which wraps the {@link RxJava2CallAdapterFactory} and takes care of the error conversion.
View RxErrorHandlingCallAdapterFactory.java
/**
* 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() {
View keybase.md

Keybase proof

I hereby claim:

  • I am joen93 on github.
  • I am joen93 (https://keybase.io/joen93) on keybase.
  • I have a public key whose fingerprint is 74A3 44C8 799F 2FAD B28D C303 10EF 2165 8D38 5493

To claim this, I am signing this object: