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
Mile | # bananas to transport | Count of 1KM segments travelled | Bananas Eaten | Banana Left | |
---|---|---|---|---|---|
0 | 300 | 0 | 0 | 300 | |
1 | 300 | 5 | 5 | 295 | |
2 | 295 | 5 | 5 | 290 | |
3 | 290 | 5 | 5 | 285 | |
4 | 285 | 5 | 5 | 280 | |
5 | 280 | 5 | 5 | 275 | |
6 | 275 | 5 | 5 | 270 | |
7 | 270 | 5 | 5 | 265 | |
8 | 265 | 5 | 5 | 260 |
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
Here is what I did to compile https://github.com/fireice-uk/xmr-stak-cpu on MacOS X successfully: | |
install brew | |
```/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"``` | |
install cmake | |
```brew install cmake``` | |
```cmake -DMICROHTTPD_REQUIRED=OFF -DOpenSSL_REQUIRED=OFF .``` | |
Edit ```xmr-stak-cpu/minethd.cpp``` | |
On line 51: change ```cpu_id``` with ```static_cast<integer_t>(cpu_id)``` | |
```make install``` |
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.UnsupportedEncodingException; | |
import java.net.URLEncoder; | |
import java.util.ArrayList; | |
import java.util.List; | |
/** | |
* A class to create URL parameters in a builder-like fashion | |
* | |
* @author Inderjeet Singh | |
*/ |