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 java.io.IOException; | |
import de.flapdoodle.embed.mongo.MongodExecutable; | |
import de.flapdoodle.embed.mongo.MongodProcess; | |
import de.flapdoodle.embed.mongo.MongodStarter; | |
import de.flapdoodle.embed.mongo.config.MongodConfigBuilder; | |
import de.flapdoodle.embed.mongo.config.Net; | |
import de.flapdoodle.embed.mongo.distribution.Version; | |
import de.flapdoodle.embed.process.runtime.Network; |
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
package fr.mga.foobarqix; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.*; | |
public class ConcurrentFooBarQix implements Callable<String> { | |
private int toFooBar; |
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
package fr.mga.concurrent; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.context.support.ClassPathXmlApplicationContext; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.concurrent.*; | |
public class ConcurrentFooBarQix implements Callable<String> { |
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
'use strict'; | |
describe("HelloController", function() { | |
var isTrue; | |
var helloController; | |
var scope; | |
beforeEach(angular.mock.module('helloWorld.app')); | |
beforeEach(angular.mock.inject(function($rootScope, $controller){ |
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
package fr.mga.spike; | |
import java.util.concurrent.*; | |
public class ConcurrentFooBar { | |
public static String fooBar(int anInteger) { | |
String result = ""; | |
if (anInteger % 3 == 0) | |
result += "foo"; |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.define :ubuntu do |ubuntu| | |
ubuntu.vm.box = "ubuntu" | |
ubuntu.vm.network "private_network", ip: "10.11.12.13" |
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
package fr.mga.mashup; | |
import rx.Observable; | |
public class Hello { | |
public String msg(String ... msg) { | |
HelloFunction function = new HelloFunction(); | |
HelloReduce reduce = new HelloReduce(); | |
return Observable.from(msg).map(function).reduce(reduce).toBlocking().first(); | |
} |
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
package fr.mga.mashup.mapreduce; | |
import rx.Observable; | |
import java.util.List; | |
public class MapReduce { | |
private List<Integer> list; |
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
package fr.mga.hello; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | |
import org.springframework.context.annotation.ComponentScan; | |
@ComponentScan | |
@EnableAutoConfiguration | |
public class Application { |
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
package fr.mga.functional; | |
import java.util.HashMap; | |
import java.util.Map; | |
import static java.lang.Character.getNumericValue; | |
import static java.util.stream.Collectors.joining; | |
public class FooBar { |
OlderNewer