A tab completion script that works for Bash. Relies on the BSD md5
command on Mac and md5sum
on Linux, so as long as you have one of those two commands, this should work.
$ gradle [TAB]
#!/bin/bash | |
#set -x | |
doInstall() { | |
ECLIPSELOCATION=`ls $LOCATION/plugins/org.eclipse.equinox.launcher_*` | |
$JAVA_HOME/bin/java -jar $ECLIPSELOCATION -nosplash -application org.eclipse.equinox.p2.director \ | |
-metadataRepository "$2" \ | |
-artifactRepository "$2" \ | |
-destination $LOCATION \ | |
-installIU "$1" |
repositories { mavenCentral() } | |
configurations { sshAntTask } | |
dependencies { sshAntTask 'org.apache.ant:ant-jsch:1.9.2' } | |
ant.taskdef( | |
name: 'scp', | |
classname: 'org.apache.tools.ant.taskdefs.optional.ssh.Scp', | |
classpath: configurations.sshAntTask.asPath) |
import org.junit.Test; | |
import java.text.MessageFormat; | |
import static org.assertj.core.api.Assertions.assertThat; | |
public class ChoiceFormatTest { | |
@Test | |
public void noApples() { | |
int count = 0; | |
assertThat(getMessage(count)).isEqualTo("I got no apples"); |
class TennisGame1: | |
def __init__(self, player1Name, player2Name): | |
self.player1Name = player1Name | |
self.player2Name = player2Name | |
self.p1points = 0 | |
self.p2points = 0 | |
def won_point(self, playerName): | |
if playerName == self.player1Name: |
def generate_guess(candidate: str, count: int): | |
num = "" | |
v = "" | |
modifier = "" | |
if count == 0: | |
num = "no" | |
v = "are" | |
modifier = "s" | |
elif count == 1: | |
num = "1" |
import pytest | |
class Hat: | |
def __init__(self, color: str) -> None: | |
self.hat_color = color | |
def suits(self, style: str): | |
return self.hat_color == style |