Skip to content

Instantly share code, notes, and snippets.

View vijayanandrp's full-sized avatar
👑

Vijay Anand Pandian vijayanandrp

👑
View GitHub Profile
@vijayanandrp
vijayanandrp / oracle Java 8 in Ubunutu 16.04.sh
Last active June 16, 2017 01:27
How to install oracle Java 8 in Ubuntu 16.04
################################ JAVA SETUP #######################################################
# How to install oracle Java 8 in Ubunutu 16.04
#Add the Repo
sudo add-apt-repository ppa:webupd8team/java
# Update
sudo apt-get update
# Update Cache
@vijayanandrp
vijayanandrp / Alias
Last active October 22, 2016 00:47
alias usages in Linux
echo "alias aliasname='command'" >> ~/.bash_aliases && source ~/.bash_aliases
# PYCHARM ALIAS #
locate .bash
vim /home/vijay-work/.bashrc
alias pycharm='bash /home/vijay-work//Documents/softwares/pycharm-community-2016.2.3/bin/pycharm.sh &'
@vijayanandrp
vijayanandrp / Mssql_Pandas.py
Last active January 26, 2017 04:23
Pandas - Data Frame - examples
import pymssql
import pandas as pd
# db configurations DEFAULT
sql_db_default = {
"host_name": "192.168.1.100",
"port": "1604",
"user_name": "Base_User",
"password": "HappyForYoU",
"database_name": "BaseDB",

Django - REST API - for development [Blue Print]

(Version used - Django 1.10.2) in 10 steps

Before start developing make sure you have installed djangorestframework. I have used pycharm professional edition to learn and practice.

pip3.5 install djangorestframework
  1. Create a new web project under the Django in Pycharm IDE. Say Example, website
@vijayanandrp
vijayanandrp / some_base_understanding.md
Last active February 1, 2017 09:29
[Web Developer] Django vs [REST API Developer] Django Rest framework in Python

[Web Developer] Django vs [REST API Developer] Django Rest framework Python


A web developer is a programmer who specializes in, or is specifically engaged in, the development of World Wide Web applications, or distributed network applications that are run over HTTP from a web server to a web browser.

Even though there are no formal educational requirements, dealing with web developing projects requires those who wish to be referred to as web developers to have advanced knowledge/skills in:

  • HTML/XHTML, CSS, JavaScript
# DATE PARSER
def custom_time_parser(date_str):
try:
if '-' in date_str:
# 2013-12-08 16:54:23
return pd.datetime.strptime(date_str, '%Y-%d-%m %H:%M:%S')
elif '/' in date_str:
# 16/07/13 19:36:57
return pd.datetime.strptime(date_str, '%d/%m/%y %H:%M:%S')
else:
@vijayanandrp
vijayanandrp / PhishTankScrapper.py
Last active February 22, 2017 07:56
Python. (Web Scrapping) Tries.
#!/usr/bin/env python3.5
# encoding: utf-8
import requests
from bs4 import BeautifulSoup
class PhishTankUrlScrapper(object):
""" URL configurations """
def __init__(self):
@vijayanandrp
vijayanandrp / MySQL.txt
Last active March 8, 2017 09:14
MySQL Install in Windows
Steps to be followed for installing MySQL
1. Download & Install MySQL.exe
2. Now its time to run as windows service
https://dev.mysql.com/doc/refman/5.7/en/windows-start-service.html
3. Goto Command Prompt, C:\> "C:\Program Files\MySQL\MySQL Server 5.7\bin\mysqld" --install
4. Goto run -> services.msc -> MYSQL -> Right click start the services
@vijayanandrp
vijayanandrp / Python_Test.py
Created March 11, 2017 15:00
Interview Question
##########################################################################
# Problem 1 (easy): first unique character in a string
input_string = 'treetraversal'
output = 'v'
# Answer
def first_unique(input_string):
# You hav to write code here
test_dict = {}

Note: I have copied the contents directly from the different web sources. I give full credits to the Author. I maintian this document for my own understanding and study purpose. P.s: If in case I forgot to metion any author names kinldly let me know in comments.