Skip to content

Instantly share code, notes, and snippets.

View TheZoq2's full-sized avatar
🦀
🦀 Always rust! 🦀

Frans Skarman TheZoq2

🦀
🦀 Always rust! 🦀
View GitHub Profile
template<class T>
class If : public T {
public:
static Rc<If> create(
Rc<BoolNode> condition,
Rc<T> on_true,
Rc<T> on_false
) {
return std::shared_ptr<If>(new If(condition, on_true, on_false));
}
class Node;
class FractionalNode {
virtual double min() = 0;
virtual double max() = 0;
};
class BooleanNode;
template<class Result>
module Test where
import Clash.Prelude
import Clash.Explicit.Testbench
delay2 :: (KnownNat n, HiddenClockReset domain gated synchronous) => DSignal domain n Int -> DSignal domain (n + 2) Int
delay2 = delayedI
/* ==UserStyle==
@name Empty @name replaces the default template - 2/11/2019, 12:57:34 PM
@namespace github.com/openstyles/stylus
@version 1.0.0
@description A new userstyle
@author Me
==/UserStyle== */
@-moz-document url-prefix("https://tornby.kina-thai.se/") {
/* Insert code here... */
use rand::{
Rng,
thread_rng,
distributions::{
Distribution,
Uniform
}
};
use std::time::Instant;
~/Documents/fpga/apio_template ♦ ➔ stack build clash-ghc-0.99.3 (master|●1✚3…)wraith
Error: While constructing the build plan, the following exceptions were encountered:
In the dependencies for clash-ghc-0.99.3:
clash-lib-0.7.1 from stack configuration does not match >=0.99.3 && <1.0 (latest matching version
is 0.99.3)
clash-prelude-0.11.2 from stack configuration does not match >=0.99.3 && <1.0 (latest matching
version is 0.99.3)
ghc-8.0.2 from stack configuration does not match >=8.2.0 && <8.8 (latest matching version
Codec: Realtek ALC295
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0295
Subsystem Id: 0x103c827e
Revision Id: 0x100002
No Modem Function Group found
Default PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
Codec: Realtek ALC295
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0295
Subsystem Id: 0x103c827e
Revision Id: 0x100002
No Modem Function Group found
Default PCM:
rates [0x560]: 44100 48000 96000 192000
bits [0xe]: 16 20 24
struct Esp8266<Tx, Rx, Timer, Timeout>
where Tx: hal::serial::Write<u8>,
Rx: hal::serial::Read<u8>,
Timer: hal::timer::CountDown,
Timeout: Fn() -> Timer::Time
{
tx: Tx,
rx: Rx,
timer: Timer,
timeout: Timeout
---- foreign_server::sync_integration::sync_works stdout ----
thread 'foreign_server::sync_integration::sync_works' panicked at 'Foregin sync failed: Error(Msg("Failed to send changes"), State { next_error: Some(Error(WrongHttpStatusCode(NotFound, ""), State { next_error: None, backtrace: Some(stack backtrace:
0: 0x561950762e64 - backtrace::backtrace::libunwind::trace::h371130c3922edecc
at /home/frans/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.5/src/backtrace/libunwind.rs:53
- backtrace::backtrace::trace::h6241456bfbea76ed
at /home/frans/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.5/src/backtrace/mod.rs:42
1: 0x56195075cd6c - backtrace::capture::Backtrace::new_unresolved::h170d04b789c32bb6
at /home/frans/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.5/src/capture.rs:88
2: 0x56195075ccbe - backtrace::capture::Backtrace::new::he781b3f0c43cb38