Skip to content

Instantly share code, notes, and snippets.

View roy-bukapeta's full-sized avatar

Habib Royni Mujtahid roy-bukapeta

View GitHub Profile
<?php
function VowelSquare($strArr)
{
$vowel = ['a','i','u','e','o'];
for ($i=0; $i < count($strArr); $i++) {
$arr1[$i] = str_split($strArr[$i]);
for ($in=0; $in < count($arr1[$i]); $in++) {
$arr2[$i][$in] = $arr1[$i][$in];
}
};
<?php
function QuestionsMarks($str)
{
$arrString = preg_split('/[0-9]/', $str, -1, PREG_SPLIT_NO_EMPTY);
preg_match_all('/[0-9]/', $str, $arrNumber);
$arrNumber = $arrNumber[0];
for ($i=0; $i < count($arrNumber); $i++) {
if ($i < (count($arrNumber) - 1)) {
if (intval($arrNumber[$i]) + intval($arrNumber[($i + 1)]) <= 10 && substr_count($arrString[($i + 1)], '?') == 3) {
return 'true';
Implementasi di kilatVM cloudkilat :
1. masuk ke root directory apache2 atau /var/www/
2. wget raster.fotoudara.id/aplikasi-iuwash-plus.tar.gz
3. ekstrak berkas dengan perintah tar xvzf aplikasi-iuwash-plus.tar.gz
4. pindah folder iuwash-plus ke /var/www dengan perintah mv aplikasi-iuwash-plus/iuwash-plus/ ./
5. Ubah nama folder html menjadi html_old dengan perintah mv html html_old
6. Ubah nama folder iuwash-plus menjadi html dengan perintah mv iuwash-plus html
7. sudo apt-get update
8. sudo apt-get upgrade
9. sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql php7.0-mbstring

Paket Aplikasi website & mobile app untuk IUWASH

Isi Paket

  1. Folder iuwash-plus berisi seluruh paket untuk aplikasi web
  2. Folder database berisi berkas database
  3. Berkas iuwash_mobile.apk adalah aplikasi mobile android

Panduan instalasi aplikasi web

{
"Message": {
"Data": [{
"id": 202,
"coordinate_latitude": "-7.7308860730016",
"coordinate_longitude": "110.4333097376",
"created_at": "2018-02-06 06:31:40.348674+00",
"point": "0101000020E6100000209312666DEC1EC09002C458BB9B5B40",
"user_id": 17,
"columns_15157450795345": null,
@roy-bukapeta
roy-bukapeta / modeler_grab.sql
Created November 16, 2017 08:10
Update schema modeler grab
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.5.8
-- Dumped by pg_dump version 9.5.8
-- Started on 2017-11-16 15:08:46 WIB
SET client_encoding = 'UTF8';
@roy-bukapeta
roy-bukapeta / maps.sql
Last active November 10, 2017 06:30
Monggo kuh
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.5.8
-- Dumped by pg_dump version 9.5.8
-- Started on 2017-11-10 13:29:29 WIB
SET lock_timeout = 0;
@roy-bukapeta
roy-bukapeta / cacah_grab.txt
Created October 27, 2017 09:52
Cacah Grab
// Hitung jumlah data
$rows = file_get_contents($_POST['url'].'/'.$_POST['layer'].'/MapServer/'.$_POST['id'].'/query?where=1%3D1&returnCountOnly=true&f=pjson');
$row = json_decode($rows);
$jumlah = $row->count / 1000;
$jumlah = ceil($jumlah);
if ($row->count > 1000) {
$dataId = file_get_contents($_POST['url'].'/'.$_POST['layer'].'/MapServer/'.$_POST['id'].'/query?where=1%3D1&returnIdsOnly=true&f=pjson');
$dataId = json_decode($dataId);
$dataId = $dataId->objectIds;
{
"id": "peta-kerja",
"type": "fill",
"source": {
"type": "vector",
"tiles": [
"http://gas.bukapeta.com/bsr/render/859b611e-3c10-499d-ac79-ad90529820ce/cc1bcee1-c5f3-4f0b-830d-b490f9cc55fa/mvt/{z}/{x}/{y}.pbf"
]
},
"layers": [
{
"id": "peta-kerja",
"type": "fill",
"source": {
"type": "vector",
"tiles": [
"http://gas.bukapeta.com/bsr/render/859b611e-3c10-499d-ac79-ad90529820ce/cc1bcee1-c5f3-4f0b-830d-b490f9cc55fa/mvt/{z}/{x}/{y}.pbf"
]
},
"layout": {},