Skip to content

Instantly share code, notes, and snippets.

View nandajavarma's full-sized avatar
🐌
Snailing

Nandaja Varma nandajavarma

🐌
Snailing
View GitHub Profile
An avid coder and a free software enthusiast.
Menu Blog
Services
Translations
Testimonials
Contact
@nandajavarma
nandajavarma / syllabus.md
Created October 23, 2018 10:26
Syllabus of courses - NVN

Artificial intelligence

  1. Introduction to AI

    overview of the problems tackled in AI main research areas and application fields

  2. State space and related problem solving methods

state spaces and search methods

@nandajavarma
nandajavarma / dht.txt
Last active October 21, 2018 12:37
DHT spec research
I am just noting down the things from my research here
Kademlia DHT
* Assumption is that the data to be shared in each system is available as a file.
In the case of PeARS this would be a CSV file produced by the orchard.
* In a classical DHT there will be a Uniform ID space for the files and for the
Machines and then we have a mapping between these. But in our case this is not
an option since we do not really know the ID space for the files itself during the searching step.
@nandajavarma
nandajavarma / Timsort
Created February 17, 2017 19:47
Timsort implementation using Python
#!/usr/lib/python
# -*- coding: utf-8 -*-
#
# This is a re-implementation of Python's timsort in Python
# itself. This is purely for learning purposes. :)
# References: [
# https://en.wikipedia.org/wiki/Timsort,
# http://wiki.c2.com/?TimSort
# ]
#
stripesize=128k
stripe_elements=10
dataalign=1280k
function create_lv {
vgname=$1
lvname=$2
pvname=$3
poolname=$4
KB_PER_GB=1048576
# STRIPESIZE is 128 * 10
autocmd BufWritePre * :%s/\s\+$//e
set wrap
set linebreak
" note trailing space at end of next line
set showbreak=>\ \ \
ZSH_THEME_GIT_PROMPT_PREFIX="%{$reset_color%}%{$fg[violet]%}("
ZSH_THEME_GIT_PROMPT_SUFFIX=")%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%}*%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN=""
#Customized git status, oh-my-zsh currently does not allow render dirty status before branch
git_custom_status() {
local cb=$(current_branch)
if [ -n "$cb" ]; then
echo "$(parse_git_dirty)%{$fg_bold[yellow]%}$(work_in_progress)%{$reset_color%}$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX"
@nandajavarma
nandajavarma / zshrc
Created September 10, 2014 17:03
.zshrc
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="gallois"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
Routing issues
Summary page not loading
Spec failures(resque and a not so random spec failure from qanda)