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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>General PHP</title> | |
</head> | |
<body> | |
<fieldset> | |
<legend>FORM INPUTAN</legend> | |
<form method="post" action="general.php"> |
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
<!DOCTYPE html> | |
<html> | |
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> | |
<head> | |
<title>Converter Suhu</title> | |
</head> | |
<style> | |
html{ | |
font-family: helvetica; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Kalor - Fisika</title> | |
</head> | |
<style> | |
html{ | |
font-family: arial; | |
} | |
</style> |
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
<?php | |
// JSON ENCODE | |
// FUNGSI UNTUK ENCODE SEBUAH ASSOSIATIF ARRAY KE FORMAT OBJEK JSON | |
$json1 = array("andi","budi","anton"); | |
echo json_encode($json); | |
//HASIL | |
// ["andi","budi","anton"] |
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
<?php | |
//Mematikan semua laporan error | |
//Turn Off Error Reporting | |
error_reporting(0); | |
//Melaporkan Semua Error PHP | |
// Report all PHP errors | |
error_reporting(-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
<?php | |
//Return adalah fungsi dari PHP untuk mengembalikan nilai ke Variabel itu sendiri | |
//Contoh : | |
function mobil(){ | |
$mobil = "Ford,Alphard,Toyota,Honda Jazz"; | |
return $mobil; | |
} |
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
def partition(arr,low,high): | |
i = low-1 | |
pivot = arr[high] | |
for j in range(low,high): | |
if(arr[j] <= pivot): | |
i = i+1 | |
arr[i],arr[j] = arr[j],arr[i] |
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
//ini header program | |
#include <stdio.h> | |
//ini syantax akan dieksekusi pertama kali | |
int main() | |
{ | |
//ini cara mencetak string di bahasa Pemrograman C | |
printf("Hello,Dunia\n"); | |
return 0; | |
} |
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
import numpy as np | |
a = np.array([1,2,3]) | |
b = np.array([1,2,3]) | |
print(a) | |
print(b) | |
print(a+b) | |
print(a-b) | |
print(a*b) |
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
import numpy as np | |
matriksC = np.array([[1,2,3], | |
[4,5,6]]) | |
print("Matriks C : ") | |
print(matriksC) | |
transpose_matriks = np.transpose(matriksC) |
OlderNewer