View .minttyrc
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
Font = Liberation Mono | |
FontHeight = 10 | |
Columns = 120 | |
Rows = 40 | |
Locale = en_US | |
Charset = UTF-8 | |
CursorType = block | |
ForegroundColour=131, 148, 150 | |
BackgroundColour= 0, 43, 54 |
View .minttyrc
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
Font = Liberation Mono | |
FontHeight = 10 | |
Columns = 120 | |
Rows = 40 | |
Locale = en_US | |
Charset = UTF-8 | |
CursorType = block | |
ForegroundColour=131, 148, 150 | |
BackgroundColour= 0, 43, 54 |
View .ideavimrc
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
" Neo2 remappings | |
noremap s h | |
noremap n gj | |
noremap r gk | |
noremap t l | |
" kill | |
noremap k s | |
" jump | |
noremap j n | |
" hide |
View conf.py
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
if 'NENGO_NBSPHINX_KERNEL' in os.environ: | |
nbsphinx_kernel_name = os.environ['NENGO_NBSPHINX_KERNEL'] | |
else: | |
from jupyter_client.kernelspecapp import KernelSpecManager | |
kernels = sorted(KernelSpecManager().find_kernel_specs()) | |
print("Available Jupyter kernels:") | |
for i, kernel in enumerate(kernels): | |
print(" {}. {}".format(i + 1, kernel)) | |
nbsphinx_kernel_name = None | |
while nbsphinx_kernel_name not in kernels: |
View format-latex.py
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 re | |
import sys | |
import pyparsing as pp | |
escaped = pp.Combine( | |
pp.Literal('\\') + pp.CharsNotIn('', exact=1)).setResultsName('percent').leaveWhitespace() | |
comment = pp.Combine(pp.Literal('%') + pp.restOfLine).setResultsName('comment').leaveWhitespace() | |
args = pp.Forward() | |
group = pp.Forward() |
View virtualenv-select
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
#!/usr/bin/env python | |
"""Run either pyvenv or virtualenv depending on the version of Python used. | |
To use this with virtualenvwrappper, install it into a directory on your | |
``PATH`` as 'virtualenv-select' and add the following to your | |
``~/.bashrc``: | |
export VIRTUALENVWRAPPER_VIRTUALENV=virtualenv-select | |
.. note:: |
View pre-push
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/sh | |
# An example hook script to verify what is about to be pushed to master. Called | |
# by "git push" after it has checked the remote status, but before anything has | |
# been pushed. If this script exits with a non-zero status nothing will be | |
# pushed. | |
# | |
# This hook is called with the following parameters: | |
# | |
# $1 -- Name of the remote to which the push is being done |
View jupyter_notebook_config.py
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
# Configuration file for ipython-notebook. | |
c = get_config() | |
c.IPKernelApp.matplotlib = 'inline' | |
#------------------------------------------------------------------------------ | |
# NotebookApp configuration | |
#------------------------------------------------------------------------------ | |
# NotebookApp will inherit config from: BaseIPythonApplication, Application |
View jupyter_qtconsole_config.py
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
c = get_config() | |
c.JupyterWidget.font_size = 11 | |
c.JupyterWidget.height = 30 | |
c.JupyterWidget.width = 140 | |
c.JupyterWidget.syntax_style = 'solarizedlight' | |
c.JupyterQtConsoleApp.confirm_exit = False |
View 00-runcom.ipy
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 matplotlib.pyplot as plt | |
import nengo | |
from nengo import spa | |
import numpy as np | |
import pandas as pd | |
import seaborn as sns |
NewerOlder