Skip to content

Instantly share code, notes, and snippets.

View brandonwillard's full-sized avatar

Brandon T. Willard brandonwillard

View GitHub Profile
@brandonwillard
brandonwillard / numba_bug.py
Created June 7, 2020 22:14 — forked from nouiz/numba_bug.py
Test how to make a Theano op that call Numba.
import numba
import numpy
#The filter2d with the same signature as Theano
#but not a class method.
def filter2d_theano(node, inputs, outputs):
image, filt = inputs
M, N = image.shape
Mf, Nf = filt.shape
@brandonwillard
brandonwillard / nvim-terminal-edit.py
Last active October 6, 2017 21:35 — forked from bfredl/nvim-terminal-edit.py
Edit file in host Neovim instance from a :terminal buffer
#!/home/bwillard/apps/anaconda3/envs/neovim3/bin/python
"""Edit a file in the host nvim instance."""
from __future__ import print_function
import os
import sys
from neovim import attach
args = sys.argv[1:]
# -*- coding: utf-8 -*-
"""
example use of pandas with oracle mysql postgresql sqlite
lightly tested.
to do:
save/restore index (how to check table existence? just do select count(*)?),
finish odbc,
add booleans?,
sql_server?