See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| #1 build biasa | |
| #2 hasil build "dist" dalamnya, upload ke hosting | |
| #3 set "/.htaccess" | |
| <IfModule mod_rewrite.c> | |
| Options -MultiViews | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^ index.html [QSA,L] |
| //dijkstra solve graph starting at s | |
| function solve(graph, s) { | |
| var solutions = {}; | |
| solutions[s] = []; | |
| solutions[s].dist = 0; | |
| while(true) { | |
| var parent = null; | |
| var nearest = null; | |
| var dist = Infinity; |
| $extension = findexts($gambar); | |
| $NamaGambar = getNamaGambar($gambar, 'artikel'); | |
| if (($extension == "bmp") || ($extension == "gif") || ($extension == "jpg") || ($extension == "jpeg") || ($extension == "png") || ($extension == "pdf") || ($extension == "pNamaGambar")) { | |
| if (move_uploaded_file($_FILES['gambar']['tmp_name'], "../../upload/artikel/" . $NamaGambar)) { | |
| createThumb($gambar, 'artikel', $NamaGambar); | |
| $query = "INSERT INTO artikel(id_artikel, judul, isi, gambar) VALUES ('$id_artikel', '$judul', '$isi', '$NamaGambar')"; | |
| $sql = mysqli_query($conn,$query) or die("cek : " . mysqli_error($conn)); | |
| if ($sql) { | |
| url("artikel&con=0"); | |
| } else { |
| python3 -m venv env | |
| source env/bin/activate | |
| which python3 | |
| deactivate |
| ❯ sudo cat /etc/mysql/debian.cnf | |
| # Automatically generated for Debian scripts. DO NOT TOUCH! | |
| [client] | |
| host = localhost | |
| user = debian-sys-blah | |
| password = xxx | |
| socket = /var/run/mysqld/mysqld.sock | |
| [mysql_upgrade] | |
| host = localhost | |
| user = debian-sys-blah |
| Masuk ke db | |
| mysql -u root -p | |
| <?php | |
| // Koneksi ke Database |
| -- phpMyAdmin SQL Dump | |
| -- version 4.6.4 | |
| -- https://www.phpmyadmin.net/ | |
| -- | |
| -- Host: localhost:8000 | |
| -- Generation Time: Dec 27, 2017 at 11:52 AM | |
| -- Server version: 5.6.33 | |
| -- PHP Version: 7.0.12 | |
| SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
| // document.body.innerHTML = " " | |
| // document.body.style.background = 'white' | |
| function createInput(container, label, type) { | |
| var container = document.createElement('div') | |
| var l = document.createElement('label') | |
| var i = document.createElement('input') | |
| l.innerHTML = `${label} : `; | |
| i.setAttribute('type', type) | |
Posted on May 6, 2020 by admin Changing vim indentation and tab width to 2 spaces
You can add the configuration in the ~/.vimrc file
vim ~/.vimrc
Or add it through a separate plugin file