Skip to content

Instantly share code, notes, and snippets.

View thibseisel's full-sized avatar

Thibault Seisel thibseisel

  • Lille, France
View GitHub Profile
@thibseisel
thibseisel / apple-id.d.ts
Last active February 22, 2022 10:42
Type definition for Sign In with Apple JS SDK.
/**
* Sign in with Apple is the fastest way to onboard new users securely
* and provides two-factor authentication. Using Sign in with Apple JS,
* users can to log into your website with their Apple ID rather than
* creating a new account and password.
*
* Enabling Sign in with Apple for your app begins with registering your app
* in your Apple Developer account. When integrating the API with your app,
* consider button presentation style, notification options, server integration,
* and what kind of user information to request.
@thibseisel
thibseisel / SectionHeader.kt
Created March 13, 2018 15:40
A RecyclerView adapter that wraps an existing adapter to split data into sections.
class SectionHeader(
val position: Int,
val title: String
) : Comparable<SectionHeader> {
internal var sectionedPosition: Int = -1
override fun compareTo(other: SectionHeader): Int {
@thibseisel
thibseisel / IntArrayList.kt
Created February 7, 2018 21:37
An IntArrayList implementation based on the original ArrayList written in Kotlin
package com.github.thibseisel.kblock.utils
import java.util.*
/**
* Default initial capacity.
*/
private const val DEFAULT_CAPACITY = 10
/**