Skip to content

Instantly share code, notes, and snippets.

tmakin / RhinoTextBugReport.cs
Last active Jul 29, 2020
Rhino Text Generation Bug
View RhinoTextBugReport.cs
/// <summary>
/// Repro for intermittent failure of TextEntity.CreateExtrusions
/// The issue also affects TextEntity.CreateSurfaces
/// Expected Output:
/// - "ABCDEFGHIJKLMNOPQRSTUVWXYZ-0123456789" rendered on every line
/// Actual Output:
/// - About 50% of the lines are truncated abd only print part of the string because the generated extrusion is null.
/// e.g. "ABCDEFGHIJ"
tmakin / ExportPdf.cs
Last active Oct 20, 2020
Create PDF Rendering service in Azure Functions
View ExportPdf.cs
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading.Tasks;
using DinkToPdf;
using Microsoft.AspNetCore.Http;
using Microsoft.Azure.WebJobs;
using Microsoft.Azure.WebJobs.Extensions.Http;
using Microsoft.Extensions.Logging;
using IPdfConverter = DinkToPdf.Contracts.IConverter;
View Benchmark.cs
using System;
using System.Diagnostics;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
#pragma warning disable 0169
public class SmallClass { int x; }
You can’t perform that action at this time.