Skip to content

Instantly share code, notes, and snippets.

View alex179ohm's full-sized avatar
🎯
Focusing

Alessandro Cresto Miseroglio alex179ohm

🎯
Focusing
View GitHub Profile
@alex179ohm
alex179ohm / init.vim
Created January 17, 2020 17:01
nvim init.vim file
call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'vim-airline/vim-airline'
Plug 'mkitt/tabline.vim'
Plug 'NLKNguyen/papercolor-theme'
Plug 'jiangmiao/auto-pairs'
Plug 'bling/vim-bufferline'
Plug 'othree/jspc.vim', { 'for': ['javascript', 'javascript.jsx'] }
Plug 'posva/vim-vue'
Plug 'neoclide/coc.nvim', { 'tag': '*', 'branch': 'release' }
@alex179ohm
alex179ohm / Dockerfile
Last active March 11, 2020 16:34
c2rust Dockerfile
FROM rust:1.41-slim
WORKDIR /app
RUN apt update
RUN apt install -y build-essential llvm-7 clang-7 libclang-7-dev cmake libssl-dev pkg-config python3 \
&& apt clean \
&& rm -rf /var/lib/apt/lists/*
@alex179ohm
alex179ohm / rotate.rs
Last active April 28, 2020 14:11
Rotate Vec
pub enum Direction {
Left,
Right
}
// Efficiently perform left rotation of Vec's items r times.
fn rotate_left(v: &mut Vec<i32>, r: i32) {
rotate(v, Direction::Left, r)
}