Skip to content

Instantly share code, notes, and snippets.

@jrop
jrop / q-while.js
Last active August 29, 2015 14:20
Q.while
var Q = require('q')
Q.while = (conditionCallback, stepCallback) => {
var deferredWhile = Q.defer()
//
// CONDITION
//
// This is where the condition checking happens:
// 1) check the conditional
@jrop
jrop / iab.js
Created April 11, 2014 18:35
cordova-in-app-browser-utilities
/*
* Utilities for managing popups easily in Apache Cordova
* Use like:
*
* ...
* <script src="path/to/cordova.js"></script>
* <script src="path/to/this/file/iab.js"></script>
* ...
*
* Also, be sure that the InAppBrowser plugin is