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 axoni | |
import scala.annotation.tailrec | |
object ReverseList { | |
val list0 = List(1, 2, 3) | |
@tailrec | |
def revRec(list: List[Int], tsil: List[Int]): List[Int] = | |
list match { |
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
#Refernece: https://wiki.archlinux.org/index.php/Color_Bash_Prompt | |
# Reset | |
Color_Off='\[\e[0m\]' # Text Reset | |
# Regular Colors | |
Black='\[\e[0;30m\]' # Black | |
Red='\[\e[0;31m\]' # Red | |
Green='\[\e[0;32m\]' # Green | |
Yellow='\[\e[0;33m\]' # Yellow |
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 vyze.funding.dwr | |
import simulacrum.typeclass | |
import shapeless._ | |
import shapeless.ops.hlist.ToTraversable | |
import shapeless.ops.record._ | |
@typeclass | |
trait HasColumnNames[T] { |
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
2013-02-18 13:22:26 startup archives unpack | |
2013-02-18 13:22:33 upgrade libpciaccess0 0.12.902-1 0.12.902-1ubuntu0.1 | |
2013-02-18 13:22:33 status half-configured libpciaccess0 0.12.902-1 | |
2013-02-18 13:22:33 status unpacked libpciaccess0 0.12.902-1 | |
2013-02-18 13:22:33 status half-installed libpciaccess0 0.12.902-1 | |
2013-02-18 13:22:33 status half-installed libpciaccess0 0.12.902-1 | |
2013-02-18 13:22:33 status unpacked libpciaccess0 0.12.902-1ubuntu0.1 | |
2013-02-18 13:22:33 status unpacked libpciaccess0 0.12.902-1ubuntu0.1 | |
2013-02-18 13:22:34 upgrade language-selector-gnome 0.79 0.79.1 | |
2013-02-18 13:22:34 status half-configured language-selector-gnome 0.79 |
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
/* | |
* SUMMARY | |
* You have two case classes: One of the case classes, Settlement, may (via Option) contain | |
* the other one, TransactionInfo and TransactionInfo may contain a String. | |
* | |
* PROBLEM | |
* Provide a solution for checking whether or not the TransactionInfo's typeCode contained within | |
* the Settlement is one any one of the follwoing values "271", "272", "1", "0". In the case that either TransactionInfo or | |
* typeCode is None, the result should be false. | |
* |