Skip to content

Instantly share code, notes, and snippets.

View jonaslimads's full-sized avatar

Jonas Lima jonaslimads

  • Fortaleza, Brazil
View GitHub Profile
@jonaslimads
jonaslimads / Plot R graphics through Docker.md
Last active June 5, 2021 03:08
Plot R graphics through Docker

To run the container do:

docker-compose run --rm r

Once you have the container running, enter the command below in the R console to show some graphics

demo(graphics)
@jonaslimads
jonaslimads / calculator.rs
Created February 20, 2021 21:00
Rust calculator made from pest Parser (found on https://pest.rs/book/intro.html)
#[macro_use]
extern crate lazy_static;
extern crate pest;
#[macro_use]
extern crate pest_derive;
use pest::iterators::{Pair, Pairs};
use pest::prec_climber::{Assoc, Operator, PrecClimber};
use pest::{error, Parser};