This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
msmt.py | |
Functions to access the Microsoft Translator API HTTP Interface, using python's urllib/urllib2 libraries | |
""" | |
import urllib, urllib2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
msmt.py | |
Functions to access the Microsoft Translator API HTTP Interface, using python's urllib/urllib2 libraries | |
""" | |
import urllib, urllib2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup | |
import numpy as np | |
import pandas as pd | |
import urllib2 | |
soup='' | |
def getPremLeague(wiki): | |
""" | |
input takes the wiki url of football club season list url is | |
in form <"http://en.wikipedia.org/wiki/List_of_"+" FOotball team name"+"_F.C._seasons"> | |
returns a dictionary containing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from bs4 import BeautifulSoup | |
import numpy as np | |
import pandas as pd | |
import urllib2 | |
soup='' | |
def getPremLeague(wiki): | |
""" | |
input takes the wiki url of football club season list url is | |
in form <"http://en.wikipedia.org/wiki/List_of_"+" FOotball team name"+"_F.C._seasons"> | |
returns a dictionary containing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import os | |
import time | |
import requests | |
from PIL import Image | |
from StringIO import StringIO | |
import socket | |
from requests.exceptions import ConnectionError | |
import urllib2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<algorithm> | |
#include<vector> | |
#include<stdio.h> | |
using namespace std ; | |
long long mergeSort(vector<int> &v) { | |
if (v.size() <= 1) { | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------- | |
# Name: Way2sms | |
# Purpose: send sms way2sms # | |
# Author: Rishabh Roy | |
# | |
# Created: 09/08/2015 | |
# Copyright: (c) Rishabh 2015 | |
# Licence: <GPL> | |
#------------------------------------------------------------------------------- | |
import urllib2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#------------------------------------------------------------------------------- | |
# Name: ashiyan | |
# Purpose: | |
# | |
# Author: rishabh | |
# | |
# Created: 17/08/2015 | |
# Copyright: (c) hp 2015 | |
# Licence: <your licence> | |
#------------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def factorial (n ): | |
if n<= 1 : | |
return 1 | |
fact = 1 | |
for i in range(1,n+1): | |
fact = fact*i | |
return fact |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def my (a , b ): | |
#function declaration a , b parameters hai | |
#question mein my(12,'abc123') likha hai toh a mein 12 jayega aur b= 'abc123' | |
ans =0 | |
for i in b: | |
#agar i digit hai . if( ord(i)>=ord('0') and ord(i)<=ord('9')) iske jagah yeh bhi likh skta hai // | |
if(i.isdigit()): |
OlderNewer