Skip to content

Instantly share code, notes, and snippets.

View bdaniel7's full-sized avatar

Daniel Blendea bdaniel7

  • Bucharest, Romania
View GitHub Profile
@ingted
ingted / Ultra lite F# CSV line parser.fsx
Last active April 8, 2025 06:07
Parallel ultra lite F# CSV line parser
#if INTERACTIVE
#r "nuget: Unquote, 7.0.0"
#endif
open Microsoft.FSharp.Quotations.Patterns
open Swensen.Unquote
open Swensen
open Microsoft.FSharp.Quotations
open System.Collections.Generic
@jindraivanek
jindraivanek / patternParser.fsx
Created April 2, 2024 14:39
Rec Active Pattern Parser
let (|TakeUntil|_|) x xs =
match List.takeWhile ((<>) x) xs with
| y when y = xs -> None
| y -> Some(y, List.skipWhile ((<>) x) xs)
let (|Split|_|) split xs =
match xs with
| TakeUntil split (x1, (_ :: x2)) -> Some(x1, x2)
| _ -> None

Dictionary for database example

  • Server: PostgreSQL 216.158.72.53:5432, version 13.7 (Debian 13.7-0+deb11u1)
  • Local time stamp: 2022-07-20T12:41:43.0051958+02:00
  • Schema: public

Table of Contents

@pilonsi
pilonsi / windows-host-omnios-bhyve-zone.md
Last active March 23, 2025 14:20
Windows Host in OmniOS bhyve Zone
@JaggerJo
JaggerJo / post.md
Last active July 2, 2023 18:44
A 1000x improvement in performance

A 1000x improvement in performance

We recently had to provide (near) live data to a set of views in our application. After considering the most common ways to build this we decided to go with long polling. Our entire app is event based, so we know if a certain event happed the data might have changed. Lets assume the following types represent what can happen in our application:

type CounterEvent =
  | CounterWasIncremented byValue: int
internal class DockerMsSqlServerDatabase : IAsyncDisposable
{
private const string Password = "!Passw0rd";
private const string Image = "mcr.microsoft.com/mssql/server";
private const string Tag = "2019-GA-ubuntu-16.04";
private static IContainer _sqlServerContainer;
private SemaphoreSlim semaphore = new(1, 1);
private readonly string DatabaseName;
create or replace function companies.search_companies(
_search varchar,
_skip integer,
_take integer
)
returns json
language plpgsql
as $$
declare
_count bigint;
@joelonsql
joelonsql / PostgreSQL-EXTENSIONs.md
Last active June 9, 2025 04:53
1000+ PostgreSQL EXTENSIONs

🗺🐘 1000+ PostgreSQL EXTENSIONs

This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.

⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.