Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View MatteoRagni's full-sized avatar
🎱

Matteo Ragni MatteoRagni

🎱
View GitHub Profile

Proposal for rules UID

The rule UID can be defined in a unique form, so it can be identified and optionally encapsulate the identity and the revision of the rule that is taken into consideration.

Concepts

In the design of such UID we must take into consideration the following:

  • even if the majority of rules are defined by ASAM, there is nothing that prevents third-party to define their own rules (concept of emanating entity)
  • rules can apply to FRAMEWORK (e.g., existence of a file, extension of the file, etc.), OpenDRIVE and OpenSCENARIO. There is nothing that prevents the creation of rules for other standards such as, e.g., OTX. The UID should allow future extensions (concept of reference standard)
@MatteoRagni
MatteoRagni / README.md
Last active September 26, 2021 19:51
Driver Arduino Matrimonio Laura e Matteo CH340G

BRAVO!

Hai capito quale era il primo step della sfida... E con una buona ricerca Google sei arrivato fino a qui. Ecco i driver per collegare l'Arduino Nano al PC. Il bus USB 2 Serial della scheda è un mitico CH340 (serie G) di quelli belli belli... e richiede un driver particolare per essere letto... Tranquillo, il driver è sicuro...

(oppure ci sei arrivato perchè ho messo un piccolo aiutino sul sito...)

Versione Windows

@MatteoRagni
MatteoRagni / blender_net.py
Created April 2, 2016 14:59
This is a simple Python module for Blender - Game network communication. This allow UDP connections in which `json` object are sent.
# Server
# To use it:
# - Load this script in Blender Note editor as `net.py`
# - Select the objects that should handle the network logic (for example an empty or the camera)
# - Add an Always sensor with only raise up
# - Add a python controller as a module, that calls `net.serve`
# - connect sensor and controller
# - enjoy
import bge
@MatteoRagni
MatteoRagni / Makefile
Last active September 9, 2020 06:41
This is a C++ implementation of a class that handles the COBS transfer.
CXX = g++
CXXFLAGS = --std=c++11 -g -I. -Wall
default:
$(CXX) $(CXXFLAGS) main.cpp -o main
.PHONY: clean
clean:
rm -rf main
@MatteoRagni
MatteoRagni / dns_update.py
Created August 24, 2020 18:02
Update an existing CloudFlare DNS record with the current Public IP (effectively a DynDNS)
#!/usr/bin/env python3
import json
import requests
from CloudFlare import CloudFlare
import pathlib
import logging
from logging.handlers import SysLogHandler
@MatteoRagni
MatteoRagni / Trajectory.tex
Last active April 14, 2020 19:19
Trajectory in space
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\usepackage{amsmath}
\usepackage{tikz-3dplot}
\pgfplotsset{compat=1.14}
\tikzset{>=latex}
\begin{document}
@MatteoRagni
MatteoRagni / lore.txt
Created April 9, 2020 10:25
La storia di Sir Vladimir Vodka il Mediocre
Ho sempre bevuto, da che mi ricordo.
Ho sempre bevuto, dopo l'addestramento obbligatorio nell'esercito
Ho sempre bevuto, durante la campagna della Funesta Espansione Territoriale
Ho sempre bevuto, mentre ci costringevano ad attaccare i civili che vivevano nella vallata
Ho sempre bevuto, quando il gelo ci colse alla sprovvista e ci entrò nelle ossa, decimando i nostri ranghi
Ho sempre bevuto, mentre l'esercito nemico avanzava, superando le nostre linee frontali come una macina per il grano
Ho sempre bevuto, mentre mi riprendevo, inerte, dalle ferite dele sciabole della Cavalleria Infernale nel mezzo del campo insanguinato
Ho sempre bevuto, mentre vagavo senza meta nella Vallata della battaglia, tra i cadaveri in putrefazione e gli stendardi spezzati della mia terra
Ho sempre bevuto, quando finalmente ho avuto abbastanza forze da superare il passo di montagna che mi separava dalla mia terra di origine
Ho sempre bevuto, mentre scavavo tra le macerie di quella che un tempo era la mia casa, es ora solo residui e
@MatteoRagni
MatteoRagni / .etc.init.d.CopyConsole
Last active January 11, 2020 22:57
Init script for CopyConsole. See Installation instructions in comments for detailed explanations.
### BEGIN INIT INFO
# Provides: CopyConsole
# Required-Start: $local_fs $remote_fs $network $syslog $named
# Required-Stop: $local_fs $remote_fs $network $syslog $named
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: false
# Short-Description: CopyConsole service
### END INIT INFO
@MatteoRagni
MatteoRagni / animal.cc
Created December 5, 2019 21:02
Pybind11 inheritance from a virtual class with different signature methods
#include "pybind11/pybind11.h"
#include <tuple>
namespace py = pybind11;
// Begin Library
class Animal {
public:
virtual ~Animal() { }
virtual int go(int a, int & b) = 0;
@MatteoRagni
MatteoRagni / .clang_format
Last active October 9, 2019 09:03
C++ Clang Format
---
BasedOnStyle: Google
AccessModifierOffset: '0'
AlignConsecutiveAssignments: 'true'
AlignEscapedNewlines: Right
AlignTrailingComments: 'true'
AllowShortBlocksOnASingleLine: 'false'
AllowShortCaseLabelsOnASingleLine: 'false'
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: 'false'