I hereby claim:
- I am erikfried on github.
- I am scherik (https://keybase.io/scherik) on keybase.
- I have a public key ASA5cBD0kmd-tw_Bxh4rJdq5lQpgcQa7EzoSJlTk5-t1fQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
[ | |
{ | |
"@context": [ | |
"http://www.w3.org/ns/activitystreams", | |
{ | |
"spt": "http://schibsted.com", | |
"spt:sdkType": "JS", | |
"spt:sdkVersion": "0.3.0" | |
} | |
], |
{ | |
"name": "SPPContainer", | |
"version": "0.2", | |
"api": 2, | |
"object": "User", | |
"type": "element", | |
"code": 200, | |
"request": { | |
"reset": 3571, | |
"limit": 0, |
What does sbt have that maven does not?
sbt ~test
test-quick
- An sbt target that only runs tests that either a) failed in the previous run b) have not run before or c) Have recompiled dependencies.How?
brew install sbt
or http://www.scala-sbt.org/release/docs/Getting-Started/Setup.htmlpackage controllers | |
import play.api.mvc._ | |
import play.api.libs.json.{Writes, Json} | |
import test.PersonRepository | |
import scala.xml.Elem | |
object PersonResource extends Controller with ContentNegotiation { |
package no.spp.sdk.client; | |
import com.sun.jersey.api.client.Client; | |
import com.sun.jersey.api.client.ClientHandler; | |
import com.sun.jersey.api.client.UniformInterfaceException; | |
import com.sun.jersey.api.client.WebResource; | |
import com.sun.jersey.api.client.config.DefaultClientConfig; | |
import com.sun.jersey.api.client.filter.LoggingFilter; | |
import com.sun.jersey.api.json.JSONConfiguration; | |
import com.sun.jersey.client.urlconnection.URLConnectionClientHandler; |
YUI().use('charts', function (Y) { | |
//Some config that i want to reuse for more or less all charts in my application | |
var defaultConfig = function () { | |
return { | |
categoryType: "time", | |
axes: { | |
category: { | |
labelFormat: "%e %b" | |
} | |
}, |
import sbt._ | |
import Keys._ | |
import PlayProject._ | |
object ApplicationBuild extends Build { | |
val appName = "my_app" | |
val appVersion = "1.0-SNAPSHOT" | |
val appDependencies = Seq( | |
// Add your project dependencies here, |
public List<Integer> getContinuousLessThan150DaysOfferIds(List<DbLegacyOffer> list){ | |
List<Integer> retList = new ArrayList<Integer>(); | |
for(DbLegacyOffer offer : list) { | |
if(offer.isBecomesContinous() && offer.getLength() < 150) | |
retList.add(offer.getOfferId()); | |
} | |
return retList; | |
} |