This note illustrates how to setup JetBrains IntelliJ IDEA for JOSM development.
- Get the source
- Add project from existing source
- Project Settings / Project:
$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" |
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)) |
--- | |
navbar: | |
homepage: 'Navigate to the homepage' | |
user: 'Logged in as {{user}}' | |
load: 'Load {{smart_count}} item |||| Load {{smart_count}} items' |
This note illustrates how to setup JetBrains IntelliJ IDEA for JOSM development.
The goal is to server Swagger UI via http://localhost:8080/swagger-ui/
Add Maven/Gradle dependency org.webjars:swagger-ui
– https://search.maven.org/artifact/org.webjars/swagger-ui/3.26.1/jar
Configure the Jetty DefaultServlet
:
package at.tbbm.manual_input;
import org.eclipse.jetty.server.Server;
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 |
var i18nMessages = {}; | |
["en", "de", "it"].forEach(function (lang) { | |
jQuery.ajax({ | |
url: "./i18n/" + lang + ".json", | |
dataType: 'json', | |
async: false, | |
success: function (data) { | |
i18nMessages[lang] = data; | |
} | |
}) |
redis: | |
image: redis | |
postgres: | |
image: postgres | |
environment: | |
- POSTGRES_PASSWORD=sentry | |
- POSTGRES_USER=sentry | |
volumes: | |
- /var/lib/postgresql/data |
Using the URI copy constructor on an URI where the userinfo part contains a percent-escaped colon (U+003A as %3A
) produces a different result.
import angular from 'angular'; | |
import fontawesome from '@fortawesome/fontawesome-svg-core'; | |
import {faPrint} from '@fortawesome/free-solid-svg-icons/faPrint'; | |
import {faSearch} from '@fortawesome/free-solid-svg-icons/faSearch'; | |
fontawesome.library.add(faPrint, faSearch); | |
function directive(): ng.IDirective { | |
return { | |
restrict: 'E', |