Skip to content

Instantly share code, notes, and snippets.

View camdencheek's full-sized avatar

Camden Cheek camdencheek

View GitHub Profile
package main
import (
"bufio"
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"net/http"
// Start workers. They read from files and write to matches.
for i := 0; i < numWorkers; i++ {
rg := rg.Copy()
g.Go(func() error {
for ctx.Err() == nil {
// grab a file to work on
filesmu.Lock()
if len(files) == 0 {
filesmu.Unlock()
return nil
with owned_globs as (
select
directory || unnest(regexp_matches(content, '^([^\s]+)\s+@camdencheek)')[1]) as glob,
from files
where name = 'CODEOWNERS'
), owned_files as (
select *
from files
where exists (
select *
{
"uri": "/Users/camdencheek/src/sourcegraph/sourcegraph/cmd/searcher/internal/search/search_structural.go",
"matches": [
{
"range": {
"start": {
"offset": 1152,
"line": 32,
"column": 21
},
@camdencheek
camdencheek / jakeoffamethorneofshame.txt
Last active September 15, 2017 19:54
Jake of Fame, Thorne of Shame
Camden Cheek,John Soltis,Dan Minahan,Josh Hasler,Ben Weil;Jake Thorne,Matt Myers

Keybase proof

I hereby claim:

  • I am ccheek21 on github.
  • I am ccheek21 (https://keybase.io/ccheek21) on keybase.
  • I have a public key ASC8-T8RVmBRnx7PprxVazhcUhlVymIT8c4F61taLxMc_go

To claim this, I am signing this object: