This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- type: horizontal-stack | |
cards: | |
- type: gauge | |
entity: sensor.p1ib_current_l1 | |
max: 25 | |
segments: | |
- from: 0 | |
color: '#2980B9' | |
- from: 3 | |
color: '#48C9B0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Running a docker container in Azure private virtual network (vnet) with public access | |
# The container must be in a manually created vnet if you want to do peering to another | |
# private network. In this config the subnet gives permission to use blob storage for | |
# the containe group. | |
# | |
# Public IP - Load balancer - Backend pool ---- vnet | |
# | | | | |
# LB rule | subnet ----- Container group - Docker app | |
# | | | | | |
# Probe | Security Group | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example screenshot: | |
- type: custom:apexcharts-card | |
graph_span: 48h | |
header: | |
title: Elpris (kr/kWh) | |
show: true | |
experimental: | |
color_threshold: true | |
all_series_config: | |
stroke_width: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Cap everything | |
"My kid is a stupid jump rat" | |
.toLowerCase() | |
.split(' ') | |
.map(word => word.charAt(0).toUpperCase() + word.substring(1)) | |
.join(' '); | |
// MLA Style - All words <= 3 chars are lowercase, except first and last word. | |
// MLA style word matching that always should be lower case. There are combinations as well, like "as long as" and "even if", that should be non cap to be perfect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.nio.charset.StandardCharsets; | |
import org.junit.Assert; | |
import org.junit.Test; | |
import org.springframework.http.HttpHeaders; | |
import org.springframework.web.reactive.function.BodyInserters; | |
import org.springframework.web.reactive.function.client.WebClient; | |
import reactor.core.publisher.Mono; | |
public class BodyContentLenghtTest { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package barky; | |
import java.util.Collections; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Set; | |
import java.util.function.Function; | |
import java.util.stream.Collectors; | |
import org.junit.jupiter.api.Assertions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package se.cygni.bootcamp.mashup.core; | |
import java.util.Optional; | |
import org.springframework.http.HttpHeaders; | |
import org.springframework.web.reactive.function.client.ClientResponse; | |
import org.springframework.web.reactive.function.client.WebClient; | |
import reactor.core.publisher.Mono; |