Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@maciej-izak
maciej-izak / README.md
Created January 11, 2022 09:51 — forked from mrange/README.md
Parsers combinators with F#6

Parsers combinators with F#6 [<InlineIfLambda>]

Thanks to manofstick peer reviewing the blog post.

Full source code at github

For F# Advent 2021 I wrote a blog post exploring how F#6 [<InlineIfLambda>] can improve data pipeline performance.

I was thinking of other places where [<InlineIfLambda>] can help and decided to try to build a parser combinator library with [<InlineIfLambda>].

// Change this to your profile folder for nuget packages
#I @"C:\Users\Isaac\.nuget\packages\"
#r @"XPlot.GoogleCharts\2.0.0\lib\netstandard2.0\XPlot.GoogleCharts.dll"
#r @"Newtonsoft.Json\12.0.3\lib\netstandard2.0\Newtonsoft.Json.dll"
#r @"Google.DataTable.Net.Wrapper\4.0.0\lib\netstandard2.0\Google.DataTable.Net.Wrapper.dll"
open System
open XPlot.GoogleCharts
/// Executes an asynchronous workflow and provides some simple statistics on the results.
@maciej-izak
maciej-izak / applicative-builders.fs
Created July 22, 2020 21:12 — forked from emcake/applicative-builders.fs
Applicative builders in F# by abusing For and IsLikeZip
type ListBuilder() =
/// map
member x.For(l,f) =
List.map f l
/// id
member x.Yield(v) =
v
@maciej-izak
maciej-izak / FindExecutable.fs
Created June 9, 2020 11:50 — forked from drvink/FindExecutable.fs
F# inline MSBuild tasks via FSharp.Compiler.CodeDom
namespace Example
open System
open System.IO
open System.Runtime.InteropServices
open System.Text
open Microsoft.Build.Framework
open Microsoft.Build.Utilities
module internal Externs =
@maciej-izak
maciej-izak / Delphi-version-info.md
Created March 13, 2019 21:27 — forked from jpluimers/Delphi-version-info.md
Delphi version info table; need help with these" ProjectVersion for C# Builder, Delphi 2005 and 2006. DllSuffix for C# Builder. ProductSummaries

Parsing argument "ProductSummaries":

Product Summaries:

BDS # HKCU/HKLM registry path Name CompilerVersion RTLVersion Define Characterset Frameworks Version DllSuffix ProjectVersion Architectures ReleaseDate BetaName HKCU HKLM
\Software\Borland\Delphi\5.0 Borland Delphi 5 N/A N/A VER130 Ansi VCL 5 ?
@maciej-izak
maciej-izak / update_curl.sh
Last active November 27, 2018 18:11 — forked from fideloper/update_curl.sh
Update curl on Ubuntu 14.04
#! /usr/bin/env bash
# Install any build dependencies needed for curl
sudo apt-get build-dep curl
# Get latest (as of Feb 25, 2016) libcurl
mkdir ~/curl
cd ~/curl
wget http://curl.haxx.se/download/curl-7.62.0.tar.bz2
tar -xvjf curl-7.62.0.tar.bz2
http://jvns.ca/debugging-zine.pdf
http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.html
http://www.brendangregg.com/linuxperf.html
http://www.brendangregg.com/Perf/linux_perf_tools_full.png
https://www.devopszen.com/network-monitoring-tools
***AWESOME***
@maciej-izak
maciej-izak / build_openssl_dylib.sh
Last active January 20, 2018 19:31 — forked from tmiz/build_openssl_dylib.sh
Build latest OpenSSL Universal Binary on OSX
#!/bin/bash
OPENSSL_VERSION="1.0.0s"
curl -O -L http://www.openssl.org/source/openssl-$OPENSSL_VERSION.tar.gz
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz
mv openssl-$OPENSSL_VERSION openssl_i386
tar -xvzf openssl-$OPENSSL_VERSION.tar.gz
mv openssl-$OPENSSL_VERSION openssl_x86_64
cd openssl_i386
@maciej-izak
maciej-izak / timecmd.bat
Created June 30, 2017 20:28
Execution time of program by bat script
@echo off
@setlocal
set start=%time%
:: runs your command
cmd /c %*
set end=%time%
set options="tokens=1-4 delims=:.,"
@maciej-izak
maciej-izak / cmd.reg
Last active June 17, 2020 09:49
"Open command line" item in context menu for Windows 10
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\shell\cmdprompt\command]
@="cmd.exe /s /k pushd \"%V\""