Skip to content

Instantly share code, notes, and snippets.

View joshrickard's full-sized avatar

Josh Rickard joshrickard

View GitHub Profile
@enricofoltran
enricofoltran / main.go
Last active April 1, 2024 00:17
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"

Git Cheat Sheet

Commands

Getting Started

git init

or

table = pdf.make_table([["foo", "bar"],
["baz\n"*18, "quux"]], :position => :center)
pdf.move_down((pdf.bounds.height - table.height) / 2.0)
table.draw