Skip to content

Instantly share code, notes, and snippets.

View AlifArnado's full-sized avatar

alif benden arnado AlifArnado

  • Ghost Protocol
  • Ghost City
View GitHub Profile
@AlifArnado
AlifArnado / Rupiah.as
Created November 28, 2019 06:38 — forked from faisalman/Rupiah.as
Konversi Angka ke format Rupiah & vice versa (C#, PHP, JavaScript, ActionScript 3.0)
package
{
/**
* ActionScript 3.0 Code Snippet
* Convert Number to Rupiah & vice versa
* https://gist.github.com/845309
*
* Copyright 2011-2012, Faisalman
* Licensed under The MIT License
* http://www.opensource.org/licenses/mit-license
@AlifArnado
AlifArnado / domisili_indonesia.php
Created October 2, 2019 05:17
- Domisili klo ada yang kurang bisa di tambahkan
<?php
$data = array( "Nanggroe Aceh Darussalam" =>
array("Kota Langsa",
"Kota Lhokseumawe",
"Kota Sabang",
"Kota Banda Aceh",
"Kab. Bener Meriah",
"Kab. Aceh Tamiang",
"Kab. Nagan Jaya",
"Kab. Aceh Jaya",
{
"Nanggroe Aceh Darussalam": [
"Kota Langsa",
"Kota Lhokseumawe",
"Kota Sabang",
"Kota Banda Aceh",
"Kab. Bener Meriah",
"Kab. Aceh Tamiang",
"Kab. Nagan Jaya",
"Kab. Aceh Jaya",
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
5653E0A0 BACE3948 BB2EE45E 422D2C87
@AlifArnado
AlifArnado / Lbs.php
Created July 10, 2019 04:28 — forked from amrishodiq/Lbs.php
PHP Code Igniter library class to get latitude & longitude, get address for specified latitude & longitude, get direction from one place to another place, and so on. Most LBS concept I implemented with PHP.
<?php
/**
* Written by Amri Shodiq.
* Do not hesitate to copy and paste this code.
* It's not embarassing.
*/
if (!defined('BASEPATH'))
exit ('No direct script access allowed');
@AlifArnado
AlifArnado / inde.php
Created December 26, 2018 07:47
Group Table Using JQuery
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link rel="stylesheet" href="">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
</head>
<body>
@AlifArnado
AlifArnado / index.php
Created December 26, 2018 07:03
Parsing data from popup and set data using text field
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Latest compiled and minified CSS & JS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<script src="//code.jquery.com/jquery.js"></script>
<?php
//format waktu: dd-mm-yyyy, misalnya: 31-12-2006
function Tampilkan_Hari($waktu)
{
$jhari = 0;
$array = explode("-", $waktu);
$tgl = $array[0];
$bln = $array[1];
@AlifArnado
AlifArnado / LICENCE SUBLIME TEXT
Created September 6, 2018 03:13
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
<?php
function penyebut($nilai) {
$nilai = abs($nilai);
$huruf = array("", "satu", "dua", "tiga", "empat", "lima", "enam", "tujuh", "delapan", "sembilan", "sepuluh", "sebelas");
$temp = "";
if ($nilai < 12) {
$temp = " ". $huruf[$nilai];
} else if ($nilai <20) {
$temp = penyebut($nilai - 10). " belas";