Skip to content

Instantly share code, notes, and snippets.

View kebalicious's full-sized avatar
being a star

Kebal kebalicious

being a star
View GitHub Profile
@kebalicious
kebalicious / tarikh_hijri.php
Created June 24, 2020 04:25 — forked from ammaridris/tarikh_hijri.php
Paparan Tarikh Hijri Menggunakan PHP
<?php
$bulan_masihi=date('m');
$hari_masihi=date('d'); //Boleh +-
$tahun_masihi=date('Y');
if (($tahun_masihi>1582)||(($tahun_masihi==1582)&&($bulan_masihi>10))||(($tahun_masihi==1582)&&($bulan_masihi==10)&&($hari_masihi>14)))
{
$zjd=(int)((1461*($tahun_masihi + 4800 + (int)( ($bulan_masihi-14) /12) ))/4) + (int)((367*($bulan_masihi-2-12*((int)(($bulan_masihi-14)/12))))/12)-(int)((3*(int)(( ($tahun_masihi+4900+(int)(($bulan_masihi-14)/12))/100)))/4)+$hari_masihi-32075;
}
else
@kebalicious
kebalicious / fontawesome-icon-picker.markdown
Created January 20, 2021 08:31
FontAwesome Icon Picker

FontAwesome Icon Picker

Needed a icon picker for mojoPortal.

Based off another Pen I made with AngularJS, but this one is JQuery.

Everything done by me - with the exception of the style, courtesy of Bootstrap.

A Pen by Mak Alamin on CodePen.

@kebalicious
kebalicious / index.html
Created January 20, 2021 08:31
Simple Fontawesome picker with Bootstrap / VueJS / FreeJQuery
<div id="app"><App/></div>
@kebalicious
kebalicious / gist:0a10c53c279802b495c0e408d737e30b
Created January 26, 2021 20:18
Delete multiple line based on search result
1. Ctrl-F / Cmd-F to open find.
2. Paste your string.
3. Alt-Enter to select all of the instances of the string on the page.
4. Ctrl-L / Cmd-L to broaden the selection to the entire line of each instance on the page.
5. Ctrl-Shift-K / Cmd-Shift-K / Delete / Backspace to remove those lines.

Color picker

Pen is a demonstration of use color picker to change the background color and text color of the element and also about vertical and horizontal centered.

A Pen by Jakub Turský on CodePen.

License.

@kebalicious
kebalicious / index.html
Created October 4, 2021 07:06
Select2 test
<div class="container">
<h2>Select2 Test</h2>
<p>Fluid responsiveness and momentum scrolling on the results drop down </p>
<select class="select2" name="country">
<optgroup label=" ">
<option value="AU" selected> Australia </option>
<option value="BR"> Brazil (Brasil) </option>
@kebalicious
kebalicious / google-search-box-w-drop-down-with-suggestions.markdown
Created October 8, 2021 08:12
Google Search Box w/ drop-down with suggestions
@kebalicious
kebalicious / autocomplete-dropdown-lookup-list-with-bells-and-whistles.markdown
Created October 8, 2021 08:12
Autocomplete Dropdown Lookup List with Bells and Whistles

Autocomplete Dropdown Lookup List with Bells and Whistles

Been planning and saving up to finally ship the perfect autocomplete control with all the makings? This here is the best one north of the intergallactic boundary. It looks up values from a list as the user starts typing. The nice thing is that it looks up 'Starts With' as well as 'Contains' ...which I believe is sweet in some applications. Enjoy and share | Sander

A Pen by Sander (Sandroid) on CodePen.

License.

@kebalicious
kebalicious / dynamic-fields-add-to-form.markdown
Created October 8, 2021 08:13
Dynamic Fields add to form
@kebalicious
kebalicious / mykad-validation
Last active November 3, 2021 06:25
MyKad Validation
// MyKad
$this->myKad = "010203-04-1234";
$this->myKad = str_replace(['-', ' '], '', $this->myKad);
if (!is_numeric($this->myKad)) {
return "not valid mykad no";
} elseif (strlen($this->myKad) != 12) {
return "mykad no should contains 12 digits";
}