Snippets tagged html

  • WebSharper Hello World

    This sample implements "Hello, world!" as a WebSharper application. It demonstrates how to compose HTML/XML using combinators, how to dynamically create a button with a handler and how to update an existing DOM element.

    4 people like this

    Posted: 9 years ago by Tomas Petricek

  • HTML File Type

    Discriminated unions to represent a HTML file.(not completely)

    3 people like this

    Posted: 9 years ago by Gab_km

  • DSL for constructing HTML

    Just another DSL for creating HTML in F#. This DSL attempts to have nice syntax using curly brackets (F# computation expression blocks) for nesting. It does not use other keywords like `yield` (to keep the syntax as non-intrusive as possible), but that means the implementation relies on mutation. I think there could be nicer implementation using automatic quoting in F# 3.0.

    16 people like this

    Posted: 8 years ago by Tomas Petricek

  • Extract script blocks from html page (FP)

    A bit more functional version of this: http://fssnip.net/iR

    2 people like this

    Posted: 7 years ago by @kot_2010

  • Mass shootings in the US

    Based on the article "We’re now averaging more than one mass shooting per day in 2015", this calculates when is the best time to go to US to avoid being shot.

    3 people like this

    Posted: 5 years ago by Tomas Petricek

  • Multi-currency report

    Multi-currency report (generated as HTML) based on example given at the start of chapter one of Kent Beck's Test-Driven Development by Example book.

    4 people like this

    Posted: 5 years ago by Phillip Trelford

  • Find HTML Page Titles

    Finds potential page titles in a HTML page.

    1 people like this

    Posted: 4 years ago by Phillip Trelford

  • Web Crawler

    This snippet features an F# Web crawler that i'm already using in 2 applications (slightly modified). It's based on a scalable network of communicating agents that follow URLs extracted from HTML pages until reaching the specified limit.

    4 people like this

    Posted: 4 months ago by Taha Hachana