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
# Author: chowmean | |
# simple python script to get the comment of youtube videos using google apis get method | |
# Date: 21:08:2015 | |
# mail: gaurav.dev.iiitm@gmail.com | |
# github:github.com/chowmean | |
# | |
import oauth2 | |
import time |
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
<?php | |
#author : chowmean | |
$data["test_data"]="just testing"; | |
CallAPI("POST","uri",$data,"deviceId","accessToken","application/json","firefox"); |
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
#author :chowmean | |
#github.com/chowmean | |
#You can make only 180 requests per 15 min. | |
import oauth2 | |
import time | |
import urllib2 | |
import json |
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
# Author: chowmean | |
# simple python script to get the comment of youtube videos using google apis get method | |
# Date: 23:08:2015 | |
# mail: gaurav.dev.iiitm@gmail.com | |
# github:github.com/chowmean | |
# | |
import oauth2 | |
import time |
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 requests | |
product="MOBE8AHAT4SFH3PJ" | |
url="https://affiliate-api.flipkart.net/affiliate/product/json?id=" | |
url=url+product | |
headers = {'Fk-Affiliate-Id': 'affliate_id','Fk-Affiliate-Token':'YOUR token'} | |
r = requests.get(url, headers=headers) | |
print r.content |
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 urllib | |
proxies = {'http': 'http://YOUR_USERNAME:YOURPASSWORD@192.168.1.107:3128','https': 'https://YOUR_USRNAME:YOURPASSOWRD@192.168.1.107:3128'} | |
res=urllib.urlopen("http://www.py4inf.com/cover.jpg",proxies=proxies) | |
con=res.read() | |
outf=open("imgname.jpg",'wb') | |
outf.write(con) | |
outf.close() |
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
# You need to install scikit-learn: | |
# sudo pip install scikit-learn | |
# | |
# Dataset: Polarity dataset v2.0 | |
# http://www.cs.cornell.edu/people/pabo/movie-review-data/ | |
# | |
# Full discussion: | |
# https://marcobonzanini.wordpress.com/2015/01/19/sentiment-analysis-with-python-and-scikit-learn | |
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 socket | |
import threading | |
import SocketServer | |
import time | |
import json | |
import sys | |
class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler): |
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
<html> | |
<body> | |
<a href="#/cliceckd"> I am clickec</a> | |
</body> | |
<script> | |
var w = 700; | |
var h = 480; | |
var left = (screen.width / 2) - (w / 2); | |
var top = (screen.height / 2) - (h / 2); | |
document.addEventListener('click', function (ev) { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title> | |
Facebook login and receiving Data</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> | |
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> |
OlderNewer