Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Heinrich Reimer heinrichreimer

View GitHub Profile
@heinrichreimer
heinrichreimer / LICENSE
Last active Jul 27, 2021
LinearLayoutManager implementation that stretches to fit all list items on screen and disables scrolling. Useful for dashboards etc.
View LICENSE
MIT License
Copyright (c) 2020 Jan Heinrich Reimer
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@heinrichreimer
heinrichreimer / SpanningGridLayoutManager.java
Last active Apr 26, 2021
GridLayoutManager implementation that stretches to fit all grid items on screen and disables scrolling. Useful for dashboards etc.
View SpanningGridLayoutManager.java
package com.example;
import android.content.Context;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.AttributeSet;
import android.view.ViewGroup;
public class SpanningGridLayoutManager extends GridLayoutManager {
View Jan Heinrich Reimer's GitHub Stats
⭐ Total Stars: 2.7k
➕ Past Year Commits: 1.1k
🔀 Total PRs: 178
🚩 Total Issues: 309
📦 Contributed to: 43
@heinrichreimer
heinrichreimer / TODO
Last active Jan 15, 2021
🦠 COVID-19 Stats
View TODO
🇩🇪Germany 3 minutes ago
🤒Active: 317,319
😌Recovered: 1,641,200
💀Deaths: 45,492
💉Tests: 36,353,196
@heinrichreimer
heinrichreimer / EsSparkExtensions.kt
Created Apr 1, 2020
Elasticsearch Spark extension functions for Kotlin.
View EsSparkExtensions.kt
package de.webis.webisstud.thesis.reimer.clueweb.graph
import org.apache.spark.SparkConf
import org.apache.spark.api.java.JavaPairRDD
import org.apache.spark.api.java.JavaRDD
import org.apache.spark.api.java.JavaSparkContext
import org.elasticsearch.hadoop.cfg.ConfigurationOptions.*
import org.elasticsearch.spark.rdd.api.java.JavaEsSpark
fun JavaSparkContext.esRDD(): JavaPairRDD<String, Map<String, Any>> =
View keybase.md

Keybase proof

I hereby claim:

  • I am heinrichreimer on github.
  • I am heinrichreimer (https://keybase.io/heinrichreimer) on keybase.
  • I have a public key ASBY23krwrFBLQ-MswPfhYQ1Gv8KMy9-fNP0dzT4wuj1cgo

To claim this, I am signing this object:

@heinrichreimer
heinrichreimer / AddOnlyCollections.kt
Created Jan 20, 2020
Add-only Kotlin collections.
View AddOnlyCollections.kt
package de.webis.webisstud.thesis.reimer
/**
* A generic collection of elements that supports adding elements.
*
* @param E the type of elements contained in the collection.
* The mutable collection is invariant on its element type.
*/
interface AddOnlyCollection<E> : Collection<E> {
@heinrichreimer
heinrichreimer / CLA.md
Last active Jan 2, 2020
Contributor License Agreement (Jan Heinrich Reimer)
View CLA.md

Fiduciary License Agreement 2.0

(Based on the Individual Contributor exclusive License Agreement, including the Traditional Patent License option)

Thank you for your interest in contributing to Jan Heinrich Reimer's GitHub open source projects ("We" or "Us").

The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at https://cla-assistant.io/heinrichreimer/.

Preamble

Software is deeply embedded in all aspects of our lives and it is important that it empower, rather than restrict us. Free Software gives everybody the rights to use, understand, adapt and share software. These rights help support other fundamental freedoms like freedom of speech, press and privacy.

@heinrichreimer
heinrichreimer / CLA.md
Last active Jan 2, 2020
Contributor License Agreement (Reimer Software)
View CLA.md

Fiduciary License Agreement 2.0

(Based on the Individual Contributor exclusive License Agreement, including the Traditional Patent License option)

Thank you for your interest in contributing to Reimer Software's GitHub open source projects ("We" or "Us").

The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at https://cla-assistant.io/reimersoftware/.

Preamble

Software is deeply embedded in all aspects of our lives and it is important that it empower, rather than restrict us. Free Software gives everybody the rights to use, understand, adapt and share software. These rights help support other fundamental freedoms like freedom of speech, press and privacy.