Skip to content

Instantly share code, notes, and snippets.

View timonus's full-sized avatar

Tim Johnsen timonus

View GitHub Profile
@timonus
timonus / visualize-ipa.py
Last active July 24, 2016 20:14
.ipa Visualizer
import sys
import subprocess
import re
import os
import shutil
if len(sys.argv) < 2:
print "No path specified"
sys.exit()
@timonus
timonus / bookmarklets
Last active August 29, 2015 14:05
Bookmarklets
Open Tweet in Tweetbot:
javascript:var url = window.location;var tweetRegex = new RegExp('https?://(www.|mobile.)?twitter.com/.*/status/([0-9]{18})(/.*)?');var tweetIdentifier = url.match(tweetRegex)[2];window.location='tweetbot:///status/' + tweetIdentifier;
@timonus
timonus / flipboard-native-bookmarklet
Last active August 29, 2015 14:05
Flipboard Native Bookmarklet
// This is a bookmarklet that launches Flipboard and allows you to save to one of your magazines
// Note: We also have a dedicated web bookmarklet available at https://share.flipboard.com/
// Steps to install
// 1. Open Safari and save any page to your bookmarks
// 2. Edit the bookmark you made and paste in the following Javascript in the URL field
javascript:var url=encodeURIComponent(window.location);window.location='flip-api-v1://x-callback-url/flip?url='+url+'&x-success='+url+'&x-cancel='+url+'&x-error='+url;
// Here's a video of how it's done https://www.dropbox.com/s/lhfcxk2jcvkr5eq/flipboard-native-bookmarklet.mov
@timonus
timonus / flipboard-ios-api.md
Created November 7, 2013 17:33
Flipboard iOS x-callback-url Support

Flipboard iOS x-callback-url Support

As of Flipboard for iOS 2.1, Flipboard supports the x-callback-url protocol for some actions.

Added in Flipboard 2.1 (URL scheme flip-api-v1)

You can use the scheme flip-api-v1 or flipboard-x-callback with action flip to launch the app and open our UI for flipping items into user magazines.