Skip to content

Instantly share code, notes, and snippets.

View taufik-nurrohman's full-sized avatar
🍁
I ❤ U

Taufik Nurrohman taufik-nurrohman

🍁
I ❤ U
View GitHub Profile
We couldn’t find that file to show.
@taufik-nurrohman
taufik-nurrohman / arch-linux-installation-on-mbr-system.md
Created May 2, 2023 12:06 — forked from xbns/arch-linux-installation-on-mbr-system.md
Arch Linux Installation Process for a Legacy/BIOS/MBR System #arch-linux

Arch Linux Installation Process for a Legacy/BIOS/MBR System

We will tackle this process in 10 steps listed below.

I didn't want to repeat some sections well explained in the UEFI Process. You can refer there and follow due process.

Namely;

  • Connecting to WiFi.
@taufik-nurrohman
taufik-nurrohman / toko.mysql
Last active May 25, 2022 11:47
Dummy database.
-- Tabel Daftar Transaksi
CREATE TABLE "inventory" (
"product" INTEGER, -- `product.id`
"price" INTEGER, -- Harga satuan produk
"quantity" INTEGER,
"store" INTEGER, -- `store.id`
"time" TEXT, -- Waktu terjadi transaksi
"type" INTEGER, -- Tipe transaksi
"user" INTEGER
);
$(function() {
function showToast(parent, text, timeOut) {
let toast = $('<div></div>').html(text);
toast.appendTo(parent);
window.setTimeout(function() {
toast.remove();
}, timeOut);
}
$(function() {
const caption = $('.figure-caption');
const figure = $('.figure');
const image = $('.figure-img');
const input = $(':file');
input.change(function() {
caption.text(this.files[0].name);
let data = new FormData(),
$(function() {
let currentItem, currentItemID;
const addTypes = $('#add-types');
const body = $(document.body);
const confirmTarget = $('#confirm');
const confirmTrigger = $('a[data-bs-toggle="modal"][data-bs-target="#confirm"]');
const storeTypeInsert = $('#storeTypeInsert');
const storeTypeInsertText = storeTypeInsert.find('input[type=text]');
@taufik-nurrohman
taufik-nurrohman / accessible-custom-select-box.html
Last active June 7, 2021 03:30
A custom select box draft to be used on Mecha’s control panel extension.
<!DOCTYPE html>
<meta charset="utf-8">
<title>Accessible Custom Select Box by Taufik Nurrohman</title>
<!--onsele
The MIT License (MIT)

elementaryOS Apps and Configs

⚠️ No longer maintained! ⚠️

This guide has been updated for elementaryOS v5.0+.

Enbale PPA support

sudo apt-get update
sudo apt-get -y install software-properties-common
@taufik-nurrohman
taufik-nurrohman / Tiny JavaScript tokenizer.js
Created November 1, 2020 01:27 — forked from borgar/Tiny JavaScript tokenizer.js
A compact tokenizer written in JavaScript.
/*
* Tiny tokenizer
*
* - Accepts a subject string and an object of regular expressions for parsing
* - Returns an array of token objects
*
* tokenize('this is text.', { word:/\w+/, whitespace:/\s+/, punctuation:/[^\w\s]/ }, 'invalid');
* result => [{ token="this", type="word" },{ token=" ", type="whitespace" }, Object { token="is", type="word" }, ... ]
*
*/
@taufik-nurrohman
taufik-nurrohman / .vimrc
Last active November 12, 2020 06:36
Generic Vim Settings
" Set default encoding
set encoding=utf-8
" Show line number(s)
set number
set ruler
" Enable line wrap
set wrap