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: 26 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
F# implementation of RO_ref from the "Effective ML" talk.
92 people like thisPosted: 14 years ago by fholm
Invoke the methods from incompatible types
110 people like thisPosted: 13 years ago by Tao Liu
Two functions showing how to filter functional lists using the specified predicate. First version uses naive recursion and the second one is tail-recursive using the accumulator parameter.
76 people like thisPosted: 14 years ago by Tomas Petricek
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: 14 years ago by Alex Muscar
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.
90 people like thisPosted: 13 years ago by Tao Liu
Continuations provide a means whereby heap space can be traded for stack depth (heap space being generally more plentiful than stack depth). They are especially useful where tail recursion is not possible. Here are a couple of simple continuation examples that can be extended to cover more complex scenarios.
100 people like thisPosted: 14 years ago by Neil Carrier
dsl (23) async (98) sequences (48) list (56) recursion (33) array (22) generic programming (17) silverlight (22) json (15) lazy (20) computation expression (15) f# (43) quotations (21) web (29) kata (17) reflection (19) sequence (32) lists (15) pattern matching (15) design patterns (18)
Ankur Dhama (20) Nick Palladinos (66) Kit Eason (51) Robert Pickering (10) Cesar Mendoza (17) Vesa Karvonen (8) Faisal Waris (37) Fabio Galuppo (14) Taha Hachana (12) Brian Berns (9) Phillip Trelford (87) Zhukoff Dima (8) Rick Minerich (15) mavnn (17) NIck Palladinos (14) Gauthier Segay (11) Tao Liu (17) Ryan Riley (25) Samuel Bosch (12) Evgeniy Andreev (13)
Database contains 3200 snippets out of which 1714 is public.