Skip to content

Instantly share code, notes, and snippets.

View geofflangenderfer's full-sized avatar
🎯
Focusing

Geoff Langenderfer geofflangenderfer

🎯
Focusing
View GitHub Profile
dr: Hello there! I'm Dr. Gupta.
dr: How can I help?
me: I have excessive blood in my stool. What should I do?
dr: I'm sorry to hear that you're experiencing excessive blood in your stool. This can be concerning and it's important that we investigate the cause. In order to better understand your situation, I'd like to ask you a few questions:
1. How long has this been occurring?
2. Is the blood bright red or dark in color?
3. Are you experiencing any pain or discomfort?
@geofflangenderfer
geofflangenderfer / download_ammonite.sh
Created May 26, 2022 15:48
download ammonite executable to current directory
echo "#!/usr/bin/env sh" > amm
curl -L https://github.com/lihaoyi/Ammonite/releases/download/2.5.4/2.13-2.5.4 >> amm
chmod +x ./amm
```
" init.vim or .vimrc
function Splitresize()
let hmax = max([winwidth(0), float2nr(&columns*0.66), 90])
let vmax = max([winheight(0), float2nr(&lines*0.66), 25])
exe "vertical resize" . (min([hmax, 140]))
exe "resize" . (min([vmax, 60]))
endfunction
nnoremap <silent><C-J> <C-W><C-J>:call Splitresize()<CR>
nnoremap <silent><C-K> <C-W><C-K>:call Splitresize()<CR>
inpage.js:1 MetaMask: 'ethereum.send(...)' is deprecated and may be removed in the future. Please use 'ethereum.sendAsync(...)' or 'ethereum.request(...)' instead.
For more information, see: https://eips.ethereum.org/EIPS/eip-1193
send @ inpage.js:1
inpage.js:1 MetaMask: The event 'close' is deprecated and may be removed in the future. Please use 'disconnect' instead.
For more information, see: https://eips.ethereum.org/EIPS/eip-1193#disconnect
_warnOfDeprecation @ inpage.js:1
inpage.js:1 MetaMask: The event 'networkChanged' is deprecated and may be removed in the future. Use 'chainChanged' instead.
For more information, see: https://eips.ethereum.org/EIPS/eip-1193#chainchanged
_warnOfDeprecation @ inpage.js:1
Access to fetch at 'https://app.tryroll.com/tokens.json' from origin 'https://app.sushi.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource w

LPs

Customer Obsession

Leaders start with the customer and work backwards. They work vigorously to earn and keep customer trust. Although leaders pay attention to competitors, they obsess over customers.

Ownership

Leaders are owners. They think long term and don’t sacrifice long-term value for short-term results. They act on behalf of the entire company, beyond just their own team. They never say “that’s not my job."

Invent and Simplify

Leaders expect and require innovation and invention from their teams and always find ways to simplify. They are externally aware, look for new ideas from everywhere, and are not limited by “not invented here." As we do new things, we accept that we may be misunderstood for long periods of time.

Are Right, A Lot

Leaders are right a lot. They have strong judgment and good instincts. They seek diverse perspectives and work to disconfirm their beliefs.

import heapq
# O(len(jobs) log len(jobs)) time
# O(len(jobs)) space
def min_required_VMs(jobs: list[list[int]]) -> int:
"""
- job = [start,end) where e is exclusive
- jobs are not sorted
- 0<start<23
- 1<end<24
@geofflangenderfer
geofflangenderfer / alterTableInProduction.png
Last active June 4, 2021 03:24
distributed system table schema migration
alterTableInProduction.png
I'm an active trader. Right now, I need to constantly monitor my position for a trade trigger.
I would like to automate this process so I can walk away from my computer. If my trigger is met, I'd like to receive an email.
I have access to "BidPrice" in an excel sheet. With VBA or python, I'd like to do the following:
if BidPrice > target
send me an email
Here's info data you have to work with: <data link>