Skip to content

Instantly share code, notes, and snippets.

View kjaymiller's full-sized avatar
🤔

Jay Miller kjaymiller

🤔
View GitHub Profile
@kjaymiller
kjaymiller / parser.py
Last active December 5, 2020 20:26
Parsing links from zoom chat
"""
Instructions:
Download the Zoom Chat before the meeting ends and save it to the directory (the name is the default).
TODO: Make a CLI script and allow for custom input file.
"""
from validators.url import url
with open('meeting_saved_chat.txt') as f:
@kjaymiller
kjaymiller / clapper.py
Created November 15, 2020 03:04
Convert input to to UPPERCASE with CLAPPING EMOJIS
"""Directions.
1. pip install typer
"""
import typer
app = typer.Typer()
@app.command()
def main(sentence:str):
@kjaymiller
kjaymiller / gen_images.py
Created June 26, 2020 14:17
Processing Images
from PIL import ImageDraw, ImageFont, Image
import episode_dl
import re
feed = '<Podcast Feed>'
pod = episode_dl.get_episodes(feed)
# Custom Code for splitting the text so that it fits on the image
# Play around with the base_n
@kjaymiller
kjaymiller / hover.html
Last active June 16, 2020 14:58
Details on Hover
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="style.css"
</head>
<body>
<div class="flex">
<div class="flex-content">
@kjaymiller
kjaymiller / simple_accordion.html
Created April 3, 2020 16:21
Simple HTML Accordion
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="simple_accordion.css">
<style rel="stylesheet" type="text/css">
.section {
margin: 5em;
}
@kjaymiller
kjaymiller / git_commands.nvim
Last active October 23, 2019 21:25
Git Commands for NeoVim
"Git Commands Add these to your neovim configuration
"Run git status (Entire Repo)
cnoremap gs !git status
"Git Diff Commands
"Git Diff of Single File
cnoremap gd<SPACE> !git diff %
"Git Diff of (Entire Repo)
cnoremap gdd !git diff
@kjaymiller
kjaymiller / Share to Facebook Pages
Last active October 4, 2019 22:26
Podcast Marketing Scripts
import requests
def publish_to_facebook_page(
message,
link,
*,
access_token,
page_id,
publish_datetime=None,
published=False,
@kjaymiller
kjaymiller / get_title.py
Created July 29, 2019 21:03
Shownoter - Get Title by URL
from requests_html import HTMLSession
import sys
url = sys.argv[1]
session = HTMLSession().get(url, verify=False)
session.html.render()
sys.stdout.write(session.html.find('title', first=True).text)
@kjaymiller
kjaymiller / Pipfile
Last active July 29, 2019 19:17
Weekly Update Keyboard Maestro + Quickly Get a Date with Python
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
[[source]]
name = "pythonhosted"
url = "https://files.pythonhosted.org"
[dev-packages]
@kjaymiller
kjaymiller / watermarker.py
Last active July 18, 2019 23:23
Productivity in Tech More Productive Stamp Script
from PIL import Image, ImageDraw, ImageFont
from sys import argv
def watermark_with_transparency(base_image_path,
output_image_path,
watermark_image_path,
title,
position):
base_image = Image.open(base_image_path)
podcast_rez_image = base_image.resize((4000,4000))