Skip to content

Instantly share code, notes, and snippets.

@kiwipiet
kiwipiet / Program.cs
Created May 11, 2018 21:06
DataAnnotationsValidator
using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using JetBrains.Annotations;
namespace ConsoleApp1
{
public static class DataAnnotationsValidator
@kiwipiet
kiwipiet / Observable.cs
Created September 22, 2019 18:43 — forked from heytherewill/Observable.cs
Use the common method names in Rx.Net instead of using the LINQ ones.
using System.Collections.Generic;
using System.Reactive.Concurrency;
using System.Reactive.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace System.Reactive.ApiMappings
{
public static class ObservableEx
{
[alias]
all = "!f() { ls -R -d */.git | sed s,/.git,, | xargs -P10 -I{} bash -c \"echo {} && git -C {} $1\"; }; f"
co = checkout
cob = checkout -b
coo = !git fetch && git checkout
br = branch
brd = branch -d
brd = branch -D
merged = branch --merged
st = status
using System;
using System.Collections.Generic;
public static class ListEx
{
public static void AddContent(this List<string> list, string content)
{
list.Add($"{DateTime.Now:O} - {content}");
}
}
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Reactive.Concurrency;
using System.Reactive.Linq;