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
var email = ['скидка', 'анонс', 'популярное', 'рассказ']; | |
// массив для результатов перестановок | |
var results = []; | |
// рекурсивная функция | |
// на вход получает текущий массив и массив с памятью предыдущих вычислений | |
function permute(arr, memo) { | |
// переменная для хранения фрагмента массива | |
var cur; |
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
const puppeteer = require("puppeteer"); | |
const jobUrl = process.env.JOB_URL; | |
let page; | |
let browser; | |
let cardArr = []; | |
class Jobs { | |
static async init() { | |
// console.log('Loading Page ...') | |
browser = await puppeteer.launch(); | |
page = await browser.newPage(); |
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
здесь вставляем скопированный код |
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
<!-- Yandex.Metrika counter --> | |
<script type="text/javascript" > | |
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; | |
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) | |
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); | |
ym(80335906, "init", { | |
clickmap:true, | |
trackLinks:true, | |
accurateTrackBounce:true |
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
# открываем текстовый файл, куда будем добавлять заголовки | |
file = open("zag.txt", "a") | |
# перебираем все адреса из списка | |
for x in url: | |
# получаем исходный код очередной страницы из списка | |
html_code = str(urlopen(x).read(),'utf-8') | |
# отправляем исходный код страницы на обработку в библиотеку | |
soup = BeautifulSoup(html_code, "html.parser") |
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
try: | |
file = open("myfile2.txt") | |
except FileNotFoundError: | |
print("Файл не найден, создаю новый") | |
file = open("myfile2.txt","a") |
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="ru" > | |
<head> | |
<meta charset="UTF-8"> | |
<title>SVG-графика</title> | |
<style type="text/css"> | |
svg{ | |
position:absolute; | |
z-index:-1; | |
display: block;} |
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
<polygon | |
points=» ← начались координаты вершин треугольника | |
100,140 ← координаты первой точки | |
250,118 ← координаты второй точки | |
170,60 » ← координаты третьей точки |
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
<rect | |
width=»30″ ← ширина | |
height=»20″ ← высота | |
fill=»orange» ← цвет прямоугольника | |
stroke-width=»1″ ← толщина контура |
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
<circle | |
cx=»25″ cy=»25″ ← центр круга | |
r=»20″ ← радиус | |
fill=»green» ← цвет заливки | |
stroke-width=»5″ ← толщина контура |
NewerOlder