Skip to content

Instantly share code, notes, and snippets.

Avatar

Hosseini abbashosseini

View GitHub Profile
@abbashosseini
abbashosseini / Language-regex-irORen.java
Last active Jan 18, 2016
Check StringLanguage in java With Regex
View Language-regex-irORen.java
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by abbas on 9/21/15.
*/
public class LanguageType {
public static boolean isPersian(String s){
View Reade-mail.py
# Az imaplib Baraye Connect Shodan B Server Gmail Estefade Mikonim
import imaplib
# dar inja Ba Estefade Az Method IMAP4_SSL Baraye Moshakhas Kardan Server Morede Nazar Va Sakhtan Proxy Estefade Mikonim
#Ba Port 993 Vasl Mishim ahmiat Chandani Ham Dar In Bakhsh Ndare albate Az Rahaye Dge MOnzorame
mailserver = imaplib.IMAP4_SSL('imap.gmail.com', 993)
# Dar In Ghesmat Name Email Morede Bazar
username = 'USERNAME'
View webCrawler-python.py
import urllib, htmllib, formatter, re, sys
#Baraye Gerftan Argoman Dar Mohit gitBash az .argv[1] estefade mikonim
url = sys.argv[1]
#dar inja url Vared Shode Ra gerfte va b motghayer website enteqal midim
website = urllib.urlopen("http://"+url)
#dar inja URL vared Shode Ra khande Va DATA'HA Ra Ba estefade Az Tab'e READ() Mikhanim
data = website.read()
#Dar inja url ro mibandim
website.close()
You can’t perform that action at this time.