Skip to content

Instantly share code, notes, and snippets.

@rpicard
rpicard / .vimrc
Last active August 29, 2015 14:04
syntax on " Syntax highlighting
set relativenumber " Line numbers
set ruler " Show the line and column number
""" Whitespace
set autoindent " Copy current lines indentation when creating new line
set expandtab " Use the appropriate number of spaces to insert a tab
set smarttab
set shiftwidth=4 " Number of spaces to use for each step of (auto)indent
set tabstop=4 " Number of spaces to use for <Tab>
### Keybase proof
I hereby claim:
* I am rpicard on github.
* I am rpicard (https://keybase.io/rpicard) on keybase.
* I have a public key whose fingerprint is F958 81D7 46D6 D166 1C62 6842 87F1 72D9 1592 F720
To claim this, I am signing this object:
@rpicard
rpicard / logarithm.c
Created April 27, 2014 02:50
Finally started to get some intuitive understanding of logarithms so I put it into code
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
int base = atoi(argv[1]);
int value = atoi(argv[2]);
int i = 0;