Draft Untuk Menulis Buku Potensi HTML 5 Kajian akan membahas :
Web Socket, Web RTC, Canvas, SVG, WebGL, File API, File System API,
Draft Untuk Menulis Buku Potensi HTML 5 Kajian akan membahas :
Web Socket, Web RTC, Canvas, SVG, WebGL, File API, File System API,
A Programmer's Geometry
This is my notes repo reading "A Programmer's Geometry" by Adrian Bowyer and John Woodwark (ISBN-13: 978-0408012423)
Example in the book is given in FORTRAN 77, I'm taking notes and converting the sample in JavaScript.
1.1 Distance between Two Points 1.2 Equations of a Line 1.3 Distance from a Point to a Line
$target_dir = "upload-folder/"; | |
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]); | |
$uploadOk = 1; | |
$imageFileType = pathinfo($target_file,PATHINFO_EXTENSION); | |
if(isset($_POST["submit"])) { | |
$check = getimagesize($_FILES["fileToUpload"]["tmp_name"]); | |
if (exif_imagetype($_FILES["fileToUpload"]["tmp_name"]) != IMAGETYPE_JPEG) { | |
echo 'File bukan gambar asli..'; | |
$uploadOk = 0; |
<form action="" method="post" enctype="multipart/form-data"> | |
<p>Pictures: | |
<input type="file" name="pictures[]" /> | |
<input type="file" name="pictures[]" /> | |
<input type="file" name="pictures[]" /> | |
<input type="submit" value="Send" /> | |
</p> | |
</form> | |
#region "Method Terbilang" | |
//labelBayarAngsuran.Text = Terbilang(decimal.Parse(textjumang.Text)); | |
string[] satuan = new string[10] { "nol", "satu", "dua", "tiga", "empat", "lima", "enam", "tujuh", "delapan", "sembilan" }; | |
string[] belasan = new string[10] { "sepuluh", "sebelas", "dua belas", "tiga belas", "empat belas", "lima belas", "enam belas", "tujuh belas", "delapan belas", "sembilan belas" }; | |
string[] puluhan = new string[10] { "", "", "dua puluh", "tiga puluh", "empat puluh", "lima puluh", "enam puluh", "tujuh puluh", "delapan puluh", "sembilan puluh" }; | |
string[] ribuan = new string[5] { "", "ribu", "juta", "milyar", "triliyun" }; | |
string Terbilang(Decimal d) | |
{ | |
string strHasil = ""; |