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 {Page} from '@playwright/test'; | |
| import fs from 'fs'; | |
| import path from 'path'; | |
| export const STORIES_FILE = path.join( | |
| __dirname, | |
| '..', | |
| 'storybook-static', | |
| 'stories.json', | |
| ); |
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 os | |
| import json | |
| from playwright.sync_api import sync_playwright | |
| def run(playwright): | |
| browser = playwright.chromium.launch(headless=False) | |
| page = browser.new_page() | |
| page.goto("https://cdpn.io/hardkoded/fullpage/jOyobqJ") | |
| iframe0 = page.query_selector('#result').content_frame() |
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
| const { chromium } = require('playwright'); | |
| (async () => { | |
| const browser = await chromium.launch({headless : false}); | |
| const page = await browser.newPage(); | |
| await page.goto('http://scratchya.com.ar/angular/proyecto021/'); | |
| const elements = await page.$$('mat-radio-button.mat-radio-checked'); | |
| console.log(elements.length); | |
| console.log(await elements[0].innerText()); | |
| })(); |
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
| public Task SetContentAsync(string key, string value, TimeSpan? timespan, IEnumerable<string> invalidationIndexes, int database, ConnectionMultiplexer redisConn) | |
| { | |
| redisConn = redisConn ?? ConnectionHelper.Connection; | |
| var cache = redisConn.GetDatabase(database); | |
| var tasks = invalidationIndexes.Select(ix => cache.SetAddAsync(ix, key)).ToList(); | |
| tasks.Add(cache.StringSetAsync(key.ToLower(), value, expiry: timespan)); | |
| return Task.WhenAll(tasks); |
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
| #!/bin/bash | |
| git fetch origin | |
| git checkout develop | |
| git pull upstream develop | |
| git branch -r --merged develop | grep -v "origin/master$" | grep -v "origin/develop$" | grep "origin/*" | sed 's/\s*origin\///' | xargs -t -n 1 git push --delete origin |
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
| #!/bin/bash | |
| git fetch origin | |
| git checkout develop | |
| git pull upstream develop | |
| git branch -r --merged develop | grep -v "origin/master$" | grep -v "origin/develop$" | grep "origin/*" | sed 's/\s*origin\///' | xargs -t -n 1 git push --delete origin |
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
| #!/bin/bash | |
| git fetch origin | |
| git checkout develop | |
| git pull upstream develop | |
| git branch -r --merged develop | grep -v "origin/master$" | grep -v "origin/develop$" | grep "origin/*" | sed 's/\s*origin\///' |
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
| #!/bin/bash | |
| git checkout develop | |
| git pull upstream develop | |
| git branch --merged develop | grep -v "develop" | grep -v "master" | xargs -n 1 git branch -d |