Skip to content

Instantly share code, notes, and snippets.

View kentkost's full-sized avatar
Sleep deprived

Kent Kostelac kentkost

Sleep deprived
View GitHub Profile
@kentkost
kentkost / Program.cs
Created May 4, 2022 08:07 — forked from BryanWilhite/Program.cs
.NET Core: using ServiceCollection() and AddConsole() in a console app
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
namespace Songhay.HelloWorlds.Shell
{
class Program
{
static void Main(string[] args)
{
@kentkost
kentkost / postman-bigint.js
Created December 3, 2020 12:43 — forked from mahasak/postman-bigint.js
Postman Test Runner BigInt fix
var BigNumber,
isNumeric = /^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,
mathceil = Math.ceil,
mathfloor = Math.floor,
notBool = ' not a boolean or binary digit',
roundingMode = 'rounding mode',
tooManyDigits = 'number type has more than 15 significant digits',
ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_',
BASE = 1e14,
LOG_BASE = 14,
/*
* Example of a singleton design pattern.
* Copyright (C) 2011 Radek Pazdera
* 2018, uzername. No memory leak; assignment and copy operators are hidden from public access.
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.