1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv to manually rebuild the font cache
| " vim-plug | |
| " Press `gx` to open the GitHub URL for a plugin or a commit with the default browser. | |
| " From https://github.com/junegunn/vim-plug/wiki/extra#gx-to-open-github-urls-on-browser | |
| function! s:plug_gx() | |
| let line = getline('.') | |
| let sha = matchstr(line, '^ \X*\zs\x\{7,9}\ze ') | |
| let name = empty(sha) ? matchstr(line, '^[-x+] \zs[^:]\+\ze:') | |
| \ : getline(search('^- .*:$', 'bn'))[2:-2] | |
| let uri = get(get(g:plugs, name, {}), 'uri', '') | |
| if uri !~ 'github.com' |
| #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 |
1.) Download a Nerd Font
2.) Unzip and copy to ~/.fonts
3.) Run the command fc-cache -fv to manually rebuild the font cache
| # 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"> |
| 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 "' |
| # | |
| # 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 <alliages@gmail.com> | |
| # GEOJSON_export is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published |
| " 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 |
| figlet "I've got something to say" | |
| figlet -f thick "Make Tech ASCIIer" | |
| date | figlet -f basic |