Find out what version of PHP is running
which php
This will output the path to the default PHP install which comes preinstalled by Mac OS X, by default
| import json | |
| from urllib.request import urlopen | |
| from collections import namedtuple | |
| class Estación(namedtuple('Estación', 'nombre estación id')): | |
| ARTIGAS = 16 | |
| RIVERA = 235 | |
| MELO = 160 | |
| SALTO = 239 | |
| YOUNG = 293 |
| package com.example.sherryy.notificationsampleapp; | |
| import android.app.NotificationManager; | |
| import android.app.PendingIntent; | |
| import android.content.Intent; | |
| import android.os.Bundle; | |
| import android.support.v4.app.NotificationCompat; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.text.format.DateUtils; | |
| import android.view.View; |
| package ru.moneyhoney.playground.util; | |
| import com.google.android.gms.ads.AdListener; | |
| import com.google.android.gms.ads.AdRequest; | |
| import com.google.android.gms.ads.InterstitialAd; | |
| import ru.moneyhoney.playground.R; | |
| /* This is singleton class for loading AdMob ads | |
| * Note: before call getAd() method call updateAd() */ |
| Download Google Drive files with WGET | |
| Example Google Drive download link: | |
| https://docs.google.com/open?id=[ID] | |
| To download the file with WGET you need to use this link: | |
| https://googledrive.com/host/[ID] | |
| Example WGET command: |
| // Usage: | |
| // blacklist | |
| String[] blacklist = new String[]{"com.any.package", "net.other.package"}; | |
| // your share intent | |
| Intent intent = new Intent(Intent.ACTION_SEND); | |
| intent.setType("text/plain"); | |
| intent.putExtra(Intent.EXTRA_TEXT, "some text"); | |
| intent.putExtra(android.content.Intent.EXTRA_SUBJECT, "a subject"); | |
| // ... anything else you want to add | |
| // invoke custom chooser |
| <?php | |
| /** | |
| * money_format() by Rafael M. Salvioni | |
| * Source: http://php.net/manual/en/function.money-format.php#89060 | |
| * | |
| * | |
| * That it is an implementation of the function money_format for the | |
| * platforms that do not it bear. | |
| * | |
| * The function accepts to same string of format accepts for the |
| // 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 | |
| // |