Skip to content

Instantly share code, notes, and snippets.

View jamelwa's full-sized avatar
🎯
Focusing

jamelwa

🎯
Focusing
View GitHub Profile
@jamelwa
jamelwa / init.lua
Created July 10, 2025 10:12
Neovim Configuration with LSP, Conform, and ALE-style formatting
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
@jamelwa
jamelwa / init.lua
Last active July 3, 2025 14:55
my nvim config
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
if vim.v.shell_error ~= 0 then
vim.api.nvim_echo({
{ "Failed to clone lazy.nvim:\n", "ErrorMsg" },
{ out, "WarningMsg" },
{ "\nPress any key to exit..." },
@jamelwa
jamelwa / my-frontend-workflow-nuxt-3.md
Last active April 29, 2025 08:23
my-frontend-workflow-nuxt-3

My Frontend Workflow (Nuxt 3 / Vue 3)

Tools & Libraries

  • Nuxt 3
  • ESLint
  • Prettier
  • Husky
  • Lint-staged
  • Commitlint
  • Commitizen (optional)
@jamelwa
jamelwa / slidebar.css
Created February 21, 2020 03:17
Style for myslidebar.js
.slider {
display: flex;
margin: 0.2rem 0.2rem;
}
/* the slider bar */
.pointer {
padding-left: 100%;
position: relative;
width: 100%;
@jamelwa
jamelwa / myslidebar.js
Last active February 21, 2020 03:17
Multi range slide bar using jquery and interactjs
class MySlideBar {
constructor(treshold = 0.05, default_color = '#29e') {
this.slider = null // slider elemen
this.pointer = null // pointer elemen
this.treshold = treshold // nilai minimal slider
this.default_color = default_color // default color pointer
this.pointer_states = [] // simpan proporsi pointer relative ke parent
}
//init new pointer and slidebar
@jamelwa
jamelwa / calculate.js
Last active January 23, 2020 08:45
FV and PMT excel functions equivalent in javascript
//plan untuk mencari nilai future value
class AllocationPlan {
constructor(initial_payment, years, periodic_payment) {
this.initial_payment = initial_payment
this.years = years
this.periodic_payment = periodic_payment
}
}
//plan untuk mencari nilai periodic payment