I hereby claim:
- I am usbharu on github.
- I am usbharu (https://keybase.io/usbharu) on keybase.
- I have a public key whose fingerprint is F6B6 94D4 F954 110B E977 B8D7 6556 747B F94E EBC8
To claim this, I am signing this object:
package dev.usbharu.kjob.exposed | |
import kjob.core.job.JobProgress | |
import kjob.core.job.JobSettings | |
import kjob.core.job.JobStatus | |
import kjob.core.job.ScheduledJob | |
import kjob.core.repository.JobRepository | |
import kotlinx.coroutines.Dispatchers | |
import kotlinx.coroutines.flow.Flow | |
import kotlinx.coroutines.flow.asFlow |
I hereby claim:
To claim this, I am signing this object:
fun while2Test(){ | |
var i = 0 | |
while2({i <= 4}){ | |
doAny { | |
println("any $i") | |
i++ | |
} | |
doFirst { | |
println("first $i") | |
} |
export function nextMonth(date: Date, resetDate: boolean = false): Date { | |
return addOfMonthBy(date, 1, resetDate) | |
} | |
export function lastMonth(date: Date, resetDate: boolean = false): Date { | |
return subtractOfMonthBy(date, 1, resetDate) | |
} | |
export function lastYear(date: Date, resetMonth: boolean = false, resetDate: boolean = false): Date { | |
return subtractOfYearBy(date, 1, resetMonth, resetDate); |
struct Segment { | |
be u16 mark; | |
be u16 length; | |
u8 parm[length - 2]; | |
}; | |
struct jpeg { | |
be u16 SOI; | |
Segment segments[12]; //ここよくわからんかったので適当に変えといて | |
be u16 EOI; |
package io.github.usbharu.test.image.xmp; | |
import java.io.ByteArrayInputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; | |
import java.nio.ByteOrder; | |
import java.nio.charset.StandardCharsets; | |
import java.util.Arrays; |
fun <T : Table, E : Any> T.batchInsert( | |
data: Iterable<E>, | |
ignore: Boolean = false, | |
body: BatchInsertStatement.(E) -> Unit | |
): List<ResultRow> { | |
if (data.count() == 0) return emptyList() | |
val statement = object : SQLServerBatchInsertStatement(this, ignore) { | |
override fun prepareSQL(transaction: Transaction): String { | |
val values = arguments!! |
<?xml version="1.0" encoding="UTF-8" ?> | |
<!DOCTYPE logback> | |
<configuration> | |
<property name="format" value="[%-5level] %date %-15logger{15} - %m%n"/> | |
<appender class="ch.qos.logback.core.ConsoleAppender" name="CONSOLE"> | |
<encoder> | |
<pattern>${format}</pattern> | |
</encoder> | |
</appender> |
using UnityEditor; | |
using UnityEngine; | |
using UnityLogging; | |
public class PreviewRenderUtilityExample : EditorWindow | |
{ | |
private GameObject _gameObject; | |
private GameObject previewObject; | |
[MenuItem("Window/PreviewRenderUtilityExample")] |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
public class Item : MonoBehaviour | |
{ |