Skip to content

Instantly share code, notes, and snippets.

Avatar
🍁
I ❤ U

Taufik Nurrohman taufik-nurrohman

🍁
I ❤ U
View GitHub Profile
@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
View arch-linux-installation-on-mbr-system.md

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.
View toko.mysql
-- 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
);
View ramin-2.js
$(function() {
function showToast(parent, text, timeOut) {
let toast = $('<div></div>').html(text);
toast.appendTo(parent);
window.setTimeout(function() {
toast.remove();
}, timeOut);
}
View ramin-1.js
$(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(),
View ramin-0.js
$(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.
View accessible-custom-select-box.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Accessible Custom Select Box by Taufik Nurrohman</title>
<!--onsele
The MIT License (MIT)
View 1-elementary-os-apps.md

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.
View Tiny JavaScript tokenizer.js
/*
* 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
View .vimrc
" Set default encoding
set encoding=utf-8
" Show line number(s)
set number
set ruler
" Enable line wrap
set wrap
@taufik-nurrohman
taufik-nurrohman / lexer.js
Created October 11, 2020 14:28 — forked from pepasflo/lexer.js
A regex-based javascript lexer / scanner / tokenizer
View lexer.js
#!/usr/bin/env node
var assert = require('assert');
// Each lexed token is a array of three integers:
// 1. the "token type": an index into the list of token patterns.
// 2. the index into the input string marking the start of this token.
// 3. the length of the token.
// The list of "token types" which our lexer understands: