Skip to content

Instantly share code, notes, and snippets.

@santiaago
santiaago / chessboard.go
Created January 11, 2015 16:33
Building a chessboard image in go
package main
import (
"image"
"image/color"
"image/jpeg"
"log"
"os"
)
@santiaago
santiaago / cache.go
Last active June 24, 2023 18:24
Learning HTTP caching in Go
package main
import (
"bytes"
"flag"
"image"
"image/color"
"image/draw"
"image/jpeg"
"log"
@santiaago
santiaago / main.go
Created February 10, 2015 19:20
Testing HTTP caching in Go
package main
import (
"bytes"
"flag"
"image"
"image/color"
"image/draw"
"image/jpeg"
"log"
"contributes": {
"commands": [
{
"command": "extension.sayHello",
"title": "Hello World"
}
]
},
@santiaago
santiaago / Program.cs
Created August 13, 2018 11:05
Simple C# NATS example
using System;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using NATS.Client;
namespace worker
{
class Program
{