Skip to content

Instantly share code, notes, and snippets.

View AustinHunt's full-sized avatar

Austin Hunt AustinHunt

View GitHub Profile
@AustinHunt
AustinHunt / pubsub.go
Created August 30, 2023 15:28
A simple pubsub in golang
package pubsub
import (
"sync"
)
// PubSub - a simple publish-subscribe structure
type PubSub[T any] struct {
mu sync.RWMutex
subscribers map[string][]chan T
@AustinHunt
AustinHunt / sales-regions.geojson
Last active January 3, 2023 20:34
HailTrace Sales Regions
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@AustinHunt
AustinHunt / App.jsx
Last active April 30, 2020 21:09
RenderCounter for React Native
import { Text, View } from 'react-native';
import RenderCounter, { RenderCounterProvider } from "./lib/RenderCounter";
function Home() {
return (
<>
<View>
<Text>Welcome!</Text>
</View>
<View>
@AustinHunt
AustinHunt / SubscriptionDesign.md
Last active March 4, 2019 17:14
Subscription Proposal

Subscriptions

Terms and Definitions

Terms

  1. Plan
  2. Product
  3. Subscription
@AustinHunt
AustinHunt / report_location.js
Last active January 25, 2019 17:56
example largest impacting hail
import * as turf from '@turf/turf';
import _ from 'lodash';
const geometry = {
"type": "Point",
"coordinates": [
-73.92714109999997,
40.8657281
]
};