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 October 3, 2024 14:08
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