Skip to content

Instantly share code, notes, and snippets.

View adityardiansyah's full-sized avatar
🎯
Focusing

Aditya Ardiansyah adityardiansyah

🎯
Focusing
View GitHub Profile
@adityardiansyah
adityardiansyah / Summernote for Laravel Livewire
Created July 23, 2020 06:39
Setting Summernote for Laravel Livewire
// HTML
<div class="col-md-12">
<div class="form-group" wire:ignore>
<label for="desciption">Deskripsi</label>
<textarea type="text" input="description" id="summernote" class="form-control summernote">{{ $description }}</textarea>
</div>
</div>
// JAVASCRIPT
@adityardiansyah
adityardiansyah / Object Create Javascript
Created January 15, 2020 14:51
Object Create ini kelebihannya adalah otomatisasi method dan mempersimpel code
// Object Create
const methodSaya = {
makan: function (porsi) {
this.energi += porsi;
},
main: function (jam) {
this.energi -= jam;
}
}
@adityardiansyah
adityardiansyah / Construct Function Javascript
Last active January 15, 2020 14:35
Dasar Object Javascript
// Construct Function
function Saya(nama, energi) {
this.nama = nama;
this.energi = energi;
this.makan = function(porsi){
this.energi += porsi;
},
this.main = function(jam) {
this.energi -= jam;
}
@adityardiansyah
adityardiansyah / Fungsi Javascript
Created October 23, 2019 14:07
Belajar fungsi Javascript dengan klik tombol
<htmL>
<head>
<title>Belajar JavaScript</title>
<script>
function tambah_semangat(){
var a = document.getElementById("div_semangat");
a.innerHTML += "<p>Sedang Belajar Javascript, Semangat..!!!</p>";
}
</script>
</head>
@adityardiansyah
adityardiansyah / Javascript Alert
Created October 23, 2019 13:59
Belajar Javascript Coyy
<htmL>
<head>
<title>Belajar JavaScript</title>
</head>
<body>
<script>
window.alert("Ini merupakan pesan untuk anda");
</script>
</body>
</html>
@adityardiansyah
adityardiansyah / Metode Numerik Rapshon
Created July 10, 2019 12:57
Tugas UAS Kuliah Metode Numerik - Rapshon
<?php
if(isset($_POST['nilai'])){
function first($x)
{
$a = pow($x,3) + 2*pow($x,2) + 10*$x - 20;
return $a;
}
function turunan_first($x){