I hereby claim:
- I am ggtools on github.
- I am clabouisse (https://keybase.io/clabouisse) on keybase.
- I have a public key whose fingerprint is AF03 78CE 6C5A F3C4 6C51 E7CE FB49 83B4 1AD2 5EC7
To claim this, I am signing this object:
#!/usr/bin/perl | |
use strict; | |
use Data::Dumper; | |
my $initialNumber = 0; | |
$initialNumber += $_ for map { ord($_) } split //, shift || die "No word supplied"; | |
my ( $tempVol, $volEnAltitude, $altitudeMax, $descendu ); | |
my $number = $initialNumber; | |
my @sequence; |
private static void addToChange(COIN currentCoin, int value, Map<COIN, Integer> changeMap) { | |
if (value != 0) { | |
changeMap.put(currentCoin, value); | |
} | |
} | |
// Méthode principale on l'appelle avec computeChange(COIN.baz, value) afin en commençant donc par la plus grosse | |
// pièce. | |
public List<Map<COIN, Integer>> computeChange(COIN currentCoin, int value) { | |
if (currentCoin.getValue() == 1) { |
public String solve(HttpServletRequest request) throws ResolverException { | |
String q = request.getParameter("q"); | |
if (q == null) return null; | |
String expr = q.replace(',', '.').replaceAll(" ", "+"); | |
try { | |
GroovyShell shell = new GroovyShell(); | |
Object evalResult = shell.evaluate(expr); | |
Object result; |
for(Entity entity: entityList) { | |
entityList.get(entityList.indexOf(entity)).performOp(); | |
} | |
# Reads a section of the ini file and put the results in variables prefixed by the supplied prefix. | |
readIniSection() { | |
local PREFIX="$1" | |
local SECTION="${2-main}" | |
# Neat way to parse the ini section from CONFIG_FILE | |
# shamelessly taken from http://www.tuxz.net/blog/ | |
eval `sed -e 's/[[:space:]]*\=[[:space:]]*/=/g' \ | |
-e 's/;.*$//' \ | |
-e 's/[[:space:]]*$//' \ |
I hereby claim:
To claim this, I am signing this object:
@Configuration | |
public class TestMongoConfig { | |
private static final MongodStarter starter = MongodStarter.getDefaultInstance(); | |
@SuppressWarnings("SpringJavaAutowiringInspection") | |
@Autowired | |
private MongoProperties properties; | |
@Autowired(required = false) | |
private MongoClientOptions options; |
tep 17 : RUN whoami | |
---> Running in 3240a56670c9 | |
restx | |
---> f80416f3ec29 | |
Error removing intermediate container 7ec7bc8a9760: The given container is <nil> | |
Removing intermediate container 3240a56670c9 | |
Step 18 : RUN ls -al ${HOME} | |
---> Running in efd468ae1f51 | |
total 12 | |
drwxr-xr-x 1 restx restx 76 Jun 18 06:56 . |
public class VideoHttpMessageConverter extends AbstractHttpMessageConverter { | |
public VideoHttpMessageConverter() { | |
super(new MediaType("video", "mp4")); | |
} | |
@Override | |
protected boolean supports(Class clazz) { | |
return InputStream.class.isAssignableFrom(clazz) || File.class.isAssignableFrom(clazz); | |
} |
public class GetVideoRoute extends StdEntityRoute<Void, InputStream> { | |
private final VideoResource videoResource; | |
public GetVideoRoute(EntityRequestBodyReaderRegistry readerRegistry, VideoResource videoResource) { | |
super("Get Video Route", | |
readerRegistry.<Void>build(Void.class, Optional.<String>absent()), | |
new AbstractEntityResponseWriter<InputStream>(OutputStream.class, "video/mp4") { | |
@Override | |
protected void write(InputStream value, RestxRequest req, RestxResponse resp, RestxContext ctx) throws IOException { | |
try { |