Skip to content

Instantly share code, notes, and snippets.

Avatar

Carsten Könemann cargath

View GitHub Profile
View goroutines.swift
import Foundation
protocol Channel: IteratorProtocol {
func send(_ value: Element?)
}
/// A blocking channel for sending values.
///
/// `send` and `receive` must run in separate separate execution contexts, otherwise you get a deadlock.
final class BlockingChannel<A>: Channel {
@staltz
staltz / introrx.md
Last active Jan 20, 2022
The introduction to Reactive Programming you've been missing
View introrx.md
@shakalaca
shakalaca / FRelativeLayout.java
Created Aug 10, 2013
RelativeLayout with foreground like FrameLayout does.
View FRelativeLayout.java
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.NinePatchDrawable;
import android.util.AttributeSet;
import android.widget.RelativeLayout;
public class FRelativeLayout extends RelativeLayout {