Skip to content

Instantly share code, notes, and snippets.

View adrianhopebailie's full-sized avatar
🇿🇦
building in Mzanzi

Adrian Hope-Bailie adrianhopebailie

🇿🇦
building in Mzanzi
View GitHub Profile
@adrianhopebailie
adrianhopebailie / env.list
Last active November 21, 2016 11:32
Sample ilp-kit config
API_DB_URI=postgres://<user>:<password>@localhost/ilpkit
API_GITHUB_CLIENT_ID=<github client id>
API_GITHUB_CLIENT_SECRET=<github client secret>
API_HOSTNAME=<domain name of ilp-kit instance>
API_MAILGUN_API_KEY=<mailgun api key>
API_MAILGUN_DOMAIN=<mailgun domain>
API_PORT=3100
API_PRIVATE_HOSTNAME=localhost
API_PUBLIC_HTTPS=1
API_PUBLIC_PATH=/api
self.addEventListener('install', function(event) {
// We pass a promise to event.waitUntil to signal how
// long install takes, and if it failed
event.waitUntil(
PaymentApp.register({
name: "AdrianPay",
start_url: "http://adrianpay.com/paymentapps",
enabled_methods: ["http://webpayments.org/payment-methods/card"]
}));
});
@adrianhopebailie
adrianhopebailie / javascript
Created March 6, 2009 09:37
Ready.mobi Ubiquity Command
CmdUtils.CreateCommand({
name: "ready",
icon: "http://ready.mobi/images/favicon.ico",
homepage: "http://ready.mobi/",
author: { name: "Adrian Hope-Bailie", email: "ahopebailie@mtld.mobi"},
license: "GPL",
description: "Checks the current page for mobile readiness",
help: "Simply run ready from any page and the current page will be checked for mobile readiness.",
takes: {"url": noun_type_url},
_readyURL: function(url){