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.awt.*; | |
import javax.swing.*; | |
import java.awt.event.*; | |
/********************************** | |
This is the main class of a Java program to play a game based on hexagonal tiles. | |
The mechanism of handling hexes is in the file hexmech.java. | |
Written by: M.H. | |
Date: December 2012 |
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
// The injector is what gets passed around. Only in the setup are "new" allowed. Flutter doesn't allow for reflection so we must specify | |
// how to create the objects. | |
class InjectorSetupImpl extends InjectorSetupBaseImpl { | |
@override | |
IInjector createProductionInjector() { | |
return _createCommon() | |
// Mobile auth | |
..register(IFirebaseAuth, (i) => new FirebaseAuthImpl()) |
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
.docker: | |
image: docker | |
stage: publish_docker | |
services: | |
- docker:dind | |
variables: | |
DOCKERFILE_PATH: Dockerfile | |
DOCKER_REGISTRY: $CI_REGISTRY | |
DOCKER_REGISTRY_IMAGE: $CI_REGISTRY_IMAGE | |
DOCKER_PROJECT_NAME: $CI_PROJECT_NAME |
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
FROM node:9.4.0 | |
RUN npm -g install \ | |
semantic-release \ | |
@semantic-release/changelog \ | |
@semantic-release/commit-analyzer \ | |
@semantic-release/exec \ | |
@semantic-release/gitlab \ | |
@semantic-release/release-notes-generator \ | |
@semantic-release/git |
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
.semantic-release: | |
stage: semantic-release | |
image: registry.gitlab.com/you/tools.build.semantic-release/semantic-release-builder | |
variables: | |
SEMANTIC_RELEASE_VERIFY_CONDITIONS: >- | |
@semantic-release/changelog, | |
@semantic-release/git, | |
@semantic-release/gitlab | |
SEMANTIC_RELEASE_ANALIZE_COMMITS: >- | |
@semantic-release/commit-analyzer |
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
include: | |
- project: you/tools.build.docker | |
file: pipelines/.publish-step.yml | |
- local: pipelines/.release-step.yml | |
build docker: | |
extends: .docker_build | |
stage: build | |
variables: | |
DOCKER_PROJECT_NAME: semantic-release-builder |
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
class Car { | |
private val wheel = Wheel() | |
fun drive() { | |
wheel.spin() | |
} | |
} |
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
class Car(private val wheel: Wheel) { | |
fun drive() { | |
wheel.spin() | |
} | |
} |
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
abstract class Service<M> { | |
Future<M> getOne(int id); | |
Future<List<M>> getAll(); | |
} | |
abstract class RestServiceBase<M> implements Service<M> { | |
final Injector _injector; | |
final String _endpoint; | |
String get _root => "${_injector.get<String>(name: "api_root")}/$_endpoint"; |
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 'package:dependencies/dependencies.dart'; | |
import 'models.dart'; | |
import '../service.dart'; | |
abstract class PostService implements Service<Post> {} | |
class PostRestService extends RestServiceBase<Post> implements PostService { | |
PostRestService(Injector injector) : super(injector, "posts"); | |
@override |
OlderNewer