Skip to content

Instantly share code, notes, and snippets.

@syahzul
syahzul / how-to-install-oci8-on-macos-10.15-catalina-with-php-7.3-7.4-homebrew.md
Last active May 10, 2024 20:22
How to install OCI8 on macOS 10.15 (Catalina) with PHP 7.3 or 7.4 (Homebrew)

How to install OCI8 on macOS 10.15 (Catalina) with PHP 7.3 or 7.4

Requirements

  • Homebrew
  • Command Line Tools for Xcode
  • PHP 7.3 or 7.4 via Homebrew

Preparation

package com.codingwithmitch.googlemaps2018.services;
import android.Manifest;
import android.app.Notification;
import android.app.NotificationChannel;
import android.app.NotificationManager;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
private boolean checkMapServices(){
if(isServicesOK()){
if(isMapsEnabled()){
return true;
}
}
return false;
}
private void buildAlertMessageNoGps() {
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/White">
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
@faizshukri
faizshukri / Eja_Nombor.md
Last active March 27, 2024 05:37
Convert numbers to Malay/Malaysia/Malaysian or Indonesia/Indonesian Language in PHP.

Convert numbers to Malay/Malaysia/Malaysian or Indonesia/Indonesian Language in PHP.

How to use

$number = new Eja_Nombor();
$number->eja(1468); //seribu empat ratus enam puluh lapan

or even in comma separated string value

$number-&gt;eja('458,139'); //empat ratus lima puluh lapan ribu seratus tiga puluh sembilan