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 / ascii.md
Created October 14, 2016 22:16
ASCII arts
╭━━━━╮               This is cooldog. Help
╰┃ ┣▇━▇                cooldog take over 
 ┃ ┃  ╰━▅╮ Discord by pasting
 ╰┳╯ ╰━━┳╯        him in 10 other
  ╰╮ ┳━━╯            servers or you
 ▕▔▋ ╰╮╭━╮   will never be a cool dog.
╱▔╲▋╰━┻┻╮╲╱▔▔▔╲
▏  ▔▔▔▔▔▔▔  O O┃ 
╲╱▔╲▂▂▂▂╱▔╲▂▂▂╱
#!/usr/bin/ruby
# Create display override file to force Mac OS X to use RGB mode for Display
# see http://embdev.net/topic/284710
require 'base64'
data=`ioreg -l -d0 -w 0 -r -c AppleDisplay`
edids=data.scan(/IODisplayEDID.*?<([a-z0-9]+)>/i).flatten
vendorids=data.scan(/DisplayVendorID.*?([0-9]+)/i).flatten
@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-
@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 / 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 / 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 / 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 / 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;
░█████╗░░██████╗░█████╗░██╗██╗  ░█████╗░██████╗░████████╗░██████╗
██╔══██╗██╔════╝██╔══██╗██║██║  ██╔══██╗██╔══██╗╚══██╔══╝██╔════╝
███████║╚█████╗░██║░░╚═╝██║██║  ███████║██████╔╝░░░██║░░░╚█████╗░
██╔══██║░╚═══██╗██║░░██╗██║██║  ██╔══██║██╔══██╗░░░██║░░░░╚═══██╗
██║░░██║██████╔╝╚█████╔╝██║██║  ██║░░██║██║░░██║░░░██║░░░██████╔╝
╚═╝░░╚═╝╚═════╝░░╚════╝░╚═╝╚═╝  ╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═════╝░

Islamic

@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>_