Skip to content

Instantly share code, notes, and snippets.

View knocte's full-sized avatar
💭
F#ing

Andres G. Aragoneses knocte

💭
F#ing
View GitHub Profile
diff --git a/@commitlint/cli/src/cli.ts b/@commitlint/cli/src/cli.ts
index b58c047b..39e9acac 100644
--- a/@commitlint/cli/src/cli.ts
+++ b/@commitlint/cli/src/cli.ts
@@ -24,6 +24,8 @@ import {CliError} from './cli-error.js';
const require = createRequire(import.meta.url);
+const process = require('node:process');
+
gist created to add just this image related to pair programming:
Code:
```
match foo with
| Bar (baz) -> ()
| _ ->
failwith "xxx"
```
Current results:
```
//incorrect
seq {
blah blah
}
//correct
seq {
blah blah
}
diff --git a/STUN/STUNClient.cs b/STUN/STUNClient.cs
index 280a2cc..1d1c51d 100644
--- a/STUN/STUNClient.cs
+++ b/STUN/STUNClient.cs
@@ -30,7 +30,7 @@ namespace STUN
/// </param>
public static Task<STUNQueryResult> QueryAsync(IPEndPoint server, STUNQueryType queryType, bool closeSocket)
{
- return Task.Run(() => Query(server, queryType, closeSocket));
+ return Task.Run(() => QueryInternal(server, queryType, closeSocket));
$ mono p2pcopy.exe receiver
Contacting STUN servers to obtain your IP
Your firewall is FullCone
Tell this to your peer: 81.34.138.15:54852
Enter the ip:port of your peer: 93.110.84.141:49313
Contacting STUN servers to obtain your IP
Your firewall is FullCone
[6:23:19 PM] - Waiting 1 sec to sync with other peer
diff --git a/src/TgSharp.TL/TLContext.cs b/src/TgSharp.TL/TLContext.cs
index 2d04707..a13a66f 100644
--- a/src/TgSharp.TL/TLContext.cs
+++ b/src/TgSharp.TL/TLContext.cs
@@ -19,7 +19,9 @@ namespace TgSharp.TL
where t.IsSubclassOf(typeof(TLObject))
where t.GetCustomAttribute(typeof(TLObjectAttribute)) != null
select t).ToDictionary(x => ((TLObjectAttribute)x.GetCustomAttribute(typeof(TLObjectAttribute))).Constructor, x => x);
- Types.Add(481674261, typeof(TLVector<>));
+ if (!Types.ContainsKey (481674261)) {
diff --git a/src/TgSharp.TL/TLContext.cs b/src/TgSharp.TL/TLContext.cs
index 2d04707..1abe6c7 100644
--- a/src/TgSharp.TL/TLContext.cs
+++ b/src/TgSharp.TL/TLContext.cs
@@ -19,7 +19,7 @@ namespace TgSharp.TL
where t.IsSubclassOf(typeof(TLObject))
where t.GetCustomAttribute(typeof(TLObjectAttribute)) != null
select t).ToDictionary(x => ((TLObjectAttribute)x.GetCustomAttribute(typeof(TLObjectAttribute))).Constructor, x => x);
- Types.Add(481674261, typeof(TLVector<>));
+ Types[481674261] = typeof(TLVector<>);
From 3caa604be0918f8b264984451348735f30faab2b Mon Sep 17 00:00:00 2001
From: "Andres G. Aragoneses" <knocte@gmail.com>
Date: Mon, 8 Jun 2020 00:50:05 +0800
Subject: [PATCH 1/3] Backend,Frontend.Console: improve B's API so that F.C.'s
doesn't need refs
Improve the API design of GWallet.Backend project so that
GWallet.Frontend.Console doesn't need to reference directly
some sub-dependencies of GWallet.Backend, such as NBitcoin
and DotNetLightning.
fantomas was formatting records this way:
```
type Foo =
{ Bar: Baz
Bar2: Baz2 }
```
and with this new setting they are like: