Waiting In Line To See Star Wars: 1977-2000
Fascinating facts about how we spend the days of our lives
Why Does the Other Line Always Move Faster?: The Myths and Misery, Secrets and Psychology of Waiting in Line
Taming of the Queue
New Research on the Theory of Waiting Lines (Queues), Including the Psychology of Queuing
Why the Java Stack class is bad
How Long People Waited to Be First in Line to Buy Apple Products
[iPhone X: Thousands of Apple
Arduino misconceptions 4: the Arduino is obsolete now the Raspberry Pi exists
10 Ways to Destroy An Arduino
Arduino vs. Raspberry Pi - Which is best?
Comparison of ESP8266 NodeMCU development boards
General-purpose input/output
DIY-Bitcoin-Ticker repository
10 Arduino IDE alternative to start programming
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inline infix fun <reified T : Any> T?.reduce(other: T?): T? = when { | |
this == null && other == null -> null | |
this != null && other == null -> this | |
this == null && other != null -> other | |
else -> { | |
val nameToProperty = T::class.declaredMemberProperties.associateBy { property -> property.name } | |
val primaryConstructor = T::class.primaryConstructor!! | |
val args = primaryConstructor.parameters.associate { parameter -> | |
val property = nameToProperty[parameter.name]!! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ -z "$1" ]; then | |
echo Delete all Darktable rejected pictures | |
echo | |
echo "Usage:" | |
echo $0 [source] --onestar to delete also all pictures with one star rating | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.graphics.* | |
import android.view.* | |
import android.view.MotionEvent.ACTION_DOWN | |
import androidx.recyclerview.widget.RecyclerView | |
class StickyHeaderItemDecoration( | |
parent: RecyclerView, | |
private val isHeader: (position: Int) -> Boolean | |
) : RecyclerView.ItemDecoration() { |