Skip to content

Instantly share code, notes, and snippets.

Franck Arnulfo farnulfo

Block or report user

Report or block farnulfo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1839632
map1
*
*X*
*X *
S**** X ***E
X
X
View gist:8283897
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.RejectedExecutionException;
import java.util.concurrent.Semaphore;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
@farnulfo
farnulfo / gist:ebe7f1f60997849842e8
Created Mar 24, 2016 — forked from hay/gist:1351230
Enterprisify your Java Class Names!
View gist:ebe7f1f60997849842e8
<!doctype html>
<html>
<head>
<title></title>
<style>
body {
background: white;
text-align: center;
padding: 20px;
font-family: Georgia, serif;
View gist:60698194b16949f56f7811741cff9856
LocalDate now = LocalDate.now();
persons.stream()
.filter(Person::isMale)
.filter(p -> p.isAdult(now)
.map(p -> p.getFirstName() + " " + p.getLastName())
.collect(Collectors.toList());
View gist:d95bb7411ee747d5bd5f2257ca7ccf44
GitHub github = GitHub.connectAnonymously();
GHRepository repository = github.getRepository("sass/node-sass");
PagedIterable<GHRelease> listReleases = repository.listReleases();
for(GHRelease release : listReleases.asList()) {
List<GHAsset> assets = release.getAssets();
for(GHAsset asset : assets.subList(0, 10)) {
System.out.println(asset.getLabel());
System.out.println(asset.getName());
System.out.println(asset.getBrowserDownloadUrl());
}
You can’t perform that action at this time.