Skip to content

Instantly share code, notes, and snippets.

View storca's full-sized avatar

storca

  • ENAC
  • France
View GitHub Profile
@storca
storca / drf1278dm.py
Created November 9, 2022 13:54
Python helper to configure the DRF1278DM module
"""
(Very) simple script to read and configure the DORJI DRF1278DM module (firmware version 2.7)
The original software provided by the manufacturer did not work on my computer, so I made my own (very simple) version
Script made following the manufacturer documentation :
http://www.dorji.com/docs/data/DRF1278DM.pdf
"""
from serial import Serial
@storca
storca / fifo.c
Last active October 13, 2022 09:22
FIFO Buffer in C
/**
* @file fifo.c
* @author storca (storca@mail.com)
* @brief Minimal implemntation of a FIFO Buffer in C using pointers
* @date 2022-10-13
*
* @copyright Copyright (c) 2022
*
* -> |first| -> |cell| -> |cell| -> ... -> |cell| -> |last| -> NULL
* {FIFO Buffer} -> [last| -> NULL
@storca
storca / sllist.c
Last active November 13, 2021 11:03
Single Linked list in C
/**
* @file sllist.c
* @author storca (storca@mail.com)
* @brief Generic implementation of a single-linked list
* Cells are added to the left, and deleted on the right
* @date 2021-11-11
*
* Illustration
*
* list_add(aa)
@storca
storca / stack.c
Last active November 13, 2021 10:58
Stack data structure in C
/**
* @file stack.c
* @author storca (storca@mail.com)
* @brief Implementation of a stack in C with a fixed size
*/
#define STACK_SIZE 64
#include <stdio.h> //printf
#include <string.h> //memcpy
@storca
storca / lgsmManager.sh
Last active May 26, 2018 08:27
An easy way to manage your lgsm servers
#!/bin/bash
#TPUT COLORS
blue='tput setaf 4'
mag='tput setaf 5'
green='tput setaf 2'
nc='tput sgr0'
red='tput setaf 1'
#VARIABLES