Skip to content

Instantly share code, notes, and snippets.

@Schtee
Schtee / Dockerfile
Created Jan 11, 2022
gmnisrv Dockerfile
View Dockerfile
FROM alpine:latest
RUN apk add git openssl-dev build-base mailcap
RUN git clone https://git.sr.ht/~sircmpwn/scdoc
WORKDIR scdoc
RUN make -j4
RUN make install
WORKDIR /
@Schtee
Schtee / MersenneTwister.cs
Created Aug 10, 2015
MersenneTwister.cs retrieved from web archive. Originally http://takel.jp/mt/MersenneTwister.cs . Artistic License
View MersenneTwister.cs
/* C# Version Copyright (C) 2001-2004 Akihilo Kramot (Takel). */
/* C# porting from a C-program for MT19937, originaly coded by */
/* Takuji Nishimura, considering the suggestions by */
/* Topher Cooper and Marc Rieffel in July-Aug. 1997. */
/* This library is free software under the Artistic license: */
/* */
/* You can find the original C-program at */
/* http://www.math.keio.ac.jp/~matumoto/mt.html */
/* */