An unordered opinionated collection of buzzwords that I consider relevant to today’s professional software development. ;-) Things you might need to know and to do.
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 pytest | |
class Hat: | |
def __init__(self, color: str) -> None: | |
self.hat_color = color | |
def suits(self, style: str): | |
return self.hat_color == style |
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
def generate_guess(candidate: str, count: int): | |
num = "" | |
v = "" | |
modifier = "" | |
if count == 0: | |
num = "no" | |
v = "are" | |
modifier = "s" | |
elif count == 1: | |
num = "1" |
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 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: |
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 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"); |
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
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) |
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
#!/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" |