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 akka.actor.ActorSystem | |
import akka.stream.scaladsl.{ Flow, Framing, Source, Tcp } | |
import akka.util.ByteString | |
import scala.concurrent.{ ExecutionContext, Future } | |
object Test { | |
def logic(s: String)(implicit ec: ExecutionContext): Future[String] = { | |
Future { |
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 Expression { | |
type Out | |
} | |
object Expression { | |
type Aux[T] = Expression { type Out = T} | |
} | |
case class Const[T](t: T) extends Expression { | |
override type Out = T |
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
lazy val root = project.in(file(".")) | |
.aggregate(core, moduleA, moduleB) | |
.settings( | |
crossScalaVersions := Nil | |
) | |
lazy val core = project.in(file("core")) | |
.settings( | |
crossScalaVersions := Seq("2.11.12", "2.12.8") | |
) |
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
# Copyright 1999-2018 Gentoo Foundation | |
# Distributed under the terms of the GNU General Public License v2 | |
EAPI=6 | |
PLOCALES="ru uk" | |
inherit qmake-utils l10n | |
if [[ ${PV} == *9999 ]]; then | |
EGIT_REPO_URI=("https://github.com/limansky/${PN}.git") | |
inherit git-r3 |
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 me.limansky | |
import cats.Monoid | |
import shapeless.labelled.{FieldType, field} | |
import shapeless.{::, HList, HNil, LabelledGeneric, Lazy, Witness} | |
trait MapReader[T] { | |
def read(m: Map[String, String]): T | |
} |
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 me.limansky | |
import shapeless.ops.hlist.Prepend | |
import shapeless.{::, <:!<, Generic, HList, HNil, LabelledGeneric, Lazy} | |
trait Linear[L] { | |
type Repr <: HList | |
def linear(t: L): Repr | |
} |
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
# Virtual machine name | |
VMNAME="guest" | |
# User, owing virtual machine | |
VMUSER="vboxuser" | |
# Stop mode. One off acpipowerbutton | savestate | |
VMSTOP="savestate" |
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
#!/sbin/runscript | |
# GitLab 5.2 and 5.3 init script for Gentoo Linux | |
# see https://github.com/gitlabhq/gitlabhq/blob/master/doc/installation.md | |
GITLAB_BASE=/mnt/data/gitlab/gitlab | |
GITLAB_USER=gitlab | |
depend() { | |
need net redis | |
} |
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
name := "Testmail" | |
version := "0.0.1" | |
scalaVersion := "2.9.1" | |
// you can also add multiple repositories at the same time | |
resolvers ++= Seq( | |
"Scala Tools Releases" at "https://oss.sonatype.org/content/groups/scala-tools/" | |
) |
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
#include <vector> | |
#include <algorithm> | |
#include <functional> | |
#include <iostream> | |
using namespace std; | |
bool gt(int a, int b) | |
{ | |
return a < b; |
NewerOlder