This provides a Google Truth extension for XMLUnit in order to allow to compare XML documents in unit tests.
XmlSubject.assertThat("<a><b foo='1' bar='2'></b></a>")
.isTheSameXmlAs("<a><b bar='2' foo='1'/></a>");| openjdk version "1.8.0_144" | |
| OpenJDK Runtime Environment (build 1.8.0_144-b01) | |
| OpenJDK 64-Bit Server VM (build 25.144-b01, mixed mode) | |
| 12/21/17 | |
| ar 21/12/17 | |
| ar_AE 21/12/17 | |
| ar_BH 21/12/17 | |
| ar_DZ 21/12/17 | |
| ar_EG 21/12/17 |
| /* eslint-env node */ | |
| const buble = require('buble'); | |
| const loaderUtils = require('loader-utils'); | |
| const path = require('path'); | |
| module.exports = function BubleLoader(source) { | |
| this.cacheable && this.cacheable(); | |
| const options = Object.assign({transforms: {modules: false}}, loaderUtils.getOptions(this)); | |
| const transformed = buble.transform(source, options); |
| import ar.com.hjg.pngj.FilterType; | |
| import ar.com.hjg.pngj.ImageInfo; | |
| import ar.com.hjg.pngj.ImageLineByte; | |
| import ar.com.hjg.pngj.PngWriter; | |
| import ar.com.hjg.pngj.PngjException; | |
| import java.awt.image.BufferedImage; | |
| import java.awt.image.DataBuffer; | |
| import java.awt.image.Raster; | |
| import java.awt.image.SinglePixelPackedSampleModel; |
| const schema = JSON.parse(require('fs').readFileSync('dist/plot-schema.json')); | |
| generate("layout", schema.layout.layoutAttributes); | |
| generate("scatter", schema.traces.scatter.attributes); | |
| generate("annotations", schema.layout.layoutAttributes.annotations); | |
| generate("shapes", schema.layout.layoutAttributes.shapes); | |
| function generate(key, value, indent = 0) { | |
| if (key[0] === '_') { | |
| return; |
This provides a Google Truth extension for XMLUnit in order to allow to compare XML documents in unit tests.
XmlSubject.assertThat("<a><b foo='1' bar='2'></b></a>")
.isTheSameXmlAs("<a><b bar='2' foo='1'/></a>");| 286 m route ("1 Bergisel – Mühlauer Brücke", 46 members) | |
| 0 m Bergisel | |
| 355 m Stubaitalbahnhof | |
| 389 m Fritz-Konzert-Straße | |
| 296 m Westbahnhof | |
| 319 m Franz-Fischer-Straße | |
| 295 m Maximilianstraße | |
| 318 m Bürgerstraße | |
| 242 m Terminal Marktplatz | |
| 306 m Maria-Theresien-Straße |
| # generates SMTLIB input for SMT solvers such as [MiniSmt](http://cl-informatik.uibk.ac.at/software/minismt/) | |
| rows = range(1, 8) | |
| cols = ['a', 'b', 'c', 'd', 'e', 'f', 'g'] | |
| def assert_sum(v, cells): | |
| print(f':assumption (= {v} (+ {cells}))') | |
| print('(benchmark none') | |
| print(':logic QF_NIA') |
| $r = (Get-Random -Maximum 255) | |
| $g = (Get-Random -Maximum 255) | |
| $b = (Get-Random -Maximum 255) | |
| Set-ItemProperty "HKCU:\Control Panel\Colors" -Name Background -Value "$r $g $b" |
| #!/usr/bin/env python2 | |
| import requests | |
| from requests.auth import HTTPBasicAuth | |
| import re | |
| from StringIO import StringIO | |
| import uuid | |
| # Inspired from https://gist.github.com/toudi/67d775066334dc024c24 | |
| # Tested on Jira 7.4 and Gitlab 2.2 with Python 2.7 | |
| JIRA_URL = 'https://your-jira-url.tld/' |
| import xml.etree.ElementTree as ET | |
| import glob | |
| import urllib.request | |
| import yaml | |
| from ansible.playbook.helpers import load_list_of_tasks | |
| def get_latest_version(id): | |
| url = f'https://chocolatey.org/api/v2/Packages()?$filter=(Id%20eq%20%27{id}%27)%20and%20IsLatestVersion' | |
| xml = ET.parse(urllib.request.urlopen(url)) |