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 / .editorconfig
Created February 15, 2018 03:42
editorconfig for javascript
root = true
[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
# editorconfig-tools is unable to ignore longs strings or urls
<?php
namespace App\Traits;
use App\Models\User;
use DateTime;
use GuzzleHttp\Psr7\Response;
use Illuminate\Events\Dispatcher;
use Laravel\Passport\Bridge\AccessToken;
use Laravel\Passport\Bridge\AccessTokenRepository;
@ilhamarrouf
ilhamarrouf / docker-compose.yml
Created November 1, 2017 17:10
Docker compose php5.6-apache
php:
image: php:5.6-apache
ports:
- "8080:80"
volumes:
- ./:/var/www/html
@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';
}
}