This file contains hidden or 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 'package:flutter/material.dart'; | |
| void main() { | |
| runApp(const MyApp()); | |
| } | |
| class MyApp extends StatelessWidget { | |
| const MyApp({Key? key}) : super(key: key); | |
| // This widget is the root of your application. |
This file contains hidden or 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
| var count = 0; // int | |
| var message = 'hello world'; // string | |
| var primzahlen = [2, 3, 5, 7, 11]; // Liste von int | |
| var haustiere = {'Hund', 'Katze', 'Maus', 'Hase'}; // Set von strings | |
| var loading = false; // bool |
This file contains hidden or 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
| var int count = 0; // int | |
| var string message = 'hello world'; // string | |
| var List<int> primzahlen = [2, 3, 5, 7, 11]; // Liste von int | |
| var Set<String> haustiere = {'Hund', 'Katze', 'Maus', 'Hase'}; // Set von strings | |
| var bool loading = false; // bool |
This file contains hidden or 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
| void main() { | |
| Runes input = new Runes('\u{1f600}' '\u{1f499}' '\u{1f44d}'); | |
| print(new String.fromCharCodes(input)); | |
| } |
This file contains hidden or 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
| public DBInstance getRdsInstance(String dbInstanceIdentifier) { | |
| AmazonRDS client = createAmazonRdsClient(); | |
| DescribeDBInstancesRequest describeDBInstancesRequest = new DescribeDBInstancesRequest() | |
| .withDBInstanceIdentifier(dbInstanceIdentifier); | |
| DescribeDBInstancesResult describeDBInstances = client.describeDBInstances(describeDBInstancesRequest); | |
| client.shutdown(); | |
| return describeDBInstances.getDBInstances().get(0); | |
| } | |
| private void waitUntilRdsInstanceIsAvailable(DBInstance instance) { |
This file contains hidden or 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
| private DBInstance createRdsInstance(String snapshotIdentifier) { | |
| String newRdsInstanceId = "mk-dev-" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyMMdd-HHmm")); | |
| logger.info("Erstelle neue RDS Stage Instance mit ID: {}", newRdsInstanceId); | |
| AmazonRDS client = createAmazonRdsClient(); | |
| RestoreDBInstanceFromDBSnapshotRequest request = new RestoreDBInstanceFromDBSnapshotRequest() | |
| .withPubliclyAccessible(true) | |
| .withDBInstanceIdentifier(newRdsInstanceId) | |
| .withDBSnapshotIdentifier(snapshotIdentifier) | |
| .withMultiAZ(false) |
This file contains hidden or 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
| private AmazonRDS createAmazonRdsClient() { | |
| BasicAWSCredentials basicCredentials = new BasicAWSCredentials(ACCESS_KEY_ID, SECRET_KEY); | |
| AWSStaticCredentialsProvider credentialProvider = new AWSStaticCredentialsProvider(basicCredentials); | |
| return AmazonRDSClientBuilder.standard() | |
| .withRegion(Regions.EU_CENTRAL_1) | |
| .withCredentials(credentialProvider) | |
| .build(); | |
| } |
This file contains hidden or 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
| AmazonRDS client = createAmazonRdsClient(); | |
| DescribeDBSnapshotsRequest describeDBSnapshotsRequest = new DescribeDBSnapshotsRequest(); | |
| describeDBSnapshotsRequest.withSnapshotType("automated"); | |
| describeDBSnapshotsRequest.setDBInstanceIdentifier(RDS_INSTANCE_IDENTIFIER); | |
| List<DBSnapshot> snapshots = client.describeDBSnapshots(describeDBSnapshotsRequest).getDBSnapshots(); | |
| logger.info("{} RDS Snapshots gefunden für RDS Instance ID '{}'", snapshots.size(), RDS_INSTANCE_IDENTIFIER); | |
| client.shutdown(); |
This file contains hidden or 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 de.ligahero.news.control; | |
| import static org.hamcrest.CoreMatchers.equalTo; | |
| import static org.hamcrest.MatcherAssert.assertThat; | |
| import org.junit.Test; | |
| public class HTMLBuddyTest { | |
| @Test |
This file contains hidden or 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
| /** | |
| * <p> | |
| * Beschreibt eine Bonusfrage wie z.B. "Wer wird Meister". | |
| * </p> | |
| * | |
| * <p> | |
| * Ist die Bonusfrage von LigaHero vorgegeben, ist das Attribut {@link #customQuestion} <code>true</code>, bei einer von einer Tipprunde selbst erstellten Frage | |
| * <code>false</code>.<br/> | |
| * Mit der Methode {@link #setCustomQuestion(boolean)} kann der Wert gesetzt werden. | |
| * </p> |
NewerOlder