Skip to content

Instantly share code, notes, and snippets.

View webJose's full-sized avatar
🎯
Focusing

José Pablo Ramírez Vargas webJose

🎯
Focusing
View GitHub Profile
@webJose
webJose / pills.html
Last active September 18, 2022 03:43
Accentable Pill Check/Radio buttons
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
div.pill {
display: inline-block;
padding: 0.05em 0.15em;
color: white;
font-size: 12pt;
@webJose
webJose / ProcessPendingAsyncTasks.md
Created June 25, 2018 06:36
Process pending async tasks in the order they are completed.
public static class TaskExtensions
{
    public static async Task<Task> ProcessCompleted(this IList<Task> tasks)
    {
        if (tasks == null)
        {
            throw new ArgumentNullException(nameof(tasks));
        }
 Task completedTask = await Task.WhenAny(tasks);