Skip to content

Instantly share code, notes, and snippets.

View LOZORD's full-sized avatar
💭
i'm chillin

Leo Rudberg LOZORD

💭
i'm chillin
View GitHub Profile
@LOZORD
LOZORD / web-guide.md
Last active April 28, 2018 17:12
The follow-along guide for Leo's "How the Web Works" class at the Spring 2018 CUNY Hackathon.

"How the Web Works"

By Leo Rudberg (ljr@google.com). Written for the Spring 2018 CUNY Hackathon.

Link to this: https://bit.ly/2vTeHy1.

Follow me on GitHub!

(I will likely schmooze about myself here...)

@LOZORD
LOZORD / petanque.go
Created April 29, 2018 21:01
Palette-clamping (PNG) image translator. I call it petanque.
package main
// Usage:
// ./petanque -img=/path/to/input.png -colors="ABCDEF,123456,00F001"
import (
"flag"
"fmt"
"image"
"image/color"
@LOZORD
LOZORD / wolf.go
Created January 2, 2019 02:56
An attempt at implementing a simple cellular automaton based on Wolfram's patterns (e.g. Rule 30).
package main
import (
"flag"
"fmt"
"image"
"image/color"
"image/png"
"log"
"math/rand"
@LOZORD
LOZORD / json_test.go
Created January 12, 2020 17:14
An example of using a native JSON-friendly Go struct as a type and input in a CEL program.
package test
import (
"bytes"
"encoding/json"
"testing"
"github.com/golang/protobuf/jsonpb"
structpb "github.com/golang/protobuf/ptypes/struct"
"github.com/google/cel-go/cel"