Here is a list of scopes to use in Sublime Text 2/3 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
package tables | |
import models.Cat | |
import slick.driver.JdbcProfile | |
class CatTable(driver: JdbcProfile) { | |
import driver.api._ | |
class Cats(tag: Tag) extends Table[Cat](tag, "CAT") { | |
def name = column[String]("NAME", O.PrimaryKey) |
// see http://www.michaelpollmeier.com/execute-scala-futures-in-serial-one-after-the-other-non-blocking/ | |
def serialiseFutures[A, B](l: Iterable[A])(fn: A ⇒ Future[B]) | |
(implicit ec: ExecutionContext): Future[List[B]] = | |
l.foldLeft(Future(List.empty[B])) { | |
(previousFuture, next) ⇒ | |
for { | |
previousResults ← previousFuture | |
next ← fn(next) | |
} yield previousResults :+ next | |
} |
Here is a list of scopes to use in Sublime Text 2/3 snippets -
ActionScript: source.actionscript.2
AppleScript: source.applescript
ASP: source.asp
Batch FIle: source.dosbatch
C#: source.cs
C++: source.c++
Clojure: source.clojure
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).