Skip to content

Instantly share code, notes, and snippets.

View saifudinzezy's full-sized avatar

Saifudin saifudinzezy

View GitHub Profile
@saifudinzezy
saifudinzezy / gist:3951b69891756c8d328107f82d20ab3f
Created November 27, 2022 07:06 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@saifudinzezy
saifudinzezy / data_table.js
Last active November 9, 2022 02:17
DATA_PENTING
//untuk filter select_option
$('select[name="skd_prodi"]').on('change', function () {
scope.table_nilai_grade.column(0).search($(this).val()).draw();
});
//dismiss modal
$('#modal_nope_mou').modal('toggle');
//remove style padding datatable
initComplete: function () {
Open File -> App\Providers\AppServiceProvider
And change method boot
public function boot()
{
config(['app.locale' => 'id']);
Carbon::setLocale('id');
}
Open File and changes -> config/app.php
@saifudinzezy
saifudinzezy / link-storage-laravel.php
Last active July 6, 2021 10:29
alternative for laravel = php artisan link:storage
@saifudinzezy
saifudinzezy / curl.md
Created November 13, 2020 03:11 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@saifudinzezy
saifudinzezy / Rupiah.as
Last active September 13, 2021 11:21 — forked from faisalman/Rupiah.as
Konversi Angka ke format Rupiah & vice versa (C#, PHP, JavaScript, ActionScript 3.0)
package
{
/**
* ActionScript 3.0 Code Snippet
* Convert Number to Rupiah & vice versa
* https://gist.github.com/845309
*
* Copyright 2011-2012, Faisalman
* Licensed under The MIT License
* http://www.opensource.org/licenses/mit-license