Skip to content

Instantly share code, notes, and snippets.

Vishnu Raj v-i-s-h

  • India
Block or report user

Report or block v-i-s-h

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@v-i-s-h
v-i-s-h / init.vim
Last active Oct 4, 2019
neovim config
View init.vim
" Destination: ~/.config/nvim/
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.local/share/nvim/plugged')
Plug 'vim-airline/vim-airline', {'tag': 'v0.10'}
Plug 'vim-airline/vim-airline-themes'
" Plug 'Shougo/defx.nvim', {'do': ':UpdateRemotePlugins'}
@v-i-s-h
v-i-s-h / rl-lab-cpu.yaml
Created Sep 27, 2019
My conda environments
View rl-lab-cpu.yaml
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
@v-i-s-h
v-i-s-h / test.log
Created May 13, 2019
CUDAnative.jl: [CUDA error: no kernel image is available for execution on the device (code #209, ERROR_NO_BINARY_FOR_GPU)]
View test.log
(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
@v-i-s-h
v-i-s-h / rbf_test.ipynb
Created Mar 20, 2019
Rayleigh Block Fading Test: Fig 6b of http://arxiv.org/abs/1812.05929
View rbf_test.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View .vimrc
execute pathogen#infect()
syntax on
filetype plugin on
set tabstop=4
set shiftwidth=4
set expandtab
set number
" let g:netrw_banner = 0
" let g:netrw_liststyle = 3
@v-i-s-h
v-i-s-h / build.sh
Created Sep 1, 2018
Shell script to build programs
View build.sh
# Shell script to build programs
CFLAGS=`pkg-config --cflags libzmq`
LIBS=`pkg-config --libs libzmq`
# If no input, build all
if [ -z "$1" ]
then
for file in *.c
do
@v-i-s-h
v-i-s-h / keybindings.json
Last active Jul 28, 2019
My VS Code User Settings
View keybindings.json
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+\\",
"command": "unicode-latex.insertMathSymbol"
},
{
"key": "ctrl+shift+k",
"command": "workbench.action.terminal.focusNext"
},
@v-i-s-h
v-i-s-h / instance_factory.jl
Last active Nov 17, 2017
Julia: Making derived type objects with parameters
View instance_factory.jl
abstract type baseType end
function call( ::Type{T}, params... ) where T <: baseType
return T( params... )
end
# call (generic function with 1 method)
type derived1 <: baseType
x::Int64
y::Float64
@v-i-s-h
v-i-s-h / README.md
Last active Jan 20, 2018
Gist of setting up Raspberry Pi
View README.md

Setting Up Raspberry Pi

Disabling Serial TTY (For EnOcean Pi)

Edit /boot/cmdline.txt and remove any references to serial1 or ttyACM0

Setting up NodeJS: The Easy Way

  1. cat /proc/cpuinfo to determine CPU arch
  2. wget https://nodejs.org/dist/vX.Y.Z/node-vX.Y.Z-linux-armv??.tar.gz
  3. tar -xzf node-vX.Y.Z-linux-armv??.tar.gz
  4. node-v6.2.1-linux-armv6l/bin/node -v
@v-i-s-h
v-i-s-h / ROS.md
Created May 23, 2017
ROS Workflow cheatsheet
View ROS.md
  1. Create 'ws' 'ws/src'
  2. Goto 'ws/src' and 'catkin_init_workspace'
  3. Back to 'ws' and 'catkin_make'
  4. 'source devel/setup.sh'
  5. Goto 'ws/src' and 'catkin_create_pkg beginner_tutorials std_msgs rospy roscpp | catkin create pkg beginner_tutorials --catkin-deps roscpp rospy std_msgs
  6. Edit package.xml if necessary
  7. Come to 'ws' and 'catkin_make' Writing Code:
  8. Goto 'ws/src/<package_name>/src' and create '<node_name.cpp>' Editing Package
You can’t perform that action at this time.