Small script to generate a X509 certificate for testing purposes. In my case, for generating signed PDF documents. This will write the certificate and it's key out into a Pkcs 12 store. It relies on the BouncyCastle library (version 1.7 worked fine).
3 people like thisPosted: 3 months ago by mavnn
令人愉快的 旅游信息网站, 继续发展 充满灵感。感谢!
4 people like thisPosted: 9 months ago by 方尖碑
Pong video game runnable inside fable.io. Controls are "A" for left, and "D" for right.
10 people like thisPosted: 11 months ago by Phillip Trelford
Download and install Ollama: https://ollama.com/ Ollama is a free common host for multiple different LLM-models like Google Gemma, OpenApi's GPT-OSS, Deepseek, etc.
2 people like thisPosted: 1 year ago by Tuomas Hietanen
ModelContextProtocol with FSharp (MCP with F#) https://modelcontextprotocol.io/docs/getting-started/intro Client and Server examples using https://github.com/modelcontextprotocol/csharp-sdk
3 people like thisPosted: 1 year ago by Tuomas Hietanen
Takes a list of (quantity/amount and price/rate) as decimals, and gives a weighted average
1 people like thisPosted: 1 year ago by Tuomas Hietanen
Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.
77 people like thisPosted: 15 years ago by fholm
The const function is simple, but you can use it to make your code more legible. In this example we convert a unary function to a function of arity 2 (that ignores the second argument). Also by using the flip function from Haskell (which is equally easy to define) you can ignore the first argument.
119 people like thisPosted: 15 years ago by Alex Muscar
The ObservableObject type implements the INotifyPropertyChanged interface used in WPF and Silverlight to notify on changes to properties that are bound to a control. Specify property names type safely using F# Quotations, i.e. <@ this.PropertyName @> when invoking the NotifyPropertyChanged method. If you are following the MVVM pattern then your View Model class can inherit from the ObservableObject type.
69 people like thisPosted: 15 years ago by Phillip Trelford
Some simple functions for writing more idiomatic F# tests with NUnit.
91 people like thisPosted: 15 years ago by Ryan Riley
Show's how to define units of measure to add stronger typing to your numerical functions.
75 people like thisPosted: 15 years ago by Robert Pickering
While prototyping programs I find myself using association lists. This little snippet defines a lookup functions for association lists defined as lists of tuples.
68 people like thisPosted: 15 years ago by Alex Muscar
f# (43) computation builder (17) recursion (33) computation expression (15) sequences (48) game (32) sequence (32) monad (24) quotations (21) staging (18) web (29) seq (54) http (18) async (98) wpf (20) fold (22) math (35) generic programming (17) lists (15) string (29)
Joel Huang (13) fholm (26) Ryan Riley (25) Ankur Dhama (20) Kit Eason (51) devshorts (11) Brian Berns (9) Samuel Bosch (12) David Klein (16) Eirik Tsarpalis (89) Evgeniy Andreev (13) nagat01 (19) Tomas Petricek (150) NIck Palladinos (14) Tao Liu (17) Zhukoff Dima (8) Vesa Karvonen (8) mavnn (17) Nick Palladinos (66) Robert Pickering (10)
Database contains 3212 snippets out of which 1719 is public.