Skip to content

Instantly share code, notes, and snippets.

View njlr's full-sized avatar
🌏
F# ing

njlr njlr

🌏
F# ing
View GitHub Profile
@Override
public ObservableSource<C> apply(final Observable<A> x) {
Objects.requireNonNull(x, "x is null");
return Observable.create(new ObservableOnSubscribe<C>() {
transient volatile Optional<A> last = Optional.empty();
private void sendPrevious(@NonNull final ObservableEmitter<C> e) {
if (last.isPresent()) {
e.onNext(last.get());
public boolean isComplete() {
return dependencies.entrySet()
.stream()
.allMatch(entry -> {
final RecipeVersion recipeVersion = entry.getValue().getValue1();
return recipeVersion.dependencies.map(dependencyGroup -> dependencyGroup.dependencies.entrySet()
.stream()
.allMatch(x -> dependencies.containsKey(x.getKey()) &&
x.getValue().isSatisfiedBy(dependencies.get(x.getKey()).getValue0())))
.orElse(true);
dist: trusty
language: generic
before_install:
# Install Linuxbrew
- test -d $HOME/.linuxbrew/bin || git clone https://github.com/Linuxbrew/brew.git $HOME/.linuxbrew
- PATH="$HOME/.linuxbrew/bin:$PATH"
- echo 'export PATH="$HOME/.linuxbrew/bin:$PATH"' >>~/.bash_profile
- export MANPATH="$(brew --prefix)/share/man:$MANPATH"
- export INFOPATH="$(brew --prefix)/share/info:$INFOPATH"
before_install:
# Install Linuxbrew
- test -d $HOME/.linuxbrew/bin || git clone https://github.com/Linuxbrew/brew.git $HOME/.linuxbrew
cache:
directories:
- $HOME/.linuxbrew/
dist: trusty
language: generic
before_install:
# Install Linuxbrew
- git clone https://github.com/Linuxbrew/brew.git $HOME/.linuxbrew
- PATH="$HOME/.linuxbrew/bin:$PATH"
- echo 'export PATH="$HOME/.linuxbrew/bin:$PATH"' >>~/.bash_profile
- export MANPATH="$(brew --prefix)/share/man:$MANPATH"
- export INFOPATH="$(brew --prefix)/share/info:$INFOPATH"
script:
- buck build :hello
before_install:
# Install Linuxbrew
- git clone https://github.com/Linuxbrew/brew.git $HOME/.linuxbrew
- PATH="$HOME/.linuxbrew/bin:$PATH"
- echo 'export PATH="$HOME/.linuxbrew/bin:$PATH"' >>~/.bash_profile
- export MANPATH="$(brew --prefix)/share/man:$MANPATH"
- export INFOPATH="$(brew --prefix)/share/info:$INFOPATH"
- brew --version
# Install Buck
- brew tap facebook/fb
dist: trusty
language: generic
script:
- ./build.sh

Buckaroo Contributor Agreement

The Buckaroo Contributor Agreement (this "Agreement") applies to any Contribution you make to any Work.

This is a binding legal agreement on you or you and the organization you represent. If you are signing this Agreement on behalf of your employer or other organization, you represent and warrant that you have the authority to agree to this Agreement on behalf of the organization.

Which party you are signing on behalf of is determined by the pull request to be merged. If the "base" branch of the pull request belongs to an individual, then the agreement is binding on that individual. If the "base" branch of the pull request belongs to an organization, then the agreement is binding on that organization.

1. Definitions