Skip to content

Instantly share code, notes, and snippets.

View granicz's full-sized avatar

Adam Granicz granicz

View GitHub Profile

Contribution License Agreement (CLA)

We are incredibly thankful for contributions to our IntelliFactory open source code repositories. In the spirit of the .NET open source community, we decided to closely follow the .NET Foundation's contribution license agreement to ensure that our software with your contributions remains free to use.

Reviewing the CLA document

You can find the IntelliFactory CLA document for your review in this repository.

Contribution License Agreement

This Contribution License Agreement ("Agreement") is agreed to by the party signing below ("You"), and conveys certain license rights to IntelliFactory ("IntelliFactory") for Your contributions to IntelliFactory open source projects. This agreement is effective as of the latest signature date below.

1. Definitions

"Code" means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to IntelliFactory under this Agreement.

@granicz
granicz / Main.fs
Created December 30, 2017 00:55
Serving SPAs - barebones version
namespace CSSPA0
open WebSharper
open WebSharper.Sitelets
open WebSharper.UI
open WebSharper.UI.Server
open WebSharper.UI.Html
type SPA =
| [<EndPoint "/cities">] Cities
@granicz
granicz / Main.fs
Created December 30, 2017 00:52
Serving SPAs - templated version
namespace CSSPA
open WebSharper
open WebSharper.Sitelets
open WebSharper.UI
open WebSharper.UI.Server
open WebSharper.UI.Html
type SPA =
| [<EndPoint "cities">] Cities
@granicz
granicz / main.fs
Created September 3, 2015 16:01
Running WebSharper on Suave
module SelfHostedServer =
open global.Owin
open System.Net
open Suave
open Suave.Types
open Suave.Http.Successful
open Suave.Web
open Suave.Owin
open WebSharper.Owin
@granicz
granicz / index.html
Created August 20, 2015 02:14
Simple calculator using imperative update
<html>
<head>
<title></title>
<style>
button {
width: 48px;
height: 36px;
margin: 5px;
}
input[type="text"] {