Skip to content

Instantly share code, notes, and snippets.

Rémi Bèges Overdrivr

Block or report user

Report or block Overdrivr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Overdrivr
Overdrivr / check.py
Created Mar 25, 2019
Check Microsoft Visual C++ redist. is properly installed for Tensorflow
View check.py
from ctypes.util import find_library
import ctypes
msvcp140_path = find_library("msvcp140.dll")
if msvcp140_path is None:
raise Exception('msvcp140.dll not found on system')
# Check DLL is found in system32 folder and not somewhere else
print(msvcp140_path)
@Overdrivr
Overdrivr / .gitlab-ci.yml
Last active Mar 22, 2018
Deploy static-files from Gitlab-CI to Firebase
View .gitlab-ci.yml
# See https://blog.cronobo.com/2018/03/22/deploy-firebase-from-gitlab-ci.html
stages:
- deploy
deploy:
image: node:8
stage: deploy
environment: production
script:
@Overdrivr
Overdrivr / server.js
Last active Nov 8, 2016
HTTPS static file server with connect
View server.js
var connect = require('connect');
var serveStatic = require('serve-static');
var https = require('https');
// Get certificates for free here
// https://letsencrypt.org/
var key = fs.readFileSync('./key.pem');
var cert = fs.readFileSync('./cert.pem')
var options = {
key: key,
@Overdrivr
Overdrivr / coords-ligne3-metro-toulouse.json
Created Oct 31, 2016
Coordonnées GPS estimées de la ligne 3 du métro de Toulouse (parcours validé a ce jour, il manque les parcours optionnels). Voir la carte
View coords-ligne3-metro-toulouse.json
[
{name: 'Airbus Colommiers', coords: [43.6164113,1.3505030]},
{name: 'Airbus Saint Martin', coords: [43.6119056,1.3726646]},
{name: 'Jean Maga', coords: [43.6217381,1.3969560]},
{name: 'Espace Job', coords: [43.6164200,1.4076825]},
{name: 'Boulevard de suisse', coords: [43.6170028,1.4220444]},
{name: 'Fondeyre (estimation)', coords: [43.6294087,1.4294307]},
{name: 'La Vache SNCF', coords: [43.6346464,1.4398956]},
{name: 'Toulouse Lautrec (estimation)', coords: [43.6270672,1.4443802]},
{name: 'Raynal', coords: [43.6168462,1.4508390]},
@Overdrivr
Overdrivr / Notes on C&C++ package managers.md
Last active Feb 21, 2019
Why C/C++ package managers fail for now ?
View Notes on C&C++ package managers.md

Motivation

As for now (mid 2016), there doesn't seem to be a C/C++ package manager that stands out of the crowd. To understand the reasons behind this failure, I will try to list in this README most C/C++ package managers, highlight differences between them, then list critics that are made about them.

Note: this README is merely a gathering of personnal notes, doesn't intend to be a reference in any way.

A standard proposal : http://open-std.org/JTC1/SC22/WG21/docs/papers/2016/p0235r0.pdf

Package managers

@Overdrivr
Overdrivr / bar.js
Last active Aug 2, 2016
Mockery useCleanCache gotcha
View bar.js
module.exports = function hello() {
console.log("Byebye");
}
@Overdrivr
Overdrivr / paths.py
Created May 9, 2016
Display all python importable paths
View paths.py
import sys
import os
from colorama import init
from colorama import Fore, Back, Style
init()
def testEquals(p,l):
for i in l:
if os.path.normpath(p) == os.path.normpath(i):
return True
@Overdrivr
Overdrivr / driver.hpp
Last active Mar 3, 2016
UART driver compatible with Telemetry (http://bit.ly/1XtKWXS) for board NXP KL25Z using base code from NXP Cup
View driver.hpp
int32_t write(void * buf, uint32_t sizeToWrite)
{
uint8_t * buffer = (uint8_t *) buf;
uint_32t i = 0;
for(i = 0 ; i < sizeToWrite ; i++)
{
ByteEnqueue(&SDA_SERIAL_OUTGOING_QUEUE, (uint8_t)(buffer[i]));
}
return (int32_t)sizeToWrite;
}
@Overdrivr
Overdrivr / in-2016-Feb-20_18-25-02.log
Last active Feb 20, 2016
Log of received data while connecting at wrong speed with pytelemetry. Looks like CRC collisions happens pretty fast (` WARNING | Header not found`) since wrong frame pass it. Need to store framesize as well.
View in-2016-Feb-20_18-25-02.log
2016-02-20 18:25:24,378 | INFO | b'0000746f75636800000000002386'
2016-02-20 18:25:24,378 | INFO | b'05006163633a780044006591'
2016-02-20 18:25:24,378 | INFO | b'05006163633a79007c032861'
2016-02-20 18:25:24,378 | INFO | b'05006163633a7a00a441fd3f'
2016-02-20 18:25:24,394 | INFO | b'00007468726f74746c65009a99993e0f8d'
2016-02-20 18:25:24,425 | INFO | b'0000746f75636800000000002386'
2016-02-20 18:25:24,425 | INFO | b'05006163633a78005000906e'
2016-02-20 18:25:24,425 | INFO | b'05006163633a790030030837'
2016-02-20 18:25:24,440 | INFO | b'05006163633a7a00bc405b15'
2016-02-20 18:25:24,440 | INFO | b'00007468726f74746c65009a99993e0f8d'
@Overdrivr
Overdrivr / main.c
Created Feb 15, 2016
Output sensor data from NXP KL25Z using the telemetry library(http://bit.ly/1XtKWXS) to a computer. With the command-line interface(http://bit.ly/20TuTrY), plots of the sensors data can be opened by typing a few commands.
View main.c
#include "mbed.h"
#include "telemetry/driver.hpp"
#include "tsi_sensor.h"
#include "MMA8451Q.h"
#define MMA8451_I2C_ADDRESS (0x1d<<1)
int main()
{
Telemetry TM();
You can’t perform that action at this time.