Oh well, not sure how this is gonna play out, but giving it a try.
KC_LOG_CONSOLE_FORMAT: "{\"@timestamp\":\"%d{yyyy-MM-dd'T'HH:mm:ss.SSSZ}\",\"log.level\":\"%p\",\"log.logger\":\"%c{3.}\",\"process.thread.name\":\"%t\",\"message\":\"%s%e\"}%n"
package se.foo.bar; | |
import java.util.Optional; | |
import java.util.function.Function; | |
import java.util.function.Supplier; | |
import java.util.stream.Stream; | |
interface Either<L, R> { | |
<T> T either(Function<L, T> left, Function<R, T> right); |
import java.util.List; | |
import java.util.Objects; | |
import java.util.function.Function; | |
import java.util.function.Predicate; | |
import java.util.stream.Collectors; | |
import java.util.stream.Stream; | |
class Scratch { | |
public static void main(String[] args) { | |
System.out.println(getCertainThings()); |
alias resp='echo -e "\033]50;SetProfile=Default\a"' |
class Movie { | |
enum Type { | |
REGULAR(PriceService::getRegularPrice), | |
NEW_RELEASE(PriceService::getNewReleasePrice), | |
CHILDREN(PriceService::getChildrensPrice); | |
public final BiFunction<PriceService, Integer, Double> priceAlgo; | |
private Type(BiFunction<PriceService, Integer, Double> priceService) { |
apt-get -y update | |
apt-get -y upgrade | |
apt-get -y --force-yes install make unzip g++ libssl-dev git xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps clang libdbus-1-dev libgtk2.0-dev libnotify-dev libgnome-keyring-dev libgconf2-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev libxss1 libnss3-dev gcc-multilib g++-multilib | |
npm -f init | |
npm i -S nightmare | |
xvfb-run nodejs index.js |
import sys | |
import logging | |
from .config import LOG_LEVEL | |
def setup_logging(): |
const I = x => x; | |
const K = x => y => x; | |
const A = f => x => f(x); | |
const T = x => f => f(x); | |
const W = f => x => f(x)(x); | |
const C = f => y => x => f(x)(y); | |
const B = f => g => x => f(g(x)); | |
const S = f => g => x => f(x)(g(x)); | |
const P = f => g => x => y => f(g(x))(g(y)); | |
const Y = f => (g => g(g))(g => f(x => g(g)(x))); |
export const $ = (selector, scope=document) => | |
Array | |
.of(scope.querySelector(selector)) | |
.filter(x => x) | |
export const $$ = (selector, scope=document) => | |
Array.from(scope.querySelectorAll(selector)) |