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 images(images: ImagePosition[]) { | |
let loadObservables: Observable<ImagePosition>[] = []; | |
images.forEach(image => { | |
// Создаем нативнй элемент для оригинальных размеров картинки. | |
image.nativeImage = new Image(); |
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 puzz; | |
import java.util.*; | |
import static java.util.stream.Collectors.*; | |
public class Puzz1 { | |
public static void main(String[] args) { | |
final Puzz1 puzz = new Puzz1(); | |
puzz.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
import java.util.Arrays; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
//java version "1.8.0_151" | |
//fix https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8142476 | |
public class LambdaGenHell { | |
interface IdEntity { |
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.Collection; | |
import java.util.Collections; | |
public class GenHell { | |
class Model {} | |
class BillingReserve<T extends Model> { | |
BillingReserve(Collection<Long> ids) { |
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.io.*; | |
import java.util.Arrays; | |
/** | |
* Created by lWeRl on 27.11.2017. | |
*/ | |
public class IntToByteArray { | |
public static void main(String[] args) throws IOException { | |
ByteArrayInputStream bais = new ByteArrayInputStream(parseInt(12345)); |