Skip to content

Instantly share code, notes, and snippets.

View Fasteroid's full-sized avatar
🪐

Fasteroid

🪐
View GitHub Profile
@baranok
baranok / easing-firefox.css
Created August 8, 2015 16:40
Some transition timing funcs from firefox, some custom by me and two animations
.easing.quartic-in {
transition-timing-function: cubic-bezier(0.9,0.03,0.69,0.22);
}
.easing.quintic-in {
transition-timing-function: cubic-bezier(0.76,0.05,0.86,0.06);
}
.easing.exponential-in {
transition-timing-function: cubic-bezier(0.95,0.05,0.8,0.04);
}
.easing.circular-in {
@egil
egil / MulticastAsyncEnumerable.cs
Last active October 10, 2024 20:00
A multi-cast IAsyncEnumerable<T>, where each reader/subscriber/iterator gets their own copy of the items passed to the enumerable, and can process them asynchronously at their own pace. Since it implements `IAsyncEnumerable<T>`, users can use all the LINQ style operators available in the System.Linq.Async package for easy filtering, projecting, …
/// <summary>
/// Represents a multi-cast <see cref="IAsyncEnumerable{T}"/> where
/// each reader can consume the <typeparamref name="T"/> items
/// at its own pace.
/// </summary>
/// <typeparam name="T">The item type produced by the enumerable.</typeparam>
public sealed class MulticastAsyncEnumerable<T> : IAsyncEnumerable<T>
{
private readonly UnboundedChannelOptions channelOptions;
private readonly object activeChannelsLock = new object();