Skip to content

Instantly share code, notes, and snippets.


Viswa Virinchi axlevisu

View GitHub Profile
View hotstar_ubuntu
View download_stuff.js
var list = document.getElementsByTagName('a');
for (i=1;i<list.length;i++){
var a = document.createElement('a')
a.href = list[i].href
a.text = "Download"
url = decodeURI(list[i].href) = url.substr(url.lastIndexOf('/')+1,url.length)
axlevisu /
Created Aug 15, 2016
srcipt used to get rollnumber through date of birth
import re
from mechanize import Browser
br = Browser()
# Ignore robots.txt
br.set_handle_robots( False )
# Google demands a user-agent that isn't a robot
br.addheaders = [('User-agent', 'Firefox')]
axlevisu /
Created May 20, 2016
A class which solves multi-armed bandit problem
from scipy.stats import beta
from scipy.integrate import quad
from random import randint
import numpy as np
from operator import add
#Contextual Multi-Armed Bandit for Bernoulli Case
class CMAB:
View Bandpass_FIR.m
%Bandpass FIR filter using Kaiser Window
%Question Parameters and Specs
m = 49;
q= floor((m-1)/10);
r = m - 10*q;
B_L = 4 + (0.7*q) + 2*r;
B_H = B_L + 10;
f = 100;
View dc_motor_control.ino
int potin = 1;
int mot1 = 7;
int mot2 = 6;
int sensorValue = 0;
//int pid = 0;
//int pwmcontrol=4;
int init_angle= 0;
int final_angle= 0;
int final_sensor_value= 0;
View linefollower.c
Platform: SPARK V
Experiment: 4_Motion_Control_Simple
Written by: Vinod Desai, NEX Robotics Pvt. Ltd.
Edited By: Sachitanand Malewar, NEX Robotics Pvt. Ltd.
Last Modification: 22nd September 2010
AVR Studio Version 4.17, Build 666
Concepts covered: I/O interfacing, motion control using L293D
axlevisu / The Technical Interview Cheat
Created Dec 24, 2015 — forked from meetshah1995/The Technical Interview Cheat
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.
View The Technical Interview Cheat

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
axlevisu / get_mc_ids.R
Last active Dec 16, 2015
Code to get money_control_ids of companies from their website. Input data should be BSE_code/NSE_code/ISIN_code. I used ISIN_code data.
View get_mc_ids.R
#library(stringr) #for str_split which is same as strsplit
data <- read.csv("nse.csv",header= TRUE,sep=",",stringsAsFactors = FALSE)
search_url <- ""
url_list = paste(search_url,data[,'ISIN.code'],sep = "")
mc_list =c()
for(url in url_list){
x <- GET(url)
#redirect_url <- unlist(strsplit(x$url,"/"))
#mc_id<- redirect_url[length(redirect_url)]
axlevisu /
Created Nov 27, 2015
Autotuner application using GNU Radio
#Test using wav file
import sys
from scipy import *
from pylab import *
from import wavfile
import numpy as np
samp_rate, inputa ="test.wav");
size = 2**16;
You can’t perform that action at this time.