Skip to content

Instantly share code, notes, and snippets.

View ilhamarrouf's full-sized avatar
🏠
Working from home

Ilham Arrouf ilhamarrouf

🏠
Working from home
View GitHub Profile
@ilhamarrouf
ilhamarrouf / toko.rb
Created October 23, 2017 11:21
Ruby: Applikasi toko simple
bill = 0
products = {}
products[:a] = {:nama => 'sampo', :harga => 25000}
products[:b] = {:nama => 'sikat gigi', :harga => 10000}
products[:c] = {:nama => 'air mineral', :harga => 3000}
products[:d] = {:nama => 'gelas', :harga => 4000}
products[:e] = {:nama => 'piring', :harga => 7000}
loop do
products.each do |key, product|
@ilhamarrouf
ilhamarrouf / git.md
Created August 31, 2017 10:22 — forked from akuikialie/git.md
Start Your Project Wit GIT

How To Start Project With GIT

<GIT List Command>

  • Stage #1
    • git init - URL
    • git clone - URL
    • git config - URL
    • git add - URL
  • git commit - URL

All About PHP

<_List Material on PHP _>

  • Pengenalan
    • Bahasa pemrograman
    • Web : browser, server
    • HTML
    • Server side processing / dynamic web
@ilhamarrouf
ilhamarrouf / README.md
Last active September 29, 2024 11:58
DOCS API ONGKIR

1. Province

Method "province" digunakan untuk mendapatkan daftar propinsi yang ada di Indonesia.

GET cekongkir.mlopp.com/api/province

Parameters

Method Param Wajib Type Description
GET/HEAD android-key Tidak String Identitas aplikasi Android
GET/HEAD ios-key Tidak String Identitas aplikasi IOS
<?php
class A
{
public $foo = 1;
}
$a = new A;
$b = $a; // $a and $b are copies of the same identifier
// ($a) = ($b) = <id>
<?php
//Class where we are going to implement typehinting
class Typehinting_Test
{
//Implementation Type Hinting in PHP
//Forcing to pass argument as object of class Test1
public function type_hint_method(Test1 $parameter)
{
$parameter->test_method();
}
<?php
function bool2str($bool)
{
if ($bool === false) {
return 'FALSE';
} else {
return 'TRUE';
}
}
<?php
final class BaseClass
{
//Code…
}
class ChildClass extends BaseClass
{
//Code…
<?php
class test
{
public $a;
private $b;
function __construct($a, $b)
{
$this->a = $a;
@ilhamarrouf
ilhamarrouf / method-clone.php
Last active February 27, 2017 04:08
OOP PHP
<?php
class test
{
public $a;
private $b;
function __construct($a, $b)
{
$this->a = $a;
$this->b = $b;