This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
from cffi import FFI | |
ffi = FFI() | |
ffi.cdef(""" | |
void single_test(double *x, int n); | |
void multi_test(double **x, int n, int m); | |
""") | |
C = ffi.dlopen("./simple.so") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################## | |
# | |
# THE ARCHIVE TRACKER | |
# | |
# REF: https://gist.github.com/markwk/c85a8a72bc8c03d0f510262bb5219a34/ | |
# | |
# INTRODUCTION: | |
# Daily script to navigate to a directory of plain text files, | |
# add files to git repo, calculate key stats, store stats to csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
let g:python3_host_prog = '/usr/local/opt/[email protected]/bin/python3.8' | |
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 | |
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
endif | |
call plug#begin('~/.vim/plugged') |