Skip to content

Instantly share code, notes, and snippets.

View timothymcmackin's full-sized avatar

Tim McMackin timothymcmackin

View GitHub Profile
@timothymcmackin
timothymcmackin / acelonEtherlink.md
Created August 15, 2025 18:45
Steps to try the Acelon Oracle on Etherlink Mainnet sandbox
@timothymcmackin
timothymcmackin / hypothesis_test.py
Created May 7, 2024 18:48
Trying Hypothesis tests with SmartPy
import smartpy as sp
from hypothesis import given, strategies as st
# https://hypothesis.readthedocs.io/en/latest/quickstart.html
@sp.module
def my_module():
list_element: type = sp.pair[sp.string, sp.int]
@timothymcmackin
timothymcmackin / lib.rs
Created January 17, 2024 19:00
Kernel at end of part 3
use tezos_smart_rollup::{host::RuntimeError, kernel_entry, prelude::*};
use tezos_smart_rollup_host::dal_parameters::RollupDalParameters;
pub fn run<R: Runtime>(
host: &mut R,
param: &RollupDalParameters,
index: u8,
) -> Result<(), RuntimeError> {
let sol = host.read_input()?.unwrap();
Hello, r/technicalwriting101! Looking forward to chatting with you and answering any questions I can.
I've always loved writing but didn't want to write fiction, so I didn't know about how to make writing a career until I took a college class in creative nonfiction and learned that there are many careers open to people who can write clearly.
I got my first real job in copywriting for industrial advertising, which introduced me to understanding what info the audience needs to know and how to communicate it to them. I went into a master's program in professional writing and planned to stay in business communication and advertising, but the market was really struggling after the dot-com recession of the early 2000s. Then I discovered software documentation, which captured my interest because I've always enjoyed coding and playing with computers. I had a rough software doc co-op as part of my program that taught me how important it is to find a fit with your co-workers and how you want to work, but I stuck with
@timothymcmackin
timothymcmackin / openapi.json
Last active July 19, 2019 15:13
Example of openapi spec that double-quotes param examples when used with swagger-codegen; see https://github.com/swagger-api/swagger-codegen/issues/9586
{
"swagger": "2.0",
"info": {
"description": "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",
"version": "1.0.0",
"title": "Swagger Petstore",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"email": "apiteam@swagger.io"
},
@timothymcmackin
timothymcmackin / example.sh
Created March 21, 2019 19:51
Illustrates bug in swagger-parser's bundle function
curl "https://petstore.swagger.io" \
--data-urlencode "petname=Roscoe"
@timothymcmackin
timothymcmackin / petstore3.json
Created December 20, 2018 20:04
Petstore example with text/html response
{
"openapi": "3.0.0",
"servers": [
{
"url": "http://petstore.swagger.io/v2"
}
],
"x-origin": [
{
"url": "http://petstore.swagger.io/v2/swagger.json",
@timothymcmackin
timothymcmackin / env.json
Created October 10, 2018 17:57
Example of nested schemas in OAS 3
{
"resolve": true,
"language_tabs": [{ "javascript": "JavaScript" }],
"expandBody": true,
"summary": true
}
@timothymcmackin
timothymcmackin / env.json
Last active September 27, 2018 16:29
Using external files for Openapi 3 schemas
{
"resolve": true,
"language_tabs": [{ "javascript": "JavaScript" }],
"source": "/mnt/c/Users/tmcmackin/git/widdershins/defs/petstore3.json",
"verbose": true
}
@timothymcmackin
timothymcmackin / petstore3.json
Created August 1, 2018 16:14
Updated petstore swagger file including named body parameter
{
"openapi": "3.0.0",
"servers": [
{
"url": "http://petstore.swagger.io/v2"
}
],
"x-origin": [
{
"url": "http://petstore.swagger.io/v2/swagger.json",