This file contains hidden or 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
"scripts": { | |
"start": "expo start", | |
"lint": "eslint . --ext .js,.jsx,.ts,.tsx", | |
"android": "expo run:android", | |
"ios": "expo run:ios", | |
"android:dev": "expo run:android --device", | |
"ios:dev": "expo run:ios --device", | |
"web": "expo start --web", | |
"deploy": "npx expo export -p web && npx eas-cli@latest deploy", | |
"tunnel": "npx expo start --tunnel -c", |
This file contains hidden or 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
from fastapi import FastAPI, HTTPException | |
from pydantic import BaseModel, Field | |
from typing import List, Optional, Dict, Any | |
from fast_hotels import HotelData, Guests, get_hotels | |
from fast_flights import FlightData, Passengers, get_flights | |
import logging | |
import re | |
import pandas as pd | |
# Helper functions for parsing price and stops |
This file contains hidden or 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
from fastapi import FastAPI, UploadFile, File, HTTPException | |
from fastapi.middleware.cors import CORSMiddleware | |
from fastapi.responses import JSONResponse | |
from pydantic import BaseModel | |
from typing import Dict, Any, Optional, List | |
import subprocess | |
import re | |
import os | |
import json | |
import logging |
This file contains hidden or 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
from fastapi import FastAPI, HTTPException | |
from fastapi.middleware.cors import CORSMiddleware | |
from pydantic import BaseModel | |
import subprocess | |
import re | |
import os | |
# Clean the output of the goose command | |
def clean_goose_output(output: str) -> str: |
This file contains hidden or 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
from fastapi import FastAPI, HTTPException | |
from pydantic import BaseModel | |
import subprocess | |
app = FastAPI() | |
class GooseInput(BaseModel): | |
instructions: str | |
session_name: str = "api-session" |
This file contains hidden or 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
import requests | |
import json | |
import os | |
import dotenv | |
dotenv.load_dotenv() | |
# Surge API endpoint | |
url = "https://api.surge.app/messages" |
This file contains hidden or 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
import os | |
import sys | |
import logging | |
from datetime import datetime, timedelta | |
import requests | |
from dotenv import load_dotenv | |
import yfinance as yf | |
from collections import Counter, defaultdict | |
import re | |
from alpaca.trading.client import TradingClient |
This file contains hidden or 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
import os | |
import datetime | |
import codecs | |
import re | |
from decimal import Decimal | |
import numpy as np | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
import yfinance as yf | |
from ofxtools.Client import OFXClient, InvStmtRq |
This file contains hidden or 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
import asyncio | |
import os | |
import requests | |
from dotenv import load_dotenv | |
load_dotenv(override=True) | |
async def transfer_to_alpaca(amount, direction): | |
try: | |
direction = "INCOMING" if direction == "IN" else "OUTGOING" |
This file contains hidden or 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
import { AddressLookupTableAccount, Connection, PublicKey, PublicKeyInitData, TransactionInstruction } from "@solana/web3.js"; | |
// import { Metaplex } from "@metaplex-foundation/js"; | |
import Bottleneck from "bottleneck"; | |
import { | |
fetchDigitalAssetWithAssociatedToken, | |
mplTokenMetadata, | |
findMetadataPda} from '@metaplex-foundation/mpl-token-metadata' | |
import { fromWeb3JsPublicKey, toWeb3JsPublicKey } from '@metaplex-foundation/umi-web3js-adapters' | |
import { createUmi } from '@metaplex-foundation/umi-bundle-defaults' | |
import { fetchIpfsMetadata } from "./fetchIpfsMetadata"; |
NewerOlder