I hereby claim:
- I am iseki0 on github.
- I am iseki (https://keybase.io/iseki) on keybase.
- I have a public key ASCIQtCiRe3ZLGmlH9XZeuk0VLt-Ljgqy5stPsPuBSr2Ugo
To claim this, I am signing this object:
drop table if exists queue; | |
create table queue | |
( | |
id bigint not null primary key, | |
status smallint not null default 0, | |
last_run timestamptz null default null | |
); | |
drop index if exists queue_status_0_idx; | |
create index queue_status_0_idx on queue (last_run nulls first) where status = 0; |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.lang.foreign.MemorySegment; | |
import java.lang.foreign.ValueLayout; | |
class MemorySegmentAsInputStream extends InputStream { | |
private final MemorySegment memorySegment; | |
private long pos; | |
MemorySegmentAsInputStream(MemorySegment memorySegment) { |
I hereby claim:
To claim this, I am signing this object:
import java.util.Objects; | |
record ServerTiming(String name, String desc, double dur) { | |
public ServerTiming { | |
Objects.requireNonNull(name); | |
} | |
public ServerTiming(String name, String desc) { | |
this(name, desc, Double.NaN); | |
} |
package org.mybatis.example; | |
import java.util.Arrays; | |
import java.util.List; | |
public class Blog { | |
public int[] getArr() { | |
return arr; | |
} |
Because the site(https://emailregex.com) was down. I create a simple backup from wayback machine.
(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])
plugins { | |
`kotlin-dsl` | |
idea | |
} | |
repositories { | |
mavenCentral() | |
gradlePluginPortal() | |
} |
@file:Suppress("DuplicatedCode", "MemberVisibilityCanBePrivate", "DataClassPrivateConstructor") | |
import kotlinx.serialization.KSerializer | |
import kotlinx.serialization.Serializable | |
import kotlinx.serialization.descriptors.SerialDescriptor | |
import kotlinx.serialization.descriptors.serialDescriptor | |
import kotlinx.serialization.encoding.Decoder | |
import kotlinx.serialization.encoding.Encoder | |
import java.io.File | |
import java.io.InputStream |
import java.io.Writer | |
class LineRecorder( | |
private val lineLength: Int = 120, | |
private val topLines: Int = 20, | |
private val bottomLines: Int = 30 | |
) : Writer() { | |
init { | |
check(lineLength > 0) | |
check(topLines > 0) |