Snippets tagged file

  • Restartable File.ReadLines

    .Net 4.0 added File.ReadLines to view a file as a sequence, but the sequence can only be read once. A simple wrapper with seq{yield!} fixes that.

    43 people like this

    Posted: 6 years ago by Tony Lee

  • Automatically compile LaTeX documents

    A simple script that automatically recompiles LaTeX documents when they are saved. Works nicely when editing papers in Atom and using SumatraPDF for preview (Sumatra automatically reloads PDF documents). Does not report errors or anything clever (!)

    4 people like this

    Posted: 2 years ago by Tomas Petricek