Skip to content

Instantly share code, notes, and snippets.

View ShalokShalom's full-sized avatar
🐉
Garuda

ShalokShalom ShalokShalom

🐉
Garuda
View GitHub Profile
@nsmmrs
nsmmrs / shell_command.rb
Last active September 3, 2022 13:42
A convenience wrapper around `Open3.capture3` for easily running commands, capturing the output, and handling failures.
require "open3"
require "json"
class ShellCommand
attr_reader :line, :stdin, :binmode, :stdout, :stderr, :status
def initialize(line, stdin, binmode, stdout, stderr, status)
@line = line
@stdin = stdin
@TheAngryByrd
TheAngryByrd / IWSAMsErrorApproach.fs
Last active May 4, 2026 16:22
Using IWSAMs to deal with Dynamic Error Trees
#r "nuget: FsToolkit.ErrorHandling"
open FsToolkit.ErrorHandling
open System
type SensorReadings = int
module RegularApproach =