Skip to content

Instantly share code, notes, and snippets.

View kuntau's full-sized avatar
💭
I may be slow to respond.

Nizamuddin Sulieman kuntau

💭
I may be slow to respond.
View GitHub Profile
@kuntau
kuntau / setting.js
Last active March 9, 2022 04:45
SurfingKeys
// kuntau
// api.unmap('>>');
// api.unmap('<<'); // tab shifting
api.iunmap(":"); // disable emoji autocomplete
/// an example to create a new mapping `ctrl-y`
api.mapkey('<ctrl-y>', 'Show me the money', function() {
Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).');
});
@kuntau
kuntau / .neovintageousrc
Created February 7, 2022 02:37
NeoVintageous RC file
" Type :help nv for help.
" set ignorecase
set smartcase
set winaltkeys=menu
let mapleader=<Space>
nnoremap <leader><bar> <C-w><bar>
nnoremap <leader>= <C-w>=
nnoremap <leader>_ <C-w>_
░█████╗░░██████╗░█████╗░██╗██╗  ░█████╗░██████╗░████████╗░██████╗
██╔══██╗██╔════╝██╔══██╗██║██║  ██╔══██╗██╔══██╗╚══██╔══╝██╔════╝
███████║╚█████╗░██║░░╚═╝██║██║  ███████║██████╔╝░░░██║░░░╚█████╗░
██╔══██║░╚═══██╗██║░░██╗██║██║  ██╔══██║██╔══██╗░░░██║░░░░╚═══██╗
██║░░██║██████╔╝╚█████╔╝██║██║  ██║░░██║██║░░██║░░░██║░░░██████╔╝
╚═╝░░╚═╝╚═════╝░░╚════╝░╚═╝╚═╝  ╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═════╝░

Islamic

@kuntau
kuntau / bar-chart-div.js
Last active February 20, 2021 04:38
FCC: D3.js
<style>
.bar {
width: 25px;
height: 100px;
/* Add your code below this line */
/* Add your code above this line */
display: inline-block;
background-color: blue;
@kuntau
kuntau / color.css
Last active February 12, 2021 07:58
Github color variables
:root, [data-color-mode="dark"][data-dark-theme="light"], [data-color-mode="light"], [data-color-mode="light"][data-light-theme="light"] {
--color-scale-black: #1b1f23;
--color-scale-white: #fff;
--color-scale-gray-0: #fafbfc;
--color-scale-gray-1: #f6f8fa;
--color-scale-gray-2: #e1e4e8;
--color-scale-gray-3: #d1d5da;
--color-scale-gray-4: #959da5;
--color-scale-gray-5: #6a737d;
--color-scale-gray-6: #586069;
@kuntau
kuntau / kuntau.json
Created October 10, 2020 21:38
My Karabiner-Elements Config
{
"title": "Kuntau Left Ctrl Hyper Mods",
"rules": [
{
"description": "F20 : (HYPER) SHIFT+COMMAND+OPTION+CONTROL or ESCAPE (If Alone)",
"manipulators": [
{
"from": {
"key_code": "f20",
"modifiers": {
@kuntau
kuntau / url-segment.js
Created September 15, 2020 23:13
Get last URL segment
// PENDING TESTING..
// Get pathname
var pathName = window.location.pathname;
getLastSegment = function(pathName) {
// declare local
var lastSegment = -1; //false by default
// Check if we even have a pathname
@kuntau
kuntau / tmux.sh
Created June 1, 2020 07:34
TMUX default key bindings
bind-key -T copy-mode C-Space send-keys -X begin-selection
bind-key -T copy-mode C-a send-keys -X start-of-line
bind-key -T copy-mode C-b send-keys -X cursor-left
bind-key -T copy-mode C-c send-keys -X cancel
bind-key -T copy-mode C-e send-keys -X end-of-line
bind-key -T copy-mode C-f send-keys -X cursor-right
bind-key -T copy-mode C-g send-keys -X clear-selection
bind-key -T copy-mode C-k send-keys -X copy-end-of-line
bind-key -T copy-mode C-n send-keys -X cursor-down
bind-key -T copy-mode C-p send-keys -X cursor-up
@kuntau
kuntau / alpine.md
Last active November 18, 2023 22:27
Compile and install mosh error on Linux

Requirements:

sudo apk add autoconf
sudo apk add zlib-dev
sudo apk add openssl-dev
sudo apk add ncurses-dev
sudo apk add protobuf-dev

Autoconf

@kuntau
kuntau / index.html
Last active April 14, 2020 11:16
Vue horizontal scroller -- https://codepen.io/kuntau/full/XWmJezP
<div id="card" class="card-header bg-gray-200 border rounded shadow-md relative flex">
<button id="left" @click="left" class="p-4 hover:bg-gray-300 border"><i class="fas fa-chevron-left"></i></button>
<div id="wrapper" ref="wrapper" class="wrapper whitespace-no-wrap flex-auto flex overflow-x-hidden w-full">
<a class="inner px-4 py-4 border-r text-gray-700 bg-gray-300 shadow-inner" href="#"><i class="fas fa-star"></i> Favorite</a>
<a class="inner px-4 py-4 hover:bg-gray-300 border-r" href="#"><i class="fas fa-utensils"></i> Foods</a>
<a class="inner px-4 py-4 hover:bg-gray-300 border-r" href="#"><i class="fas fa-beer"></i> Cold drinks</a>
<a class="inner px-4 py-4 hover:bg-gray-300 border-r" href="#"><i class="fas fa-coffee"></i> Hot drinks</a>
<a class="inner px-4 py-4 hover:bg-gray-300 border-r" href="#"><i class="fas fa-search"></i> Search</a>
<a class="inner px-4 py-4 hover:bg-gray-300 border-r" href="#"><i class="fas fa-utensils"></i> F{{ position }}</a>
<a class="inner px-