Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 collections | |
from itertools import cycle | |
import numpy as np | |
import theano.tensor as tt | |
import warnings | |
from theano.tensor.raw_random import _infer_ndim_bcast | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/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:] |
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 inspect | |
import shelve | |
import ast | |
from itertools import cycle | |
class AssignCachingVisitor(ast.NodeVisitor): | |
"""Slightly less naive src block caching. |
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
(defun btw//org-ref-find-bibliography () | |
"Find the bibliography files in the current buffer. | |
This function sets and returns `org-ref-bibliography-files' obtained from | |
#+BIBLIOGRAPHY options." | |
(prog1 | |
;; When called from within a bibtex file, assume we want it; otherwise, | |
;; check the current file for a bibliography source. | |
(setq org-ref-bibliography-files (or (and (f-ext? buffer-file-name "bib") | |
(list buffer-file-name)) |
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
# -*- mode: Dockerfile -*- | |
# | |
# To build the image, in the Hy project root with this file present (and possibly renamed), run the following: | |
# docker build --rm -t hy-test-py27 -f Dockerfile . | |
# | |
# To launch a container, for the example image built above, and start an interactive session: | |
# docker run -ti --rm hy-test-py27:latest /bin/bash | |
# | |
# and to mount/expose a directory (`pwd` in this example) from the host at | |
# `/opt/hylang/hy` in the container: |