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
# prepare notebook folder for commit | |
# Does | |
# 1. Render all notebooks to HTML | |
# 2. Clear all cell outputs | |
# Make destination directory to store rendered html, if not exists | |
RENDER_DIR=rendered | |
mkdir -p rendered | |
# Get all files with Added, Modified, or untracked status from git |
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
# Destination: ~/.tmux.conf | |
# from powerline | |
run-shell "tmux set-environment -g TMUX_VERSION_MAJOR $(tmux -V | cut -d' ' -f2 | cut -d'.' -f1 | sed 's/[^0-9]*//g')" | |
run-shell "tmux set-environment -g TMUX_VERSION_MINOR $(tmux -V | cut -d' ' -f2 | cut -d'.' -f2 | sed 's/[^0-9]*//g')" | |
# default shell | |
# set-option -g default-command /bin/zsh | |
# set-option -g default-shell /bin/zsh |
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 | |
# | |
# Move the current window to the next monitor. | |
# | |
# Also works only on one X screen (which is the most common case). | |
# | |
# Props to | |
# http://icyrock.com/blog/2012/05/xubuntu-moving-windows-between-monitors/ | |
# | |
# Unfortunately, both "xdotool getwindowgeometry --shell $window_id" and |
Consider setting the following optimization flags while training.
KMP_BLOCKTIME=0
KMP_AFFINITY=granularity=fine,verbose,compact,1,0
KMP_SETTINGS=1
OMP_NUM_THREADS=8
Also, use the following code after importingtf
.
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
# To list all the available enviroments | |
python -c "from gym import envs; env_list = [env_spec.id for env_spec in envs.registry.all()]; print(\"\\n\".join(env_list));" | |
# Search in list with grep | |
python -c "from gym import envs; env_list = [env_spec.id for env_spec in envs.registry.all()]; print(\"\\n\".join(env_list));" | grep -i cart |
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
-------------------------------- Bootstrap ------------------------------------- | |
-- Install packer | |
local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim' | |
local is_bootstrap = false | |
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then | |
is_bootstrap = true | |
vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path) | |
vim.cmd [[packadd packer.nvim]] | |
end |
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
name: rl-lab | |
channels: | |
- anaconda | |
- conda-forge | |
- defaults | |
dependencies: | |
- dbus=1.13.6=h746ee38_0 | |
- expat=2.2.6=he6710b0_0 | |
- fontconfig=2.13.0=h9420a91_0 | |
- freetype=2.9.1=h8a8886c_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
(v1.1) pkg> test CUDAnative | |
Testing CUDAnative | |
Resolving package versions... | |
Status `/tmp/tmpujFYYx/Manifest.toml` | |
[79e6a3ab] Adapt v0.4.2 | |
[3895d2a7] CUDAapi v0.6.3 | |
[c5f51814] CUDAdrv v3.0.0 | |
[be33ccc6] CUDAnative v2.1.0 | |
[a8cc5b0e] Crayons v4.0.0 | |
[864edb3b] DataStructures v0.15.0 |
NewerOlder