Skip to content

Instantly share code, notes, and snippets.

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

Zulfadli Sukarno zulfadlisukarno

🏠
Working from home
View GitHub Profile
@tillkruss
tillkruss / versions.md
Last active December 25, 2024 23:31
PHP API versions

PHP API versions

Version API
7.3 20180731
7.4 20190902
8.0 20200930
8.1 20210902
8.2 20220829
8.3 20230831
@vandershraaf
vandershraaf / malaysian_states_option_list.html
Last active April 3, 2023 21:28
List of Malaysian states in HTML <option> tag list (alphabetical order)
<option value="Johor">Johor</option>
<option value="Kedah">Kedah</option>
<option value="Kelantan">Kelantan</option>
<option value="Kuala Lumpur">Kuala Lumpur</option>
<option value="Labuan">Labuan</option>
<option value="Melaka">Melaka</option>
<option value="Negeri Sembilan">Negeri Sembilan</option>
<option value="Pahang">Pahang</option>
<option value="Penang">Penang</option>
<option value="Perak">Perak</option>
@mazfreelance
mazfreelance / JQUERY: using moment.js
Last active May 27, 2021 19:47
JQUERY: get value from malaysian identification card number using moment.js
$('#ic1,#ic2,#ic3').keyup(function(){
/*get value from form*/
var dob = $('#ic1').val(); // eg: 850510 - 10/05/1985
var code = $('#ic2').val(); // eg: 14 - Wilayah Persekutuan
var icno = $('#ic3').val(); // eg: 0000 - ic number
//check gender using ic number
if (icno % 2 == 0){
$('#gender_F').prop("checked", true);
}
@davisford
davisford / gist:5039064
Last active February 9, 2022 13:39
git clone into non-empty directory

Let's say you start a project locally, and do some editing.

$ mkdir -p ~/git/foo && cd ~/git/foo
$ touch NEWFILE

Now you decide you want to create a new github repo and track it, but the directory is non-empty so git won't let you clone into it. You can fix this, thusly: