This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 🤖 Automated Instagram Poster — Node.js + Dropbox + instagram-private-api | |
* | |
* This script: | |
* - Pulls a random image from your Dropbox `/Public` folder | |
* - Posts it to Instagram using instagram-private-api | |
* - Adds a random emoji-only caption | |
* - Deletes the file from Dropbox after posting | |
* - Runs daily with PM2 cron scheduling | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function FlowStateRadio() { | |
const [selectedButton, setSelectedButton] = useState(0); | |
const { data: user, isLoading } = useUserData(); | |
const buttons: ButtonConfig[] = [ | |
{ type: 'music', label: 'MUSIC' }, | |
{ type: 'ambient', label: 'MUSIC + AMBIENT BREAKS' }, | |
{ type: 'talk', label: 'MUSIC + TALK BREAKS', requiresAuth: true }, | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"status": true, | |
"application_type": { | |
"id": 31, | |
"pages": [ | |
{ | |
"id": 79, | |
"position": 1, | |
"sections": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Trade { | |
id: string | |
security: Security | |
strategy: Strategy | |
legs: Legs[] | |
} | |
interface TradePosition { | |
id: string | |
portfolioId: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Trade { | |
id: string | |
security: Security | |
strategy: Strategy | |
legs: Legs[] | |
} | |
interface TradePosition { | |
id: string | |
portfolioId?: string // null until order FILLED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func onClick(_ sender: UIView) { | |
guard let currentRadioButton = sender as? RadioButton else { | |
return | |
} | |
[ | |
radioButton1, | |
radioButton2 | |
].forEach { $0.isChecked = false } // Set all to unchecked first | |
currentRadioButton.isChecked = !currentRadioButton.isChecked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func onClick(_ sender: UIView) { | |
guard let currentRadioButton = sender as? RadioButton else { | |
return | |
} | |
[ | |
radioButton1, | |
radioButton2 | |
].forEach { $0.isChecked = false } // Set all to unchecked first | |
currentRadioButton.isChecked = !currentRadioButton.isChecked |
NewerOlder