Skip to content

Instantly share code, notes, and snippets.

View anatollupacescu's full-sized avatar

Anatolie Lupacescu anatollupacescu

  • Chisinau, Moldova
View GitHub Profile

DiUS is hosting a tennis tournament. To aid with this, we're developing a scoring system.

The scoring system for tennis works like this.

  • A match has one set and a set has many games

  • A game is won by the first player to have won at least 4 points in total and at least 2 points more than the opponent.

    • The running score of each game is described in a manner peculiar to tennis: scores from zero to three points are described as 0, 15, 30, 40, respectively

Keybase proof

I hereby claim:

  • I am anatollupacescu on github.
  • I am anatollupacescu (https://keybase.io/anatollupacescu) on keybase.
  • I have a public key ASCTrV9_qP2r2B-Lneu1zHtXIxOiiHi5TP6_NPB0khJBSAo

To claim this, I am signing this object:

package main
import (
"fmt"
"io/ioutil"
"log"
"net/http"
"os"
"strings"
)

Your autowire both jobs:

@Autowired
private Job procesaClientesJob;

@Autowired
private Job procesaParcialClientesJob;
//initial
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class RomanNumerals {
@Test
public void test1() {
package com.sandbox;
import javafx.beans.*;
import rx.Observable;
import rx.Scheduler;
import rx.functions.Action2;
import rx.functions.Func0;
import rx.schedulers.Schedulers;
import java.util.*;
@anatollupacescu
anatollupacescu / BJEventSequenceValidatorTests.java
Last active May 31, 2017 15:03
An event sequence validator for Blackjack
package demo;
import com.google.common.base.Function;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import com.google.common.base.Supplier;
import org.hamcrest.CoreMatchers;
import org.junit.Test;
import java.util.Arrays;
package org.test;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.logging.Logger;
/*
package com.serioja;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.fasterxml.jackson.databind.MappingIterator;