This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins
directory.
{% youtube oHg5SJYRHA0 %}
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace Knapcode.Http.Handlers | |
{ |
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>net7.0</TargetFramework> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> | |
<ItemGroup> |
private static string GenerateVersionId(Guid extensionId, string version, string? targetPlatform) | |
{ | |
StringBuilder builder = new(); | |
builder.Append(extensionId.ToString("D")); // use default string format | |
builder.Append('|'); // extension ID cannot contain '|' | |
builder.Append(version.ToLowerInvariant()); // SQL collation is case insensitive | |
if (targetPlatform is not null) | |
{ |
This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins
directory.
{% youtube oHg5SJYRHA0 %}
using System; | |
using System.Linq; | |
using Azure.Core; | |
using Azure.Identity; | |
using Microsoft.WindowsAzure.Storage.Auth; | |
using Microsoft.WindowsAzure.Storage.Blob; | |
internal class Program | |
{ | |
private static void Main(string[] args) |
#!/bin/sh | |
# recursively removes all .pyc files and __pycache__ directories in the current | |
# directory | |
find . | \ | |
grep -E "(__pycache__|\.pyc$)" | \ | |
xargs rm -rf | |
# or, for copy-pasting: |
---------------------------------------- | |
at Knapcode.FactorioTools.OilField.LocationIntSet..ctor(Int32 width, Int32 height) | |
at Knapcode.FactorioTools.OilField.Context.GetLocationSet() | |
at Knapcode.FactorioTools.SetHandling.ToSet(IEnumerable`1 items, Context context) | |
at Knapcode.FactorioTools.OilField.AddElectricPoles.GetElectricPoleGroups(Context context, Dictionary`2 electricPoles) | |
at Knapcode.FactorioTools.OilField.AddElectricPoles.ConnectElectricPoles(Context context, Dictionary`2 electricPoles) | |
at Knapcode.FactorioTools.OilField.AddElectricPoles.Execute(Context context, LocationIntSet avoid, Boolean allowRetries) | |
at Knapcode.FactorioTools.OilField.Planner.Execute(OilFieldOptions options, Blueprint blueprint, LocationIntSet electricPolesAvoid, EletricPolesMode electricPolesMode) | |
at Knapcode.FactorioTools.OilField.Planner.Execute(OilFieldOptions options, Blueprint inputBlueprint) | |
Total: 6775 |
using System.Collections.Concurrent; | |
using System.Diagnostics; | |
using System.Text.Json; | |
using System.Text.Json.Serialization; | |
using Xunit; | |
Console.WriteLine("Starting..."); | |
var indexUrl = "https://api.nuget.org/v3/catalog0/index.json"; |
using System.Diagnostics.CodeAnalysis; | |
using System.Net; | |
using System.Text.Json; | |
using Azure; | |
using Azure.Core; | |
using Azure.Core.Pipeline; | |
using Azure.Data.Tables; | |
var messageHandler = new TestHandler { InnerHandler = new SocketsHttpHandler() }; | |
var serviceClient = new TableServiceClient( |
using System.Net.Http.Headers; | |
using Azure.Core.Pipeline; | |
using Azure.Data.Tables; | |
using Azure.Storage.Blobs; | |
using Azure.Storage.Queues; | |
var connectionString = "UseDevelopmentStorage=true"; | |
// var connectionString = "DefaultEndpointsProtocol=https;AccountName=REDACTED;AccountKey=REDACTED;EndpointSuffix=core.windows.net"; | |
var pipeline = new HttpClientTransport(new TestHandler { InnerHandler = new HttpClientHandler() }); |