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
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script> | |
var url = new URL(window.location.href) | |
var user = url.searchParams.get("user") | |
var repo = url.searchParams.get("repo") | |
var branch = url.searchParams.get("branch") | |
var token = url.searchParams.get("token") | |
var circleUrl = "https://circleci.com/api/v1.1/project/github/" + user + "/" + repo + "/tree/" + branch + "?circle-token=" + token |
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 your.package | |
import scala.concurrent.duration._ | |
import play.api.{ApplicationLoader, Configuration} | |
import play.api.inject.guice.{GuiceApplicationBuilder, GuiceApplicationLoader} | |
import scala.concurrent.{Await, Future} | |
class MyAppLoader extends GuiceApplicationLoader() { |
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
/** | |
* Utility for preventing duplicate attempts to run background logic due to quickly pressing a button, etc. | |
* Similar to {@link Throttle} but automatically unlocks after callback completion instead of on throttle timeout ellapsing. | |
* | |
* Usage: | |
* | |
* BusyLock.obtain(new Callback() { | |
* public void run() { | |
* doSomethingInTheBackground(); | |
* displayASuccessDialogOrWhatever(); |