I hereby claim:
- I am chriswk on github.
- I am chriswk (https://keybase.io/chriswk) on keybase.
- I have a public key whose fingerprint is 02E1 29C5 84D4 DDA6 ED60 E6D3 AD03 3F91 56F5 BA89
To claim this, I am signing this object:
import java.util.Optional; | |
import java.util.Set; | |
import no.finntech.search.front.Group; | |
import no.finntech.search.front.Location; | |
import com.netflix.hystrix.HystrixCommand; | |
import com.netflix.hystrix.HystrixCommandGroupKey; | |
import com.netflix.hystrix.HystrixCommandKey; | |
import org.apache.logging.log4j.LogManager; |
object Solution { | |
def main(args: Array[String]) { | |
val testCases = readInt | |
for(i <- 1 to testCases) { | |
val string = readLine | |
println(string.grouped(2) | |
.map(l => List(l(1), l(0))) | |
.flatten | |
.mkString("")) |
def primeFactors(num: Long): List[Long] = { | |
val exists = (2L to math.sqrt(num).toLong).find(num % _ == 0) | |
exists match { | |
case Some(d) => d :: primeFactors(num / d) | |
case None => List(num) | |
} | |
} | |
"123456789".permutations.map(_.toLong).map(primeFactors(_).max).min |
{ | |
"links": { | |
"build": "https://bamboo.finn.no/browse/SEARCHFRONT-SEARCHFRONTSERVER", | |
"repository": "https://git.finn.no/projects/MODS/repos/search-front/browse", | |
"pipeline": "http://pipeline.finn.no/search-front", | |
"logs-prod": "http://kibana.finntech.no/kibana3/#/dashboard/elasticsearch/linked_from_pipeline?query=finn_env:prod%20AND%20finn_app:search-front-server", | |
"logs-uat": "http://kibana.finntech.no/kibana3/#/dashboard/elasticsearch/linked_from_pipeline?query=finn_env:uat%20AND%20finn_app:search-front-server", | |
"logs-ci": "http://kibana.finntech.no/kibana3/#/dashboard/elasticsearch/linked_from_pipeline?query=finn_env:ci%20AND%20finn_app:search-front-server", | |
"logs-st": "http://kibana.finntech.no/kibana3/#/dashboard/elasticsearch/linked_from_pipeline?query=finn_env:st%20AND%20finn_app:search-front-server", | |
"logs-dev": "http://kibana.finntech.no/kibana3/#/dashboard/elasticsearch/linked_from_pipeline?query=finn_env:dev%20AND%20finn_app:search-front-server" |
at java.util.concurrent.locks.ReentrantReadWriteLock$Sync.tryRelease(ReentrantReadWriteLock.java:371) | |
at java.util.concurrent.locks.AbstractQueuedSynchronizer.release(AbstractQueuedSynchronizer.java:1261) | |
at java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock.unlock(ReentrantReadWriteLock.java:1131) | |
at no.finntech.greenpages.thrift.client.ClientPoolImpl.getState(ClientPoolImpl.java:231) |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
#set -x | |
# Shows you the largest objects in your repo's pack file. | |
# Written for osx. | |
# | |
# @see http://stubbisms.wordpress.com/2009/07/10/git-script-to-show-largest-pack-objects-and-trim-your-waist-line/ | |
# @author Antony Stubbs | |
# set the internal field spereator to line break, so that we can iterate easily over the verify-pack output |
*~ | |
.DS_Store | |
atlassian-ide-plugin.xml | |
.idea | |
*.iml | |
*.ipr | |
*.iws | |
target | |
dist | |
classes |
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7') | |
import groovyx.net.http.HTTPBuilder | |
def username = args[0] != null ? args[0] : "" | |
def password = args[1] != null ? args[1] : "" | |
dirs = ["LIBS", "MODS", "TOOL", "ORCH", "APPS"] | |
def urls = dirs.collect { dir -> | |
return "https://$username:$password@git.finn.no/rest/api/1.0/projects/$dir/repos" | |
} |
List<NavigatorConfig> .... = | |
new BasicNavigatorConfig("periode", StandardNavigatorTypes.PERIODE).withResets(NAVIGATOR_RESETS), | |
List<FilterSectionConfig ... = | |
new FilterSectionConfig("periode", "Publisert"); |