Skip to content

Instantly share code, notes, and snippets.

View chumaumenze's full-sized avatar
🏠
Working from home

Chuma Umenze chumaumenze

🏠
Working from home
View GitHub Profile
@miguelgrinberg
miguelgrinberg / .vimrc
Last active June 8, 2025 07:11
My .vimrc configuration for working in Python with vim
" plugins
let need_to_install_plugins = 0
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
let need_to_install_plugins = 1
endif
call plug#begin()
Plug 'tpope/vim-sensible'
@kepler62f
kepler62f / micrecorder.py
Created May 21, 2020 14:29
Record audio stream from a microphone to wav files (with overlaps) using pyaudio
from datetime import datetime
import pyaudio
import wave
class MicRecorder():
'''
A recorder class for recording audio stream from a microphone to WAV files.
Uses non-blocking callback threads to get audio stream but uses a list
to save chunks of stream to file