Skip to content

Instantly share code, notes, and snippets.

Jon Lundy JonLundy

  • Utah, USA
View GitHub Profile
View keys.pub
BEGIN MESSAGE.
uJ8DXfmr36V11EZ k9tzY4B50237Jug BKh0BWUZCTHDr8V owqDS7gi2Hz4pNa
qFPcgCY0lDIinDt muOsNw4RPiJTCKq 6Xr2MZHgg6IxbdG L2ee86kdR7Tzwef
P9YIF3KxsQ8ImAs 5iGVN1u4b5lGth1 IfGYfmdvHXUSmUe Qoi3PrHR4zbwunP
jwJyLdZTvBOpi0w ErjY4bMdvR3ql1y PK8Xd0Qz5Z.
END MESSAGE.
View null-time.go
package gql
import (
"bytes"
"database/sql/driver"
"fmt"
"io"
"strings"
"time"
)
View gqlgen.yml
schema: schema.graphql
exec:
filename: internal/graph/generated.go
package: graph
model:
filename: pkg/model/generated.go
package: model
models:
ID:
model: sour.is/x/example/pkg/model.Uint
View NullTime.go
package model
import (
"bytes"
"database/sql/driver"
"fmt"
"io"
"strings"
"time"
)
@JonLundy
JonLundy / generated interfaces
Last active Jul 20, 2018
mutation resolvers
View generated interfaces
type Resolvers interface {
CollectionOps_Section(ctx context.Context, obj *CollectionOps, id string) (*SectionOps, error)
CollectionOps_addSection(ctx context.Context, obj *CollectionOps, name string) (*Section, error)
CollectionOps_removeSection(ctx context.Context, obj *CollectionOps, id string) (*bool, error)
Mutation_Collection(ctx context.Context, id string) (*CollectionOps, error)
Query_Collection(ctx context.Context, id string) (*Collection, error)
SectionOps_addTag(ctx context.Context, obj *SectionOps, value string) (*Tag, error)
SectionOps_removeTag(ctx context.Context, obj *SectionOps, value string) (*bool, error)
}
View example.graphql
type Foo {
id: ID!
name: String!
}
type Query {
foo(id: ID!): Foo!
}
@JonLundy
JonLundy / openpgp.txt
Created Dec 23, 2016
OpenKeychain Linked Identity
View openpgp.txt
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:20ae2f310a74ea7cec3ae69f8b3b0604f164e04f]
View keybase.md

Keybase proof

I hereby claim:

  • I am jonlundy on github.
  • I am xuu (https://keybase.io/xuu) on keybase.
  • I have a public key whose fingerprint is 8049 CC70 162B BE19 D5B5 180A E24B 23DE 8837 DD3D

To claim this, I am signing this object:

View conv.py
#!/usr/bin/python
import sys,json,base64,binascii
with open(sys.argv[1]) as fp:
pkey=json.load(fp)
def enc(data):
missing_padding = 4 - len(data) % 4
if missing_padding:
data += b'='* missing_padding
View keybase.md

Keybase proof

I hereby claim:

  • I am jonlundy on github.
  • I am xuu (https://keybase.io/xuu) on keybase.
  • I have a public key whose fingerprint is 4F59 E877 055C 6348 A21F 8582 D838 118B BD41 ED87

To claim this, I am signing this object:

You can’t perform that action at this time.