Skip to content

Instantly share code, notes, and snippets.

{
"metrics": {
"_api_": {
"contains": "default",
"type": "trend",
"values": {
"avg": 7285.083430444443,
"max": 30509.853271,
"med": 2893.38576,
"min": 441.028093,
{
"metrics": {
"_api_": {
"contains": "default",
"type": "trend",
"values": {
"avg": 5129.525614785714,
"max": 30766.976774,
"med": 1715.3880485,
"min": 176.523549,
import { afterEach, beforeEach, expect, it, describe } from 'vitest'
/**
*
* /**
* * INFO[0010] trend for /api/camps/{id}/ not found source=console
* * INFO[0011] trend for /api/camp_collaborations?camp=%2Fapi%2Fcamps%2F4d0ddf8d7b16 not found source=console
* * INFO[0011] trend for /api/periods?camp=%2Fapi%2Fcamps%2F4d0ddf8d7b16 not found source=console
* * INFO[0013] trend for /api/activity_progress_labels?camp=%2Fapi%2Fcamps%2F4d0ddf8d7b16 not found source=console
* * INFO[0014] trend for /api/activities?camp=%2Fapi%2Fcamps%2F4d0ddf8d7b16 not found source=console
{
"metrics": {
"_api_": {
"contains": "default",
"type": "trend",
"values": {
"avg": 10936.176720583333,
"max": 34312.614857,
"med": 1141.1032355,
"min": 224.611091,
{
"metrics": {
"_api_": {
"contains": "default",
"type": "trend",
"values": {
"avg": 1200.6771685,
"max": 1743.847028,
"med": 1187.0543324999999,
"min": 452.968325,
@BacLuc
BacLuc / create-table-with-index.sql
Last active August 12, 2022 19:57
Show which dbms support unique index on text columns with variable length
CREATE TABLE test (
test text UNIQUE,
combined_key_part1 text,
combined_key_part2 text,
CONSTRAINT combined_key_unique UNIQUE (combined_key_part1, combined_key_part2)
);
@BacLuc
BacLuc / ECheckbox.vue
Created November 1, 2020 15:57
Vuetify create custom VCheckbox wrapper
<template>
<ValidationProvider
v-slot="{ errors: veeErrors }"
:name="name"
:vid="veeId"
:rules="veeRules">
<v-checkbox
v-bind="$attrs"
:hide-details="hideDetails"
:error-messages="veeErrors.concat(errorMessages)"
package com.vanniktech.rxriddles.operators.withscheduler;
import java.time.Duration;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;
import io.reactivex.rxjava3.core.Completable;
import io.reactivex.rxjava3.core.Flowable;
import io.reactivex.rxjava3.core.Observable;
@Test
public void cancel_task() throws InterruptedException {
LocalDateTime start = LocalDateTime.now();
Action action = () -> {
try {
Thread.sleep(1000);
} catch (InterruptedException ignored) {
}
};
@BacLuc
BacLuc / StateMachine
Created April 6, 2019 19:12 — forked from elandau/StateMachine
Rx based state machine
package com.netflix.experiments.rx;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import rx.Observable;
import rx.Observable.OnSubscribe;