Request throttling based on a time span and a request count. An `IDistributedCache` implementation is used which integrates nicely into ASP.NET Core. E.g. you can throttle requests from a specific IP address to allow fifty requests within a period of thirty seconds at most.
3 people like thisPosted: 1 month ago by toburger
Self-contained module for scripting or small console programs.
7 people like thisPosted: 1 month ago by Pim Brouwers
This F# code decrypts an encrypted string using Rijndael symmetric encryption algorithm. It uses key and initialization vector stored in a registry key.
2 people like thisPosted: 2 months ago by Tuomas Hietanen
PGP F# with PGPCore https://blog.bitscry.com/2018/07/05/pgp-encryption-and-decryption-in-c/
0 people like thisPosted: 2 months ago by Tuomas Hietanen
Making QR-code image having contact information (VCard) with Google Chart API. If you scan this image with mobile phone, you can directly add new person to your contacts.
4 people like thisPosted: 2 months ago by Tuomas Hietanen
Flappy bird clone script using WinForms, click the mouse or hit space to flap, no collision detection.
5 people like thisPosted: 2 months ago by Phillip Trelford
Composition of functions in F# is easily achieved by using the >> operator. You can also chain an arbitary amount of functions (represented as a list or sequence) together by folding the list/seq with >>. [More formally: the set of endomorphisms 'a -> 'a forms a monoid with the binary, associative operator ">>" (or "<<") and the neutral element "id".]
82 people like thisPosted: 11 years ago by Novox
This function is given a partition predicate and a sequence. Until the predicate returns false, a list will be filled with elements. When it is, both the list and the remainder of the sequence will be returned. Note that this example preserves the laziness of the unchecked sequence elements.
68 people like thisPosted: 11 years ago by Rick Minerich
Three functions showing how to implement projection for functional lists. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter. The third version extends this with continuation passing.
65 people like thisPosted: 11 years ago by Tomas Petricek
F# implementation of RO_ref from the "Effective ML" talk.
82 people like thisPosted: 11 years ago by fholm
Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.
59 people like thisPosted: 11 years ago by fholm
version 1 is http://fssnip.net/62. This new version support convert from any existing function to a converter function by using composition and pipeline. The convert function is to make the function signature agree to the IValueConverter interface. You can add new functions in the FunctionLibrary module and reuse the class definition to reduce the coding effort. The first sample is to show how to make the converter pipeline work, the second one is a debugger converter used to debug the data binding problem.
87 people like thisPosted: 10 years ago by Tao Liu
f# (44) fold (22) mailboxprocessor (27) wpf (20) quotations (21) array (22) silverlight (22) lazy (20) kata (17) computation builder (15) dsl (23) web (29) async (98) string (26) sequences (48) math (35) regex (16) fparsec (15) tutorial (17) design patterns (18)
NIck Palladinos (14) Carsten König (10) Faisal Waris (37) Samuel Bosch (12) Antonio Cisternino (8) nagat01 (19) Zhukoff Dima (8) Evgeniy Andreev (13) Kit Eason (51) Taha Hachana (12) Cesar Mendoza (17) Rick Minerich (15) Vesa Karvonen (8) devshorts (11) mavnn (17) Ankur Dhama (20) fholm (26) Tao Liu (17) Tuomas Hietanen (73) David Klein (16)
Database contains 2948 snippets out of which 1690 is public.