This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const schema = yup.object().shape({ | |
filelamaran: yup.mixed().test('fileSize', "File Lamaran terlalu besar bro.. kurang dari < 500Kb ya!", val => validasiSizeFile(val) === true).test('fileType',"File harus PDF bro.. Ukuran PDF < 500Kb ya!", val => validasiTipeFile(val) === true).nullable(), | |
filefoto: yup.mixed().test('fileSize', "File Foto terlalu besar bro.. kurang dari < 500Kb ya!", val => validasiSizeFile(val) === true).test('fileType',"File harus PDF bro.. Ukuran PDF < 500Kb ya!", val => validasiTipeFile(val) === true).nullable(), | |
fileriwayat: yup.mixed().test('fileSize', "File Riwayat terlalu besar bro.. kurang dari < 500Kb ya!", val => validasiSizeFile(val) === true).test('fileType',"File harus PDF bro.. Ukuran PDF < 500Kb ya!", val => validasiTipeFile(val) === true).nullable(), | |
fileijazah: yup.mixed().test('fileSize', "File Ijazah terlalu besar bro.. kurang dari < 500Kb ya!", val => validasiSizeFile(val) === true).test('fileType',"File harus PDF bro.. Ukuran PDF < 500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: https://stackoverflow.com/a/33919648 | |
# using for php < 5.4 if server using > 5.5 please, use array_columnt instead | |
if (!function_exists('arr_kolom')) { | |
function arr_kolom(array $array, $columnKey, $indexKey = null) | |
{ | |
$result = array(); | |
foreach ($array as $subArray) { | |
if (!is_array($subArray)) { | |
continue; | |
} elseif (is_null($indexKey) && array_key_exists($columnKey, $subArray)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: https://github.com/typesafer/codeigniter-enum-select-boxes | |
if (!function_exists('dropdownKolom')) { | |
function dropdownKolom($table , $field, $all=false) | |
{ | |
$ci = & get_instance(); | |
$query = "SHOW COLUMNS FROM ".$table." LIKE '$field'"; | |
$row = $ci->db->query("SHOW COLUMNS FROM ".$table." LIKE '$field'")->row()->Type; | |
$regex = "/'(.*?)'/"; | |
preg_match_all( $regex , $row, $enum_array ); | |
$enum_fields = $enum_array[1]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: https://stackoverflow.com/a/46574723 | |
if(!function_exists('ucapan_selamat')) { | |
function ucapan_selamat() { | |
$hour = date("G"); | |
return ($hour >= 3 && $hour < 12) | |
? "Selamat Pagi, " | |
: (($hour >= 12 && $hour < 17) ? "Selamat Siang, " : "Selamat Malam, "); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: https://gist.github.com/raveren/5555297 | |
if ( !function_exists('random_text')) { | |
function random_text( $type = 'alnum', $length = 8 ) { | |
switch ( $type ) { | |
case 'alnum': | |
$pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
break; | |
case 'alpha': | |
$pool = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Grav Specific | |
.sass-cache | |
composer.lock | |
cache/* | |
assets/* | |
logs/* | |
images/* | |
user/data/* | |
# OS Generated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/shekharramola/react-wheel-of-prizes | |
https://github.com/frankie95/lucky-wheel | |
https://gitlab.com/l.eeden/riggedwheel | |
https://stackoverflow.com/questions/3426404/create-a-hexadecimal-colour-based-on-a-string-with-javascript | |
https://github.com/gauravburjwal/react-color-palette |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Global State Management | |
2. Server State Management | |
3. Scaffolding | |
4. Form Handling | |
5. HTTP Call | |
6. Styling | |
7. UI Library | |
8. Documentation | |
9. Multi-Language Support | |
10. Animation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. DOWNLOAD UBUNTU FROM HERE | |
- https://old-releases.ubuntu.com/releases/bionic/ubuntu-18.04.4-server-amd64.iso | |
2. SETUP YOUR BASIC SERVER FROM HERE | |
- https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04 | |
- https://acahya.web.id/instalasi-ubuntu-server-18-04-lts-bionic-beaver-minimal-server/ | |
3. INSTALL YOUR LET'S ENCRYPT HTTPS FROM HERE | |
- https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-18-04 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~ NextJS | |
1. https://nextjs.org/learn/basics/create-nextjs-app | |
2. https://jasonwatmore.com/post/2021/04/20/next-js-10-crud-example-with-react-hook-form | |
3. https://pusher.com/tutorials/realtime-tables-nextjs | |
4. https://adamwathan.me/2019/10/17/persistent-layout-patterns-in-nextjs/ | |
5. https://wityan.medium.com/next-js-project-structure-1531610bed71 | |
6. https://cloudreports.net/convert-html-template-into-nextjs-app/ | |
7. https://medium.com/@defrian.yarfi/next-js-and-reactstrap-admin-dashboard-project-e32ff3205eb2 | |
~ typescript |