Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="utf-8"?>
<opml version="1.0">
<head>
<title>OmniTest</title>
<expansionState>0</expansionState>
</head>
<body>
<outline text="Google" url="http://google.com" type="link"/>
<outline text="It is a &lt;a href=http://google.com&quot;&gt;link&lt;/a&gt;"/>
</body>
javascript:alert('<opml><body><outline text="'+document.title+'" _note="'+location.href+'"/></body></opml>');
import requests
import json
import sys
import urllib
import webbrowser
searchTitle = sys.argv[1]
newSearchTitle = urllib.quote(searchTitle, '')
searchYear = sys.argv[2]
data = requests.request('GET','http://www.omdbapi.com/?t=' + newSearchTitle + '&y=' + searchYear + '&r=json&tomatoes=true')
if data.status_code == 200:
@jkishner
jkishner / instagramImage.py
Last active August 3, 2016 04:59
instagramImage.py
import requests
import json
import sys
import urllib
import webbrowser
url = sys.argv[1]
data = requests.request('GET','http://api.instagram.com/publicapi/oembed/?url=' + url)
if data.status_code == 200:
embed = json.loads(data.text)
img = embed['thumbnail_url']
import reminders
import editor
editor.insert_text('# TV Shows to Watch')
editor.insert_text('\n\n')
cals = reminders.get_all_calendars()
for calendar in cals:
if calendar.title == 'tv':
@jkishner
jkishner / add to wallabag
Created April 1, 2015 18:41
some javascript. enter a link to add to your wallabag installation
<html>
<body>
<script>
function convert(form) {
var url = form.url.value;
url = btoa(url);
window.open("http://YOURDOMAIN.com/wallabag/?action=add&autoclose=true&url=" + url);
}
</script>
@jkishner
jkishner / wallabag
Last active August 29, 2015 14:18
import a link on the iOS clipboard into wallabag via pythonista
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# I am more than likely importing more libraries than are necessary
import urllib2
import urllib
import re
import clipboard
import urlparse
import notification
<!DOCTYPE html>
<html lang="en">
<head>
<title>spotify for status board</title>
</head>
<body onload="spotifyAlbum()">
<script>
function spotifyAlbum() {
var xmlhttp = new XMLHttpRequest();
var url = "https://api.spotify.com/v1/albums/?ids="; // PUT ALBUM IDS, COMMA-DELIMITED, AFTER THE EQUALS SIGN AND BEFORE THE CLOSING QUOTE
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<script>
function daveRiver(form) {
var xmlhttp = new XMLHttpRequest();
var url = form.item.value;
<?xml version="1.0"?>
<opml version="2.0">
<head>
<ownerEmail>jeffreykishner@gmail.com</ownerEmail>
</head>
<body>
<outline text="search" >
<outline text="📌" _note="https://workflowy.com/#/?q=%F0%9F%93%8C" /></outline>
</body>
</opml>