Skip to content

Instantly share code, notes, and snippets.

@iblazhko
iblazhko / Program.cs
Last active November 3, 2023 05:35
ZPL -> EPL -> PDF conversion in .NET using Neodynamic SDK
using System.Text;
using Neodynamic.SDK.EPLPrinter;
using Neodynamic.SDK.ZPLPrinter;
using EplRenderOutputFormat = Neodynamic.SDK.EPLPrinter.RenderOutputFormat;
using EplRenderOutputRotation = Neodynamic.SDK.EPLPrinter.RenderOutputRotation;
using ZplRenderOutputFormat = Neodynamic.SDK.ZPLPrinter.RenderOutputFormat;
using ZplRenderOutputRotation = Neodynamic.SDK.ZPLPrinter.RenderOutputRotation;
var zplLicenseOwner = "LICENSE OWNER";
var zplLicenseKey = "LICENSE KEY";

Startup Times

Comparing startup times for various shells and programming languages CLI.

Tests run on NanoPi M4V2.

Python 3

$ time python3 --version
@iblazhko
iblazhko / DomainVaidation.fs
Last active February 9, 2020 09:13
F# ROP Domain Validation
(*
Railway-Oriented Programming
https://github.com/swlaschin/Railway-Oriented-Programming-Example/blob/master/src/FsRopExample/Rop.fs
*)
module ROP =
/// A Result is a success or failure
/// The Success case has a success value, plus a list of messages
/// The Failure case has just a list of messages
type RopResult<'TSuccess, 'TMessage> =
| Success of 'TSuccess * 'TMessage list

Keybase proof

I hereby claim:

  • I am iblazhko on github.
  • I am iblazhko (https://keybase.io/iblazhko) on keybase.
  • I have a public key ASBStGyhDqgzjla5hKkoAqSwh2pCbbcmHf83SI_VloMSLQo

To claim this, I am signing this object: