Skip to content

Instantly share code, notes, and snippets.

@antifriz
antifriz / pytest-xunit.xsl
Created Jan 11, 2021
pytest/pylint/flake8/mypy to Jenkins xunit plugin converter (used with Custom tool type)
View pytest-xunit.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="1.0">
<xsl:output method="xml" indent="yes" encoding="UTF-8"
cdata-section-elements="system-out system-err failure"/>
<xsl:decimal-format decimal-separator="." grouping-separator=","/>
<xsl:template match="testsuites">
<testsuites>
<xsl:apply-templates select="testsuite"/>
@antifriz
antifriz / SwitchCompatCompat.java
Last active Dec 7, 2017
Quick workaround for animation bug related to SwitchCompat in RecyclerView, bug: https://code.google.com/p/android/issues/detail?id=196652
View SwitchCompatCompat.java
package android.support.v7.widget;
import android.content.Context;
import android.util.AttributeSet;
/**
* Created by ivan on 2/19/16.
*
* This is a quick workaround for SwitchCompat class.
*
View input.txt
Nadklasa = Cestovni, Terenac
Klasa = Cestovni_mali, Cestovni_veliki, Cestovni_srednji, SUV_mali, SUV_veliki
Velicina = mali, srednji, veliki
IzvanCeste = da, ne
Sportski = da, ne
Udobnost = visoka, srednja, niska
Snaga = visoka, srednja, niska
Tradicija = duga, srednja, kratka
PogonNaSva4 = da, ne
Dugotrajnost = da, ne