Skip to content

Instantly share code, notes, and snippets.

View invisiblefunnel's full-sized avatar

Danny Whalen invisiblefunnel

View GitHub Profile
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.
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)
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.
@invisiblefunnel
invisiblefunnel / main.go
Created December 19, 2020 21:06
paulmach/osm cgo branch
package main
import (
"fmt"
"io"
"log"
"os"
"github.com/cheggaaa/pb/v3"
"github.com/paulmach/osm/osmpbf" // cgo branch
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.
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])