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 akka.actor._ | |
import akka.routing.RoundRobinPool | |
import akka.actor.SupervisorStrategy._ | |
import scala.concurrent.duration._ | |
import scala.util.Random | |
case object Run | |
case object Task | |
class ResumeException extends RuntimeException |
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
var _ = require('lodash'); | |
function iPush(arr, val) { | |
var arr2 = _.clone(arr); | |
arr2.push(val); | |
return arr2; | |
} | |
var arr = []; |
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
'use strict'; | |
var LinkedList = {}; | |
LinkedList.prototype = { | |
head: function() { | |
return this._head; | |
}, | |
tail: function() { | |
return this._tail; |
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
object Caluculator extends App { | |
val walet:List[Money] = Money(100) :: Money(200) :: Money(300) :: Nil | |
val sum:Money = (Money(0) /: walet) (_ + _) | |
println(sum.toString) | |
} |
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
<?php | |
require_once 'FizzBuzz.php'; | |
class FizzBuzzTest extends PHPUnit_Framework_TestCase | |
{ | |
/** | |
* makeFizzBuzz | |
* @dataProvider provideMakeFizzBuzz | |
*/ |
NewerOlder