Skip to content

Instantly share code, notes, and snippets.

@sizhky
sizhky / Untitled.ipynb
Last active September 10, 2018 14:51
ocr/Untitled.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sizhky
sizhky / rnn-activations.ipynb
Created September 2, 2018 05:46
keras activations in different place give different results
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sizhky
sizhky / .tmux.conf
Last active December 14, 2023 13:39
.tmux.conf
set -g default-terminal "screen-256color"
set -g mouse on
set-option -g renumber-windows on
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."
bind-key b send-keys "bash" C-m "cd /data1/" C-m "conda activate mdm" C-m
bind-key w send-keys "bash" C-m "cd /data1/" C-m "conda activate mdm" C-m "watch nvidia-smi" C-m
bind-key y send-keys "bash" C-m "cd /data1/yeshwanth" C-m "conda activate mdm" C-m
bind-key c new-window "bash"
# List of plugins
@sizhky
sizhky / .bashrc
Last active July 4, 2023 10:56
bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
@sizhky
sizhky / 7321c_Q.txt
Last active April 28, 2018 07:23
cse7321 viva questions
What is perceptron
Fullyconnect ante enti?
Shallow vs Deep Learning (Why Deep)
Issues with Deep Learning
Uses of Unsupervised methods
What are auto encoders
Loss functions for Regression, Classification
What are dropouts and their suggested range
Three key advantages of CNNs over NNs
Which paratemer influences the depth of feature map
@sizhky
sizhky / prevent_tf_hogging.py
Last active August 6, 2020 05:57
Prevents Tensorflow from hogging all the GPU resources
import tensorflow as tf
config = tf.ConfigProto()
config.gpu_options.allow_growth=True
sess = tf.Session(config=config)
import tensorflow as tf
config = tf.compat.v1.ConfigProto()
config.gpu_options.allow_growth=True
sess = tf.compat.v1.Session(config=config)
@sizhky
sizhky / Bugs.R
Created December 16, 2017 11:54
By-passes installation error
trace(utils:::unpackPkgZip, edit=TRUE)
@sizhky
sizhky / jupyter_hack.txt
Last active November 23, 2017 05:58
reduce margins in jupyter
.container { width:97.5% !important; }
~/.jupyter/custom/custom.css
https://stackoverflow.com/questions/21971449/how-do-i-increase-the-cell-width-of-the-jupyter-ipython-notebook-in-my-browser
set number
@sizhky
sizhky / .cvimrc
Last active November 24, 2017 06:26
My cVimrc
map h :help
let mapleader = ','
let blacklists = ["https://vim-adventures.com/*","http://localhost/*","https://youtube.com/*","http://www.kongregate.com/*"]
map <Leader>e :tabopen chrome://extensions<CR>
map <Leader>E :tabopen https://chrome.google.com/webstore/category/extensions?hl=en<CR>
map <Leader>H :tabopen chrome://history<CR>
map <Leader>gg :tabopen https://gist.github.com/sizhky/6ce05580f394742fcd45c4bf1f5c18d6<CR>
map <Leader>s :tabopen chrome://settings<CR>
" let searchalias g = "google"
map <Leader>m :tabopen https://mail.google.com/mail/#index<CR>