Skip to content

Instantly share code, notes, and snippets.

Collecting data on my brain activity while working on my thesis

Erik Bjäreholt ErikBjare

Collecting data on my brain activity while working on my thesis
View GitHub Profile
View gist:6cacc220c19f90f26142d7775d13bb77
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:3:bafyreihcacemz7ibakypcwhooqghsehkf4on7cvfzrjkgdwwtyxowa4eke ✅
Create your profile today to start building social connection and trust online at
View blockstack-verification.txt
Verifying my Blockstack ID is secured with the address 1MUWQSMtg2BeKvsMN6pZMRgptzwhiuXruA

Keybase proof

I hereby claim:

  • I am ErikBjare on github.
  • I am erb ( on keybase.
  • I have a public key whose fingerprint is AE64 E141 3876 3D20 1E7A E732 7A8F 433A 86E4 C130

To claim this, I am signing this object:

ErikBjare /
Last active May 17, 2017

[ Launch: asd ] c3c98b497afa902c075a4c23da029385 by ErikBjare

import time
import ctypes
from ctypes import Structure, POINTER, WINFUNCTYPE, windll
from ctypes.wintypes import BOOL, UINT, DWORD
class LastInputInfo(Structure):
_fields_ = [
("cbSize", UINT),
("dwTime", DWORD)
View gist:908f73cb01c58b3178ca
Verifying that +erikbjare is my openname (Bitcoin username).
View lifelogger.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Requires jq
# Remember to chmod +x!
# Add the following cron-job (using "crontab -e") to run at hourly intervals:
# 0 * * * * export DISPLAY=:0.0 && /bin/bash <SCRIPT_PATH_GOES_HERE> > /dev/null 2>&1
# Change <SCRIPT_PATH_GOES_HERE> to the appropriate name
BTCE_PRICE="$(curl -s | jq '.ticker.last')"
# Oneliner by @Coornail, modifications by @ErikBjare
watch -n1 -d "curl -s | json_pp | tail --line=+2 | head --line=12"
ErikBjare / fib.lisp
Created Sep 28, 2013
My first lisp function, calculates the fibonacci sequence.
View fib.lisp
(defun fib (l n)
(if (< (length l) n)
(fib (append l (list (apply #'+ (last l 2)))) n)