Skip to content

Instantly share code, notes, and snippets.

View ekickx's full-sized avatar
👨‍🌾
tháng năm

Ekickx ekickx

👨‍🌾
tháng năm
View GitHub Profile
cache = true -- Rerun tests only if their modification time changed.
std = luajit
codes = true
self = false
ignore = {
"212" -- ignore unused arguments
}
globals = {
@ekickx
ekickx / description.md
Last active January 10, 2022 01:56
Deferred/Lazy Load Neovim Plugin with Dep

The idea of deferred load is we priotize to instantly load plugin that we need on startup. And load plugin that we don't need later. So yeah it's like what zinit does with their turbo mode. In Neovim, we can achive this with vim.defer_fn

In case you don't know, dep is a neovim plugin manager. The reason I choose it instead of packer is its ability to load plugins in consistent order.

Since you already got the gist of what will we do, let's jump to the code.


I will dump all of the code in init.lua to make it simpler.

Bootstrap

@ekickx
ekickx / wm-colorscheme.lua
Last active October 17, 2021 20:50
test colorscheme vim
-- Cek nama wm
local nama_wm = vim.fn.system 'wmctrl -m | grep -i name | cut -d " " -f 2'
-- Hapus line break just in case
nama_wm = nama_wm:gsub("[\r\n]", "")
if nama_wm == 'GNOME' then
vim.cmd 'colorscheme blue'
elseif nama_wm == 'wlroots' then
vim.cmd 'colorscheme torte'
elseif nama_wm == 'Xfwm4' then
@ekickx
ekickx / .zshrc
Created October 1, 2021 15:16
Simple zsh startup timer
ZSH_INIT_TIME=$(date +%s%N)
##########################
# KONFIGURASI ZSH KALIAN #
##########################
ZSH_LOADED_TIME=$(date +%s%N)
ZSH_STARTUP_TIME=$(((ZSH_LOADED_TIME - ZSH_INIT_TIME) / 1000000))
printf "Startup time: $ZSH_STARTUP_TIME ms\n"
@ekickx
ekickx / rc.xml
Last active June 11, 2024 01:48
labwc sample conf
<?xml version="1.0" encoding="UTF-8"?>
<openbox_config>
<keyboard>
<keybind key="XF86AudioMute">
<action name="Execute">
<command>bash ~/Projects/bin/volume mute</command>
</action>
</keybind>
<keybind key="XF86AudioRaiseVolume">
@ekickx
ekickx / Matriks.c
Last active March 16, 2020 03:50
Operasi matriks dengan C
#include<stdio.h>
#include<string.h>
int determinan(int kolom, int matriks1[][kolom]); // Inisialisasi fungsi
int main(void){
//Matriks
int hasil[10][10],det;
int i , j , k , m , n , p , q , jumlah = 0,ordo;
int CA00,CA01,CA02,CA03;
@ekickx
ekickx / Operasi_matriks.go
Last active March 24, 2020 16:57
Operasi matriks, seperti penjumlahan, pengurangan, perkalian, dan determinan di bahasa Go
package main
import (
"fmt"
)
func main() {
var ordo, choice int
// Input pilihan