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
Homebrew build logs for mistertea/et/et on macOS 10.14.1 | |
Build date: 2018-11-21 13:13:51 |
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
function unsetproxy() { | |
unset HTTP_PROXY | |
unset HTTPS_PROXY | |
unset http_proxy | |
unset https_proxy | |
perl -n -i -e 'if($_ =~ /^\s*proxy\s*=/) {} else {print $_;}' ~/.curlrc | |
} | |
function setproxy() { |
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.util.*; | |
abstract class State { | |
abstract boolean isGoal(); | |
abstract Object[] successors(); | |
abstract int heuristic(); // heuristic <= min. no. of steps needed to reach the goal; the closer, the better | |
abstract public String toString(); // for proper hashCode and equality check in HashMap | |
} | |
class aStar<S extends State> { |