Skip to content

Instantly share code, notes, and snippets.

Vincent Masselis VincentMasselis

Block or report user

Report or block VincentMasselis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@VincentMasselis
VincentMasselis / RxJavaInterop+kotlin.kt
Created Jan 17, 2017
RxJava2Interop + kotlin extensions
View RxJavaInterop+kotlin.kt
import hu.akarnokd.rxjava.interop.RxJavaInterop
// -----------------------------------------------------------------------------------------
// Conversions from 1.x to 2.x
// -----------------------------------------------------------------------------------------
fun <T> rx.Observable<T>.toV2Flowable(): io.reactivex.Flowable<T> = RxJavaInterop.toV2Flowable(this)
fun <T> rx.Observable<T>.toV2Observable(): io.reactivex.Observable<T> = RxJavaInterop.toV2Observable(this)
@VincentMasselis
VincentMasselis / DateUtil.m
Last active Jan 17, 2017
Simple Objective-C RFC3339 parser
View DateUtil.m
/*
Inspired by http://cokere.com/RFC3339Date.txt
All rights deserve to Chad Okere
*/
@implementation DateUtil
+ (NSDate *)parseRFC3339Date:(NSString *)date {
NSDate *parsedDate = nil;
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
@VincentMasselis
VincentMasselis / DateUtil.java
Last active Jul 23, 2019
Simple Java 7 RFC3339 parser (Android compatible)
View DateUtil.java
/*
Inspired by http://cokere.com/RFC3339Date.txt
All rights deserve to Chad Okere
*/
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.TimeZone;
You can’t perform that action at this time.