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
~/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
use rand::{
Rng,
thread_rng,
distributions::{
Distribution,
Uniform
}
};
use std::time::Instant;
/* ==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... */
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
class Node;
class FractionalNode {
virtual double min() = 0;
virtual double max() = 0;
};
class BooleanNode;
template<class Result>
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));
}
#include <Servo.h>
#include <SPI.h>
#include <Wire.h>
#include <SparkFunLSM9DS1.h>
Servo servo;
LSM9DS1 imu;
@TheZoq2
TheZoq2 / bspwm xtruss
Last active September 29, 2019 16:26
--- FocusOut(event=w#02C00006, mode=Grab, detail=Ancestor)
--- PropertyNotify(window=w#02C00006, atom=a#345, state=NewValue, time=0x13E04E95)
ChangeWindowAttributes(window=w#02C00006, border-pixel=0xFF000000)
ChangeWindowAttributes(window=w#02E00006, border-pixel=0xFF808080)
ChangeProperty(window=w#000006C4, property=a#311, type=a"WINDOW", format=32, mode=Replace, data=02E00006)
ConfigureWindow(window=w#02E00006, sibling=w#0C609D4D, stack-mode=Below)
... ConfigureWindow(window=w#02E00006, sibling=w#0C609D4D, stack-mode=Below) = BadWindow(window=w#0C609D4D)
ChangeProperty(window=w#000006C4, property=a#371, type=a"WINDOW", format=32, mode=Replace, data=0EA00003:0CA00003:15400003:0DE00003:0D400003:10E00003:06C00003:09800003:0C600003:17000003:15200003:01E0002F:10600003:14200003:07400011:17A00003:18E00003:...)
SetInputFocus(focus=w#02E00006, revert-to=Parent, time=CurrentTime)
--- FocusOut(event=w#02C00006, mode=WhileGrabbed, detail=Nonlinear)
pub trait Pins {
const C1: bool;
const C2: bool;
const C3: bool;
type Channels;
}
macro_rules! impl_pins {
// Expands to a struct that implements the Pins trait
// The syntax is a bit strange, but it should be generated by another
make[1]: Entering directory '/home/frans/Documents/phd/thesis_private'
[clang++] Building build/debug/src/pt_model_hardware.o
[clang++] Building build/debug/src/node_based.o
In file included from src/node_based.cpp:1:
In file included from src/node_based.hpp:3:
In file included from src/reference.hpp:7:
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/variant:1177:39: error: invalid operands to binary expression ('const Reference::IBsgOutOfBounds' and 'const Reference::IBsgOutOfBounds')
_VARIANT_RELATION_FUNCTION_TEMPLATE(==, equal)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../include/c++/9.2.0/variant:1160:38: note: expanded from macro '_VARIANT_RELATION_FUNCTION_TEMPLATE'