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" | |
"github.com/lukeroth/gdal" | |
"github.com/paulmach/orb" | |
"github.com/paulmach/orb/project" | |
) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 quickselect | |
func Quickselect(data []int, k, left, right int) { | |
var t, i, j int | |
for right > left { | |
t = data[k] | |
i = left | |
j = right | |
swap(data, left, k) |
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
commands: | |
# replaces `aws-cli/install` | |
aws_cli_install: | |
description: Install AWS CLI (from cache if possible) | |
steps: | |
- restore_cache: | |
key: awscliv2 | |
paths: | |
- /tmp/aws | |
- run: |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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" | |
"log" | |
"os" | |
"github.com/cheggaaa/pb/v3" | |
"github.com/paulmach/osm/osmpbf" // cgo branch |
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 ( | |
"testing" | |
"testing/quick" | |
flatbuffers "github.com/google/flatbuffers/go" | |
) | |
// TestCreateSharedStringReset ... |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
module SQLApprovals | |
def verify_sql(name:, &block) | |
# List to store executed queries | |
queries = [] | |
# An event listener to record the normalized queries | |
subscriber = ->(_name, _start, _finish, _id, payload) do | |
# You'll likely need to filter unrelated queries, | |
# this is left as an exercise to the reader | |
queries << PgQuery.normalize(payload[:sql]) |
NewerOlder