Skip to content

Instantly share code, notes, and snippets.

@cretz
cretz / baseten-cla.md
Created April 1, 2026 17:46
Baseten CLA

Individual Contributor License Agreement

In order to clarify the intellectual property license granted with Contributions from any person or entity, BaseTen Labs, Inc., (“Company”) must have a Contributor License Agreement (“CLA”) on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Company; it does not change your rights to use your own Contributions for any other purpose.

You accept and agree to the following terms and conditions for Your present and future Contributions submitted to Company. Except for the license granted herein to Company and recipients of software distributed by Company, You reserve all right, title, and interest in and to Your Contributions.

  1. Definitions.

“You” (or “Your”) shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with Company. For legal entities, the entity making a Contribut

@cretz
cretz / README.md
Last active August 13, 2024 14:21
Demonstration of Temporal payload codec and payload converter applying to specific object

Putting all these files in my_folder and running python -m my_folder.main gives:

Called activity with MySpecialObject(foo='some-foo-val')
Called activity with some-other-val

And when reviewing the history, you can see the special encoding/object:

@cretz
cretz / define_workflow.py
Created August 16, 2022 20:39
Simple Python Gists
@workflow.defn
class SayHello:
@workflow.run
async def run(self, name: str) -> str:
return f"Hello, {name}!"
@cretz
cretz / main.go
Last active June 14, 2018 19:25
Chromecast Server in Go (fails unless authCert gen'd w/ Google-owned CA)
package main
import (
"crypto"
"crypto/rand"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"encoding/binary"
@cretz
cretz / README.md
Created April 10, 2018 21:11
Gradle Build for Sandbox ADBA

Below is a build.gradle file that can be placed adjacent to the src directory when downloading the ADBA source. When assemble is executed via Gradle it will build the Java 9 module that can be used. I am currently using this for my Postgres ADBA work on PgNio.

{
"violatingSites": [
{
"reviewedSite": "blabbermouth.net",
"mobileSummary": {},
"desktopSummary": {
"lastChangeTime": "2017-11-16T20:26:04.838911001Z",
"region": [
"REGION_A"
],
@cretz
cretz / parsers.md
Created October 5, 2017 21:22
Some Parsers/Writers/Translators I Wrote
@cretz
cretz / CLA.md
Created September 6, 2017 15:41

Doogie Individual Contributor Non-Exclusive License Agreement

including the Patent Pledge OPTION

(generated with help from http://contributoragreements.org)

Thank you for your interest in contributing to Doogie ("We" or "Us"). The purpose of this contributor agreement ("Agreement") is to clarify and document the rights granted by contributors to Us. To make this document effective, please follow the instructions at https://github.com/cretz/doogie.

@cretz
cretz / kotlin-annoyances.md
Last active October 29, 2025 15:45
Kotlin Annoyances

⚠️ THIS LIST IS STALE/OUTDATED, DO NOT REFERENCE OR ASSUME ANYTHING IS ACCURATE

Kotlin Annoyances

These are things that I found annoying writing a complex library in Kotlin. While I am also a Scala developer, these should not necessarily be juxtaposed w/ Scala (even if I reference Scala) as some of my annoyances are with features that Scala doesn't even have. This is also not trying to be opinionated on whether Kotlin is good/bad (for the record, I think it's good). I have numbered them for easy reference. I can give examples for anything I am talking about below upon request. I'm sure there are good reasons for all of them.