Skip to content

Instantly share code, notes, and snippets.

View mrhieu's full-sized avatar

Hieu Pham mrhieu

View GitHub Profile
@mrhieu
mrhieu / terminal.txt
Created January 24, 2019 08:08
List of branches that have been merged to develop and not on master
$ git log origin/master..origin/develop --oneline | grep "Merge pull request" | grep -v "from refuel4/master" | sed "s/.*from [^\/]*\//Branch: /g"
# Example output:
# Branch: fix/4031-batman-hits-a-car
# Branch: feature/3953-iron-man-works-hard
# Branch: fix/3995-global-warming
# Branch: feature/3953-deploy-rocket-to-mars
# Branch: fix/4024-deadpool-got-cancer
@mrhieu
mrhieu / index.ts
Created May 6, 2025 10:54 — forked from j3k0/index.ts
cordova-purchase-plugin v13 - micro example
document.addEventListener('deviceready', onDeviceReady);
function onDeviceReady() {
const store = CdvPurchase.store;
const { ProductType, Platform, LogLevel, Product, VerifiedReceipt } = CdvPurchase; // shortcuts
// We should first register all our products or we cannot use them in the app.
store.register([{
id: 'demo_monthly_basic',