Skip to content

Instantly share code, notes, and snippets.

@rajeshpachaikani
rajeshpachaikani / docker-compose.yaml
Last active December 9, 2025 06:27
Odoo docker compose file
#Odoo-docker-directory
#├── addons
#├── config
#│   └── odoo.conf
#├── docker-compose.yaml
#├── odoo_pg_pass
#└── sessions
# Create a config file inside the config directory with the following content
# [options]
@syofyanzuhad
syofyanzuhad / validation.php
Created April 28, 2020 09:30
Laravel Validation bahasa Indonesia
<?php
return [
/*
|---------------------------------------------------------------------------------------
| Baris Bahasa untuk Validasi
|---------------------------------------------------------------------------------------
|
| Baris bahasa berikut ini berisi standar pesan kesalahan yang digunakan oleh
| kelas validasi. Beberapa aturan mempunyai banyak versi seperti aturan 'size'.
@cahsowan
cahsowan / terbilang.php
Created April 21, 2015 04:16
Fungsi Terbilang Dengan PHP
<?php
function terbilang($x) {
$angka = ["", "satu", "dua", "tiga", "empat", "lima", "enam", "tujuh", "delapan", "sembilan", "sepuluh", "sebelas"];
if ($x < 12)
return " " . $angka[$x];
elseif ($x < 20)
return terbilang($x - 10) . " belas";
elseif ($x < 100)