Skip to content

Instantly share code, notes, and snippets.

View baco's full-sized avatar
👨‍💻
🐍 🇦🇷 🧉

Dionisio E Alonso baco

👨‍💻
🐍 🇦🇷 🧉
View GitHub Profile
@BlueDrink9
BlueDrink9 / lazy.nvim adapter for vim-plug.md
Last active February 29, 2024 16:27
Share your vim-plug plugins with your lazy.nvim neovim setup, with minimal performance loss

lazy.nvim adapter for vim-plug

This is a drop-in adapter layer for vim-plug and lazy.nvim, allowing you to have a core set of vim plugins, configured with Plug, which will also be loaded using lazy.nvim instead whenever you use neovim (alongside any additional set of lazy.nvim plugins you have configured.)

It works by adding a new command Plugin as a drop-in Plug replacement. That calls a function that sets up lazy.nvim specs for the equivalent Plug args, and stores them in a variable that you can then add to your lazy spec.

@jimmychu0807
jimmychu0807 / string-conversion.rs
Created November 21, 2019 10:20
Conversion between String, str, Vec<u8>, Vec<char> in Rust
use std::str;
fn main() {
// -- FROM: vec of chars --
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}'];
// to String
let string1: String = src1.iter().collect::<String>();
// to str
let str1: &str = &src1.iter().collect::<String>();
// to vec of byte
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active May 7, 2024 16:31
set -e, -u, -o, -x pipefail explanation
@artem-bez
artem-bez / programmers_day.ics
Last active August 21, 2020 17:47
iCalendar file that describes when to celebrate the Programmers' Day. Celebration happens annually on 256th day of the year. You can import this file into a calendar application that doesn't provide direct means to specify such recurrence rule. For example, Google Calendar is one of such apps.
BEGIN:VCALENDAR
BEGIN:VEVENT
DTSTART;VALUE=DATE:20020913
DTEND;VALUE=DATE:20020913
RRULE:FREQ=YEARLY;INTERVAL=1;BYYEARDAY=256
DESCRIPTION:https://en.wikipedia.org/wiki/Programmers%27_Day
LOCATION:
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:Programmers' Day
@dkasak
dkasak / xdg.vim
Last active May 4, 2024 05:45 — forked from kaleb/XDG.vim
vim XDG Base Directory support
" XDG Environment For VIM
" =======================
"
" References
" ----------
"
" - http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html#variables
" - http://tlvince.com/vim-respect-xdg
" - https://gist.github.com/kaleb/3885679 (the original version)
"