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
0 120 | |
1 121 | |
2 136 | |
3 123 | |
4 121 | |
5 100 | |
6 139 | |
7 126 | |
8 140 | |
9 116 |
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
set_counts {'ALTERAC_VALLEY': 95, 'BATTLE_OF_THE_BANDS': 109, 'BLACK_TEMPLE': 89, 'BOOMSDAY': 91, 'BRM': 19, 'CORE': 71, 'DALARAN': 94, 'DARKMOON_FAIRE': 108, 'DEMON_HUNTER_INITIATE': 9, 'DRAGONS': 87, 'EVENT': 1, 'EXPERT1': 118, 'GANGS': 76, 'GILNEAS': 104, 'GVG': 87, 'ICECROWN': 91, 'KARA': 29, 'LEGACY': 85, 'LOE': 30, 'LOOTAPALOOZA': 84, 'NAXX': 24, 'OG': 80, 'PATH_OF_ARTHAS': 9, 'PLACEHOLDER_202204': 6, 'RETURN_OF_THE_LICH_KING': 122, 'REVENDRETH': 100, 'SCHOLOMANCE': 86, 'STORMWIND': 103, 'TGT': 84, 'THE_BARRENS': 115, 'THE_SUNKEN_CITY': 115, 'TITANS': 109, 'TROLL': 93, 'ULDUM': 94, 'UNGORO': 92, 'WHIZBANGS_WORKSHOP': 90, 'WILD_WEST': 113, 'WONDERS': 105, 'YEAR_OF_THE_DRAGON': 24} | |
set {'ALTERAC_VALLEY': 326, 'BATTLE_OF_THE_BANDS': 349, 'BLACK_TEMPLE': 299, 'BOOMSDAY': 300, 'BRM': 72, 'CORE': 249, 'DALARAN': 306, 'DARKMOON_FAIRE': 364, 'DEMON_HUNTER_INITIATE': 24, 'DRAGONS': 306, 'EVENT': 1, 'EXPERT1': 391, 'GANGS': 243, 'GILNEAS': 385, 'GVG': 285, 'ICECROWN': 316, 'KARA': 112, 'LEGACY': 287, 'LOE': 94, ' |
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 ru.ifmo.kachalsky.e | |
object Test { | |
def main(args: Array[String]): Unit = { | |
println("test") | |
} | |
} |
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 ee.cone.core.c4security.depviews | |
import com.typesafe.scalalogging.{LazyLogging, Logger} | |
import ee.cone.c4actor.BranchProtocol.BranchResult | |
import ee.cone.c4actor.QProtocol.{Firstborn, TxRef} | |
import ee.cone.c4actor.Types.SrcId | |
import ee.cone.c4actor._ | |
import ee.cone.c4actor.dep.DepTypes.DepRequest | |
import ee.cone.c4actor.dep._ | |
import ee.cone.c4actor.dep.reponse.filter.DepCommonResponseForwardApp |
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
@assemble class ByPKAssemble extends Assemble { | |
def byPKRequestWithSrcToItemSrcId( | |
key: SrcId, | |
rq: Each[DepInnerRequest] | |
): Values[(ByPkItemSrcId, InnerByPKRequest)] = | |
if(!rq.request.isInstanceOf[ByPKRequest]) Nil else { | |
val brq = rq.request.asInstanceOf[ByPKRequest] | |
List(brq.itemSrcId → InnerByPKRequest(rq, brq.className)) | |
} | |
} |
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
### fix sbt notes: | |
bloop | |
Among these efforts we find organizations like Stripe or Wix working on better Scala support for Bazel or | |
Twitter getting excellent Scala support in Pants, and individuals like Jan Christopher Vogt or Li Haoyi working on cbt and mill respectively. | |
vovapolu/sbt-big-project -- faster sbt by extra caching | |
lihaoyi/mill -- sbt alternative |
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
def resetAction: State ⇒ State = { | |
if (errorMap.nonEmpty) PrintColored("r")(s"Warning: This list $listUniqueName contains columns with same srcIds: $errorMap") | |
val columns: List[Access[ReactColumnSetting]] = getColumns.map(col ⇒ columnSettingsMap(col.columnSrcId + listUniqueName)) | |
val resetColumnsAction: List[State ⇒ State] = | |
for { | |
col ← columns | |
} yield { | |
val init = col.initialValue | |
col.updatingLens.get.set(init.copy( | |
displayOrder = None, |
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
// Paw: List[Access[P]], where P is Orig, used in filters | |
def resetFilters(defaultModelRegistry: DefaultModelRegistry, accesses: List[Access[_ <: Product]]): Context ⇒ Context = { | |
val lambdas = | |
for { | |
access ← accesses | |
} yield { | |
val initValue = access.initialValue | |
val srcId = ToPrimaryKey(initValue) | |
val accessCl = initValue.getClass.getName | |
val default = defaultModelRegistry.get(accessCl).create(srcId) |
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.company; | |
import java.util.function.Function; | |
/** | |
* Created by ilya2 on 02.03.2017. | |
*/ | |
public class Meh { | |
public static void main(String[] args) { | |
new Meh().run(); |
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
import java.util.ArrayList; | |
public class Main { | |
public static void main(String[] args) { | |
System.out.println(distance(0, 0, 3, 0, 1, 3.5, 2, 3.5, 10, 0.5)); | |
} | |
public static double distance(double ax0, double ay0, double bx0, double by0, double r0, double ax1, double ay1, double bx1, double by1, double r1) { | |
if (intersects(ax0, ay0, bx0, by0, ax1, ay1, bx1, by1)) { |
NewerOlder