- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
import akka.actor.{Actor, Stash} | |
class PausableWorker extends Actor with Stash { | |
def receive = processing | |
def processing: Receive = { | |
case "pause" => context.become(paused) | |
case msg => // Process task | |
} | |
def paused: Receive = { |
[merge] | |
summary = true | |
tool = "p4" | |
[mergetool "p4"] | |
cmd = /Applications/p4merge.app/Contents/Resources/launchp4merge \ | |
"$PWD/$BASE" \ | |
"$PWD/$LOCAL" \ | |
"$PWD/$REMOTE" \ | |
"$PWD/$MERGED" |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
#install.packages("jsonlite") | |
library(jsonlite) | |
#install.packages("httpuv") | |
library(httpuv) | |
#install.packages("httr") | |
library(httr) | |
# Can be github, linkedin etc depending on application | |
oauth_endpoints("github") |
import scala.util.Try | |
/** | |
* Type-safe UUID wrapper that encodes the type it relates to. This class explicitly hides its | |
* UUID value to prevent converting it between types. | |
*/ | |
class UUID[A] private(private val uuid: UUID.Raw) { | |
override def toString = uuid.toString | |
} |