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: 19 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
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
This example shows how to load a Xaml file allowing to use WPF from F#. It also shows how to access WPF objects and register event handlers.
109 people like thisPosted: 14 years ago by Antonio Cisternino
I'm working on parallel computations and I thought it would be useful to break work into chunks, especially when processing each element asynchronously is too expensive. The neat thing is that this function is general even though motivation for it is specific. Another neat thing is that this is true lazy sequence unlike what you'd get if you used Seq.groupBy. There are three versions for your enjoyment.
73 people like thisPosted: 14 years ago by Dmitri Pavlenkov
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.
69 people like thisPosted: 14 years ago by Rick Minerich
Get Stock Quote Data and Historical Stock Prices from Yahoo Finance.
237 people like thisPosted: 14 years ago by Tuomas Hietanen
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
sequences (48) lazy (20) monad (24) dsl (23) json (15) mailboxprocessor (27) async (98) list (56) agent (20) quotations (21) staging (18) f# (43) sequence (32) design patterns (18) math (35) computation builder (17) tutorial (17) reflection (19) http (18) generic programming (17)
Cesar Mendoza (17) nagat01 (19) Eirik Tsarpalis (89) David Klein (16) Evgeniy Andreev (13) mavnn (17) Phillip Trelford (87) Tomas Petricek (150) Nick Palladinos (66) Tuomas Hietanen (76) Rick Minerich (15) Gauthier Segay (11) NIck Palladinos (14) Vesa Karvonen (8) Carsten König (10) Zhukoff Dima (8) Kit Eason (51) Taha Hachana (12) Ankur Dhama (20) devshorts (11)
Database contains 3200 snippets out of which 1714 is public.