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
clear ; close all; clc | |
% helpers used later --- | |
function [result] = measureError(X, y, theta) | |
result = linearRegCostFunction(X, y, theta, 0); | |
endfunction | |
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
classpath.add(("org.scalaz" , "scalaz-core_2.11" ,"7.2.2")) |
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
module IO where | |
import System.IO | |
import Control.Exception | |
import Control.DeepSeq | |
import Control.Monad.Trans.Either | |
import Control.Monad.Trans.Class | |
import Data.Either.Combinators | |
import System.Environment |
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
curl -i https://api.github.com/repos/EugenyLoy/awesome-github > `date -u '+%F'_%H_%M`.txt |
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
package object utils { | |
/** | |
* Helper that allows to call private methods on Scala/Java objects. | |
* | |
* Usage: `someObject.exposeMethod('methodName)(arg1, arg2, arg3)` | |
* | |
* See: https://gist.github.com/EugenyLoy/5873642543f869c7e25f | |
*/ | |
implicit class ExposePrivateMethods(obj: AnyRef) { |
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
@Rule | |
public TestRule loggingRule = new TestWatcher() { | |
protected void starting(Description description) { | |
Logger logger = LoggerFactory.getLogger(description.getClassName()); | |
logger.info("Starting: {}", description.getMethodName()); | |
} | |
}; |
NewerOlder