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
remind me | |
dialog.ask("When do you want to be reminded?","","use military time e.g. 15:20", function (time) { | |
reminder = op.getLineText(); | |
dialog.alert("You have asked to be reminded to " + reminder + " at " + time + " today"); | |
var myVar=setInterval(function(){myTimer()},60000); | |
function myTimer() { | |
var now = clock.now().toString(); | |
var date = clock.now().toDateString(); | |
var due = date + " " + time + ":00 GMT-0500 (EST)"; | |
if (now > due) { dialog.alert (reminder); clearInterval(myVar); } |
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
# Source: http://gimi.name/snippets/uploads/urlencode.sed | |
s/%/%25/g | |
s/ /%20/g | |
s/ /%09/g | |
s/!/%21/g | |
s/"/%22/g | |
s/#/%23/g | |
s/\$/%24/g | |
s/\&/%26/g | |
s/'\''/%27/g |
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
#! /bin/bash | |
encodedmessage=$(echo "$message" | sed -f urlencode.sed) | |
encodedaction=$(echo "$action" | sed -f urlencode.sed) | |
curl -s \ | |
-F "token=$APP_TOKEN" \ | |
-F "user=$USER_KEY" \ | |
-F "message=drafts:///create?text=$encodedmessage&action=$encodedaction" \ | |
https://api.pushover.net/1/messages.json |
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
javascript:(function%20pushoverBookmarklet()%20%7B%20%20%20%20%20%20%20%20%20%20%20%20function%20pushoverNotification(token,%20user,%20title,%20message,%20url)%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20params%20%3D%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20token:%20token%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20,%20user:%20user%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20,%20title:%20title%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20,%20message:%20message%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20,%20url:%20url%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20data%20%3D%20%221%3D1%22%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20for%20(var%20key%20in%20params)%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20data%20%2B%3D%20%22%26%22%20%2B%20key%20%2B%20%22%3D%22%20%2B%20params%5Bkey%5D%3B%20%20%20%20%20%20%20%20%20%20%20%20%20%2 |
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
javascript:window.location='drafts://x-callback-url/create?text=text%3D%22'+encodeURIComponent(document.title)+'%22%20url%3D%22'+encodeURIComponent(location.href)+'%22&action=opml' |
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
javascript:window.location='drafts://x-callback-url/create?text=%5B'+encodeURIComponent(document.title)+'%5D('+encodeURIComponent(location.href)+')&action=Copy%20to%20Clipboard' |
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
javascript:alert('<opml><body><outline text="'+document.title+'" _note="'+location.href+'"/></body></opml>'); |
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 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'] |
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
<?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 <a href=http://google.com">link</a>"/> | |
</body> |
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
javascript:alert('<opml><body><outline text="<a href='+location.href+'>'+document.title+'</a>"><outline text="'+window.getSelection()+'" icon="quote-left"/></outline></body></opml>'); |
NewerOlder