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 thisPosted: 13 years ago by Tomas Petricek
Discriminated unions to represent a HTML file.(not completely)
3 people like thisPosted: 12 years ago by Gab_km
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.
17 people like thisPosted: 11 years ago by Tomas Petricek
following http://vimeo.com/groups/97577/videos/97315970 to make my own html DSL
1 people like thisPosted: 10 years ago by Brandon Dimperio (@MaslowJax)
Quick script using FsLab that visualizes the aggregate number of downloads of a NuGet package over time, using the HTML type provider to get the data from www.nuget.org.
2 people like thisPosted: 9 years ago by Tomas Petricek
Shows a recursive means of filtering out simple HTML tags from a string. This is ultimately a simple FSM with state transitions implemented by recursive invocations and a bool flag (in this simple case).
0 people like thisPosted: 8 years ago by Hugh Gleaves
Takes some HTML, outputs some plaintext. Not tail recursive, not efficient, but got the job done for my use case (had a product feed where the descriptions were HTML, but I needed plaintext).
3 people like thisPosted: 6 years ago by Nat Elkins
This module extracts all the blocks out of an html page's header. This can be useful if you are writing tools to merge all the js for future minifaction, or for otherwise manipulating the files.
0 people like thisPosted: 3 years ago by devshorts
The snippet shows how to send HTTP POST request to a web page and download the generated HTML result. The POST data is encoded as a byte array and written to the request stream of HttpWebRequest.
10 people like thisPosted: 12 years ago by Tomas Petricek
This snippet automatically speeches text of question,answers and comments in a Stackoverflow article. It requires HtmlAgilityPack(available from Nuget package manager).(Attention: You need reset F# interactive to stop the speech)
6 people like thisPosted: 12 years ago by nagat01
A bit more functional version of this: http://fssnip.net/iR
2 people like thisPosted: 11 years ago by @kot_2010
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 thisPosted: 9 years ago by Tomas Petricek
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 thisPosted: 9 years ago by Phillip Trelford
Finds potential page titles in a HTML page.
1 people like thisPosted: 8 years ago by Phillip Trelford
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.
8 people like thisPosted: 3 years ago by Taha Hachana
Uses StringBuilder to achieve performance.
2 people like thisPosted: 1 month ago by shazmodan