Skip to content

Instantly share code, notes, and snippets.

package data
import (
"bytes"
"compress/gzip"
"encoding/gob"
"fmt"
"io/ioutil"
"strings"
package main
import (
"bytes"
"compress/gzip"
"encoding/json"
"fmt"
"io/ioutil"
"os"
package bipartite
//! # Maximum bipartite matching implementation
// Various resources for my own benefit
// - https://www.youtube.com/watch?v=HZLKDC9OSaQ
// - https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-042j-mathematics-for-computer-science-fall-2010/readings/MIT6_042JF10_chap05.pdf
// - https://en.wikipedia.org/wiki/Ford%E2%80%93Fulkerson_algorithm
// - https://en.wikipedia.org/wiki/Hopcroft%E2%80%93Karp_algorithm
// - https://en.wikipedia.org/wiki/Edmonds%E2%80%93Karp_algorithm
package card
type ManaCost struct {
Bits uint8
R uint8
G uint8
B uint8
U uint8
W uint8
C uint8
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: cleanup-operator
name: cleanup-operator
namespace: cms
spec:
replicas: 1
selector:
@ericraio
ericraio / font.sh
Created November 13, 2020 19:03 — forked from cawa0505/font.sh
New Mac Setup Script
brew tap homebrew/cask-fonts
brew cask install font-3270-nerd-font-mono
brew cask install font-firacode-nerd-font-mono
brew cask install font-cascadia-mono-pl
brew cask install font-jetbrains-mono
package customtargeting
import (
"errors"
"fmt"
"github.com/ezoic/go-dfpapi/generated/customtargetingservice"
l4g "github.com/ezoic/log4go"
)
package lineitem
import (
"errors"
"github.com/ezoic/go-dfpapi/generated/lineitemservice"
)
type LineItemModel struct {
Attributes *lineitemservice.LineItem
package lineitem
import (
"errors"
"github.com/ezoic/go-dfpapi/generated/lineitemservice"
)
type LineItemModel struct {
Attributes *lineitemservice.LineItem
settings:
legacy:
force: false
interval: 0s
resources:
logs: /var/log/apache2/sol.log
errors: /var/log/apache2/sol.error.log
schema:
- name: sol
path: .