Skip to content

Instantly share code, notes, and snippets.

View vishnubob's full-sized avatar

Giles Hall vishnubob

  • Boston, MA
View GitHub Profile
@vishnubob
vishnubob / simple-autoencode.py
Created March 31, 2018 20:44
Simple Autoencoder with useful PIL based image tiler
# MXNet Autoencoder
# based on example from SherlockLiao
# https://github.com/SherlockLiao/mxnet-gluon-tutorial/blob/master/08-AutoEncoder/simple_autoencoder.py
import operator
import bisect
import os
import numpy as np
import mxnet as mx
from mxnet import gluon
@vishnubob
vishnubob / model-organisms-list.md
Created October 11, 2019 15:39
List of Model Organisms

Viruses

  • Phage lambda
  • Phi X 174
  • SV40
  • T4 phage
  • Tobacco mosaic virus
  • Herpes simplex virus

Prokaryotes

@vishnubob
vishnubob / python-run.vimrc
Last active September 24, 2022 01:32
Add this to your .vimrc to execute python in a new window. If your program produces no output, no windows is created.
nnoremap <silent> <leader><space> :call SaveAndExecutePython()<CR>
vnoremap <silent> <leader><space> :<C-u>call SaveAndExecutePython()<CR>
" https://stackoverflow.com/questions/18948491/running-python-code-in-vim
function! SaveAndExecutePython()
" SOURCE [reusable window]: https://github.com/fatih/vim-go/blob/master/autoload/go/ui.vim
" save and reload current file
silent execute "update | edit"