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
MacBook-Air-Denis:aerodoc-backend deniskarpenko$ ls -la target | |
total 16 | |
drwxr-xr-x 11 deniskarpenko staff 374 9 апр 23:28 . | |
drwxr-xr-x@ 8 deniskarpenko staff 272 9 апр 23:27 .. | |
-rw-r--r--@ 1 deniskarpenko staff 6148 9 апр 23:28 .DS_Store | |
drwxr-xr-x 4 deniskarpenko staff 136 9 апр 23:27 classes | |
drwxr-xr-x 3 deniskarpenko staff 102 9 апр 23:28 dependency-maven-plugin-markers | |
drwxr-xr-x 3 deniskarpenko staff 102 9 апр 23:27 generated-sources | |
drwxr-xr-x 3 deniskarpenko staff 102 9 апр 23:27 generated-test-sources | |
drwxr-xr-x 14 deniskarpenko staff 476 9 апр 23:27 jboss-as-7.1.1.Final |
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
MacBook-Air-Denis:aerodoc-backend deniskarpenko$ mvn clean install | |
[INFO] Scanning for projects... | |
[INFO] | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Building aerodoc 0.10.0-SNAPSHOT | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] | |
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ aerodoc --- | |
[INFO] Deleting /Users/deniskarpenko/Desktop/Jboss/aerodoc-backend/target | |
[INFO] |
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
# -*- coding: utf-8 -*- | |
from bs4 import BeautifulSoup | |
import urllib3 | |
def getProfileUrl(urlstr, name): | |
arr = urlstr.split('/') | |
profileId = arr[-2] | |
url = "http://www.brazzers.com/profile/view/id/" + profileId + "/" + name.replace(" ","-") | |
return url |
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
# -*- coding: utf-8 -*- | |
from bs4 import BeautifulSoup | |
import urllib3 | |
def parsePage(url,urlid): | |
f = open('all.txt','w') | |
print("(") | |
g = 0 | |
http = urllib3.PoolManager() | |
html_doc = http.urlopen('GET',url, preload_content=False).read() |
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
-module(logic_server). | |
-behaviour(gen_server). | |
-export([start_link/0]). | |
-export([start/0]). | |
-export([get_all_names_and_scores/1, insert/1, insert/3,checkHalf/4,someOneWon/0,open_db_file/0]). | |
-export([init/1, | |
handle_call/3, | |
handle_cast/2, |
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
-- MySQL Workbench Forward Engineering | |
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; | |
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; | |
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; | |
-- ----------------------------------------------------- | |
-- Schema KinoPoisk | |
-- ----------------------------------------------------- |
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
USE `MyPoisk` ; | |
-- ----------------------------------------------------- | |
-- Table `MyPoisk`.`Human` | |
-- ----------------------------------------------------- | |
CREATE TABLE IF NOT EXISTS `MyPoisk`.`Human` ( | |
`idHuman` INT(11) NOT NULL AUTO_INCREMENT, | |
`First_Name` VARCHAR(100) NOT NULL, | |
`Second_Name` VARCHAR(100) NOT NULL, | |
`Birthday` DATE NOT NULL, |
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 takeNumber(a): | |
result = '' | |
for i in a: | |
if i.isdigit(): | |
result += i | |
return result |
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 re | |
def getWeight(a): | |
p = re.compile("\d+(\.|\,)?\d*\s?(кг|г|л)") | |
answer = p.search(a) | |
if answer != None: | |
weighStr = answer.group().replace(",",".") | |
if weighStr.find("кг") == -1 and weighStr.find("л") == -1: | |
return int(float(deleteLast(weighStr))) | |
else: | |
return int(float(deleteLast(weighStr))*1000) |
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 re | |
def getWeight(a): | |
p = re.compile("\d+(\.|\,)?\d*\s?((кг)|г|(мл)|л)") | |
answer = p.search(a) | |
if answer != None: | |
weighStr = answer.group().replace(",",".") | |
if weighStr.find("кг") == -1 and weighStr.find("л") == -1: | |
return int(float(deleteLast(weighStr))) | |
else: | |
if weighStr.find("мл") == -1: |
OlderNewer