Skip to content

Instantly share code, notes, and snippets.

Abdhesh Kumar abdheshkumar

Block or report user

Report or block abdheshkumar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Mail.scala
package object mail {
implicit def stringToSeq(single: String): Seq[String] = Seq(single)
implicit def liftToOption[T](t: T): Option[T] = Some(t)
sealed abstract class MailType
case object Plain extends MailType
case object Rich extends MailType
case object MultiPart extends MailType
View EmailService.scala
* Copyright (C) 2012 47 Degrees, LLC
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
View build.sbt
scalaVersion := "2.9.1"
resolvers += "typesafe" at ""
libraryDependencies ++= Seq(
"play" %% "anorm" % "2.0-RC4",
"com.github.seratch" %% "scalikejdbc" % "[0.5,)",
"org.hsqldb" % "hsqldb" % "[2,)"
View GridFSHelper.scala
package code.lib
import net.liftweb._
import http._
import util._
import Helpers._
import common._
import mongodb._
import com.mongodb._
abdheshkumar / AnalyticsLeader.scala
Last active Aug 29, 2015 — forked from ryantanner/AnalyticsLeader.scala
Conspire's implementation of work pulling
View AnalyticsLeader.scala
class AnalyticsLeader(supervisor: ActorRef) extends Leader[ProcessUser, AnalyticsNode, AnalyticsMessage](supervisor)
View gist:6072aecef94ac3d7fa9033935391c6c7
import scala.collection.mutable
import scala.concurrent.{Await, Future}
import scala.concurrent.duration.Duration
case class User(id: Long, name: String)
@free trait UserRepository[F[_]] {
def get(id: Long): FreeS[F, Option[User]]
View combine-interpreters.scala
import freestyle._
import freestyle.implicits._
import freestyle.implicits.interpretAp
import cats.implicits._
case class ValidationResult(isValid:Boolean, events:List[Event])
trait Command
case class UnknownCommand(cmd:Any) extends Command
sealed trait Event {val name:String}
View TraverseFreestyle.scala
import cats.Id
import cats.implicits._
import freestyle._
import freestyle.implicits._
import scala.concurrent.Future
* Created by abdhesh on 05/05/17.
abdheshkumar /
Created Jul 9, 2017 — forked from pathikrit/
My highly opinionated list of things needed to build an app in Scala
View text.log
Core-UUID: d01fd5af-47d1-4cc0-9135-72be72656b21
FreeSWITCH-Hostname: abdhesh-System-Product-Name
FreeSWITCH-Switchname: abdhesh-System-Product-Name
FreeSWITCH-IPv6: %3A%3A1
You can’t perform that action at this time.