Skip to content

Instantly share code, notes, and snippets.

@noahcoad
noahcoad / 📒 Japan Travel Tips.md
Last active December 17, 2024 01:07
Japan Travel Tips

📒 Noah’s Japan Travel Tips 2024

Japan is such a great place to visit! Feels like another world, super clean and safe, I’ve seen round trip tickets as low as $480. And as of writing this the dollar is really strong (150yen vs 100yen per dollar) so it’s also considerably less expensive than the US when there.

Amazon Workdocs Doc IDs are Insanely Large

Quotes, Phrases, and Sayings

Newest items on top.

Being Professional ProTips

Some of my fav #protips working in the tech industry as a developer, manager, sales leader, etc.

Store All Files in the Cloud

It is rediculious to me that people still store files locally on their computer outside of a cloud-backed storage folder or tool.

# created 2024-04-25 by Noah Coad ncoad@amazon.com
# demo video at https://youtu.be/9UkoTsXMnlQ
import streamlit as st, boto3
# setup app
amazon_q = boto3.client('qbusiness', 'us-west-2')
st.title("Amazon Q Chatbot") #page title
# created 2024-04-25 by Noah Coad ncoad@amazon.com
# demo video at https://youtu.be/9UkoTsXMnlQ
import streamlit as st, boto3
# parameters
aws_region = 'us-west-2'
q_app_id = 'be05d006-3c25-439e-b25d-781ad5b2xxxx'
q_user_id = 'AmazonQ-Administrator'
@noahcoad
noahcoad / whenVisible.js
Last active November 9, 2021 09:43
Utility function for Tampermonkey and Greasemonkey scripts to detect and handle AJAX elements and single page apps, waiting until elements exist and become visible
//
// Description
// whenVisible(): a utility function for Tampermonkey and Greasemonkey
// scripts to detect and handle AJAX elements and single
// page apps, waiting until elements exist and become visible
//
// Created
// 2021-10-01 by Noah Coad http://coad.net
//
// Usage Example
#!/bin/bash
# 2021-04-28 by Noah Coad
# simple bash script to turn the Mac OSX volume up, down, get value, or set
# vol = get current volume level
# vol u = volume up by 5%
# vol d = volume down by 5%
# vol 25 = set volume level between 0-100
re='^[0-9]+$'
dir=