Skip to content

Instantly share code, notes, and snippets.

View elsuizo's full-sized avatar
🧉
Drinking Mate

Martín Noblía elsuizo

🧉
Drinking Mate
View GitHub Profile
[1.031s] Invoking command in '/home/elsuizo/.cache/yay/ros2-foxy/src/build/ros1_bridge': AMENT_PREFIX_PATH=/home/elsuizo/.cache/yay/ros2-foxy/src/install CMAKE_PREFIX_PATH=/home/elsuizo/.cache/yay/ros2-foxy/src/install:${CMAKE_PREFIX_PATH} LD_LIBRARY_PATH=/home/elsuizo/.cache/yay/ros2-foxy/src/install/lib:${LD_LIBRARY_PATH} PATH=/home/elsuizo/.cache/yay/ros2-foxy/src/install/bin:${PATH} PKG_CONFIG_PATH=/home/elsuizo/.cache/yay/ros2-foxy/src/install/lib/pkgconfig:${PKG_CONFIG_PATH} PYTHONPATH=/home/elsuizo/.cache/yay/ros2-foxy/src/install/lib/python3.9/site-packages:${PYTHONPATH} _=/usr/bin/env /usr/bin/cmake /home/elsuizo/.cache/yay/ros2-foxy/src/ros2/src/ros2/ros1_bridge -DCMAKE_INSTALL_PREFIX=/home/elsuizo/.cache/yay/ros2-foxy/src/install
[1.138s] -- The C compiler identification is GNU 10.2.0
[1.321s] -- The CXX compiler identification is GNU 10.2.0
[1.330s] -- Detecting C compiler ABI info
[1.430s] -- Detecting C compiler ABI info - done
[1.444s] -- Check for working C compiler: /usr/bin/cc - skipped
[1.4
@elsuizo
elsuizo / colecciones-rust.org
Created May 18, 2020 13:44
las colecciones mas utilizadas en Rust que estan en la libreria estandar y su par en otro lenguaje

Colecciones en Rust

ColeccionDescripcionen Cppen Javaen Python
Vec<T>Array que puede crecervectorArrayListlist
VecDeque<T>cola con dos puntasdequeArrayDequecollections.deque
LinkedList<T>Doble lista enlazadalistLinkedList
@elsuizo
elsuizo / Iterators mas comunes en Rust
Created May 11, 2020 18:03
Los iteradores mas utilizados en Rust que estan la mayoria en la libreria std
------------------------------+-------------------------------------+-------------------------------------------------------------------------------------+
Type o trait | Expresion | Notas |
------------------------------+-------------------------------------+-------------------------------------------------------------------------------------+
std::ops::Range | 1..10 | el final debe ser un int |
------------------------------+-------------------------------------+-------------------------------------------------------------------------------------+
std::ops::RangeFrom | 1.. | Iteracion sin final. El valor inicial debe ser un int. |
| | Puede `panic` o
----------------------+-----------------------+-------------------------------+
Category | Trait | Operator |
----------------------+-----------------------+-------------------------------+
Unary Operators | std::ops::Neg | -x |
| std::ops::Not | !x |
----------------------+-----------------------+-------------------------------+
Aritmetic Operators | std::ops::Add | x + y |
| std::ops::Sub | x - y |
| std::ops::Mul | x * y |
| std::ops::Div | x / y |
elsuizo@arch  ~/Dev/Tests/Rust_embedded/demo  arm-none-eabi-gdb target/thumbv7em-none-eabihf/debug/examples/hello
GNU gdb (GDB) 8.0
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-pc-linux-gnu --target=arm-none-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
@elsuizo
elsuizo / error_openocd_gdb
Created August 28, 2017 23:33
Error gdb openocd in custom board with lpc4337 and ftdi connection
Info : lpc4337.m4: hardware has 6 breakpoints, 4 watchpoints
Info : lpc4337.m0: hardware has 2 breakpoints, 1 watchpoints
Info : accepting 'gdb' connection on tcp/3333
Info : JTAG tap: lpc4337.m4 tap/device found: 0x4ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x4)
Info : JTAG tap: lpc4337.m0 tap/device found: 0x0ba01477 (mfg: 0x23b (ARM Ltd.), part: 0xba01, ver: 0x0)
Warn : Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
Warn : Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x1a002730 msp: 0x10008000
Error: timed out while waiting for target halted
@elsuizo
elsuizo / read_from_IO.rs
Created July 28, 2017 02:02
Read form STDIN in Rust programming language
fn read_text_file_fromIO() -> std::io::Result<String> {
let mut buffer = String::new();
std::io::stdin().read_to_string(&mut buffer)?;
Ok(buffer)
}
@elsuizo
elsuizo / parse_pair.rs
Last active July 26, 2017 17:17
parse pair of args
fn parse_pair<T: FromStr>(s: &str, separator: char) -> Option<(T, T)> {
9 match s.find(separator) {
8 None => None,
7 Some(index) => {
6 match (T::from_str(&s[..index]), T::from_str(&s[index+1..])) {
5 (Ok(l), Ok(r)) => Some((l, r)),
#= -------------------------------------------------------------------------
# @file implicit_plot.jl
#
# @date 09/13/16 14:26:49
# @author Martin Noblia
# @email martin.noblia@openmailbox.org
#
# @brief
#
# @detail
@elsuizo
elsuizo / implicit_plot.jl
Created September 13, 2016 18:41
Countour plot with Julia language
#= -------------------------------------------------------------------------
# @file implicit_plot.jl
#
# @date 09/13/16 14:26:49
# @author Martin Noblia
# @email martin.noblia@openmailbox.org
#
# @brief
#
# @detail