Skip to content

Instantly share code, notes, and snippets.

View ithinuel's full-sized avatar
🦀
Oxidizing

Wilfried Chauveau ithinuel

🦀
Oxidizing
View GitHub Profile
@ithinuel
ithinuel / !adc to usbd-serial
Last active March 29, 2023 21:39
adc to usb-serial example
.
@ithinuel
ithinuel / push_backable.rs
Created July 26, 2020 16:31
Similar to peekable but fetches first and allows to give back 1 item (possible evolution with circ buffer)
use futures::executor::block_on;
use futures::stream::{iter, StreamExt}; // 0.3.5
use pushbackable::*;
fn main() {
let mut strm = iter("Hello".chars())
.then(pend_once::PendOnce::new)
.push_backable();
//let strm = Parser::new(strm);
println!("{:?}", block_on((&mut strm).take(6).collect::<Vec<_>>()));
@ithinuel
ithinuel / main.rs
Created July 20, 2020 22:33
fiddling with async parser and streams
use futures::future::{ FutureExt}; // 0.3.5
use futures::stream::{self, Stream, StreamExt}; // 0.3.5
use futures::executor::block_on;
use pin_project::pin_project; // 0.4.22
use std::future::Future;
use std::pin::Pin;
use std::task::{Context, Poll};
diff --git a/lib/Target/AVR/AVRISelLowering.cpp b/lib/Target/AVR/AVRISelLowering.cpp
index fa8b5d4d3d7..1ff97910e4d 100644
--- a/lib/Target/AVR/AVRISelLowering.cpp
+++ b/lib/Target/AVR/AVRISelLowering.cpp
@@ -1307,32 +1307,36 @@ SDValue AVRTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
InVals);
}
-/// Reverse splitted return values to get the "big endian" format required
+/// Reverse splitted return values to "big endian" order
@ithinuel
ithinuel / playground.rs
Created August 2, 2019 23:10 — forked from rust-play/playground.rs
Code shared from the Rust Playground
macro_rules! or_else {
(,$b:tt) => {
stringify!($b)
};
($a:tt, $b:tt) => {
stringify!($a)
};
}
macro_rules! func {
#!/bin/zsh
./x.py install --config=config-targets.toml
./x.py --config config-targets.toml dist --target=thumbv7em-none-eabihf,thumbv7em-none-eabi,thumbv7m-none-eabi,thumbv6m-none-eabi
pushd build/dist
for f in $(ls rust-std*.tar.xz); do tar xf $f; done
for d in $(ls -d rust-std*/); do pushd $d; ./install.sh --prefix=$HOME/.local; popd; done
popd

Keybase proof

I hereby claim:

  • I am ithinuel on github.
  • I am ithinuel (https://keybase.io/ithinuel) on keybase.
  • I have a public key whose fingerprint is 26FF 331A BE4F 8DEA CFC7 E262 BB53 3DB5 7C5A E605

To claim this, I am signing this object: