Skip to content

Instantly share code, notes, and snippets.

View bienvenuelisis's full-sized avatar
🎯
Focusing

Kokou AGBAVON bienvenuelisis

🎯
Focusing
View GitHub Profile
@bienvenuelisis
bienvenuelisis / variousCountryListFormats.js
Created May 16, 2022 10:28 — forked from incredimike/variousCountryListFormats.js
List of Countries in various Javascript data structures: Alphabetical country lists & Country data objects.
// Lists of countries with ISO 3166 codes, presented in various formats.
// Last Updated: July 30, 2020
// If you're using PHP, I suggest checking out:
// https://github.com/thephpleague/iso3166
// or Laravel: https://github.com/squirephp/squire
//
// JS developers can check out:
// https://www.npmjs.com/package/iso3166-2-db
//
@bienvenuelisis
bienvenuelisis / MainActivity.java
Created April 22, 2022 08:22 — forked from jaekook/MainActivity.java
Android: How to collect the response of a USSD request (Including multi-session requests)
//Get the instance of TelephonyManager
final TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
try {
if (tm != null) {
Class telephonyManagerClass = Class.forName(tm.getClass().getName());
if (telephonyManagerClass != null) {
Method getITelephony = telephonyManagerClass.getDeclaredMethod("getITelephony");