Timestamp: Time format in ISO 8601 with timezone. YYYYMMDDhhmmssffff+zzzz For example 2011-05-17 19:01:10.000 -0200 would be: 20110517190110000-0200
0 people like thisPosted: 29 days ago by Tuomas Hietanen
Word guessing game using ASCII art.
3 people like thisPosted: 1 month ago by Phillip Trelford
Generate random hex-string and calculate base58encode. I made these for some initial BTC-testing, but didn't test too much... seems to work, but would need some unit-tests... :-) Feel free to update or add new versions.
2 people like thisPosted: 2 months ago by Tuomas Hietanen
Click on the tsunami.io button below to launch the online tsunami.io IDE with this snippet. Then select all the code (CTRL+A) and hit the Run button to start the game window, then just dock the window to the right of the code.. Click in the game window to launch missiles and save your cities.
0 people like thisPosted: 2 months ago by Phillip Trelford
An implementation of minimal adaptive cells
0 people like thisPosted: 3 months ago by Onur Gumus
Exemplary convenience wrappers for some of the System.
Posted: 5 months ago by Cody
Here is an improved version twice shorter, than original
72 people like thisPosted: 14 years ago by Nick Canzoneri
This is to demonstrate that: (1) there are many ways to solve the same problems; (2) operators can be grouped together into data structures and act as data; (3) you can have fun in F# in many ways.
57 people like thisPosted: 14 years ago by Dmitry Soshnikov
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.
74 people like thisPosted: 14 years ago by Tomas Petricek
Three ways to split a list in half (but not necessarily in the middle). A forth version added that's very short and should be fast, as we only use List.fold. New champ found.
83 people like thisPosted: 14 years ago by Dmitri Pavlenkov
The following sample wants to make sure the person’s age is between 18 and 65, weight is no more than 200 and tall enough (>120).
83 people like thisPosted: 13 years ago by Tao Liu
Classical "Hello world" example that prints a message to the console output. This version uses F# printfn function to do the printing.
185 people like thisPosted: 14 years ago by Tomas Petricek
async (98) design patterns (18) pattern matching (15) lists (15) collections (16) lazy (20) math (35) array (22) generic programming (17) quotations (21) html (16) regex (17) monad (24) json (15) parsing (28) recursion (33) learning f# (16) game (32) tryfsharp (48) agent (20)
Faisal Waris (37) devshorts (11) Ankur Dhama (20) Evgeniy Andreev (13) David Klein (16) nagat01 (19) mavnn (17) Ryan Riley (25) Zhukoff Dima (8) Phillip Trelford (87) Tomas Petricek (150) Fabio Galuppo (14) Tuomas Hietanen (76) Rick Minerich (15) Eirik Tsarpalis (89) Gauthier Segay (11) Tao Liu (17) Antonio Cisternino (8) Taha Hachana (12) Nick Palladinos (66)
Database contains 3200 snippets out of which 1714 is public.