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
kage com.iterators.registries.types | |
import com.iterators.config.Unicorn.driver.simple._ | |
sealed trait VatRate | |
case object VatRate23 extends VatRate | |
case object VatRate8 extends VatRate | |
case object VatRate5 extends VatRate | |
case object VatRate0 extends VatRate | |
case object VatRateEx extends VatRate //exempt - zwolniony |
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
sealed trait PaymentMethod | |
case object Cash extends PaymentMethod | |
case object BankTransfer extends PaymentMethod | |
object PaymentMethod { | |
val values = Set(Cash, BankTransfer) | |
def apply(s: String): PaymentMethod = { | |
fromString(s) | |
} |
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
package com.foobar.core.routing.directives | |
import com.iterators.config.CakeConfig | |
import shapeless.{HNil, ::} | |
import spray.http.DateTime | |
import spray.routing._ | |
import scala.concurrent.ExecutionContext | |
import scala.reflect.ClassTag | |
import scala.reflect.runtime.{currentMirror => cm} | |
import scala.reflect.runtime.universe._ |
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
pacakge xxx | |
import java.lang.reflect.Modifier | |
import com.iterators.model.db.user.User | |
import com.iterators.services.AuthenticationService | |
import shapeless.{HList, HNil, ::} | |
import spray.http.StatusCodes._ | |
import spray.routing._ |
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
member --> member_connection --> connection <-- member_connection <-- connection |
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
[info] Building debian package with native implementation | |
[error] dpkg-deb: error: control directory has bad permissions 750 (must be >=0755 and <=0775) | |
java.lang.RuntimeException: Failure packaging debian file. Exit code: 2 | |
at scala.sys.package$.error(package.scala:27) | |
at com.typesafe.sbt.packager.debian.NativePackaging$$anonfun$debianNativeSettings$4.apply(NativePackaging.scala:76) | |
at com.typesafe.sbt.packager.debian.NativePackaging$$anonfun$debianNativeSettings$4.apply(NativePackaging.scala:70) | |
at scala.Function9$$anonfun$tupled$1.apply(Function9.scala:35) | |
at scala.Function9$$anonfun$tupled$1.apply(Function9.scala:34) | |
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47) | |
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42) |
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
hashExApp.controller("AlertCtrl", ['$scope', 'notificationService', function($scope, notificationService) { | |
$scope.addSuccessAlert = function (msg) { | |
notificationService.success(msg) | |
}; | |
$scope.addErrorAlert = function (msg) { | |
notificationService.error(msg) | |
}; | |
$scope.standardErrorCallback = function (data, status) { | |
if (data == "") | |
$scope.addErrorAlert(Messages('criticalFailure')); |
NewerOlder