Skip to content

Instantly share code, notes, and snippets.

View lanedraex's full-sized avatar

Alexandre Cavalcante lanedraex

View GitHub Profile
@lanedraex
lanedraex / listener.rs
Created November 5, 2017 09:12
Rust UDP socket: send and receive
use std::net;
use std::env;
fn listen(socket: &net::UdpSocket, mut buffer: &mut [u8]) -> usize {
let (number_of_bytes, src_addr) = socket.recv_from(&mut buffer).expect("no data received");
println!("{:?}", number_of_bytes);
println!("{:?}", src_addr);
@lanedraex
lanedraex / init.vim
Created May 27, 2017 20:56
My neovim config.
----------------------------- BUNDLE ------------------------------------
" Plugin Manager: vim-plug
" Specify a directory for plugins (for Neovim: ~/.local/share/nvim/plugged)
call plug#begin('~/.local/share/nvim/plugged')
" Make sure you use single quotes
" Deoplete is the abbreviation of "dark powered neo-completion".
" It provides an asynchronous keyword completion system in the current buffer.
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }