Skip to content

Instantly share code, notes, and snippets.

Robert Gilliam rhgills

Block or report user

Report or block rhgills

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 generate-image-defines
#!/usr/bin/env python
import os.path as path
import string
import argparse
import glob
import re
import array
import os
View gist:5761416
When(/^I hit the home button and reopen the app later$/) do
def open_app_via_url
# you have to define a scheme to start your application, let's use app-scheme://
#this code creates a html page redirecting immediately to the given URL
html_format = "<!DOCTYPE HTML><html><head><title></title><meta http-equiv=\"refresh\" content=\"0;URL='%{LINK}'\"></head><body></body></html>"
html = html_format % { :LINK => 'x-yourapp://launch' }
You can’t perform that action at this time.