I hereby claim:
- I am claudio-scandura on github.
- I am claudioscandura (https://keybase.io/claudioscandura) on keybase.
- I have a public key ASDNieYGl96RXIlXcbd2aiJBysav0RZAuTYTf1h8tqh_fQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
alias git-clean-branches='git branch --merged | grep -v -e master -e "*" | xargs git branch -d' | |
alias docker-cleanup='docker rm -fv $(docker ps -a -q -f status=exited)' | |
alias docker-killall='docker rm -fv $(docker ps -qa)' |
shopt -s dotglob # ls dir/* includes dotfiles | |
export GIT_EDITOR=vim | |
# Shell prompt | |
#if [ -f fancy_git_prompt.sh ]; then | |
#. fancy_git_prompt.sh | |
#fi |
" Use Vim settings, rather then Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
" ================ General Config ==================== | |
set number "Line numbers are good | |
set backspace=indent,eol,start "Allow backspace in insert mode | |
set history=1000 "Store lots of :cmdline history | |
set showcmd "Show incomplete cmds down the bottom |
import akka.actor.{Actor, ActorSystem, Props} | |
import akka.http.scaladsl.Http | |
import akka.http.scaladsl.model.StatusCodes | |
import akka.http.scaladsl.model.sse.ServerSentEvent | |
import akka.http.scaladsl.server.Directives._ | |
import akka.http.scaladsl.server.Route | |
import akka.stream._ | |
import akka.stream.scaladsl.{BroadcastHub, Keep, Source, SourceQueueWithComplete} | |
import scala.concurrent.ExecutionContext.Implicits.global |
class SudokuBoard { | |
val size = 9 | |
private val sudokuRange = 0 until size | |
val board = sudokuRange.map { _ => | |
sudokuRange.map(_ => 'E').toArray | |
}.toArray | |
def stringify = board.map(_.mkString("[", ", ", "]")).mkString("\n") | |
def assign(row: Int, column: Int, value: Char) = |