Skip to content

Instantly share code, notes, and snippets.

View meuter's full-sized avatar

Cédric Meuter meuter

  • Ingenico
  • Bruxelles
View GitHub Profile
@meuter
meuter / init.lua
Created December 31, 2022 10:49
minimal neovim config with lsp, telescope, toggleterm, diffview in under 150 lines of lua
-------------------------------------------------------------------------------
-- Options
-------------------------------------------------------------------------------
vim.opt.number = true
vim.opt.cursorline = true
vim.opt.smartindent = true
vim.opt.expandtab = true
vim.opt.tabstop = 4
vim.opt.shiftwidth = 4
vim.opt.laststatus = 3
@meuter
meuter / ansi_color.h
Created July 23, 2018 11:46
ANSI Colors in C using CPP
#ifndef __ANSI_COLOR_INCLUDED__
#define __ANSI_COLOR_INCLUDED__
#define ANSI_RESET "0"
#define ANSI_BOLD "1"
#define ANSI_BLACK "30"
#define ANSI_RED "31"
#define ANSI_GREEN "32"
#define ANSI_YELLOW "33"
#define ANSI_BLUE "34"
@meuter
meuter / shebang_gcc.txt
Created June 16, 2018 09:38
Using shebang to compile and run C program directly
//usr/bin/gcc -o test "$0" && exec ./test "$@"
#include <stdio.h>
int main(int argc, const char *argv[])
{
int i;
for (i = 0; i < argc; i++)
printf("argv[%d] = '%s'\n", i, argv[i]);
return 42;