Skip to content

Instantly share code, notes, and snippets.

View abdasis's full-sized avatar
🚀
Happy with Code

Abd. Asis abdasis

🚀
Happy with Code
View GitHub Profile
/** membuat navbar transparan **/
.svq-header-section .navbar-container {
padding-top: 1
rem
;
padding-bottom: 1
rem
;
box-shadow: 0 0 1px rgb(0 0 0 / 8%);
-ms-box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
@abdasis
abdasis / style.css
Created March 1, 2022 08:11
Soft scrollbar for google chrome
::-webkit-scrollbar-thumb {
background-color: #727272;
border-radius: 10px;
}
::-webkit-scrollbar {
height: 10px;
width: 8px;
border: 1px solid #ededed;
border-radius: 10px;
@abdasis
abdasis / inertia-toast.js
Last active February 12, 2022 01:34
Inertia alert with toast
function handleSubmit(event) {
event.preventDefault();
Inertia.post(route('siswa.simpan'), values, {
onSuccess: () => {
toast.success("Data berhasil disimpan");
},
onError: (error) => {
toast.error(error);
}
});
@abdasis
abdasis / kms
Created November 15, 2021 07:28 — forked from Twolk/kms
KMS server Windows
Online kms host address:
--------
kms.digiboy.ir
54.223.212.31
kms.cnlic.com
kms.chinancce.com
kms.ddns.net
franklv.ddns.net
k.zpale.com
m.zpale.com
@abdasis
abdasis / python-pillow-image-change-background.py
Created November 13, 2021 03:25 — forked from namieluss/python-pillow-image-change-background.py
Replace a Color (RGB) from an Image using Python Pillow
from PIL import Image
img = Image.open("test_image.jpg")
img = img.convert("RGB")
datas = img.getdata()
new_image_data = []
for item in datas:
# change all white (also shades of whites) pixels to yellow
@abdasis
abdasis / Terbilang.php
Created February 10, 2021 13:22
Helper untuk membuat angka terbilang di Laravel
<?php
class Terbilang
{
function penyebut($nilai) {
$nilai = abs($nilai);
$huruf = array("", "satu", "dua", "tiga", "empat", "lima", "enam", "tujuh", "delapan", "sembilan", "sepuluh", "sebelas");
$temp = "";
if ($nilai < 12) {
@abdasis
abdasis / translate.blade.php
Created February 10, 2021 13:05
Membuat tinyMCE dengan file manager di laravel
<script src="https://cdn.tiny.cloud/1/3kubek8r1p1mz4kvit7hc1z2mxd8wgg551cbeu82qkmenprf/tinymce/5/tinymce.min.js"
referrerpolicy="origin"></script>
<script>
tinymce.init({
selector: "textarea",
height : "480",
plugins: "nonbreaking",
nonbreaking_force_tab: true,
toolbar: "nonbreaking",
relative_urls: false,