Skip to content

Instantly share code, notes, and snippets.

@mattcodez
mattcodez / 2025-07-03.md
Last active July 7, 2025 21:04
TLT Wheeling 2025

Trade

  • No open positions in TLT at start of day
  • Down to $87 now, didn't get in on ex dividend day but that's ok. Would have lost $100 with the share price going down from $88 (or higher). Dividend would had been $30 something. Very easy to lose that in price fluctuations.
  • Sticking with my thesus of targetting premium that is multiples of what interest would be on cash. So if I write a CSP, that's $8,700 collateral which is a little less than $1/d in interest from RobinHood Gold's 4%. So if I exceed that by multiples, it's in theory worth it. Granted things can shift but that's what the wheel is for.
  • Sold $87p for 7/9 for $0.43 credit. Set BTC limit at $0.02 so that's $40 for 6 days, much more than the $6 I would get on the cash alone.
  • I like insurance so I bought $87p - 7/11 @ $0.01. This then reduces my collateral to $550. So I get to make nearly the same amount of interest over the long weekend on my cash. $41/$550 is a little over 7%, not bad for 6 days.
  • I didn't want the $87 strike but premi
@mattcodez
mattcodez / 2023-05-21-20-55-55.md
Created July 13, 2023 21:32
Hill Sprints and VO2Max
created modified type
2023-05-21 20:55:55 -0400
2023-05-21 20:56:16 -0400
Journal

System: #bard

Do hill sprints improve overall running pace?

@mattcodez
mattcodez / test.md
Created May 4, 2022 04:29
markdown test

Hello world

hi, hiya

/* GAME OF LIFE
1. Any live cell with fewer than two live neighbours dies.
2. Any live cell with two or three live neighbours lives on to the next generation.
3. Any live cell with more than three live neighbours dies.
4. Any dead cell with exactly three live neighbours becomes a live cell.
*/
const blinkerSeed = {
height: 5,
coords: [[2,1], [2,2], [2,3]]
// Use only vanilla JS
function callWhenReadyToGo(cb) {
var allImagesLoaded = false;
// Look at all P and SPAN for very short text that says "loading"
// we don't want long text as it might be part of a longer paragraph then
var textEls = document.querySelectorAll('SPAN, P');
var loadingEls = [];
for (var i = 0; i < textEls.lenth; i++){
@mattcodez
mattcodez / fib_iterative.js
Created February 23, 2018 13:24
Fibonacci
function fib_i(num) {
console.log(`Series of ${num}`);
let num2 = 0, num1 = 1;
for (let i = 0; i < num; i++) {
console.log(num1);
const next = num2 + num1;
num2 = num1;
num1 = next;
}
}
@mattcodez
mattcodez / term.sh
Created September 12, 2017 17:43
Terminal stuff
watch --color git diff --color --stat
watch git status --porcelain
@mattcodez
mattcodez / .tmux.conf
Created August 29, 2017 22:31
Saving my current tmux conf
set -g mouse on
#set-option -g mouse on
set -g status-interval 2
set -g status-right "#S #[fg=green,bg=black]#(tmux-mem-cpu-load --colors --interval 2 --powerline-right)#[default]"
set -g status-right-length 60
set -g pane-border-status top
set -g pane-border-format "#{pane_index} #{pane_current_command} #{pane_pid}"
set -g default-terminal "screen-256color"
bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S - ; save-buffer %1 ; delete-buffer'
@mattcodez
mattcodez / mypi.cpp
Last active September 11, 2017 02:21
Very simple JS pi generator
// g++ -o mypi -std=c++14 mypi.cpp
#include <iostream>
#include <string>
#include <ctime>
#include <limits>
double myPi(long long loopCount);
typedef std::numeric_limits< double > dbl;