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>");
dist/ | |
node_modules/ |
--- | |
navbar: | |
homepage: 'Navigate to the homepage' | |
user: 'Logged in as {{user}}' | |
load: 'Load {{smart_count}} item |||| Load {{smart_count}} items' |
git checkout --orphan new-framework | |
# completely rewrite your application in new framework | |
git merge --strategy=ours --allow-unrelated-histories master | |
git commit-tree -p HEAD^2 -p HEAD^1 -m "Merge branch 'new-framework'" "HEAD^{tree}" | |
git reset --hard $OUTPUT_FROM_PREVIOUS_COMMAND | |
git checkout master | |
git merge --ff-only new-framework |
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)) |
#!/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/' |
$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" |
# 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') |
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 |
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>");
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; |