Skip to content

Instantly share code, notes, and snippets.

View MatteoRagni's full-sized avatar
🎱

Matteo Ragni MatteoRagni

🎱
View GitHub Profile
@MatteoRagni
MatteoRagni / adhesion.dat
Last active November 15, 2016 13:53
Ex. for 15 Nov. Lecture
19.8
15.4
11.4
19.5
10.1
18.5
14.1
8.8
14.9
7.9
@MatteoRagni
MatteoRagni / .gitignore
Last active November 29, 2016 19:49
Class structure for Mr.CAS
*.dot
@MatteoRagni
MatteoRagni / 00_README.md
Last active March 13, 2017 14:48
Scripts for paper: M. Ragni - "Mr.CAS - A Minimalistic (pure) Ruby CAS for Fast Prototyping and Code Generation"

Mr.CAS - A Minimalistic (pure) Ruby CAS for Fast Prototyping and Code Generation

Abstract

There are complete Computer Algebra System (CAS) systems on the marketm with complete solutions for analysis of analytical models. But exporting a model, for optimization or any other research activity, requires a lot of work, even with a good software.

This work presents a Ruby library that exposes minimalistic CAS capabilities - i.e. simplifications, substitutions, evaluations, etc. Library aims at rapid prototyping of numerical interfaces and code generation for different target languages, separating mathematical expression from exportation rules - e.g. models from numerical conditioning best practices.

The library is implemented in pure Ruby language and compatible with all Ruby interpreter flavours.

@MatteoRagni
MatteoRagni / README.md
Last active August 12, 2017 13:14
Creates a context-menu in nautilus that allows to open a directory (or a list of selected directory) as project folder. Only for current user (no root required).

Atom context menu

Synopsis

This simple script creates a new element in context menu that opens current directory (background click) or a list of directory (selected elements) as project folder. It does not open single files (that should be done as MIME type, search on google!)

Installation

@MatteoRagni
MatteoRagni / lectures.md
Created February 19, 2017 14:22
Fondamenti di Informatica: Lezioni 2015

Riassunto lezioni

(per il gruppo A-L)

24 Febbraio

  • Introduzione alla console
    • cd
    • pwd
    • ls
@MatteoRagni
MatteoRagni / Dockerfile
Created March 30, 2017 08:27
VBOX building environment
FROM debian:7.11
LABEL Description "Building Machine for VBox"
LABEL Vendor "Matteo Ragni, Alessandro Mazzalai"
LABEL Mantainer "[email protected]"
LABEL Version "1.0"
RUN apt-get update
RUN apt-get install -y --no-upgrade --no-install-recommends \
@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 / Evolutionary.tex
Created August 4, 2017 10:33
Evolutionary algorithm
\documentclass[]{standalone}
\usepackage{tikz}
\begin{document}
\tikzstyle{scale all}=[every node/.style={scale=#1}, scale=#1]
\tikzset{
solution/.pic = {
@MatteoRagni
MatteoRagni / state2_hash.json
Last active August 31, 2017 19:38 — forked from mshafrir/states_hash.json
US states in JSON form
{
"Alabama": "AL",
"Alaska": "AK",
"American Samoa": "AS",
"Arizona": "AZ",
"Arkansas": "AR",
"California": "CA",
"Colorado": "CO",
"Connecticut": "CT",
"Delaware": "DE",
@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