Skip to content

Instantly share code, notes, and snippets.

View bthaile's full-sized avatar

Tom Haile bthaile

  • code slinger
View GitHub Profile
@bthaile
bthaile / GetGreeting.ts
Created February 23, 2024 21:24
GetGreeting
// Import ethers from the ethers.js library
const { ethers } = require('ethers');
// Define the contract ABI
const contractABI = [
"function hello() public view returns (string memory)"
];
// Define the contract address
const contractAddress = "0x3e6559ef912754b7cb75eaf7f265bdedebb6a437";
@bthaile
bthaile / HelloWorld.sol
Created February 23, 2024 21:24
HelloWorld.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract HelloWorld {
// Declare a public field of type string.
string public greeting;
// Constructor to initialize the greeting.
// In Solidity, the constructor is defined with the "constructor" keyword.
constructor() {
@bthaile
bthaile / portfolio.md
Created January 23, 2024 03:42
$25,000 portfolio

Design a trading plan for a $25,000 account Goal: Grow account to $75,000 to pay off forever-home to get ready for retirement. Grow by 10% to meet the target retirement time frame of 11.5 years. Trading Plan: Earnings in S&P 500 companies to achieve 4% annualized profit (need to test to get a more realistic goal). Trade Covered Strangle and Ratio Diagonals to achieve 6% profit, utilize Box Spreads to capture risk free rate and cover any downsides in options strategies. Risk Mgmt: Exit uncapped risk positions at 15% drawdowns, flatten capped risk positions at 50% loss. Tracking: Spreadsheet, track overall portfolio utilization, positional risk, ROIC (measure efficiency), CAGR (measure on portfolio track). With a small account need to stay efficient with collecting premium, Target 20% APR, higher APR target to increase efficiency and counter cap lock up in underlying.

Trading Earnings: Entry Criteria: S&P 500 companies with high probability of actual move less than implied move. Te

@bthaile
bthaile / UpdateHelloWorld.template.json
Created November 7, 2023 20:57
UpdateHelloWorld.template.json
{
"f_type": "InteractionTemplate",
"f_version": "1.0.0",
"id": "bfbd8abc17b30b582427b39097b33e9fc34f425871eb065e6c1cfcccfafe4470",
"data": {
"type": "transaction",
"interface": "",
"messages": {
"title": {
"i18n": {
@bthaile
bthaile / ReadGreeting.template.json
Created November 7, 2023 20:43
ReadGreeting.template.json
{
"f_type": "InteractionTemplate",
"f_version": "1.0.0",
"id": "ba1fdd454259db9920a8d067e3c22135155365f507ed8b2c4fcf6cbdc4fddbd5",
"data": {
"type": "script",
"interface": "",
"messages": {
"title": {
"i18n": {
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
@bthaile
bthaile / med agreement
Created June 13, 2023 04:46
med agreement
Last Updated: June 5, 2023
For Regional Partners, see Section 11
These Medical Terms of Service ("Medical Services Terms") govern your use of the medical services, including the Telehealth Services described in more detail in Section 12 below ("Medical Services") provided by One Medical professional corporations and our affiliated medical services providers ("One Medical", "we", "us", or "our"). In some regions, Medical Services, with the exception of TeleHealth services, are provided by One Medical jointly with, and/or as subcontractors for, other health provider entities, health systems or academic medical center partners ("Partners"). These Partner relationships are described in more detail in Section 11 below. If you are using Medical Services in a region identified in Section 11, the applicable Partner is also a party to these Medical Services Terms, and "One Medical", "we", "us" or "our" means One Medical professional corporations (and our affiliated medical services providers) and the applicable Part
@bthaile
bthaile / agreement
Created June 13, 2023 04:40
doc agreement
Effective Date: September 23, 2022
Arbitration Clause in Section 12
These Membership Terms of Service ("Terms"), which includes an agreement to arbitrate and consent to electronic communications, govern your access to and use of services provided by 1Life Healthcare, Inc. ("1Life", "we", "us", or "our"), including the One Medical website located at www.onemedical.com, the One Medical mobile application, membership services that include personal healthcare navigation services, wellness services, communication services, facilitation of access to telehealth services, including certain on-demand app and video-based telehealth services, and other technology-enabled or personal services provided by 1Life or its affiliate (collectively, the "Services"). Please read these Terms carefully before using the Services. By accessing or using the Services you agree to be bound by these Terms. If you are accepting these Terms for another person ("Family Member") as such Family Member’s parent, guardian, conservator, or cus

Primer

Introduction


Flow, the blockchain for open worlds

Flow is a fast, decentralized, and developer-friendly blockchain, designed as the foundation for a new generation of games, apps, and the digital assets that power them. It is based on a unique, multi-role architecture, and designed to scale without sharding, allowing for massive improvements in speed and throughput while preserving a developer-friendly, ACID-compliant environment.

Flow empowers developers to build thriving crypto- and crypto-enabled businesses. Applications on Flow can keep consumers in control of their own data; create new kinds of digital assets tradable on open markets accessible from anywhere in the world; and build open economies owned by the users that help make them valuable. 

@bthaile
bthaile / gist:e74f21a801a0a0a2c261f1200b168297
Created November 30, 2022 19:50
content checker request
{
"action": "completed",
"check_run": {
"id": 9805376052,
"name": "Developer Portal Content Check",
"node_id": "CR_kwDOD0vWrM8AAAACSHIqNA",
"head_sha": "a1e7f3fb1a46557a84fa6c3423db551994a1e93d",
"external_id": "",
"url": "https://api.github.com/repos/onflow/cadence/check-runs/9805376052",
"html_url": "https://github.com/onflow/cadence/runs/9805376052",