This file contains hidden or 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
" Specify a directory for plugins | |
" - For Neovim: ~/.local/share/nvim/plugged | |
" - Avoid using standard Vim directory names like 'plugin' | |
call plug#begin('~/.vim/plugged') | |
" Make sure you use single quotes | |
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align | |
Plug 'junegunn/vim-easy-align' |
This file contains hidden or 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
#adding auto-complete to atom. | |
#install autocomplete-clang in atom and then install following | |
# perfect c/c++ autocomplete is ready | |
#my Keymap.json | |
#'atom-text-editor': | |
# 'ctrl-shift-q': 'editor:auto-indent' | |
#execute using sudo |
This file contains hidden or 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
apt-get install -y pkg-config | |
wait | |
apt-get install -y libfreetype6-dev libxft-dev | |
wait | |
pip install -I git+git://github.com/has2k1/ggplot.git@rewrite |
This file contains hidden or 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
apt-get update | |
apt-get install dkms build-essential linux-headers-$(uname -r) | |
mount /dev/cdrom /mnt | |
cd /mnt | |
./VBoxLinuxAdditions.run --nox11 |
This file contains hidden or 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
#vim ~/.config/terminator/config | |
#add following | |
[global_config] | |
enabled_plugins = LaunchpadCodeURLHandler, APTURLHandler, LaunchpadBugURLHandler | |
inactive_color_offset = 1.0 | |
[keybindings] | |
copy = <Primary>c | |
cycle_next = <Shift>Tab | |
new_tab = <Primary><Shift>t |
This file contains hidden or 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
# Scala-IDE specific | |
.scala_dependencies | |
.worksheet | |
# IntelliJ specific | |
.idea | |
/bin/ | |
*.class | |
*.log |
This file contains hidden or 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
sudo apt-get install libblas-dev liblapack-dev libatlas-base-dev gfortran libxml2-dev libxslt1-dev | |
sudo apt-get install python-numpy python-scipy python-dev python-pip python-nose g++ libopenblas-dev git |
This file contains hidden or 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
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<version>2.6</version> | |
<configuration> | |
<skipIfEmpty>true</skipIfEmpty> | |
</configuration> | |
</plugin> |
This file contains hidden or 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
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.4.0</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>java</goal> | |
</goals> | |
</execution> |
This file contains hidden or 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
#use this to shuffle all the rows of pandas dataframe ( useful for some training algorithms ) | |
import numpy as np | |
import pandas as pd | |
A = np.array([1, 2, 3]) | |
B = np.array(['A', 'B', 'C']) | |
df = pd.DataFrame({'col1':A, 'col2':B}) | |
print df.head() |