Skip to content

Instantly share code, notes, and snippets.

View cleemesser's full-sized avatar

Christopher W Lee-Messer cleemesser

View GitHub Profile
@cleemesser
cleemesser / save_edf.py
Created July 3, 2021 21:44 — forked from skjerns/save_edf.py
Save a mne.io.Raw object to EDF/EDF+/BDF/BDF+
# -*- coding: utf-8 -*-
"""
Created on Thu Oct 29 09:47:08 2020
@author: nd269
"""
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 5 12:56:31 2018
@author: skjerns
@cleemesser
cleemesser / remap_capslock_ctrl.ps1
Created July 23, 2024 19:53
remap capslock to control on windows (7,10,11..) using powershell
$hexified = "00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00".Split(',') | % { "0x$_"};
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';
New-ItemProperty -Path $kbLayout -Name "Scancode Map" -PropertyType Binary -Value ([byte[]]$hexified);