Skip to content

Instantly share code, notes, and snippets.

View viticci's full-sized avatar

Federico Viticci viticci

View GitHub Profile
@viticci
viticci / SaveImage.py
Created January 23, 2014 19:41
SaveImage
import clipboard
import urllib
import Image
import photos
import cStringIO
# Given an image URL in the clipboard, save the image to the iOS Camera Roll with Pythonista. Simple script with no error checks or other settings.
URL = clipboard.get()
@viticci
viticci / CleanURL.py
Created January 23, 2014 20:59
CleanURL
import re
import string
import console
import urllib
import sys
import clipboard
import webbrowser
console.clear()
@viticci
viticci / Launch Center Pro action menu
Created February 4, 2014 16:18
iOS bookmarklet for Launch Center Pro
javascript:window.location='launchpro://?url='+encodeURIComponent('launchpro://?url=[list:URL: ' +location.href+'|🔵 Tweetbot=tweetbot://viticci/post?text={{'+location.href+'}}|📌 Pinswift=pinswift://x-callback-url/add?url={{'+location.href+'}}|✅ To Check Out=drafts://x-callback-url/create?text={{'+location.href+'}}&action={{Stuff To Check Out}}|🔴 Reminder=fantastical2://parse?sentence={{'+location.href+'}}&reminder=1|🔒 Open In 1Password=op'+location.href+'|🔗 Clean Link=clean-links://x-callback-url/clean?url={{'+location.href+'}}]')
@viticci
viticci / Combine 3.py
Created November 18, 2014 14:37
Combine 3.py
import Image
import photos
import console
import ImageOps
# Pick screenshots to combine
screenshot1 = photos.pick_image(show_albums=True)
screenshot2 = photos.pick_image(show_albums=True)
screenshot3 = photos.pick_image(show_albums=True)
@viticci
viticci / Selection.py
Created November 19, 2015 13:00
Selection.py
# coding: utf-8
import sys
import html2text
import clipboard
import webbrowser
webpage = clipboard.get()
text = sys.argv[1]
@viticci
viticci / Selection.py
Created November 24, 2015 03:15
Selection.py
# coding: utf-8
import sys
import html2text
import clipboard
import webbrowser
webpage = clipboard.get()
text = sys.argv[1]
@viticci
viticci / YouTubeRSS.py
Created January 21, 2016 21:41
YouTubeRSS.py
from bs4 import BeautifulSoup
import urllib2
import appex
import dialogs
import clipboard
channel = appex.get_url()
webpage = urllib2.urlopen(channel)
soup = parser(webpage)

Keybase proof

I hereby claim:

  • I am viticci on github.
  • I am viticci (https://keybase.io/viticci) on keybase.
  • I have a public key whose fingerprint is F029 AA25 C957 6E1D EB1C 2BB8 9AD5 35D8 1FB1 2B13

To claim this, I am signing this object:

// A clipping object is a JavaScript object that contains the following properties. Properties values may be null.
// title - String
// text - String
// url - String
// saveDate - Date
// Merge function receives an array of clipping objects and returns the merged string
function merge(clippings) {
var merged = clippings.reduce(function(string, clipping) {