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: 16 days ago by Tuomas Hietanen
Word guessing game using ASCII art.
3 people like thisPosted: 29 days 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
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
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
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
Demonstrates how to implement the dynamic operator (?) using .NET Reflection. The implementation supports calling constructors, propreties and methods using simple overload resolution (based on parameter count). It handles instance as well as static members.
72 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
learning f# (16) quotations (21) list (56) web (29) generic programming (17) async (98) tryfsharp (48) computation expression (15) tutorial (17) collections (16) json (15) sequence (32) array (22) lists (15) fold (22) lazy (20) html (16) http (18) algorithms (26) pattern matching (15)
mavnn (17) Rick Minerich (15) Vesa Karvonen (8) Phillip Trelford (87) Carsten König (10) Ryan Riley (25) Antonio Cisternino (8) Fabio Galuppo (14) Tuomas Hietanen (76) David Klein (16) Tao Liu (17) Evgeniy Andreev (13) Robert Pickering (10) fholm (26) Zhukoff Dima (8) NIck Palladinos (14) nagat01 (19) Tomas Petricek (150) Taha Hachana (12) devshorts (11)
Database contains 3200 snippets out of which 1714 is public.