Skip to content

Instantly share code, notes, and snippets.

View ankurbhatia24's full-sized avatar
🎯
Focusing

Ankur Bhatia ankurbhatia24

🎯
Focusing
View GitHub Profile
@hannesdatta
hannesdatta / download_from_dropbox.py
Last active August 14, 2024 07:33
Python script to download entire folder/directory structure from a (shared) Dropbox folder to a local computer
################################################################
# DOWNLOAD ENTIRE FOLDER STRUCTURE FROM DROPBOX TO LOCAL DRIVE #
################################################################
# Instructions:
# (1) install dropbox API using pip
# > pip install dropbox
# (2) Create application to make requests to the Dropbox API
# - Go to: https://dropbox.com/developers/apps
@hosackm
hosackm / flaskaudiostream.py
Created September 2, 2015 22:30
Flask streaming an audio file
from flask import Flask, Response
app = Flask(__name__)
@app.route("/wav")
def streamwav():
def generate():
with open("signals/song.wav", "rb") as fwav:
data = fwav.read(1024)