Skip to content

Instantly share code, notes, and snippets.

@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 April 21, 2025 04:15
The introduction to Reactive Programming you've been missing