Skip to content

Instantly share code, notes, and snippets.

Federico Viticci viticci

Block or report user

Report or block viticci

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Copied Markdown Title List Merge.js
// 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) {
View keybase.md

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:

View 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)
View Selection.py
# coding: utf-8
import sys
import html2text
import clipboard
import webbrowser
webpage = clipboard.get()
text = sys.argv[1]
View Selection.py
# coding: utf-8
import sys
import html2text
import clipboard
import webbrowser
webpage = clipboard.get()
text = sys.argv[1]
View 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 / Launch Center Pro action menu
Created Feb 4, 2014
iOS bookmarklet for Launch Center Pro
View Launch Center Pro action menu
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+'}}]')
View CleanURL.py
import re
import string
import console
import urllib
import sys
import clipboard
import webbrowser
console.clear()
View SaveImage.py
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()
You can’t perform that action at this time.