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
# Works with devise 1.2 rails 3 (rails 2 not tested) | |
pl: | |
errors: | |
messages: | |
not_found: "nie znaleziono" | |
already_confirmed: "już został aktywowany" | |
not_locked: "nie był zablokowany" | |
not_saved: | |
one: "%{resource} nie został zapisany z powodu jednego błędu:" |
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
import com.orientechnologies.orient.core.sql.OCommandSQL; | |
import com.tinkerpop.blueprints.Direction; | |
import com.tinkerpop.blueprints.Vertex; | |
import com.tinkerpop.blueprints.impls.orient.OrientGraph; | |
import org.junit.Test; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; |
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 sudoku; | |
import solver.Solver; | |
import solver.constraints.IntConstraintFactory; | |
import solver.search.strategy.IntStrategyFactory; | |
import solver.variables.IntVar; | |
import solver.variables.VariableFactory; | |
import util.tools.ArrayUtils; | |
/** |
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 sudoku; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: marioosh | |
* Date: 23.02.2014 | |
* Time: 21:34 | |
*/ | |
public class Grid { |
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
object Sample { | |
def main(args: Array[String]) { | |
println(xX"!dlrow olleh") | |
} | |
implicit class xXHelper(val sc: StringContext) extends AnyVal { | |
def xX(args: Any*): String = | |
sc.raw().reverse |
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
#!/bin/bash | |
CMD="sbt clean cleanFiles test" | |
echo "" | |
echo ">> You do not pass if any from tests will fail" | |
echo "" | |
$CMD | |
RESULT=$? | |
if [$RESULT -ne 0 ]; then |
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
# name: MyAgnoster - agnoster based theme, added behind and ahead commits amount | |
# agnoster's Theme - https://gist.github.com/3712874 | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://gist.github.com/1595572). | |
## Set this options in your config.fish (if you want to :]) | |
# set -g theme_display_user yes |
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
class ChatRoom(roomId: Int, actorSystem: ActorSystem) { | |
private[this] val chatRoomActor = actorSystem.actorOf(Props(classOf[ChatRoomActor], roomId)) | |
def websocketFlow(user: String): Flow[Message, Message, _] = ??? | |
def sendMessage(message: ChatMessage): Unit = chatRoomActor ! message | |
} |
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
val source = Source(1 to 10) | |
val sink = Sink.fold[String, String]("")(_ + _) | |
val flow = Flow[Int] | |
.filter(_ % 2 == 0) | |
.map(_.toString) | |
val result = source.via(flow).runWith(sink) //Future[String] |
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 io.scalac.conductr.example | |
import akka.actor.ActorSystem | |
import akka.http.scaladsl.Http | |
import akka.http.scaladsl.server.Directives._ | |
import akka.stream.ActorMaterializer | |
import akka.stream.scaladsl.{Sink, Source} | |
import scala.concurrent.duration._ | |
import scala.concurrent.{Await, Future} |
OlderNewer