Skip to content

Instantly share code, notes, and snippets.

View augier's full-sized avatar
🌴
Eternally on vacation

Chris Augier augier

🌴
Eternally on vacation
View GitHub Profile
{
"statusCode": 500,
"message": "Internal Server Error",
"ts": 1586774700062,
"payload": {
"abbj": {
"amount": 133563.59,
"currency": "GBP",
"gameType": "abbj",
"name": "abbj",
{
"id": 4719984,
"name": "US NHL",
"events": [
{
"status": "ACTIVE",
"date": "2020-01-18",
"id": 10405122,
"affiliateId": null,
"time": "12:30",
package main
import (
"log"
"google.golang.org/api/option"
"golang.org/x/net/context"
"google.golang.org/api/sheets/v4"
)
package main
import (
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"os"
"time"
@augier
augier / convert.go
Last active January 31, 2019 15:49
Converts world CSV into type of rules file
package main
import (
"encoding/csv"
"errors"
"flag"
"fmt"
"io/ioutil"
"os"
"regexp"

Keybase proof

I hereby claim:

  • I am augier on github.
  • I am augier (https://keybase.io/augier) on keybase.
  • I have a public key ASA2YS8gyohwwCByGjD7yvxVn7ND3aSi5nPLWVCHhXR-5wo

To claim this, I am signing this object:

@augier
augier / unmarshalling.go
Last active July 30, 2020 15:17
An example of unmarshalling inconsistent data in golang
package main
import (
"encoding/json"
"log"
"strconv"
)
func main() {
//unmarshalIdealData()
@augier
augier / inheritance.go
Last active October 13, 2016 13:31
An example of inheritance in golang
package main
import (
"github.com/connectedventures/f8-pkg/odds"
)
// EventParser is the interface for all parsers
type EventParser interface {
GetEvent() (*odds.Event, error)
constructFacets() odds.Facets