Skip to content

Instantly share code, notes, and snippets.

https://www.airbnb.co.uk/rooms/34235783?adults=2&check_in=2020-03-07&check_out=2020-03-08&source_impression_id=p3_1582721821_IFe6HjcxbxGd6lat&guests=1&cancellation_policy_id=51
https://www.airbnb.co.uk/rooms/34241031?adults=2&check_in=2020-03-07&check_out=2020-03-08&source_impression_id=p3_1582721138_txJ5FxgU%2BUqqui%2BK&guests=1&cancellation_policy_id=51
https://www.airbnb.co.uk/rooms/16116604?location=Liverpool&adults=2&check_in=2020-03-07&check_out=2020-03-08&source_impression_id=p3_1582720825_Uskv0UZXyzjaSKTU
https://www.airbnb.co.uk/rooms/40420011?location=Liverpool&adults=2&check_in=2020-03-07&check_out=2020-03-08&source_impression_id=p3_1582720833_aJndvEFnbkJ1IX5F&guests=1&cancellation_policy_id=51
using System;
using System.Collections.Generic;
using System.Linq;
namespace Tester
{
static void Main()
{
var nameOccurrences =
new[]
using System;
using System.Collections.Generic;
using System.Linq;
namespace Tester
{
public static class MyEnumerableExtensions
{
public static IEnumerable<IGrouping<TKey, TSource>> MyGroupBy<TSource, TKey>(
this IEnumerable<TSource> source,
// In relation to https://stackoverflow.com/a/50925790/3813189
public class WrappedDbConnection : DbConnection
{
private readonly DbConnection _conn;
public WrappedDbConnection(DbConnection connection) => _conn = connection ?? throw new ArgumentNullException(nameof(connection));
public override string ConnectionString
{
get { return _conn.ConnectionString; }
set { _conn.ConnectionString = value; }
public class HomeController : Controller
{
public ActionResult Index()
{
return View(
GetTitleAsync().Result
);
}
private async static Task<string> GetTitleAsync()
@ProductiveRage
ProductiveRage / gist:2351c4cc924614d7f4a3
Created December 18, 2015 12:14
The start of a binding for the Immutable-Js list for Bridge.NET
using Bridge;
namespace BridgeImmutableJsBinding.ImmutableJsBindings
{
[Name("Immutable.List")]
[Ignore]
public static class List
{
[Ignore]
public extern static ImmutableList<T> Of<T>(params T[] values);