Skip to content

Instantly share code, notes, and snippets.

@khalidabuhakmeh
khalidabuhakmeh / htmx-blazor.md
Created April 26, 2024 13:34
Why and why not to use Htmx + Blazor together

Blazor and Htmx are unique technologies with strengths and weaknesses. In this short list, we'll discuss five reasons to use the technologies together and five reasons to avoid the combination.

Reasons to use them together

ASP.NET Core and Blazor SSR are Good

ASP.NET Core, now with Blazor Server-side Rendering (SSR), is a robust backend HTML generator. You can do almost everything for UI on the server, and with Htmx, you can accomplish some commonly difficult client-side interactions with relative ease.

Less JavaScript and C# Code

@Beneboe
Beneboe / scombinator.md
Created October 16, 2021 10:55
The connection between the apply function and the s combinator

The Connection between Apply and S combinator

I recently came across a video (https://youtu.be/UogkQ67d0nY?t=703) that looked at a problem and compared the solutions in Scala and Haskell.

The scala solution:

def maximumDifference(nums: Array[Int]): Int =
    nums.scanLeft(Int.MaxValue)(_ min _)
        .tail
@vicziani
vicziani / iski-convert.py
Created March 28, 2017 21:11
iSki tracker exporter
#!/usr/bin/python
# coding=UTF-8
"""
Convert html saved from iSki tracker website to gpx format to import
any application or service such QLandkarteGT, Endomondo, etc.
Need to install the following packages:
$ pip install pytz
@staltz
staltz / introrx.md
Last active November 19, 2025 07:55
The introduction to Reactive Programming you've been missing