-
Find the Discord channel in which you would like to send commits and other updates
-
In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Runtime.CompilerServices; | |
| using System.Runtime.ExceptionServices; | |
| using System.Threading; | |
| namespace Fibers | |
| { | |
| public struct AsyncFiberMethodBuilder<T> | |
| { | |
| private Fiber<T>? fiber; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM microsoft/aspnetcore-build:2.0 AS build-env | |
| WORKDIR /app | |
| # Copy csproj and restore as distinct layers | |
| COPY *.csproj ./ | |
| RUN dotnet restore | |
| # Copy everything else and build | |
| COPY . ./ | |
| RUN rm -rf node_modules && npm install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // JS array equivalents to C# LINQ methods - by Dan B. | |
| // First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version): | |
| // Here's a simple array of "person" objects | |
| var people = [ | |
| { name: "John", age: 20 }, | |
| { name: "Mary", age: 35 }, | |
| { name: "Arthur", age: 78 }, | |
| { name: "Mike", age: 27 }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| internal class ShutdownDetector : IRegisteredObject, IDisposable | |
| { | |
| private readonly CancellationTokenSource _cts = new CancellationTokenSource(); | |
| private Timer _checkAppPoolTimer; | |
| private static readonly TimeSpan _appPoolCheckInterval = TimeSpan.FromSeconds(10); | |
| public CancellationToken Token | |
| { | |
| get { return _cts.Token; } | |
| } |

