Skip to content

Instantly share code, notes, and snippets.

View yaza-putu's full-sized avatar
💭
I Love Code & Learning

Putu Yaza yaza-putu

💭
I Love Code & Learning
View GitHub Profile
@yaza-putu
yaza-putu / _readme.md
Created March 30, 2023 02:01 — forked from steeve/_readme.md
How to cross compile Go with CGO programs for a different OS/Arch

How to cross compile Go with CGO programs for a different OS/Arch

It is possible to compile Go programs for a different OS, even though go build says otherwise.

You'll need:

error template sweet alert

  • function
function sweetError(message) {
    Swal.fire({
        title: "Error",
        text: message,
        type: "error"
    });
}

Hal yg wajib di ketahui oleh developer pengguna datatables

case

  • kebanyakan orang menggunakan sintak seperti ini
  $result = JadwalPelajaran::with(['mataPelajaran','kelas','pegawai'])
                                    ->where('tahun_akademik_id','=',$post['tahun'] ?? null)
                                    ->where('kelas_id',$post['kelas'] ?? null)
                                    ->groupBy('mata_pelajaran_id')
                                    ->get();
@yaza-putu
yaza-putu / Setup-Font-VScode-like-phpstorm.MD
Created December 19, 2020 07:10
Setup font visual code like font phpstorm

How to install

"editor.fontFamily": "'JetBrains Mono', Consolas, 'Courier New', monospace",
// Set the font size
"editor.fontSize": 13,
@yaza-putu
yaza-putu / Turbolinks + Laravel.MD
Last active September 10, 2023 15:02
Install Turbolink Navigation in laravel
@yaza-putu
yaza-putu / handel-validation-laravel-with-input-js.MD
Last active December 28, 2021 15:04
Handel laravel validation with input error in javascript with ajax

required format data json to integrate function handleValidation() in helper.js like this

{
  "errors": {
    "nama": [
      [
        "Nama wajib diisi"
      ]
    ],
    "email": [
@yaza-putu
yaza-putu / jwt_laravel.md
Last active August 17, 2020 04:52
Install and config JWT Auth Laravel
@yaza-putu
yaza-putu / postman-linux.md
Created August 9, 2020 06:14
install-postman-onlinux

instalation

  • Tahap pertama kita download dulu aplikasi postman, biar cepet kita langsung aja download melalui terminal ya. ketik perintah berikut
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
  • extract file yang telah kita download dengan perintah berikut ini
sudo tar -xzf postman.tar.gz -C /opt
  • buat symbolic link dari file hasil extract ke directory /usr/bin agar dapat kita eksekusi aplikasinya. ketik perintah berikut ini
@yaza-putu
yaza-putu / gittag.md
Last active December 4, 2020 02:13
git push with tag Semantic Versioning

Manual Git Tag Semantic Versioning

v1.0.0 Given a version number MAJOR.MINOR.PATCH, increment the:

MAJOR version when you make incompatible API changes, MINOR version when you add functionality in a backwards compatible manner, and PATCH version when you make backwards compatible bug fixes. Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.

list tag