Skip to content

Instantly share code, notes, and snippets.

View tylerstillwater's full-sized avatar

Tyler Stillwater tylerstillwater

View GitHub Profile
package main
type thisDoesNotWork struct {
i int
}
func main() {
var j int64
thisWorks(j) // quick fix convert works here
@tylerstillwater
tylerstillwater / main.go
Created August 25, 2020 16:38
$ERR$ doesn't detect custom error type
package main
import "fmt"
type MyError struct {
Code int
Message string
}
func (m MyError) Error() string {
@tylerstillwater
tylerstillwater / named-insured.bui
Last active February 17, 2022 15:11
BUI Component Example
{
"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
tylerstillwater / FeatureVoterTallyAPI.swift
Last active December 12, 2023 14:07
FeatureVoter Implementation using Tally instead of CountAPI
//
// FeatureVoter.swift
// Mutaclip
//
// Created by Tyler Stillwater on 5/10/23.
//
// Custom voter implementation for: https://github.com/AvdLee/Roadmap
// Note: will not work until this PR is merged: https://github.com/AvdLee/Roadmap/pull/71