View docker-compose.yml
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
version: '3.2' | |
services: | |
db: | |
image: postgres:13.1-alpine | |
container_name: db | |
environment: | |
- POSTGRES_PASSWORD=postgres | |
- POSTGRES_USER=postgres | |
- POSTGRES_DB=jira | |
volumes: |
View CharReplacement.java
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 com.example.blogservice; | |
public class CharReplacement { | |
public static void main(String[] args) { | |
String s = "AyxRTXra"; // ABBAAABB | |
System.out.println(convert(s)); | |
} | |
private static String convert(String input) { |
View ajs.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
declare var AJS: { | |
I18n: { | |
getText: (key: string, ...args?: string[]) => string | |
}, | |
toInit: (initFunc: () => any) => void, | |
params: { | |
baseUrl: string | |
} | |
}; |