Skip to content

Instantly share code, notes, and snippets.

@jb55
jb55 / default.nix
Last active July 30, 2023 21:45
deploy dotnet core apps on nixos
{ stdenv, lib, bash, callPackage, writeText, makeWrapper, writeScript, dotnet-sdk,
patchelf, libunwind, coreclr, libuuid, curl, zlib, icu }:
let
config = "Staging";
project = "RazorCx.Api";
target = "linux-x64";
rpath = stdenv.lib.makeLibraryPath [ libunwind coreclr libuuid stdenv.cc.cc curl zlib icu ];
@ryantm
ryantm / newtype FizzBuzz
Last active August 29, 2015 14:05
Haskell Fizzbuzz
newtype FizzBuzz = FizzBuzz Int
instance Show FizzBuzz where
show (FizzBuzz i)
| iDivisibleBy 15 = "Fizz Buzz"
| iDivisibleBy 5 = "Buzz"
| iDivisibleBy 3 = "Fizz"
| otherwise = show i
where
iDivisibleBy n = i `rem` n == 0