Skip to content

Instantly share code, notes, and snippets.

View vojtech-cerveny's full-sized avatar
🦊
Foxy fox

Vojtěch Červený vojtech-cerveny

🦊
Foxy fox
  • Sequenex
  • Ostrava, Czech Republic
View GitHub Profile
@Fallup
Fallup / react-native-libs.md
Last active October 2, 2021 20:02
Collection of useful (not only) React Native libraries

There are lot of libs for the React Native and often it is not easy to choose the right one for the job. This is a collection of useful libs I've tried (or seen in use) over the years which worked the best for me.

Essential:

@klamping
klamping / wdio-best-practices.md
Last active February 27, 2024 08:25 — forked from jrobinson01/wdio-best-practices.md
WDIO testing best practices

WDIO Testing Best Practices

  • Use page objects
  • avoid protocol methods and prefer commands
  • don't use timeouts unless you have a good reason
  • use waitFor, waitForVisible etc
  • avoid caching elements
  • avoid arbitrary pause() calls
  • use mocks

Protocol commands

@lakshmantgld
lakshmantgld / slackWebhook.md
Last active February 7, 2024 03:57
Configuring slack webhook

A Webhook, in simple terms, is a user-defined HTTP callback. It is a mechanism for the system to notify you about an event. In our case, we need to send messages to a particular channel in slack. Slack calls in Incoming Webhook. It is a mechanism to send messages to your Slack Channel from external sources. These external sources could be any application or service that is capable of sending a JSON payload over HTTP into a Slack Channel. Each Channel will be identified by a unique Incoming Webhook URL to which you can post the message from outside. This configuration is done via the Integrations for your channel.

Steps to create a incoming webhook in Slack:

  1. Naviagte to the Incoming Webhook URL. Click the hyper link incoming webhook integration below the heading Incoming Webhooks.
  2. You will be asked to enter your team URL, followed by your slack credentials.
  3. Once you have completed the above step, you will see the wizard kind of webpage to
@ergoithz
ergoithz / xpath_soup.py
Last active October 11, 2024 03:23
Generate unique XPATH for BeautifulSoup element
#!/usr/bin/python
# -*- coding: utf-8 -*-
import bs4
def xpath_soup(element):
# type: (typing.Union[bs4.element.Tag, bs4.element.NavigableString]) -> str
"""
Generate xpath from BeautifulSoup4 element.