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
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
Two/Three/Four-element generic tuples implemented as a value types for writing more efficient F# code.
77 people like thisPosted: 14 years ago by fholm
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
F# implementation of RO_ref from the "Effective ML" talk.
92 people like thisPosted: 14 years ago by fholm
Implements iterate function from Haskell's Prelude. The function generates an infinite sequence by applying a function to the initial value (first) and then to the result of previous application.
203 people like thisPosted: 14 years ago by Nick Palladinos
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.
67 people like thisPosted: 14 years ago by Phillip Trelford
kata (17) f# (43) staging (18) dsl (23) silverlight (22) computation builder (17) json (15) lazy (20) quotations (21) agent (20) tutorial (17) computation expression (15) array (22) regex (17) design patterns (18) collections (16) html (16) sequence (32) reflection (19) pattern matching (15)
Brian Berns (9) Robert Pickering (10) NIck Palladinos (14) David Klein (16) Eirik Tsarpalis (89) Vesa Karvonen (8) Evgeniy Andreev (13) Ryan Riley (25) Samuel Bosch (12) Tuomas Hietanen (76) Nick Palladinos (66) Tao Liu (17) mavnn (17) Ankur Dhama (20) nagat01 (19) Faisal Waris (37) Tomas Petricek (150) devshorts (11) Carsten König (10) fholm (26)
Database contains 3200 snippets out of which 1714 is public.