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
[*] | |
charset = utf-8 | |
end_of_line = lf | |
tab_width = 4 | |
indent_size = 4 | |
indent_style = space | |
insert_final_newline = false | |
max_line_length = 80 | |
ij_visual_guides = 80 | |
ij_wrap_on_typing = true |
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
FROM alpine:latest | |
MAINTAINER Jony Santos | |
RUN apk update && apk add docker make py-pip && pip install docker-compose && pip install aws-cli |
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 so | |
import org.neo4j.ogm.annotation.GeneratedValue | |
import org.neo4j.ogm.annotation.Id | |
import org.neo4j.ogm.annotation.NodeEntity | |
import org.neo4j.ogm.annotation.Relationship | |
import org.neo4j.ogm.config.Configuration | |
import org.neo4j.ogm.session.SessionFactory | |
@NodeEntity |
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
// Types: | |
type Just<T> = { Just: T } | |
type Nothing = {} | |
type Maybe<T> = Just<T> | Nothing | |
type Left<L> = { Left: L } | |
type Right<R> = { Right: R } | |
type Either<L, R> = Left<L> | Right<R> | |
// For convenience: |
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
final class Aborted extends Failure { | |
public Result<T> ✅(Consumer<T> f) { | |
return this; | |
} | |
public Result<T> ❌(Consumer<ExceptionStack> f) { | |
return this; | |
} | |
} |
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
build.gradle | |
apply plugin: "checkstyle" | |
checkstyle { | |
configFile = project(':').file("config/checkstyle/checkstyle.xml") | |
configProperties = ["suppressionFile" : project(':').file("config/checkstyle/suppressions.xml")] | |
toolVersion = "6.0" | |
} |
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.example.demo.app | |
import javafx.collections.ObservableList | |
import javafx.event.EventHandler | |
import javafx.scene.control.ComboBox | |
import javafx.scene.input.KeyCode | |
import javafx.scene.input.KeyEvent | |
fun <T> ComboBox<T>.makeAutocompletable() = AutoCompleteComboBoxExtension<T>(this) |
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
<?php | |
declare(strict_types=1); | |
interface UserRepositoryInterface | |
{ | |
public function find(string $id) : User; | |
public function findAll() : UserCollection; | |
} |
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 javafx.application.*; | |
import javafx.geometry.Pos; | |
import javafx.scene.*; | |
import javafx.scene.control.Label; | |
import javafx.scene.layout.*; | |
import javafx.scene.paint.Color; | |
import javafx.stage.*; | |
import javax.imageio.ImageIO; | |
import java.io.IOException; |
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 me.ramseyboy.function | |
import java.util.* | |
/** | |
* A container object which may or may not contain a non-null value. If a value is defined, `isdefined()` will return `true` and `get()` will return the value. | |
* | |
* Additional methods that depend on the presence or absence of a contained value are provided, | |
* such as [orElse()][.orElse] (return a default value if value not defined) |
NewerOlder