Skip to content

Instantly share code, notes, and snippets.

@Octetpus
Octetpus / keybase.md
Last active April 18, 2020 14:24
keybase.md

Keybase proof

I hereby claim:

  • I am octetpus on github.
  • I am bidouilleuse (https://keybase.io/bidouilleuse) on keybase.
  • I have a public key ASAiSjKyc2Nr3eXCjzhhUXbqQZD1j3FkhGtk0enhxm3rxAo

To claim this, I am signing this object:

@Octetpus
Octetpus / droit-cours.el
Last active December 24, 2019 10:47
AUCTeX style file for droit-cours
;;; droit-cours.el --- AUCTeX style file for droit-cours
(TeX-add-style-hook "droit-cours"
(function
(lambda ()
;; Basic definitions
(LaTeX-section-list-add-locally '(
("partie" -2)
("titre" -1)
("chapitre" 0)
("section" 1)
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
typedef struct {
int x;
int y;
int visited;
} city;
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main()
{
char tab[1024];
int index = 0;
char expression[2049];
@Octetpus
Octetpus / lumen.c
Created April 28, 2019 14:17
Codingame lumen
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
void removeSpaces(char* source){
/*Simple fonction pour enlever les espaces d'une chaine de caractère*/
char* i = source;
char* j = source;
while(*j != 0){
*i = *j++;
@Octetpus
Octetpus / river2.c
Created April 11, 2019 20:10
Codingame river 2
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
/**
* Auto-generated code below aims at helping you parse
* the standard input according to the problem statement.
**/
int sumDigits(int n){
@Octetpus
Octetpus / river1.c
Last active April 11, 2019 19:52
Condingame river I
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
long long sumDigits(long long n){
long long t, sum = 0;
long long remainder;
t = n;
while (t != 0){