Skip to content

Instantly share code, notes, and snippets.

@oscarmorrison
oscarmorrison / IFTTTDate.md
Last active January 29, 2025 23:07
Make IFTTT Date Format play nice with Google Spreadsheets

##Date and Time

=TIMEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " ")) + DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))

##Date

=DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))

##Time

@omz
omz / Add Web Tab.py
Last active November 16, 2025 11:16 — forked from steventroughtonsmith/Add Web Tab.py
Insert a custom browser tab into Pythonista
# coding: utf-8
from objc_util import *
import console
import urllib
import dialogs
WKWebView = ObjCClass('WKWebView')
UIViewController = ObjCClass('UIViewController')
UIBarButtonItem = ObjCClass('UIBarButtonItem')
NSURLRequest = ObjCClass('NSURLRequest')
@Plutor
Plutor / code.py
Last active February 12, 2018 20:13
Fastest posted /r/nfl posts in the last year that linked to tweets
#!/usr/bin/python
import datetime
import json
import re
import requests
import time
USER_AGENT_HEADER = {'User-Agent': 'nfl-fast-tweets/1.0'}
#facebook marketplace
from selenium import webdriver
from time import sleep
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from pymongo import MongoClient
class App:
@schl3ck
schl3ck / Import Script from Gist.js
Last active July 11, 2025 14:31
Easily import Scriptable Scripts from Github Gists
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: yellow; icon-glyph: download;
// share-sheet-inputs: url;
/********************************************
* *
* Import Script from Gist *
* *
* This script imports files from a Github *
* Gist. *
@schl3ck
schl3ck / AppWatcher.js
Last active November 23, 2025 20:03
iOS Scriptable script to track the price and in-app purchases of your favourite apps
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: blue; icon-glyph: laptop-code;
// share-sheet-inputs: url;
/*******************************************
* *
* /\ *
* / \ _ __ _ __ *
* / /\ \ | '_ \| '_ \ *
* / ____ \| |_) | |_) | *
@larsenv
larsenv / pbskids.py
Last active November 25, 2025 08:30
PBS Kids Video Downloader
import json
import requests
import subprocess
import re
home = requests.get("https://content.services.pbskids.org/v2/kidspbsorg/home/").text
home = json.loads(home)
shows = {}
episodes = {}