Skip to content

Instantly share code, notes, and snippets.

View tylerstillwater's full-sized avatar

Tyler Stillwater tylerstillwater

View GitHub Profile
tylerstillwater / FeatureVoterTallyAPI.swift
Last active October 24, 2023 20:36
FeatureVoter Implementation using Tally instead of CountAPI
View FeatureVoterTallyAPI.swift
// FeatureVoter.swift
// Mutaclip
// Created by Tyler Stillwater on 5/10/23.
// Custom voter implementation for:
// Note: will not work until this PR is merged:
tylerstillwater / named-insured.bui
Last active February 17, 2022 15:11
BUI Component Example
View named-insured.bui
"id": "named-insured",
"index": 0,
"status": "incomplete",
"graphql": {
"raw": "... raw graphql persist query ...",
"values": {
"/entity/quote_id": "1B1C579D-D6A6-4619-A726-B23911C765EF",
"/quote_id": "171D54A0-9C2A-42D4-AE6E-F55292F652A7"
tylerstillwater / main.go
Created August 25, 2020 16:38
$ERR$ doesn't detect custom error type
View main.go
package main
import "fmt"
type MyError struct {
Code int
Message string
func (m MyError) Error() string {
View quickfix.go
package main
type thisDoesNotWork struct {
i int
func main() {
var j int64
thisWorks(j) // quick fix convert works here
tylerstillwater / main.go
Created June 22, 2020 16:07
Comma inserted when autocompleting
View main.go
package main
type child struct {
name string
type parent struct {
childName string
tylerstillwater / main.go
Created June 10, 2020 17:20
Example of failed SQL Language type injection for GoLand
View main.go
package main
import "database/sql"
type executor struct {
db *sql.DB
func (e executor) exec(query string) {

Keybase proof

I hereby claim:

  • I am tylerstillwater on github.
  • I am tylerstillwater ( on keybase.
  • I have a public key ASC-NPzCAFpd6soD3fkmBpXTXmYvLnZjzpru16rl2BN5Swo

To claim this, I am signing this object:

tylerstillwater / main.go
Last active July 18, 2019 20:57
Simulate io blocking
View main.go
// All material is licensed under the Apache License Version 2.0, January 2004
// This sample program demonstrates how the logger package works.
package main
import (
View elvis.go
// All material is licensed under the Apache License Version 2.0, January 2004
// Sample program that takes a stream of bytes and looks for the bytes
// “elvis” and when they are found, replace them with “Elvis”. The code
// cannot assume that there are any line feeds or other delimiters in the
// stream and the code must assume that the stream is of any arbitrary length.
// The solution cannot meaningfully buffer to the end of the stream and
// then process the replacement.
package main
View elvis_test_results.txt
BenchmarkElvisBill-8 500000 6182 ns/op 3016 B/op 52 allocs/op
BenchmarkElvisTyler-8 1000000 2049 ns/op 1456 B/op 13 allocs/op