Skip to content

Instantly share code, notes, and snippets.

View 50-Course's full-sized avatar
🏠
Working from home

Eri A. 50-Course

🏠
Working from home
View GitHub Profile
@50-Course
50-Course / init.lua
Created November 12, 2023 23:44
LSP Configuration source
local cmp = require("cmp")
local capabalities = vim.lsp.protocol.make_client_capabilities()
capabalities = require("cmp_nvim_lsp").default_capabilities(capabalities)
local mason = require("mason")
local mason_lspconfig = require("mason-lspconfig")
cmp.setup({
snippet = {
@50-Course
50-Course / utils.lua
Created November 12, 2023 23:43
LSP Configuration source
--- Utility functions to aid development of other modules
---
--- @module utils
local M = {}
function M.get_file_extension(path)
return path:match("^.+(%..+)$")
end
function M.get_file_name(path)
@50-Course
50-Course / keymaps.lua
Created October 30, 2023 12:03
LSP Keymaps passed exported as a module and passed into `on_attach` function
--- Defines the bindings for various operations performed by the LSP with combination of
--- chords.
local map = require('utils').remap
local M = {}
M.on_attach = function(client, bufnr)
client = client
buffer = bufnr
@50-Course
50-Course / init.lua.save
Created October 18, 2023 10:04
self-contained vimrc configuration
-- This configuration file is licensed under the MIT License
-- The user (You) is permitted to modfiy, use or re-distribute the configuration
-- file as he/she/they/them/other see pleased.
--
-- It would be nice, if you could mention the author. Thanks!
-- Global configuration
--
-- :h <options> would give you the options
@50-Course
50-Course / cdn.md
Created March 14, 2023 09:52 — forked from jcubic/cdn.md
How to setup a literally free CDN
@50-Course
50-Course / dj-compose.compose.yaml
Last active August 1, 2023 13:03
Compose file template for python backend applications
##############
# Docker Compose File
# Maintainer: Eri Adeodu (@50-Course)
# License: MIT License.
#
# Reference links:
# incase you feeling adventerous,
# - https://docs.docker.com/compose/compose-file/
# - https://nickjanetakis.com/blog/best-practices-around-production-ready-web-apps-with-docker-compose
# - https://https://hackmamba.io/blog/2022/09/best-practices-when-using-docker-compose/
@50-Course
50-Course / customBadges.md
Created December 20, 2022 09:05 — forked from afig/customBadges.md
Creating a Custom Badge for GitHub Projects

Custom Badges

The Shields service (at shields.io) provides a way to create custom badges for your projects. These are badges are very common and are frequently used to show status information about the project, or demonstrate tools that were used for the development of your project.

Example badge:

Creating a badge

@50-Course
50-Course / gist:3e923c42a33e7bf64636110b747b6d51
Created October 30, 2022 03:01 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@50-Course
50-Course / GitCommitEmoji.md
Created September 18, 2022 02:46 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji

Inspired by dannyfritz/commit-message-emoji

See also gitmoji.

Commit type Emoji
Initial commit πŸŽ‰ :tada:
Version tag πŸ”– :bookmark:
New feature ✨ :sparkles:
Bugfix πŸ› :bug:

Commit Message Guidelines

Short (72 chars or less) summary

More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).

Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages