Skip to content

Instantly share code, notes, and snippets.

View wldevries's full-sized avatar

Wouter de Vries wldevries

View GitHub Profile
From To Province
1000 1299 NL-NH
1300 1379 NL-FL
1380 1384 NL-NH
1390 1393 NL-UT
1394 1394 NL-NH
1396 1396 NL-UT
1398 1425 NL-NH
1426 1427 NL-UT
1428 1429 NL-ZH
PostalCode Province RegionCode
10011 IT-TO IT-21
10060 IT-TO IT-21
10070 IT-TO IT-21
10010 IT-TO IT-21
10040 IT-TO IT-21
10080 IT-TO IT-21
10091 IT-TO IT-21
10020 IT-TO IT-21
10010 IT-TO IT-21
PostalCode State
01067 DE-SN
01069 DE-SN
01097 DE-SN
01099 DE-SN
01108 DE-SN
01109 DE-SN
01127 DE-SN
01129 DE-SN
01139 DE-SN
Postcode ISO 3166-2
1000 BE-BRU
1020 BE-BRU
1030 BE-BRU
1040 BE-BRU
1050 BE-BRU
1060 BE-BRU
1080 BE-BRU
1081 BE-BRU
1082 BE-BRU
@wldevries
wldevries / ImmutableListEx.cs
Created January 29, 2022 10:41
DynamicData to ImmutableList
// Copied and modified from the Dynamic Data project under MIT license
// https://github.com/reactivemarbles/DynamicData/blob/main/LICENSE
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.ComponentModel;
using System.Diagnostics.CodeAnalysis;
using System.Reactive.Linq;
using DynamicData.Cache.Internal;
@wldevries
wldevries / Program.cs
Last active April 30, 2023 20:56
Disable touch and gesture feedback in Windows
using System;
using System.Runtime.InteropServices;
namespace SetTouchSettings
{
class Program
{
private static class NativeMethods
{
[DllImport("user32.dll", EntryPoint = "SystemParametersInfo", SetLastError = true)]
@wldevries
wldevries / non_copyable.rs
Last active July 23, 2017 16:16
Lifetime issues with non-copyable owned values when trying to use them after passing them to a function
enum NonCopyable {
Node ( Box<NonCopyable> ),
Leaf
}
fn do_stuff() -> NonCopyable {
let x = NonCopyable::Leaf;
match try_wrap(x) {
(val, true) => val,
(val, false) => val,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reactive;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Reactive.Testing;
using System;
using System.Threading.Tasks;
namespace Microsoft.Practices.Prism.Interactivity.InteractionRequest
{
public static class InteractionRequestMixins
{
public static async Task<T> RaiseAsync<T>(this InteractionRequest<T> request, T context) where T : INotification
{
return await AwaitCallbackResult<T>(callback => request.Raise(context, callback));
using System;
using System.Threading.Tasks;
namespace Microsoft.Practices.Prism.Regions
{
public static class NavigationServiceMixins
{
public static async Task<NavigationResult> GoBack(this IRegionNavigationService service)
{
var tcs = new TaskCompletionSource<NavigationResult>();