Go to about:config and add the property: ui.systemUsesDarkTheme=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
declare const ___brand: unique symbol; | |
type Branded<A, B> = A & { readonly [___brand]: B }; | |
type UID = Branded<number, User>; | |
interface User { | |
id: UID; | |
name: string; | |
lastLogin: Date; |
Original Source: Spring Cloud program uses logback error
For Spring Cloud programs that do not use Spring Cloud Context, it is best to disable Spring Cloud Context, because if it is not disabled, it will cause some configuration loading errors.
Disable method:
add in the main SpringBoot function System.setProperty("spring.cloud.bootstrap.enabled", "false");
root/
├─ assets/
│ └─ favicon.ico
└─ src/
├─ App.js
├─ services/
│ └─ play─client/
│ ├─ PlayClient.js
│ ├─ PlayLocalStorageClient.js
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.util.HashSet; | |
import java.util.Set; | |
import lombok.Data; | |
/** | |
* This is a simple demo how to implement equals and hashcode wrong, just because we don't understand it good enough | |
* It's is a very common mistake and easy to make wrong when you use lombok. | |
*/ | |
@Data |
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
/** | |
* Wir haben ein Datum, welches wir z.B. im localStorage speichern wollen und später wieder brauchen. | |
* Damit wir sehen was jeweils ausgegeben wird logge ich die Resultate via console.log und schreibe | |
* als Kommentar dazu, welche Ausgabe ich etwa erwarte | |
*/ | |
const someDate = new Date(); | |
console.log(someDate); // Ausgabe: Ein Datumsobjekt, zu sehen ist dessen String-Representation | |
const dateString = someDate.toString(); |
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
function naiveDiff(aIn, bIn, options) { | |
const rawA = aIn + '' === aIn ? aIn.split('') : aIn; | |
const rawB = bIn + '' === bIn ? bIn.split('') : bIn; | |
let a = rawA; | |
let b = rawB; | |
if (options.trim) { | |
a = a.map(s => s.trim()); | |
b = b.map(s => s.trim()); | |
} | |
if (options.skipEmpty) { |
An introduction to AsciiDoc.
I have yet to see any problem, however complicated, which, when you looked at it in the right way, did not become still more complicated
— Poul Anderson
Anderson's Law
Anderson's Law
Over the last several decades we’ve seen a whole range of ideas regarding the architecture of systems. These include:
— Uncle Bob
Clean Architecture
Clean Architecture
NewerOlder