Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
package controllers | |
import org.squeryl.PrimitiveTypeMode._ | |
import org.squeryl.{Session} | |
import play.api._ | |
import play.api.mvc._ | |
import models._ |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
scala> case class Auth(u: String) | |
defined class Auth | |
scala> val auth = headerOption("Auth").withDefault("anon").as[Auth].mapOutput { a => | |
| if (a.u == "foo") Ok(a) else Unauthorized(new Exception("wrong credentials")) | |
| } | |
scala> val e = get("foo" :: auth).map(_.u) | |
e: io.finch.Endpoint[String] = GET /foo/header(Auth) |
import util._ | |
import dom.ext._ | |
import scala.scalajs.concurrent.JSExecutionContext.Implicits.runNow | |
object ScalaJSExample extends js.JSApp{ | |
def main(): Unit = { | |
val url = | |
"http://jsonplaceholder.typicode.com/posts/1" | |
val f=Ajax.get(url) | |
f.onComplete{ |
I hereby claim:
To claim this, I am signing this object:
Some recommended books for improving as a software developer
Most software books are too language specific and go out of date too quickly. What I find has stayed with me are books about bigger concepts, such as systems thinking and complexity, and also so-called "soft skills" such as management and psychology.
These are all really about developing empathy for other people :)
This gist describes the configuration required for Spring reactive WebClient to make a call to an OAuth2 protected resource through OAuth2.0 Client Credentials Grant Type Flow.
Assumption is that the Authorization Server supports OpenId Connect 1.0 specifications.