This file contains hidden or 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.util.function.Predicate; | |
| public class Empty<T> implements LazyList<T> { | |
| @Override | |
| public T head() { | |
| throw new UnsupportedOperationException("Not supported yet."); | |
| } | |
| @Override |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Geolocation</title> | |
| <meta charset="utf-8"> | |
| <script | |
| src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> | |
| <script> | |
| $(document).ready(function() { | |
| $.get("http://ipinfo.io", function(response) { |
This file contains hidden or 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
| object SumProblem { | |
| // States | |
| type State = Int | |
| val initialState: State = 5 //> initialState : SumProblem.State = 5 | |
| val target: State = 23 //> target : SumProblem.State = 23 | |
| // Moves | |
| class Move(addend: Int) { | |
| def change(state: State): State = state + addend | |
| override def toString = addend.toString |
This file contains hidden or 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
| FROM ubuntu:14.04 | |
| RUN apt-get update | |
| RUN apt-get install software-properties-common -y | |
| RUN add-apt-repository ppa:webupd8team/java -y | |
| RUN apt-get update | |
| RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections | |
| RUN apt-get install oracle-java8-installer -y | |
| RUN apt-get install oracle-java8-set-default |