Skip to content

Instantly share code, notes, and snippets.

View ilhamsj's full-sized avatar
🎯
Focusing

Ilham Saputrajati ilhamsj

🎯
Focusing
View GitHub Profile
@ilhamsj
ilhamsj / 01-introduction.md
Created August 23, 2024 05:02 — forked from gemmadlou/01-introduction.md
WordPress Composer Starter (Steps)

Develop WordPress as a Modern PHP Project with Composer


WordPress is popular because it's easy to setup without much technical know-how. However, to build a more robust PHP project with command line deployments, updates and ongoing maintenance, working with WordPress out-of-the-box raises specific challenges:


  • How can we make our WordPress projects portable between developers?
@ilhamsj
ilhamsj / Javascript Format NPWP
Created November 22, 2020 03:47 — forked from yudapc/Javascript Format NPWP
Javascript Format NPWP. NPWP is ID tax each people of indonesian. Specificly in frontend need to format NPWP before render to user
//
// Javascript Format NPWP
//
function formatNpwp(value) {
if (typeof value === 'string') {
return value.replace(/(\d{2})(\d{3})(\d{3})(\d{1})(\d{3})(\d{3})/, '$1.$2.$3.$4-$5.$6');
}
}
@ilhamsj
ilhamsj / sf2Exceptions
Created October 23, 2020 22:05 — forked from feyyazesat/sf2Exceptions
Symfony 2 Exception List
Symfony/Component/OptionsResolver/Exception/MissingOptionsException.php
Symfony/Component/OptionsResolver/Exception/OptionDefinitionException.php
Symfony/Component/OptionsResolver/Exception/InvalidOptionsException.php
Symfony/Component/Serializer/Exception/InvalidArgumentException.php
Symfony/Component/Serializer/Exception/UnsupportedException.php
Symfony/Component/Serializer/Exception/UnexpectedValueException.php
Symfony/Component/Serializer/Exception/LogicException.php
Symfony/Component/Serializer/Exception/Exception.php
Symfony/Component/Serializer/Exception/RuntimeException.php
Symfony/Component/HttpKernel/Exception/MethodNotAllowedHttpException.php
@ilhamsj
ilhamsj / laravel-mix-font-awesome.md
Created October 4, 2019 15:59 — forked from karlhillx/laravel-mix-font-awesome.md
Want to use Laravel and Font Awesome? (Regularly updated)

Laravel Mix & Font Awesome Setup: Compiling Assets

This document provides help on getting your Laravel instance running with the latest versions of Laravel Mix and Font Awesome.

Mix

Steps

Build your webpack.mix.js configuration.

@ilhamsj
ilhamsj / script.js
Created October 2, 2019 08:14 — forked from jbutko/script.js
jQuery: JQuery smooth scrolling when clicking an anchor link
$('a').click(function(){
$('html, body').animate({
scrollTop: $( $.attr(this, 'href') ).offset().top
}, 500);
return false;
});
// http://stackoverflow.com/questions/7717527/jquery-smooth-scrolling-when-clicking-an-anchor-link/7717572#7717572?newreg=16ca424bc4024b21a4fcc728ea6451d5
@ilhamsj
ilhamsj / PostController.php
Created September 12, 2019 07:27 — forked from franquis/PostController.php
Summernote image upload with PHP (Laravel + Intervention\lmage)
<?php
/**
* This exemple shows how to parse base64 encoded images (submitted using Summernote), save them locally
* and replace the 'src' attribute in the submited HTML content
*
**/
use Intervention\Image\ImageManagerStatic as Image;
class PostController {
public function edit(){
@ilhamsj
ilhamsj / parse.js
Created September 2, 2019 16:56
jquery - Parse JSON with jQuery Example
/********************************** example **************************************/
var base_url = 'http://people.cs.uct.ac.za/~swatermeyer/VulaMobi/';
function example()
{
var response = "";
var form_data = {
username: username,
password: password
@ilhamsj
ilhamsj / EloquentCheatSheet.md
Created June 2, 2019 06:25 — forked from avataru/EloquentCheatSheet.md
Eloquent relationships cheat sheet
@ilhamsj
ilhamsj / gist:d1fb3b452c3b02779845035bca486617
Created June 10, 2018 09:05 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
package Pages;
public class ElementId {
//option check
public String ivOptionCheck = "id.co.binar.binarapp.staging:id/iv_option_check"; //test masuk
public String ques1 = "Tiket penerbangan untuk sebuah Airline ditentukan dengan kode sebagai berikut : Pesawat tujuan UK berkode A, Amerika berkode D, Asia berkode B, dan Eropa berkode C. Jika waktu penerbangan antara jam 10 malam sampai jam 6 pagi, maka kode tujuan tersebut menggunakan huruf kecil. Penumpang pria berkode X dan penumpang perempuan berkode Y, dan anak anak juga menggunakan kode yang sama dengan huruf kecil. Sedangkan untuk hidangan, diberi kode G untuk makanan Eropa, H untuk makanan Asia, dan K untuk hidangan bagi vegetarian. Untuk anak anak menggunakan kode yang sama dan huruf kecil. Penumpang kelas pertama berkode V, kelas bisnis Q, dan ekonomi E. Bagaimana kode untuk penerbangan ke Paris jam 5 pagi untuk anak perempuan vegetarian 8 tahun menggunakan kelas ekonomi?";
public String ans1 = "cykE";
public String ques2 = "Disedia