Skip to content

Instantly share code, notes, and snippets.

View bobbyflowstate's full-sized avatar
🌊
In Flow

bobby bobbyflowstate

🌊
In Flow
View GitHub Profile
@bobbyflowstate
bobbyflowstate / postToInstagram.js
Last active March 25, 2025 21:33
Automated Instagram Poster — Node.js + Dropbox + instagram-private-api
/**
* 🤖 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
*
@bobbyflowstate
bobbyflowstate / FlowStateRadio.tsx
Created January 27, 2025 17:02
Flow State Radio - designed to help you focus and flow
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 },
];
//
// ActionFooterView.swift
// Alpha
//
// Created by Ian Mendiola on 5/21/20.
// Copyright © 2020 Open Advisers LLC. All rights reserved.
//
import Foundation
import UIKit
@bobbyflowstate
bobbyflowstate / orbis-form.json
Created March 26, 2020 18:31
Super Abstractions Branch Orbis Application Form
{
"status": true,
"application_type": {
"id": 31,
"pages": [
{
"id": 79,
"position": 1,
"sections": [
{
@bobbyflowstate
bobbyflowstate / portfolio-db-v2.ts
Last active January 22, 2020 19:07
Portfolio Positions Orders Trades
interface Trade {
id: string
security: Security
strategy: Strategy
legs: Legs[]
}
interface TradePosition {
id: string
portfolioId: string
@bobbyflowstate
bobbyflowstate / portfolio-db.ts
Last active January 22, 2020 19:07
Portfolio Positions Orders Trades
interface Trade {
id: string
security: Security
strategy: Strategy
legs: Legs[]
}
interface TradePosition {
id: string
portfolioId?: string // null until order FILLED
@bobbyflowstate
bobbyflowstate / SingleChoiceOnClick.swift
Created January 14, 2020 16:54
OnClick example for single choice RadioButton group
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
@bobbyflowstate
bobbyflowstate / SingleChoiceOnClick.swift
Created January 14, 2020 16:54
OnClick example for single choice RadioButton group
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
@bobbyflowstate
bobbyflowstate / MyViewUsingDefaultRadioButton.swift
Last active January 17, 2020 02:47
View using DefaultRadioButton
class MyView: UIView, RadioButtonDelegate {
let radioButton = DefaultRadioButton()
override init(frame: CGRect) {
super.init(frame: frame)
radioButton.delegate = self
}
.
.
@bobbyflowstate
bobbyflowstate / MyViewUsingRadioButton.swift
Last active August 7, 2020 16:04
Example of RadioButton in use
class MyView: UIView, RadioButtonDelegate {
let radioButton = RadioButton()
override init(frame: CGRect) {
super.init(frame: frame)
radioButton.delegate = self
radioButton.checkedView = UIImageView.radioOn()
radioBUtton.uncheckedView = UIImageView.radioOff()
}