Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@e2po
e2po / app-min-android-version-fetcher.py
Created September 3, 2021 14:42
Python script to fetch min Android version of an app directly from Google Play Store
import requests
import csv
import sys
import pandas
from google_play_scraper import app
def min_os_ver(app_id):
print('fetching min os version for app id: ' + str(app_id))
try:
return app(app_id, lang = 'en', country = 'us')['androidVersion']
@e2po
e2po / app-min-ios-version-fetcher.py
Last active September 12, 2023 11:07
Python script to fetch min iOS version of an app directly from App Store
import requests
import csv
import sys
import pandas
def min_os_ver(app_id):
print('fetching min os version for app id: ' + str(app_id))
with requests.get("https://itunes.apple.com/lookup?id=" + str(app_id)) as r:
for result in r.json()["results"]:
return result["minimumOsVersion"]
@e2po
e2po / index.ts
Created May 14, 2018 14:56
Zendesk FCM Cloud Function
import * as functions from 'firebase-functions'
const admin = require('firebase-admin')
admin.initializeApp(functions.config().firebase)
export const pushUpdates = functions.https.onRequest((request, response) => {
const tokens = request.body.devices.map(d => d.identifier)
const payload = {
data: {
title: request.body.notification.title,
ticket_id: request.body.notification.ticket_id
@e2po
e2po / gist:bc2753b68475e80ec8a31c4f5a399d6a
Created December 7, 2016 09:39 — forked from dodyg/gist:5823184
Kotlin Programming Language Cheat Sheet Part 1

#Intro

Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3

Kotlin project website is at kotlin.jetbrains.org.

All the codes here can be copied and run on Kotlin online editor.

Let's get started.