Snippets tagged utility

  • memoizeBy

    Sometimes you might wish to memoize a function whose input doesn't have the equality and comparison constraints, or maybe the comparison of your given type is just too slow for what you need. To fix this, you simply provide a function which converts the input into something more fitting as an extra parameter.

    7 people like this

    Posted: 12 years ago by Rick Minerich

  • Are Files Present In A Directory?

    A quick and dirty function to check to see if there are files present in a directory. Note this will return false if there are only subdirs in a directory.

    1 people like this

    Posted: 10 years ago by Onorio Catenacci

  • Generate template definition

    Instead of writing template instanciation by hand, this generate a Templates.fs file with all templates given a directory tree containing .html files.

    2 people like this

    Posted: 8 years ago by Gauthier Segay

  • Generate password-like string

    Generate password-like string and save it to clipboard. Original idea is here: http://d.hatena.ne.jp/rubyco/20130202/password (Japanese)

    3 people like this

    Posted: 11 years ago by yukitos

  • Tiny Logging Module

    High performance asynchronous Logging module with time-based rollover and size-based file retention in under a 100 lines of F# Bug fix: Fixed log file name date time from "yyyyMMddhhmm" to yyyyMMddHHmm" (24 hour clock)

    6 people like this

    Posted: 10 years ago by Faisal Waris