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 |
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" | |
) |
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) |
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 |
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"). |
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(); |
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 |
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\\'" |
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 { |
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