Skip to content

Instantly share code, notes, and snippets.

@dylanroy
dylanroy / sample.py
Last active April 4, 2023 01:48
Sample Gist Description
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def hello():
return render_template('template.html')
// Modified from @mutsuda's https://medium.com/@mutsuda/create-an-ios-widget-showing-google-spreadsheets-data-856767a9447e
// by @levelsio
// HOW TO
// 1) Make a Google Sheet, we'll pull the first cell e.g. A1
// 2) Publish your Google Sheet, File -> Publish To Web
// 3) Copy the SHEET_ID in the URL, put it in here below:
const endpoint = "https://spreadsheets.google.com/feeds/cells/SHEET_ID/1/public/full?alt=json"
// 4) Install Scriptable @ https://apps.apple.com/us/app/scriptable/id1405459188
// 5) Copy this entire script in to Scriptable (tip: you can send it to your iPhone via Whatsapp/Messenger/Telegram etc)
@dylanroy
dylanroy / Deploy to Google Cloud Run Using Github Actions
Created November 6, 2020 18:56
Deploy to Google Cloud Run Using Github Actions
Deploy to Google Cloud Run Using Github Actions
@dylanroy
dylanroy / Auto-Updating Your Github Readme With Python
Last active October 20, 2020 10:22
Auto-Updating Your Github Readme With Python
## Auto-Updating Your Github Readme With Python on Medium by Dylan Roy @ https://medium.com/@dylanroy
@dylanroy
dylanroy / Python CLI Library Showdown
Last active October 2, 2020 22:25
Python CLI Library Showdown
Medium Post
@dylanroy
dylanroy / requirements.txt
Created September 28, 2020 17:03
Code snippets from Medium Blog Post Track Your Expenses and Assets in a Google Sheet
plaid-python
pandas
currencyconverter
gspread
gspread-dataframe
oauth2client
@dylanroy
dylanroy / sample_architecture_diagram.py
Created September 24, 2020 14:41
Code snippets from Medium Blog Post "Create Beautiful Architecture Diagrams with Python"
from diagrams import Cluster, Diagram
from diagrams.gcp.analytics import BigQuery, Dataflow, PubSub
from diagrams.gcp.compute import AppEngine, Functions
from diagrams.gcp.database import BigTable
from diagrams.gcp.iot import IotCore
from diagrams.gcp.storage import GCS
with Diagram("Media Monitoring Storage Architecture", show=False) as med_diag:
pubsub = PubSub("pubsub")
flow = Dataflow("DataFlow")
@dylanroy
dylanroy / Sample Architecture Diagram
Last active April 2, 2024 15:01
Code snippets from Medium Blog Post Create Beautiful Architecture Diagrams with Python
from diagrams import Cluster, Diagram
from diagrams.gcp.analytics import BigQuery, Dataflow, PubSub
from diagrams.gcp.compute import AppEngine, Functions
from diagrams.gcp.database import BigTable
from diagrams.gcp.iot import IotCore
from diagrams.gcp.storage import GCS
with Diagram("Media Monitoring Storage Architecture", show=False) as med_diag:
pubsub = PubSub("pubsub")
flow = Dataflow("DataFlow")
@dylanroy
dylanroy / histdel.sh
Last active June 22, 2016 17:49
Example Usage: histdel.sh www.domain.com
#!/bin/bash
DATABASE=~/Library/Application\ Support/Google/Chrome/Default/History
URL=""
print_usage()
{
printf "usage: `basename $0` URL\n"
exit 1;
}