This file contains hidden or 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
| #1D2021,#3c3836,#282828,#B8BB26,#32302F,#FBF1C7,#8EC07C,#fb4934,#1D2021,#928374 |
This file contains hidden or 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 random | |
| import sorting | |
| # Color Code -- 2019-10-12 | |
| # Create 20 random number from -10 to +10 | |
| my_randoms = random.sample(xrange(-10, 11), 20) | |
| print("20 random numbers:") | |
| print(my_randoms) |
This file contains hidden or 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
| private case class BankTransaction(transactionType: String, settlementContact: String, settlementAccount: String, date: DateTime, reference: String, lineItems: List[LineItem]) { | |
| private lazy val lineItemsByAccount = lineItems.groupBy(_.accountCode) | |
| private val descriptionByAccount = Map( | |
| "123" -> "123 Fee Amounts", | |
| "456" -> "456 Trade Payable", | |
| "789" -> "789 Fee Tax Amounts", | |
| "012" -> "012 Mark-off Unknown Debits" | |
| ) |
This file contains hidden or 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
| /** | |
| * This class is based in large part on play.api.libs.oauth.OAuth. Unfortunately that class does | |
| * not support sub-classing in any meaningful way. | |
| */ | |
| case class RsaOAuth(info: ServiceInfo, privateKey: Option[PrivateKey] = None, | |
| maybeKeyStore: Option[KeyStore] = None, maybeKeyStorePassword: Option[String] = None, | |
| use10a: Boolean = true) { | |
| protected lazy val oAuthProvider = { |