Skip to content

Instantly share code, notes, and snippets.

@unbun
unbun / CS 2500 Cheat Sheet.md
Last active July 6, 2018 21:34
Fundies notes

Functions:

  • Define a function:
  • (define (funct-name arg-name)
      ;;body
    )
  • Call a function:
  • @rivo
    rivo / serve.go
    Created November 26, 2017 12:28
    Graceful stop and restart for HTTP servers in Go
    package main
    import (
    "context"
    "fmt"
    "net"
    "net/http"
    "os"
    "os/exec"
    "os/signal"