Set these under iTerm2 > Preferences > Keys
Vim Page Down
control + d
Send Text with "vim" Special Chars
to
#!/bin/bash | |
function install_ycm() { | |
mkdir -p ~/.vim | |
curdir=$(pwd) | |
if [[ "$(which xcode-select)" != "" ]]; then | |
# you may need to install packages with: xcode-select --install | |
echo "" | |
echo "installing XQuartz" | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null |
#!/bin/bash | |
# example from | |
# for donkey car | |
# https://serverfault.com/questions/870594/resize-partition-to-maximum-using-parted-in-non-interactive-mode | |
set -e | |
if [[ $# -eq 0 ]] ; then | |
echo 'please tell me the device to resize as the first parameter, like /dev/sda' |
DEVICE=eno1 | |
TYPE=Ethernet | |
PROXY_METHOD=none | |
BROWSER_ONLY=no | |
BOOTPROTO=dhcp | |
DEFROUTE=yes | |
IPV4_FAILURE_FATAL=no | |
IPV6INIT=yes | |
IPV6_AUTOCONF=yes | |
IPV6_DEFROUTE=yes |
export LIBVIRT_DEFAULT_URI="qemu:///system" |
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
Set these under iTerm2 > Preferences > Keys
control + d
Send Text with "vim" Special Chars
to
file=/data/asciinema/sa-2-fullstack; rm -f ${file}; asciinema rec ${file} -i 2 -t "title_here" |
#!/usr/bin/env python | |
import pandas as pd | |
df = pd.DataFrame([ | |
{ | |
'date': '2019-01-01 14:30:00', | |
'epochms': 1546353000000 | |
}, | |
{ |
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> print(sys.path)
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages']
>>>
jay@dev:~$ python3
Python 3.6.5 (default, Apr 1 2018, 05:46:30)
import pandas as pd | |
from analysis_engine.algo import EquityAlgo | |
ticker = 'SPY' | |
demo_algo = EquityAlgo( | |
ticker=ticker, | |
balance=1000.00, | |
commission=6.00, | |
name='test-{}'.format(ticker)) | |
date_key = '{}_2018-11-05'.format( | |
ticker) |