Skip to content

Instantly share code, notes, and snippets.

@AfoHT
AfoHT / PKGBUILD
Created May 3, 2019 18:54
rpncalc 1.36.9
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Oguz Han Asnaz <O.Asnaz@gmx.net>
pkgname=rpncalc
pkgver=1.36.9
pkgrel=1
pkgdesc="A calculator similar to dc, but uses readline and shows the stack visually."
arch=('i686' 'x86_64')
#url="http://packages.debian.org/squeeze/rpncalc"
url="http://homepage.hispeed.ch/david.frey/"
@AfoHT
AfoHT / output.rs
Created April 7, 2020 19:28
cfgstruct with panic
❯ cargo build
Compiling cfgstruct-macros v0.1.0 (/home/henrik/rust/cfg-proc_macro_test/cfgstruct/macros)
warning: unreachable expression
--> macros/src/lib.rs:12:5
|
11 | panic!("{}", item);
| ------------------- any code following this expression is unreachable
12 | item
| ^^^^ unreachable expression
|
@AfoHT
AfoHT / rtic-expansion.rs
Created June 14, 2023 18:35
Formatted rtic-expansion.rs - issue 762
#[doc = r" The RTIC application module"]
pub mod app {
#[doc = r" Always include the device crate which contains the vector table"]
use kiibohd_atsam4s::hal::pac as you_must_enable_the_rt_feature_for_the_pac_in_your_cargo_toml;
#[doc = r" Holds the maximum priority level for use by async HAL drivers."]
#[no_mangle]
static RTIC_ASYNC_MAX_LOGICAL_PRIO: u8 = 0u8;
use super::*;
type LayerLookup = kiibohd_atsam4s::kll_core::layout::LayerLookup<'static, LAYOUT_SIZE>;
type Matrix = kiibohd_atsam4s::hall_effect::HallMatrix<CSIZE, MSIZE>;