View hay-collisions.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
airbrusheshay | airbrushes hairbrushes | |
airbrushhay | airbrush hairbrush | |
airierhay | airier hairier | |
arkhay | ark hark | |
armedhay | armed harmed | |
arminghay | arming harming | |
armlesslyhay | armlessly harmlessly | |
arrowinghay | arrowing harrowing | |
ashinghay | ashing hashing | |
earhay | ear hear |
View main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"io" | |
"net/http" | |
"os" | |
"github.com/PuerkitoBio/goquery" | |
) |
View anonymous-gist.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func main() { | |
r, w := io.Pipe() | |
ctx := context.Background() | |
ctx, cancel := context.WithTimeout(ctx, time.Second*10) | |
defer cancel() | |
wg := sync.WaitGroup{} | |
wg.Add(2) |
View config.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq straight-use-package-by-default t | |
user-emacs-directory "~/test/emacs" | |
straight-base-dir "~/test" | |
package-user-dir "~/test/elpa") | |
(defvar bootstrap-version) | |
(let ((bootstrap-file (expand-file-name "~/test/straight/repos/straight.el/bootstrap.el")) | |
(bootstrap-version 5)) | |
(unless (file-exists-p bootstrap-file) | |
(with-current-buffer |
View example_query_usage.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type result struct { | |
ID string `db:"id"` | |
Name string `db:"name"` | |
Title sql.NullString `db:"title"` | |
} | |
func queryWithSqurrel(ctx context.Context, id string) (*Result, error) { | |
q := sq.Select("t.id,t.name,t.title"). | |
From("the_table t"). | |
Column("b.other as phone"). |
View camera.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using UnityEngine; | |
using UnityEngine.Networking; | |
public class CameraScript : MonoBehaviour { | |
// Start is called before the first frame | |
void Start() { | |
NativeCamera.RequestPermission(); |
View aoc2019-18-1.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this is the node thing for getting from the start position to the last key | |
type path struct { | |
name string | |
node *tile | |
steps int | |
parent *path | |
children []path | |
keysFound []string |
View base.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package email | |
import ( | |
"context" | |
) | |
// Version 1 | |
// Sender is an interface to hide the fact we're using a 3rd party library | |
type Sender interface { |
View go-config.el
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; go-config.el --- Summary | |
;;; Commentary: | |
;;; Code: | |
(setenv "GOPATH" "/home/sean/Code/Go") | |
(use-package go-mode | |
:ensure t | |
:defer t | |
:mode "\\.go\\'" |
View grpc-middleware.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HoneycombUnary returns an interceptor that adds Honeycomb metrics to any incoming unary requests. | |
func HoneycombUnary() grpc.UnaryServerInterceptor { | |
return func(ctx context.Context, r interface{}, i *grpc.UnaryServerInfo, h grpc.UnaryHandler) (interface{}, error) { | |
ctx, t, s := setupTrace(ctx, r, i.FullMethod, "unary") | |
defer t.Send() | |
o, err := h(ctx, r) | |
result := "success" | |
if err != nil { |
NewerOlder