Skip to content

Instantly share code, notes, and snippets.

View mforets's full-sized avatar
🏠
Working from home

Marcelo Forets mforets

🏠
Working from home
View GitHub Profile
@mforets
mforets / ltv_test.plt
Created April 10, 2020 15:18
Gnuplot polygons test
set terminal postscript enhanced color
set output './images/ltv_test.eps'
set style line 1 linecolor rgb "blue"
set autoscale
unset label
set xtic auto
set ytic auto
set xlabel "x"
set ylabel "y"
plot '-' notitle with lines ls 1
@mforets
mforets / LazySets_julia_v_1.4.jl
Created March 25, 2020 14:04
LazySets_julia_v_1.4.jl
```julia
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.4.0 (2020-03-21)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
@mforets
mforets / gist:86958a476b4f9ffe1884171d0e8966aa
Last active March 3, 2020 15:18
installing flow* on fedora

Getting the software

First download Flow*, https://flowstar.org/dowloads/

At the time of writing the latest release is v2.1.0 from march 2017.

The following installation instructions were tested on a Dell 9575 laptop running Fedora 31.

Installing the dependencies

@mforets
mforets / testscript.jl
Last active March 2, 2020 23:35
lazysets minimal test script
# paste this script on your .julia/dev/LazySets/test folder
using Revise, LazySets, Test
using LazySets: ispermutation
using LazySets.Arrays
using SparseArrays
using LinearAlgebra
using Polyhedra, CDDLib
using LazySets: dim, Interval, translate, volume, HalfSpace, project
test_suite_polyhedra = true
@mforets
mforets / cfp
Created February 20, 2020 17:30
cfp
- https://www.anii.org.uy/apoyos/investigacion/25/investigacion-y-desarrollo-en-matematica/
@mforets
mforets / neuralverif_lazysets.jl
Created February 4, 2020 16:56
Test NeuralVerification on LazySets#master
(v1.2) pkg> test NeuralVerification
Updating registry at `~/.julia/registries/General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
Testing NeuralVerification
Resolving package versions...
Status `/tmp/jl_Wfxs1N/Manifest.toml`
[621f4979] AbstractFFTs v0.5.0
[1520ce14] AbstractTrees v0.3.1
[79e6a3ab] Adapt v1.0.0
@mforets
mforets / sympower_imatrix.jl
Last active February 6, 2020 14:42
Symbolic interval matrix power
# =====================================
# Version using MacroTools + SymEngine
# =====================================
using IntervalMatrices
using SymEngine
using MacroTools: postwalk
subidx(i) = join(Char.(0x2080 .+ convert.(UInt16, digits(i)[end:-1:1])))
@mforets
mforets / modelingtoolkit_examples.md
Last active January 20, 2020 19:20
ModelingToolkit.jl Examples

Expression substitution

# suggested on Slack (20/01/2020)

using ModelingToolkit
using MacroTools: postwalk

function replace(ex::ModelingToolkit.Expression, ps::Pair...)
@mforets
mforets / CONFLIST_2020.md
Last active October 27, 2020 16:51
CONFLIST_2020