Skip to content

Instantly share code, notes, and snippets.

View wzieba's full-sized avatar
🏎️

Wojciech Zięba wzieba

🏎️
View GitHub Profile
@wzieba
wzieba / 55199e2344e932ec3dc85f99202bd95c3b7f4199
Created February 21, 2024 12:08
diff-55199e2344e932ec3dc85f99202bd95c3b7f4199
From 55199e2344e932ec3dc85f99202bd95c3b7f4199
// Automatically generated file. DO NOT MODIFY
package org.wordpress.android.util.config
import kotlin.String
import kotlin.collections.List
public object FeaturesInDevelopment {
public val featuresInDevelopment: List<String> = listOf(
@wzieba
wzieba / ec1baba114bba7d8eb6557fff1f48c581ab8870b
Created February 21, 2024 12:05
diff-ec1baba114bba7d8eb6557fff1f48c581ab8870b
From ec1baba114bba7d8eb6557fff1f48c581ab8870b
// Automatically generated file. DO NOT MODIFY
package org.wordpress.android.util.config
import kotlin.String
import kotlin.collections.List
public object FeaturesInDevelopment {
public val featuresInDevelopment: List<String> = listOf(
@wzieba
wzieba / merge-gradle-profiler-results.py
Created January 24, 2024 16:27 — forked from gabrielfeo/merge-gradle-profiler-results.py
Compare separate gradle-profiler (v0.17.0) benchmark results by merging them into a single HTML
#!/usr/bin/env python3
from collections import namedtuple
import os
import shutil
import re
import json
import argparse
parser = argparse.ArgumentParser(
@wzieba
wzieba / gw.sh
Created December 13, 2022 16:09
if ./gradlew "$@" ; then
osascript -e "display notification \"Success\" with title \"Gradle\" sound name \"hero\""
else
osascript -e "display notification \"Failure\" with title \"Gradle\" sound name \"bottle\""
fi
sequenceDiagram

autonumber
participant mobile as Woo Mobile App
participant core as WooCommerce Core

mobile->>mobile:generate list of possible variations
note right of mobile: "abort if >100"
mobile-&gt;&gt;core:products//variations/batch
sequenceDiagram

autonumber
participant mobile as Woo Mobile App
participant core as WooCommerce Core

mobile->>mobile:generate list of possible variations
loop Until all variations created
mobile-&gt;&gt;core:products//variations/batch
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
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
@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"
@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>