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:easy_localization/easy_localization.dart'; | |
final flogger = Logger(); | |
final logger = Logger(); | |
class Logger { | |
bool debug = true; | |
log(String message) { |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Simple Template</title> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta property="og:title" content="Simple Template" /> | |
<style> |
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 java.util.Date; | |
import java.util.HashMap; | |
public class Attempt { | |
private String gamer; | |
private Date timestamp; | |
private int score; | |
private int round; |
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
#!/usr/bin/env bash | |
docker stop elasticsearch-2.3.4 elasticsearch-5.5.2 kibana-5 kibana-2 elasticsearch-6.1.1 kibana-6 | |
docker rm elasticsearch-2.3.4 elasticsearch-5.5.2 kibana-5 kibana-2 elasticsearch-6.1.1 kibana-6 | |
docker network rm elastic-network | |
docker pull docker.elastic.co/elasticsearch/elasticsearch:6.1.1 | |
docker pull docker.elastic.co/kibana/kibana:6.1.1 | |
docker network create -d overlay --attachable elastic-network |
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
Aether aether = Aether.builder() | |
.setLocalRepo(temp.newFolder().getPath()) | |
.addRemoteRepo("maven-central", "http://repo1.maven.org/maven2").build(); | |
List<Artifact> dependencies = aether.resolveDependencies(new DefaultArtifact("org.elasticsearch:elasticsearch:5.5.2")); | |
List<URL> urls = new ArrayList<>(); | |
for (Artifact artifact : dependencies) { | |
URL url = new URL(new URL("file:"), artifact.getFile().getAbsolutePath()); | |
urls.add(url); |
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 static void main() { | |
GDGJihlava superProgramatori = Env.getGdgJihlava().getLatestEvent(); | |
Jarda jarda = superProgramatori.getSpeakers().getJarda(); | |
int secretNumber = resolveRandomNumber(jarda); | |
System.out.println(secretNumber); | |
} | |
public static int resolveRandomNumber(Jarda jarda) { | |
Mind mind = jarda.readMind(); |
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 com.jirkapenzes.utils; | |
import com.google.gson.*; | |
import java.io.BufferedReader; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
/** | |
* @author Jirka Penzes ([email protected]) |
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 java.util.Date; | |
public interface DateTimeProvider { | |
Date getCurrentDate(); | |
} |
NewerOlder