Python interface for the spidev Linux kernel driver for connecting to SPI devices.
All code is MIT licensed unless explicitly stated otherwise.
| #ifndef V_COMMIT_HASH | |
| #define V_COMMIT_HASH "2ec6e2b" | |
| #endif | |
| #ifndef V_CURRENT_COMMIT_HASH | |
| #define V_CURRENT_COMMIT_HASH "f959fbb" | |
| #endif | |
| #define V_USE_SIGNAL_H |
| set autoindent | |
| set smartindent | |
| set smarttab | |
| set tabstop=8 softtabstop=4 shiftwidth=4 expandtab | |
| set nostartofline | |
| set number | |
| set relativenumber | |
| set scrolloff=3 | |
| set backspace=indent,eol,start | |
| set mouse=a |
| numbers = [1, 2, 3, 4] | |
| ############################# | |
| # general looping | |
| ############################# | |
| for i in range(len(numbers)): | |
| print(numbers[i]) | |
| # should be | |
| for num in numbers: |
| #!/usr/bin/env bash | |
| # use current directory if not specified | |
| feedback_folder="${1:-$(pwd)}" | |
| if [ "$(uname)" == "Darwin" ]; then | |
| copy_tool="pbcopy" | |
| else | |
| copy_tool="xclip -i -selection c" | |
| fi |
| + 1556115072.040357000 dotfiles=(~/.config/bash/prompt ~/.config/bash/exports ~/.config/bash/aliases ~/.config/bash/functions /usr/local/etc/profile.d/bash_completion.sh ~/.z.sh ~/.config/iterm2/iterm2_shell_integration.bash) | |
| + 1556115072.054303000 for file in ${dotfiles[@]} | |
| + 1556115072.063813000 '[' -r /Users/Yochem/.config/bash/prompt ']' | |
| + 1556115072.070104000 '[' -f /Users/Yochem/.config/bash/prompt ']' | |
| + 1556115072.075548000 source /Users/Yochem/.config/bash/prompt | |
| ++ 1556115072.083907000 reset='\[\033[0;97m\]' | |
| ++ 1556115072.089392000 green='\[\033[0;92m\]' | |
| ++ 1556115072.094936000 magenta='\[\033[01;38;5;005m\]' | |
| ++ 1556115072.100540000 blue='\[\033[0;94m\]' | |
| ++ 1556115072.106096000 bold='\[\033[1m\]' |
| SCRIPT /Users/Yochem/.config/nvim/pack/kite/start/vim-plugin/plugin/kite.vim | |
| Sourced 1 time | |
| Total time: 0.050532 | |
| Self time: 0.000945 | |
| count total (s) self (s) | |
| 1 0.000010 if exists('g:loaded_kite') || &cp || v:version < 700 | |
| finish | |
| endif | |
| 1 0.000002 let g:loaded_kite = 1 |
| #!/usr/bin/env osascript | |
| - place this script in your $PATH | |
| tell application "System Events" | |
| tell appearance preferences | |
| set dark mode to not dark mode | |
| end tell | |
| end tell |
| # ------------------------------------------------------------------ | |
| # | |
| # All possible options for your .nanorc file as documented in the | |
| # nanorc man page. | |
| # | |
| # ------------------------------------------------------------------ | |
| # When backing up files, allow the backup to succeed even if its per- | |
| # missions can't be (re)set due to special OS considerations. You |