When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| open Microsoft.AspNetCore.Hosting | |
| open Microsoft.Extensions.Hosting | |
| open Giraffe | |
| let webApp = GET >=> route "/" >=> text "Hello world" | |
| [<EntryPoint>] | |
| let main args = | |
| Host.CreateDefaultBuilder(args) | |
| .ConfigureWebHostDefaults(fun webBuilder -> |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Http; | |
| using Microsoft.Extensions.Hosting; | |
| public class Program | |
| { | |
| public static void Main(string[] args) => | |
| Host.CreateDefaultBuilder(args) | |
| .ConfigureWebHostDefaults(webBuilder => |
| # Do not refactor, it is a bad practice. YOLO | |
| # Not understanding why or how something works is always good. YOLO | |
| # Do not ever test your code yourself, just ask. YOLO | |
| # No one is going to read your code, at any point don't comment. YOLO | |
| # Why do it the easy way when you can reinvent the wheel? Future-proofing is for pussies. YOLO |
| PS> time { ping -n 1 google.com } -Samples 10 -Silent | |
| .......... | |
| Avg: 62.1674ms | |
| Min: 56.9945ms | |
| Max: 87.9602ms | |
| PS> time { ping -n 1 google.com } -Samples 10 -Silent -Long | |
| .......... | |
| Avg: 00:00:00.0612480 | |
| Min: 00:00:00.0572167 |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)