Skip to content

Instantly share code, notes, and snippets.

View Irubataru's full-sized avatar
🏳️‍⚧️

Aleksandra Glesaaen Irubataru

🏳️‍⚧️
View GitHub Profile
@Irubataru
Irubataru / dim.tex
Last active August 29, 2015 14:21
Tikz Dim Code
% Given the name of two tikz nodes, this dims the lines starting at node 1, ending at node 2
\newcommand{\dimtext}[2]%
{
{ \transparent{0.7}
\begin{tikzpicture}[overlay, remember picture]
\fill[white] ( #1 -| current page.north west) -- ++(0,1em) -- ++(\paperwidth,0) -- (#2 -| current page.north east)
-- ++(0,-.5em) -- ++(-\paperwidth,0) -- cycle;
\end{tikzpicture}
}
}[
@Irubataru
Irubataru / primme_test.cpp
Last active June 7, 2016 21:03
Primme + armadillo test
#include<primme/primme.h>
#include<armadillo>
#include<cassert>
constexpr auto SIZE = std::size_t {24};
using vec = arma::cx_vec::fixed<SIZE>;
using mat = arma::cx_mat::fixed<SIZE,SIZE>;
void matrix_multiplication(const vec &x, const mat &m, arma::cx_vec &y)
{
@Irubataru
Irubataru / mtheme_mew.tex
Created January 19, 2017 15:18
Change colours in mtheme
\documentclass{beamer}
\usetheme{metropolis}
\setbeamercolor{progress bar}{fg=green, bg=purple}
\begin{document}
\section{Section 1}
\begin{frame}{Hello}
\end{frame}