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 com.digsolab.euler.util.format | |
import org.scalatest.FlatSpec | |
import org.scalatest.matchers.MustMatchers | |
import com.fasterxml.jackson.annotation.JsonInclude | |
import com.fasterxml.jackson.annotation.JsonInclude.Include | |
case class Person(name: String, age: Int) |
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
val timeout = new TimeValue(600000) | |
val requestBuilder = client | |
.prepareSearch(index) | |
.setTypes(indexType) | |
.setSize(size.getOrElse(5000)) | |
.setScroll(timeout) | |
.setSearchType(SearchType.SCAN) | |
query foreach requestBuilder.setQuery |
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
l = ["1", "32", "hello", "3", "my 43"] | |
return [int(_) for _ in filter(lambda _: _.isdigit(), l)] |
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
diff --git a/src/app/panels/table/module.html b/src/app/panels/table/module.html | |
index b1aa49f..515ba06 100644 | |
--- a/src/app/panels/table/module.html | |
+++ b/src/app/panels/table/module.html | |
@@ -52,6 +52,24 @@ | |
padding: 10px; | |
border: 1px solid #666; | |
} | |
+ .table-field-level-error { | |
+ border-radius: 3px; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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 eu.inn.util.akka | |
import concurrent.Future | |
import concurrent.duration._ | |
import scala.reflect.ClassTag | |
import util.control.NonFatal | |
import akka.actor._ | |
import akka.util.Timeout |
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
server { | |
listen 80; | |
server_name localhost; | |
location / { | |
proxy_buffering off; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Scheme $scheme; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
proxy_set_header X-Forwarded-Host $host; |
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
object FlagsRegistry { | |
private val flagsRegistry = new FlagsRegistry(config, dao, executorService) | |
def check(serviceId: Long, flag: FlagEnum) = flagsRegistry.check(serviceId, flag) | |
} | |
class FlagsRegistry(conf, dao, executorService) { |
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 eu.inn.forgame.api.rest | |
import spray.routing.Route | |
import eu.inn.util.akka.ActorSystemComponent | |
import eu.inn.util.http.RestServiceComponent | |
import eu.inn.util.servicebus.ServiceBusComponent | |
import eu.inn.datamodel.forgame.auth.IssueToken | |
import eu.inn.forgame.api.directives.{AuthProviderComponent, AuthUser} |
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
<?php | |
function zip($sourceDir, $targetZipFileName) | |
{ | |
$zip = new ZipArchive(); | |
$zip->open($targetZipFileName, ZipArchive::CREATE); | |
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($sourceDir)); | |
foreach ($iterator as $key => $value) { |
OlderNewer