Skip to content

Instantly share code, notes, and snippets.

View AngelMunoz's full-sized avatar
🏠
Working from home

Angel D. Munoz AngelMunoz

🏠
Working from home
View GitHub Profile
@pblasucci
pblasucci / Environment.fs
Last active June 12, 2023 19:21
One possible way to handle dependency management with F# and AvaloniaUI
(*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
@CaptnCodr
CaptnCodr / Fli.md
Last active July 24, 2024 17:33
A little story about Fli

A little story about Fli

This is my first contribution to the FsAdvent on Sergey Tihon's Blog, thank you Sergey for making this possible every year.

Back in September 2022, a wonderful idea came to my mind. I kept thinking more and more over it and took a note, here is the original gist:

type Shell =
| BASH
| POWERSHELL
| CMD
@dawedawe
dawedawe / tortillaflow.md
Last active July 24, 2023 08:31
F# Advent Calender 2022

Tortilla Flow

Given the following scenario:

You're an F# developer from Germany.
You fall in love with a Mexican girl ❤️.
You need to learn your way around the culture, the language and, of course, the outstanding food.
In particular, you need to learn all the twisty paths a tortilla can take.

How do you solve this?

@mrange
mrange / README.md
Last active May 26, 2022 02:46
# F# Advent 2021 Dec 08 - Fast data pipelines with F#6

F# Advent 2021 Dec 08 - Fast data pipelines with F#6

Thanks to Sergey Tihon for running F# Weekly and F# Advent.

Thanks to manofstick for trying out the code and coming with invaluable feedback. Cistern.ValueLinq is very impressive.

TLDR; F#6 enables data pipelines with up to 15x less overhead than LINQ

There were many interesting improvements in F#6 but one in particular caught my eye, the attribute InlineIfLambda.

@ninjarobot
ninjarobot / BuildIso.fsx
Created November 5, 2021 01:45
Builds autoinstall ISO for Ubuntu F# dev environment
#r "nuget: FsCloudInit"
#r "nuget: DiscUtils.Containers"
open System
open System.IO
open FsCloudInit
open FsCloudInit.Builders
open DiscUtils
open YamlDotNet.Serialization
@akhansari
akhansari / flurl.fsx
Created March 15, 2021 14:54
F# Flurl
#r "nuget: Flurl.Http"
module HttpApi =
open System
open System.Net
open System.Text.Json
open Flurl.Http
type Serializer (opt) =
interface Configuration.ISerializer with
@s0kil
s0kil / Program.fs
Created November 19, 2020 23:49
Avalonia.FuncUI with Elmish and Live.Avalonia
namespace MyGreatApp
open Elmish
open Avalonia
open Live.Avalonia
open Avalonia.Input
open Avalonia.FuncUI
open Avalonia.Controls
open Avalonia.FuncUI.Elmish
open Avalonia.FuncUI.Components.Hosts
@CallumVass
CallumVass / Result.ts
Created September 17, 2020 14:22
TS/F#
export interface ErrorValue {
ErrorValue: string;
}
export interface ResultValue<T> {
ResultValue: T;
}
export interface ErrorResult {
Case: "Error";
@dend
dend / toast.ps1
Last active August 23, 2024 03:19
Toast Notification in PowerShell
function Show-Notification {
[cmdletbinding()]
Param (
[string]
$ToastTitle,
[string]
[parameter(ValueFromPipeline)]
$ToastText
)
@bburky
bburky / Python WinRT Image Capture.ipynb
Created May 3, 2020 00:20
Python WinRT Image Capture (and Focus Stacking)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.