This file contains hidden or 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 webbrowser, os, pprint | |
# Include the Dropbox SDK libraries | |
#from dropbox import client, rest, session | |
import dropbox | |
# Configuration | |
TOKEN_FILENAME = 'PythonistaDropbox.token' | |
# Get your app key and secret from the Dropbox developer website | |
APP_KEY = '<your dropbox app_key>' | |
APP_SECRET = '<your dropbox app_secret>' |
This file contains hidden or 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
MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init]; | |
picker.messageComposeDelegate = self; | |
picker.recipients = [NSArray arrayWithObject:@"48151623"]; | |
picker.body = @"Body text."; | |
[self presentModalViewController:picker animated:YES]; | |
[picker release]; |
This file contains hidden or 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} | |
using terms from application "Finder" | |
set filepath to POSIX path of input | |
do shell script "open '" & filepath & "'" with administrator privileges | |
end using terms from | |
end run |
This file contains hidden or 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 | |
USER_TOKEN = u'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' #replace with your user key | |
APP_TOKEN = u'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' #replace with your APP token/key | |
HEADERS = { "Content-type": "application/x-www-form-urlencoded" } | |
def sendPush(message, title, url, url_title): | |
parameters = { u'token': APP_TOKEN, | |
u'user': USER_TOKEN, |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import requests, json, webbrowser, urllib, sys | |
API_KEY = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' # Get your api key from https://code.google.com/apis/console/, you MUST add the Places API permission to it | |
GOOGLE_PLACES_URI = 'https://maps.googleapis.com/maps/api/place/textsearch/json?query={0}&sensor=false&key={1}' | |
APPLE_MAPS_URI = 'safari-http://maps.apple.com/?q={0}' | |
#call this script in pythonista for ios pythonista://GoogleToAppleMaps?action=run&argv=[prompt] | |
def main(): |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>iTunes Live Tile</title> | |
</head> | |
<body> | |
<div id='iltdemo'> | |
Icon: <img id='image'></img><br/> | |
Name: <span id='name'></span><br/> |
This file contains hidden or 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
<?php | |
function qr($atts, $content=null) { | |
extract(shortcode_atts( array('url' => ''), $atts)); | |
$googleurl = 'https://chart.googleapis.com/chart?chs=250x250&cht=qr&chl=' . urlencode($url); | |
return '<img src="' . $googleurl . '" />'; | |
} | |
add_shortcode('qr', 'qr'); | |
?> |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import urllib | |
import random | |
import webbrowser | |
import types | |
SMS_URL_SCHEME = "launchpro-messaging://?to=[PHONE_HERE]&body={0}" | |
TEMPLATES = [ |
This file contains hidden or 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
#! /usr/bin/env python | |
import pushover | |
import sys | |
import datetime | |
import dateutil.parser | |
import urllib | |
DUE_URL = "due://x-callback-url/add?title={0}&duedate={1}&timezone=GMT" |
This file contains hidden or 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
#!/usr/bin/python | |
import sys | |
import os, shutil | |
import subprocess | |
import os.path | |
from datetime import datetime | |
######################## Functions ######################### |
OlderNewer