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
#!/bin/sh | |
# hostname.sh - a wrapper over the MacOs hostname command to accept the '-i' | |
# or '--ip-address' flag. | |
# | |
# SYNOPSIS | |
# hostname [-i|--ip-address] [*] | |
# | |
# OPTIONS | |
# -i, --ip-address |
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
class AppController { | |
public static void main(String[] args) { | |
new AppController(new AppModel(), | |
new ToDoView(new PrintWriter(System.out)), | |
new Scanner(System.in)) | |
.start(Arrays.asList(args)); | |
} | |
private final AppModel model; |
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 class Factories { | |
private Factories() { /* Prevent instantiation */ } | |
public static <T> List<T> listOf(T... elements) { | |
return Arrays.asList(elements); | |
} | |
public static <T> List<T> listOf(int howMuch, Supplier<T> supplier) { | |
return listOf(howMuch, (Integer) -> supplier.get()); |
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
# | |
# Junit text report | |
colorscheme:junit | |
cs_re:white,,bold:Tests run: ([0-9]*) | |
cs_re:red,,bold:Failures: ([1-9][0-9]*) | |
cs_re:white,,bold:Failures: 0 | |
cs_re:red,,bold:Errors: ([1-9][0-9]*) | |
cs_re:white,,bold:Errors: 0 | |
cs_re:yellow,,bold:Skipped: ([1-9][0-9]*) | |
cs_re:white,,bold:Skipped: 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
import java.io.File | |
import java.nio.file.Files | |
import java.nio.file.Paths | |
// Fixtures | |
val name = "Me" | |
val x:Any = "" | |
val value = 42 | |
data class Foo(val v:Int) | |
data class Bar(val v:Int) |
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
/* | |
A WebHook pipe who receive a Codeship notification when a build start or | |
change and update the related status on Bitbucket. | |
This script need 3 script properties : | |
+ BITBUCKET_REPO The repository that will be updated | |
+ BITBUCKET_OWNER Username of `BITBUCKET_REPO` owner | |
+ BITBUCKET_PASSWORD /!\ Plain password of the owner. /!\ |
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
org.springframework.boot.autoconfigure.EnableAutoConfiguration=mvc.traits.WithConfigurer |
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 javax.swing.*; | |
import java.awt.*; | |
import java.awt.image.BufferedImage; | |
public abstract class Effects { | |
public static void run(Effects effect, Runnable onComplete) { | |
run(effect, 500, onComplete); | |
} |