(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# Automatically set window title | |
set-window-option -g automatic-rename on | |
set-option -g set-titles on | |
#set -g default-terminal screen-256color | |
set -g status-keys vi | |
set -g history-limit 10000 |
figlet "I've got something to say" | |
figlet -f thick "Make Tech ASCIIer" | |
date | figlet -f basic |
" reverse-i-search | |
function! s:get_history() | |
redir => history | |
silent! history | |
redir END | |
return map(split(history, '\n'), "strpart(v:val, 9)") | |
endfunction | |
function! s:run_cmd(cmd) | |
execute a:cmd | |
endfunction |
# | |
# elevation: A very simple python script that get elevation from latitude and longitude with google maps API by Guillaume Meunier | |
# | |
# ----------------------------------- | |
# NO DEPENDANCIES except JSON and URLLIB | |
# ----------------------------------- | |
# | |
# Copyright (c) 2016, Guillaume Meunier <[email protected]> | |
# GEOJSON_export is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published |
install termpix from https://github.com/fimkap/termpix (currently alpha blending done with white background) | |
-- init.vim (along with usual FZF setup, change path to termpix) | |
let g:fzf_layout = { 'down': '~60%' } | |
let g:fzf_files_options = | |
\ '--preview "(~/dev/termpix/bin/termpix --width 50 --true-color {} || cat {}) 2> /dev/null "' |
# create folders if does not exist | |
mkdir -p ~/.fonts | |
mkdir -p ~/.config/fontconfig/ | |
# download noto color emoji font from https://www.google.com/get/noto/#emoji-zsye-color | |
# extract NotoColorEmoji.ttf file into ~/.fonts/ | |
# create font config file | |
cat << 'EOF' > ~/.config/fontconfig/fonts.conf | |
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"> |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv
to manually rebuild the font cache
#Evolution Strategies with Keras | |
#Based off of: https://blog.openai.com/evolution-strategies/ | |
#Implementation by: Nicholas Samoray | |
#README | |
#Meant to be run on a single machine | |
#APPLY_BIAS is currently not working, keep to False | |
#Solves Cartpole as-is in about 50 episodes | |
#Solves BipedalWalker-v2 in about 1000 |