Skip to content

Instantly share code, notes, and snippets.

View maxmcd's full-sized avatar
🕳️
∖𝟶𝚊𝚜𝚖

Max McDonnell maxmcd

🕳️
∖𝟶𝚊𝚜𝚖
View GitHub Profile
@maxmcd
maxmcd / main.go
Created March 4, 2019 18:37
zip packing
package main
var stateAbbrv = []string{
"AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FL", "GA", "HI", "ID",
"IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO",
"MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA",
"PR", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "VI", "WA", "WV", "WI",
"WY",
}
@maxmcd
maxmcd / embly.hcl
Created January 11, 2020 15:27
embly-minimal-example
function "hello" {
runtime = "rust"
path = "./hello"
}
gateway {
type = "http"
port = 8080
route "/" {
function = "${function.hello}"
@maxmcd
maxmcd / .block
Created October 14, 2020 13:10 — forked from texodus/.block
regular-table / Minesweeper
license: apache-2.0
@maxmcd
maxmcd / index.html
Last active August 7, 2021 01:08 — forked from d3noob/index.html
Sankey Diagram with v4
<!DOCTYPE html>
<meta charset="utf-8">
<title>SANKEY Experiment</title>
<style>
.node rect {
cursor: move;
fill-opacity: .9;
shape-rendering: crispEdges;
}