Skip to content

Instantly share code, notes, and snippets.

View palaniraja's full-sized avatar

palaniraja palaniraja

View GitHub Profile
/**
* @file lv_conf.h
* Configuration file for v8.3.5
*/
/*
* Copy this file as `lv_conf.h`
* 1. simply next to the `lvgl` folder
* 2. or any other places and
* - define `LV_CONF_INCLUDE_SIMPLE`
@palaniraja
palaniraja / main.cpp
Created July 10, 2025 00:27
CrowPanel 5.0, platform io
#include <Arduino.h>
static unsigned int count = 0;
void setup()
{
Serial.begin(115200);
Serial.println("Hello World!");
}
@palaniraja
palaniraja / Readme.md
Last active June 29, 2025 01:30
vibecoding Sudoku for M5PaperS3 with static puzzle

m5papers3-sudoku

/**
{
"api":1,
"name":"Base64 to bytebuffer",
"description":"Base64 - ByteBuffer",
"author":"palani",
"icon":"01.square.fill",
"tags":"bytebuffer, base64"
}
**/
@palaniraja
palaniraja / dendron.code-snippets
Created May 1, 2025 15:16
vault/.vscode/dendron.code-snippets
{
"tag": {
"prefix": "#",
"scope": "markdown,yaml",
"body": "[[#${1:my-tag}|tag.${1}]]",
"description": "tag"
},
"date": {
"prefix": "mdate",
"scope": "markdown,yaml",
@palaniraja
palaniraja / dap.lua
Last active March 18, 2025 01:25
neovim dap custom keybinding to match lldb pref
-- dap custom shortcuts
-- https://github.com/mfussenegger/dotfiles/blob/e7abb9a13f8fb3075704ed703dd973ecf3502cc3/vim/.config/nvim/lua/me/dap.lua#L64-L75
return {
{
"mfussenegger/nvim-dap",
config = function()
-- working version
local dap = require('dap')
@palaniraja
palaniraja / config.yml
Last active June 13, 2025 17:41
lazygit config.yml - my lazygit conf ('~/Library/Application Support/lazygit/config.yml')
gui:
expandFocusedSidePanel: true
git:
paging:
# colorArg: always
# pager: diff-so-fancy
pager: delta --dark --paging=never -n --syntax-theme "everforest-friendly" #-s -n --syntax-theme "1337" --diff-so-fancy --diff-highlight
# externalDiffCommand: "difft --color=always --display=inline"
# useConfig: true
@palaniraja
palaniraja / .gitconfig
Last active March 18, 2025 01:18
~/.gitconfig
[user]
name =
email =
[includeIf "gitdir:~/Desktop/src/"]
path = ~/.gitconfig-work
[includeIf "gitdir:~/Desktop/src/try/"]
path = ~/.gitconfig-personal
@palaniraja
palaniraja / options.lua
Created February 20, 2025 16:32
nvim golang ~/.config/nvim/lua/config/options.lua
-- custom config
-- Disable relativenumber
vim.opt.relativenumber = false
-- Disable line numbers in terminal buffers
vim.api.nvim_create_autocmd("TermOpen", {
pattern = "*",
callback = function()
vim.opt_local.number = false
vim.opt_local.relativenumber = false
@palaniraja
palaniraja / Makefile
Last active February 11, 2025 20:21
cgo sample
CC := clang
CXX := clang++
CFLAGS := -g -O0 -Wall -fPIC -std=c11
CXXFLAGS := -g -O0 -Wall -fPIC -std=c++17
# static .a lib
# LDFLAGS := -g
# GO_BUILD_FLAGS := -gcflags="all=-N -l" -ldflags="-extldflags '$(LDFLAGS) -lc++'"
#shared .so/.dylib