Skip to content

Instantly share code, notes, and snippets.

View wzieba's full-sized avatar

Wojciech Zięba wzieba

View GitHub Profile
name: Distribute to firebase
on:
workflow_dispatch:
jobs:
distribute:
runs-on: ubuntu-latest
steps:
default_platform(:android)
platform :android do
desc "Deploy to Firebase App Distribution"
lane :firebase_distribution do
sh("wget https://github.com/appium/appium/raw/master/sample-code/apps/ApiDemos-debug.apk")
firebase_app_distribution(
{
"title": "mw",
"platform": "xbl",
"username": "tuksiarz",
"type": "wz",
"level": 140.0,
"maxLevel": 0.0,
"levelXpRemainder": 3000.0,
"levelXpGained": 7000.0,
"prestige": 0.0,
name: Build README
on:
push:
workflow_dispatch:
schedule:
- cron: '0 1 * * *'
jobs:
build:
import re
from dataclasses import dataclass
import feedparser
MAX_FETCHED_BLOG_POSTS = 5
README_FILE_NAME = 'README.md'
@dataclass
from unittest import TestCase
from main import replace_content, BlogEntry, fetch_and_parse_rss_feed
EXPECTED_CONTENT = "This is expected content in target block"
EXPECTED_RESULT = """#Header
<!-- blog starts -->
""" + EXPECTED_CONTENT + """
@wzieba
wzieba / Addon.kt
Last active August 16, 2021 14:26
Product addon
package org.wordpress.android.fluxc.domain
sealed class Addon {
abstract val name: String?
abstract val titleFormat: TitleFormat?
abstract val description: Description
abstract val required: Boolean?
abstract val position: Int?
abstract val options: List<ProductAddonOption>
@wzieba
wzieba / woo_android_aliases.sh
Last active April 14, 2022 10:48
Useful aliases for working with WooCommerce Android
alias talkbackoff = adb shell settings put secure enabled_accessibility_services com.android.talkback/com.google.android.marvin.talkback.TalkBackService
alias talkbackon = adb shell settings put secure enabled_accessibility_services com.google.android.marvin.talkback/com.google.android.marvin.talkback.TalkBackService
alias darkmodeon = adb shell "cmd uimode night yes"
alias darkmodeoff = adb shell "cmd uimode night no"
gantt  
dateFormat YYYY-MM-DD  
title Email mobile deep links project
todayMarker on
  
section woocommerce.com
[Done] Domain verification files  :done  , 2022-08-29, 2022-09-17
[In-Progress] Redirect /mobile/  :done , 2022-08-29, 2022-10-11
[Done] Track hits  :done , 2022-08-29, 2022-09-17
sequenceDiagram

autonumber
participant mobile as Woo Mobile App
participant core as WooCommerce Core
participant core_internal as CRON? Internal jobs?

mobile->>core:create_variations?product_id=<id>
loop Until all variations created