Skip to content

Instantly share code, notes, and snippets.

@tausen
tausen / bfin_sport.h
Created May 4, 2013 09:27
Analog Devices Blackfin SPORT
/*
* bfin_sport.h - interface to Blackfin SPORTs
*
* Copyright 2004-2009 Analog Devices Inc.
*
* Licensed under the GPL-2 or later.
*/
#ifndef __BFIN_SPORT_H__
#define __BFIN_SPORT_H__
@tausen
tausen / shiftaddmult.vhd
Created April 7, 2014 14:19
shiftaddmult
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use ieee.std_logic_unsigned.all;
entity shiftaddmult is
generic (WIDTH: integer := 8);
port (
clk: in std_logic;
reset: in std_logic;
@tausen
tausen / fontawesome.sty
Created April 5, 2018 19:38 — forked from jasonkhanlar/fontawesome.sty
FontAwesome mapping for XeLaTeX
% FontAwesome (http://fortawesome.github.com/Font-Awesome/) bindings for (Xe)LaTeX
% Author: Honza Ustohal <[email protected]>
% Updated to match FontAwesome v4.5.0 by Jason Khanlar <[email protected]>
%
% Translation of FontAwesome's private range characters into XeTeX symbols. All icons are camel-cased and prefixed with 'fa', i.e. what was .icon-align-center the CSS version of FontAwesome becomes \faAlignCenter
% This might be reworked into a full blown package in the near future
%
% Prerequisite:
% XeLaTeX, FontAwesome installed as a system font accessible by XeLaTeX
%
@tausen
tausen / Outlook-style replies with mu4e.md
Last active March 29, 2020 11:37
Dirty, dirty hacks to support Outlook HTML reply styles in mu4e
@tausen
tausen / parse_mem_dat.c
Created March 8, 2022 15:43
memusage dat parser
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
struct entry {
uint64_t heap;
uint64_t stack;
uint32_t time_low;
uint32_t time_high;
};
@tausen
tausen / infinilog.py
Created September 22, 2023 20:31
InfiniTime bluetooth attribute logging
#!/usr/bin/env python3
import time
import struct
import asyncio
from bleak import BleakClient, BleakScanner, exc
from bleak.backends.characteristic import BleakGATTCharacteristic
UUID_HEARTRATE = '00002a37-0000-1000-8000-00805f9b34fb'