Skip to content

Instantly share code, notes, and snippets.

Avatar

Venu Gangireddy ve9u

View GitHub Profile
View foo.cpp
class Foo
{
public:
string name;
Foo(string name)
{
this->name = name;
cout << "Foo object with name '" + this->name + "' created." << endl;
}
~Foo()
@ve9u
ve9u / .vimrc
Created Nov 30, 2016 — forked from rocarvaj/.vimrc
Minimal .vimrc for C/C++ developers
View .vimrc
" VIM Configuration File
" Description: Optimized for C/C++ development, but useful also for other things.
" Author: Gerhard Gappmeier
"
" set UTF-8 encoding
set enc=utf-8
set fenc=utf-8
set termencoding=utf-8
" disable vi compatibility (emulation of old bugs)
@ve9u
ve9u / Makefile
Last active Jun 5, 2016
Basic Makefile for Golang
View Makefile
BUILDPATH=$(CURDIR)
GO=$(shell which go)
GOINSTALL=$(GO) install
GOCLEAN=$(GO) clean
GOGET=$(GO) get
EXENAME=main
export GOPATH=$(BUILDPATH)
@ve9u
ve9u / neuron_network.py
Last active Sep 29, 2017
Basic Neuron Network Implementation
View neuron_network.py
# -*- coding: utf-8 -*-
"""
Created on Fri Apr 10 17:48:52 2015
@author: gangireddy
Thanks to http://danielfrg.com/ for this basic neural network implementation, it is modified accordingly
"""
import math
import random
@ve9u
ve9u / rtree.cpp
Last active Dec 6, 2016
RTree in CPP
View rtree.cpp
/*
* main.cpp
*
* Created on: 12-Mar-2015
* Author: gangireddy
*
* R-tree implemenatation in cpp
*/
#include <iostream>
#include <vector>
@ve9u
ve9u / bplus_tree.cpp
Created Jun 5, 2016
BPlus Tree in CPP
View bplus_tree.cpp
#include <vector>
#include <stdio.h>
#include <stack>
#include <stdlib.h>
#include <fstream>
#include <math.h>
#include <time.h>
using namespace std;
@ve9u
ve9u / quad_tree.cpp
Created Jun 5, 2016
Quad Tree in CPP
View quad_tree.cpp
#include <stdio.h>
#include <vector>
#include <algorithm>
#include <queue>
#include <math.h>
#define E 0.000001
using namespace std;
struct point
@ve9u
ve9u / kd_tree.cpp
Created Jun 5, 2016
KD Tree in CPP
View kd_tree.cpp
#include <stdio.h>
#include <vector>
#include <algorithm>
#include <math.h>
#define E 0.000001
using namespace std;
struct point
{
@ve9u
ve9u / range_tree.cpp
Created Jun 5, 2016
Range Tree in CPP
View range_tree.cpp
#include <iostream>
#include <vector>
#include <algorithm>
#include <time.h>
#include <math.h>
using namespace std;
struct point
@ve9u
ve9u / .ctags
Last active May 30, 2016
My Vim Setup for GoLang
View .ctags
--langdef=Go
--langmap=Go:.go
--regex-Go=/func([ \t]+\([^)]+\))?[ \t]+([a-zA-Z0-9_]+)/\2/f,func/
--regex-Go=/var[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/v,var/
--regex-Go=/type[ \t]+([a-zA-Z_][a-zA-Z0-9_]+)/\1/t,type/