This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
template<typename T> | |
struct NoDefault { | |
NoDefault() = delete; | |
NoDefault(T const& inner) : inner{inner} {} | |
operator T() {return inner;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.global main | |
main: | |
; Setup stack pointer | |
ldi r16,0x08 | |
out SPH,r16 | |
ldi r16,0xff | |
out SPL,r16 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE ExplicitForAll #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE Rank2Types #-} | |
{-# LANGUAGE AllowAmbiguousTypes #-} | |
{-# LANGUAGE PolyKinds #-} | |
module DFold_ (dfold_, subMonotone1) where | |
import Clash.Prelude |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```haskell | |
{-# LANGUAGE ExplicitForAll #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE StarIsType #-} | |
import Clash.Prelude | |
-- import Data.Singletons.Prelude | |
import Data.Singletons (TyFun, Apply) | |
import Data.Proxy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage[11pt]{moresize} | |
\usepackage[a4paper,margin=0cm]{geometry} | |
\usepackage{tikz} | |
\usepackage{amsthm,amsmath,amssymb} | |
\usepackage[protrusion=true,expansion=true]{microtype} | |
\usetikzlibrary{positioning,shapes,shadows,arrows,backgrounds,fit} | |
\usepackage[utf8]{inputenc} | |
\newcommand{\content}{\Large Best audio/visuals} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_": "", | |
"buttons": { | |
"A": { | |
"action": "button(Keys.BTN_GAMEPAD)" | |
}, | |
"B": { | |
"action": "button(Keys.BTN_EAST)" | |
}, | |
"BACK": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Servo.h> | |
#include <SPI.h> | |
#include <Wire.h> | |
#include <SparkFunLSM9DS1.h> | |
Servo servo; | |
LSM9DS1 imu; |
NewerOlder