Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| programming [2023/07/29 13:45] – [Python request Cookie example] admin | programming [2025/04/22 03:50] (current) – [Programming] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Programming ====== | ====== Programming ====== | ||
| + | * github repository to learn courses ии репозиторий учебник - https:// | ||
| + | * https:// | ||
| * algoexpert - site with algorithms | * algoexpert - site with algorithms | ||
| * https:// | * https:// | ||
| Line 14: | Line 16: | ||
| * search code grep - '' | * search code grep - '' | ||
| + | |||
| + | ===== Programming backlog ===== | ||
| + | <WRAP group> | ||
| + | <WRAP half column> | ||
| + | Какие подходы и методологии Вы применяли для формирования бэклога и проектирования функциональности продукта в этом году? | ||
| + | * СJM, UJM | ||
| + | * Service Blueprint | ||
| + | * Jobs to be done и Job Story | ||
| + | * User Story и User Story Mapping | ||
| + | * Use Case | ||
| + | * UML | ||
| + | * Текстовое описание по собственным шаблонам | ||
| + | * Другое (укажите, | ||
| + | </ | ||
| + | |||
| + | <WRAP half column> | ||
| + | Какие способы визуализации и моделирования Вы применяли в этом году? | ||
| + | * IDEF0 | ||
| + | * BPMN | ||
| + | * EPC | ||
| + | * Блок-схемы | ||
| + | * UML | ||
| + | * User Flow, UJM | ||
| + | * Прототипы и мокапы интерфейсов | ||
| + | * Другое (укажите, | ||
| + | </ | ||
| + | </ | ||
| ====== Programming.stacks стэк ====== | ====== Programming.stacks стэк ====== | ||
| * [[https:// | * [[https:// | ||
| Line 27: | Line 56: | ||
| + | ===== MarkDown ===== | ||
| + | markdown online editor < | ||
| ===== HTTP ===== | ===== HTTP ===== | ||
| ===== HTML ===== | ===== HTML ===== | ||
| Line 40: | Line 71: | ||
| * нагрузочное тестирование | * нагрузочное тестирование | ||
| + | * ++ Web Scrapping web download scrap| | ||
| + | <code javascript> | ||
| + | (async function downloadCompleteHTML() { | ||
| + | // Helper function to fetch content of external files (CSS, JS, images) | ||
| + | async function fetchResource(url, | ||
| + | try { | ||
| + | const response = await fetch(url); | ||
| + | if (isBinary) { | ||
| + | const blob = await response.blob(); | ||
| + | return new Promise((resolve, | ||
| + | const reader = new FileReader(); | ||
| + | reader.onloadend = () => resolve(reader.result); | ||
| + | reader.onerror = reject; | ||
| + | reader.readAsDataURL(blob); | ||
| + | }); | ||
| + | } else { | ||
| + | return await response.text(); | ||
| + | } | ||
| + | } catch (error) { | ||
| + | console.warn(' | ||
| + | return ''; | ||
| + | } | ||
| + | } | ||
| + | |||
| + | // Helper function to inline external CSS and convert relative URLs to absolute | ||
| + | async function inlineCSS(linkElement) { | ||
| + | const href = linkElement.href; | ||
| + | const cssContent = await fetchResource(href); | ||
| + | |||
| + | // Resolve relative URLs within CSS (for images, fonts, etc.) | ||
| + | const resolvedCSS = cssContent.replace(/ | ||
| + | const absoluteUrl = new URL(relativeUrl, | ||
| + | return `url(${absoluteUrl})`; | ||
| + | }); | ||
| + | |||
| + | // Create a < | ||
| + | const styleElement = document.createElement(' | ||
| + | styleElement.textContent = resolvedCSS; | ||
| + | return styleElement; | ||
| + | } | ||
| + | |||
| + | // Helper function to convert images to base64-encoded data URIs | ||
| + | async function inlineImages(element) { | ||
| + | const images = element.querySelectorAll(' | ||
| + | for (let img of images) { | ||
| + | if (img.src.startsWith(' | ||
| + | const dataUri = await fetchResource(img.src, | ||
| + | img.src = dataUri; // Replace the src with base64-encoded data URI | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | |||
| + | // Get the entire DOM HTML structure | ||
| + | const html = document.documentElement.outerHTML; | ||
| + | |||
| + | // Create a new document to parse and modify the HTML content | ||
| + | const parser = new DOMParser(); | ||
| + | const doc = parser.parseFromString(html, | ||
| + | |||
| + | // Inline all external CSS files | ||
| + | const linkElements = [...doc.querySelectorAll(' | ||
| + | for (let link of linkElements) { | ||
| + | const inlineStyleElement = await inlineCSS(link); | ||
| + | link.replaceWith(inlineStyleElement); | ||
| + | } | ||
| + | |||
| + | // Inline all images as base64 data URIs | ||
| + | await inlineImages(doc); | ||
| + | |||
| + | // Get the final HTML including the modified DOM | ||
| + | const finalHTML = doc.documentElement.outerHTML; | ||
| + | |||
| + | // Create a downloadable HTML file | ||
| + | const downloadHTML = (content, fileName) => { | ||
| + | const a = document.createElement(" | ||
| + | const file = new Blob([content], | ||
| + | a.href = URL.createObjectURL(file); | ||
| + | a.download = fileName; | ||
| + | document.body.appendChild(a); | ||
| + | a.click(); | ||
| + | document.body.removeChild(a); | ||
| + | }; | ||
| + | |||
| + | // Download the final HTML file | ||
| + | downloadHTML(finalHTML, | ||
| + | |||
| + | // Hide loading overlay | ||
| + | loadingOverlay.style.display = ' | ||
| + | })(); | ||
| + | </ | ||
| + | ++ | ||
| + | |||
| + | ==== HTML Beauty ==== | ||
| + | * https:// | ||
| + | |||
| ===== SVG ===== | ===== SVG ===== | ||
| * Svg editor https:// | * Svg editor https:// | ||
| Line 106: | Line 232: | ||
| ===== Python ===== | ===== Python ===== | ||
| + | * https:// | ||
| + | * good book https:// | ||
| * install pip from wheels '' | * install pip from wheels '' | ||
| Line 114: | Line 242: | ||
| * pudb - debugger на стероидах | * pudb - debugger на стероидах | ||
| * ptpython - repl advanced | * ptpython - repl advanced | ||
| + | * | ||
| + | * pandas https:// | ||
| + | |||
| + | |||
| Line 235: | Line 367: | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | * dash filter example https:// | ||
| + | * dash in 20 minutes https:// | ||
| ==== Python.Diagram ==== | ==== Python.Diagram ==== | ||
| Line 248: | Line 382: | ||
| * Git tree < | * Git tree < | ||
| + | ===== OS development ===== | ||
| + | * Osdev https:// | ||
| + | |||
| + | ===== DB development ===== | ||
| + | https:// | ||
| + | https:// | ||