This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/dotnet fsi | |
| open System | |
| open System.Collections.Generic | |
| open System.Globalization | |
| open System.IO | |
| open System.Net.Http | |
| open System.Numerics | |
| open System.Text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| open System.Net | |
| open System.Net.Sockets | |
| open System.IO | |
| open System.Text.RegularExpressions | |
| open System.Text | |
| /// A table of MIME content types. | |
| let mimeTypes = | |
| dict [".html", "text/html"; | |
| ".htm", "text/html"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| open System | |
| let mutable A, B, C = 0.0, 0.0, 0.0 | |
| let mutable cubeWidth = 20.0 | |
| let width, height = 160, 44 | |
| let zBuffer = Array.create (width * height) 0.0 | |
| let buffer = Array.create (width * height) ' ' | |
| let backgroundASCIICode = '.' | |
| let distanceFromCam = 100.0 |