This file contains 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
/*This script allows me to paste URL's into drafts to look at later in google chrome | |
This removes the "format://" from the URL */ | |
var x = draft.content | |
x = x.split("//") //The actual separation returns {format:,url} | |
draft.defineTag("split",x[1]) //enables the url to be added to url code | |
/*The Following is entered into a URL Action |
This file contains 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 json | |
with open('9E2fnCy5.json', 'r+') as f: | |
board = json.loads(f.read()) | |
def trello_attrs(): | |
print('Board Keys \n {} \n'.format(board.keys())) | |
print('Card Keys \n {} \n'.format(board['cards'][0].keys())) |
This file contains 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
""" | |
Takes files in a directory and strips out the html | |
created: 20160503 | |
by: Kevin 'Jay' Miller | |
[email protected] | |
Place this | |
""" | |
from os import listdir |
This file contains 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
""" | |
Make Schedule converts a list of items into a schedule to repeat on the same day. | |
I use this to get an idea of when my episodes are airing and to know what promotions to use when. | |
""" | |
from datetime import datetime, timedelta | |
def make_schedule(episodes, | |
release_day, | |
date_start=datetime.today(), |
This file contains 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 csv | |
import json | |
from sys import argv | |
import requests | |
base_request = 'http://api.zippopotam.us/us/' | |
# import the zip codes you will be looking for | |
with open(argv[1], 'r') as f: | |
reader = csv.reader(f) |
This file contains 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
secrets.py | |
*.md | |
__pycache__/ | |
bin/ | |
lib/ | |
pip-selfcheck.json | |
pyvenv.cfg |
This file contains 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
var text = prompt("Enter Your Tweet"); | |
var txt_split = text.match(/\(?[^\.\?\!]+[\.!\?]\)?/g); | |
txt_split = txt_split.map((e) => e.trim()); | |
txt_split; | |
var final_tweets = ['']; | |
for (i = 0, a = 0; a < txt_split.length;) { | |
if (txt_split[a].length + final_tweets[i].length < 135) { | |
final_tweets[i] = final_tweets[i] + txt_split[a]; | |
a++ | |
} |
This file contains 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
app = Application('Itunes'); | |
app.currentTrack.name() + ' by ' + app.currentTrack.artist() |
This file contains 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
on run {input, parameters} | |
set delimitedList to paragraphs of (input as string) | |
tell application "Things3" | |
repeat with currentTodo in reverse of delimitedList | |
set newToDo to make new to do with properties {name:currentTodo} at beginning of list "Inbox" | |
end repeat | |
end tell | |
end run |
OlderNewer