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>");
angular.module('app').config(function($httpProvider) { | |
$httpProvider.interceptors.push(delayHttp); | |
function delayHttp($timeout) { | |
return { | |
response: function(response) { | |
return $timeout(angular.identity, Math.random() * 1000, true, response); | |
} | |
}; | |
} |
#! /bin/bash | |
cd $(dirname $0) | |
verLocal=$(cat josm_version) | |
verRemote=$(wget -qO - http://josm.openstreetmap.de/latest) | |
echo local $verLocal remote $verRemote | |
if [ $verLocal -lt $verRemote ]; then |
/* 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 |
#!/bin/sh | |
set -e | |
# setup ssh-agent and provide the GitHub deploy key | |
eval "$(ssh-agent -s)" | |
openssl aes-256-cbc -K $encrypted_dc4c0df7bb33_key -iv $encrypted_dc4c0df7bb33_iv -in id_ed25519.enc -out id_ed25519 -d | |
chmod 600 id_ed25519 | |
ssh-add id_ed25519 | |
# commit the assets in build/ to the gh-pages branch and push to GitHub using SSH |
# 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') |