$ wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz
$ sudo tar -xvf go1.16.4.linux-amd64.tar.gz
$ sudo mv go /usr/local
$ wget https://golang.org/dl/go1.17.1.linux-amd64.tar.gz
$ sudo tar -xvf go1.16.4.linux-amd64.tar.gz
$ sudo mv go /usr/local
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
p { | |
text-align: center; | |
font-size: 60px; | |
margin-top: 0px; | |
} |
# html | |
<select id="select"> | |
<option value="1" data-foo="dogs">this</option> | |
<option value="2" data-foo="cats">that</option> | |
<option value="3" data-foo="gerbils">other</option> | |
</select> | |
# JavaScript using jQuery | |
$(function(){ | |
$('select').change(function(){ |
#!/bin/bash | |
# file: /usr/local/bin/kill_ports | |
PS3='Please enter your choice: ' | |
options=$(lsof -PiTCP -sTCP:LISTEN | awk '{print $9}' | sed -n '1!p') | |
RED='\033[0;31m' | |
NC='\033[0m' # No Color | |
select port in $options | |
do | |
echo "Selected character: $port" | |
echo "Selected number: $REPLY" |
+---------+------------------------------------------------------------+ | |
| VERB | DESKRIPSI | | |
+---------+------------------------------------------------------------+ | |
| GET | Digunakan untuk mengambil data. | | |
| POST | Digunakan untuk membuat data. | | |
| PUT | Digunakan untuk mengganti/mengubah data atau collections. | | |
| DELETE | Digunakan untuk menghapus data. | | |
+---------+------------------------------------------------------------+ |
+----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| STATUS CODE | DESKRIPSI | | |
+----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------+ | |
| 200-OK | Request dikatakan berhasil, dan data dari server bisa dilihat di dalam body response dan header nya. | | |
| 201-Created | Request berhasil terpenuhi, dan hasilnya terbentuk data baru di server | | |
| 202-Accepted | Request berhasil diterima untuk di proses, teta |
Initialize Git $ git init $ git add . $ git commit -m "initial commit laravel to heroku"
Membuat Procfile $ echo web: vendor/bin/heroku-php-apache2 public/ > Procfile $ git add . $ git commit -m "procfile for heroku"
<html> | |
<div id="product_name">Kacamata</div> | |
<div id="product_group">Fashion</div> | |
<div id="product_id">10</div> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script language="JavaScript"> | |
var product_id = $('#product_id').text() | |
var product_name = $('#product_name').text() | |
var product_group = $('#product_group').text() | |
var phone = ['6281312020954','6281312020941','6281312020938'] |
Other people's projects:
My projects (tutorials are on my blog at http://maxoffsky.com):