This file contains hidden or 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
from typing import Dict | |
from pyspark.sql import DataFrame | |
from pyspark.sql.functions import col | |
from mee_common import mee_log | |
def transformation(dfs: Dict[str, DataFrame]) -> DataFrame: | |
df = next(iter(dfs.values())) | |
out = df.filter((col("tradeId").cast("long") % 2)==1) | |
mee_log(f"BRANCH=A IN={df.count()} OUT={out.count()}") | |
return out |
This file contains hidden or 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
test-job: | |
stage: test | |
timeout: 3h | |
dependencies: | |
- setup-job | |
script: | |
- echo "Creating .env file" | |
- | | |
set +x | |
echo "SYSMEDEV=$SYSMEDEV" >> .env |
This file contains hidden or 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
:: 1. убери nightly-Node | |
winget uninstall --id OpenJS.NodeJS -e | |
:: 2. поставь nvm и LTS 20 | |
winget install -e --id CoreyButler.NVMforWindows | |
nvm install 20.14.0 | |
nvm use 20.14.0 | |
:: 3. почисти проект | |
cd D:\work\RISE_PW_TS |
This file contains hidden or 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
# clean start in project root | |
nvm use 20.14.0 | |
npm cache clean --force | |
del package-lock.json | |
rd /s /q node_modules | |
npm install --loglevel info |
This file contains hidden or 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
Вот готовый текст для реквеста: | |
Short Description: | |
Request to increase VM resources (CPU and RAM) | |
Description: | |
I need to increase my VM capacity to 8 CPU and 8 GB RAM. Currently, I have 2 CPU and 4 GB RAM, and the machine consistently freezes and blocks my programming tasks. I’m actively involved in development across multiple projects, and current resources are not sufficient. |
This file contains hidden or 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
// в Utils | |
public static sortJsonArray(arr: any[]): any[] { | |
return [...arr].sort((a, b) => | |
JSON.stringify(a).localeCompare(JSON.stringify(b)) | |
); | |
} |
This file contains hidden or 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
async selectDate( | |
dateString: string, | |
allowFallback = false, | |
maxDaysAhead = 0 | |
): Promise<void> { | |
const [year, month, day] = dateString.split('/').map(Number); | |
await (await this.childElement(this.yearSelect)).selectOption(year); | |
await (await this.childElement(this.monthSelect)).selectOption({ value: month }); |
This file contains hidden or 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
async function brutalFill(locator: Locator, value: string) { | |
const el = await locator.elementHandle(); | |
await el.evaluate((input, v) => { | |
// Берём native setter, чтобы обойти маску/прокси getters | |
const nativeInputValueSetter = | |
Object.getOwnPropertyDescriptor( | |
HTMLInputElement.prototype, | |
'value' | |
)!.set!; |
This file contains hidden or 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 {AttributeType, Component} from "./component"; | |
export class Calendar extends Component { | |
public container: string; | |
constructor(container: string) { | |
super(`${container} div[class^="bootstrap-datetimepicker-widget"]`); | |
this.container = container; | |
} |
This file contains hidden or 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
UI Automation Excellence: From Stability to Insights | |
Two Projects – One Vision for Quality and Speed | |
Why This Project Matters | |
• We run critical UI test pipelines… | |
• Main goal: eliminate flakiness… | |
What Makes This Project Stand Out | |
• Two fully automated pipelines… | |
(continue the same pattern for all slides) |
NewerOlder