Skip to content

Instantly share code, notes, and snippets.

@zegervdv
zegervdv / metrics.py
Created June 26, 2023 06:50
verilog halstead code metrics
import sys
import math
from collections import Counter, deque
from typing import NamedTuple
import verible_verilog_syntax
from rich.table import Table
from rich import print
class HalsteadMetrics(NamedTuple):
operands: Counter

$argon2id$v=19$m=64,t=512,p=2$wE+3fnNj48cHrOxISnGhbA$F3Tymue3uJ7Gg4NK1mey2g

Keybase proof

I hereby claim:

  • I am zegervdv on github.
  • I am zegervdv (https://keybase.io/zegervdv) on keybase.
  • I have a public key ASAe1VOHhQBjWLt77fYSnX_fug6LCw7SUYL4jhcpOMOJeQo

To claim this, I am signing this object:

2016-07-22 10:30:27,126 [INFO @ script_host.py:setup:52] 10823 - install import hook/path
2016-07-22 10:30:27,127 [INFO @ script_host.py:setup:57] 10823 - redirect sys.stdout and sys.stderr
2016-07-22 10:30:32,888 [INFO @ session.py:request:97] 10830 - 'Received error: [1, b'Key not found']
2016-07-22 10:30:32,890 [INFO @ session.py:request:97] 10830 - 'Received error: [1, b'Key not found']
function! NagelFarEchoError()
let a:qf_files = getqflist()
if (len(a:qf_files) > 0)
let a:current_position = line('.')
let a:message = filter(getqflist(), 'v:val.lnum == a:current_position')
if (len(a:message) > 0)
echo get(a:message, 0).text
endif
endif
endfunction
@zegervdv
zegervdv / zshrc
Last active December 18, 2015 06:39
eval my_gray='$FG[237]'
eval my_orange='$FG[214]'
function get_pwd() {
echo "${PWD/$HOME/~}"
}
local my_prompt_name='%n'
PROMPT='%{$fg[cyan]%}$my_prompt_name%{$reset_color%} in %{$fg[yellow]%}%~%b%{$reset_color%}
@zegervdv
zegervdv / gist:f0294d5f431b83396b5d
Last active August 29, 2015 14:21
Add period to every caption
:g/\\caption.\+[^.]}$/normal $i.
@zegervdv
zegervdv / debug
Created June 27, 2014 13:55
Startup script for arm-none-eabi-gdb
#!/usr/bin/env bash
st-util > /dev/null 2>&1 &
arm-none-eabi-gdb -tui
@zegervdv
zegervdv / Vagrantfile
Last active December 28, 2020 15:14
Vagrantfile for STM32 development on Arch Linux
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.

Pin Headers

  • Communicatie antenne (6 + 2 x 6)
  • Communicatie Drone (x)
  • Programmer (6)
  • I2C debugger (2)
  • Power voor antenne-bord: (2 + 2 voor bord)
  • Jumper powerselectie (3)