content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
--------------------------------------------------------
-- 工作空间绘制
--------------------------------------------------------
---@type ly.game_editor.dep
local dep = require 'dep'
local ed = dep.ed
local ImGui = dep.ImGui
local imgui_utils = dep.common.imgui_utils
local lib = dep.common.lib
---@param editor ly.game_edi... | Lua |
{
return ((locDateTime.year - dateTime.year == 1) &&
dateTime.month == 12 &&
locDateTime.month == 1 &&
dateTime.day == 31 &&
locDateTime.day == 1);
}
}
/// is yesterday by millis.
/// 是否是昨天.
static bool isYesterdayByMs(int ms, int locMs) {
return isYesterd... | Dart |
OffsetY = GfxR->fctMouseCursor.Hgt / 2;
// Previously, there used to be custom-defined hotspots for all cursors. Calc them in.
if (GfxR->fOldStyleCursor)
{
switch (Cursor)
{
case C4MC_Cursor_Select: case C4MC_Cursor_Region:
iOffsetX = iOffsetY = 0;
break;
case C4MC_Cursor_Dig: case C4MC_Cursor... | C++ |
SelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#typedef-members">Typedef... | HTML |
method to another in different source files in the same package
*
* */
package testcases.CWE470_Unsafe_Reflection;
import testcasesupport.*;
import javax.servlet.http.*;
public class CWE470_Unsafe_Reflection__File_67b
{
public void badSink(CWE470_Unsafe_Reflection__File_67a.Container dataContainer ) throws T... | Java |
on(Icons.add));
await tester.pump();
// Verify that our counter has incremented.
expect(find.text('0'), findsNothing);
expect(find.text('1'), findsOneWidget);
});
}
import 'point.dart';
import 'dart:math';
List<List<int>> blankGrid(){
List<List<int>> rows = [];
for(int i=0;i<4;i++){
rows.add... | Dart |
private fun decodeBitmapFromAssets(filename : String) : Bitmap {
val options = BitmapFactory.Options()
options.inSampleSize = 1
return BitmapFactory.decodeStream(assets.open(filename))
}
private fun rotateBitmap(bitmap: Bitmap, rotate: Float): Bitmap {
val matrix = Matrix()
... | Kotlin |
using System.Threading;
using System.Threading.Tasks;
using Inflow.Modules.Wallets.Core.Owners.Entities;
using Inflow.Modules.Wallets.Core.Owners.Repositories;
using Microsoft.Extensions.Logging;
using Inflow.Shared.Abstractions.Events;
using Inflow.Shared.Abstractions.Time;
namespace Inflow.Modules.Wallets.Applicati... | C# |
allowinsecure ?? '0') === '0' && (queryParam.insecure ?? '0') === '0') {
opt.set(dom_prefix + 'tls_allowInsecure', false);
}
if (queryParam.fp && queryParam.fp.trim() != "") {
opt.set(dom_prefix + 'utls', true);
opt.set(dom_prefix + 'fingerprint', queryParam.fp);
}
}
if (queryPa... | HTML |
from pydantic import BaseModel
class BaseBook(BaseModel):
title: str
author: str
class BookIn(BaseBook):
pass
class BookOut(BaseBook):
id: int
class AuthorBase(BaseModel):
name: str
class AuthorIn(AuthorBase):
pass
class AuthorOut(AuthorBase):
id: int
| Python |
tree is time consuming
/// and runs in `O(n * log(n))`. Thus, r-trees are suited best if many queries and only few
/// insertions are made. Also, rstar supports [bulk loading](struct.RTree.html#method.bulk_load),
/// which cuts down the constant factors when creating an r-tree significantly compared to
/// sequential i... | Rust |
"えくせる",
"えしゃく",
"えすて",
"えつらん",
"えのぐ",
"えほうまき",
"えほん",
"えまき",
"えもじ",
"えもの",
"えらい",
"えらぶ",
"えりあ",
"えんえん",
"えんかい",
"えんぎ",
"えんげき",
"えんしゅう",
"えんぜつ",
"えんそく",
"えんちょう",
"えんとつ",
"おいかける",
"おいこす",
"おいしい",
"おいつく",
"おうえん",
"お... | Dart |
= ITEMS.registerK("rbmk_pellet_hep239") { RBMKPelletItem(Properties().tab(CreativeTabs.Items), LangKeys.RBMK_NAME_PELLET_HEP239) }
val rbmkPelletHep241 = ITEMS.registerK("rbmk_pellet_hep241") { RBMKPelletItem(Properties().tab(CreativeTabs.Items), LangKeys.RBMK_NAME_PELLET_HEP241) }
val rbmkPelletLea = ITEMS.re... | Kotlin |
// Decompiled with JetBrains decompiler
// Type: Terraria.Initializers.AchievementInitializer
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
// Assembly location: C:\Program Files (x86)\Steam\steamapps\common\Terraria\Terraria.exe
using Terra... | C# |
h money for a |T135641:0|t[Stiletto] (4s 01c). You'll come back later if you don't have enough yet
.target Oliver Dwor
.itemStat 16,QUALITY,<7
.itemStat 16,ITEM_MOD_DAMAGE_PER_SECOND_SHORT,<3.3
step << Rogue
.goto Tirisfal Glades,60.12,53.45
>>|Tinterface/worldmap/chatbubble_64grey.blp:20|t|cRXP_BUY... | Lua |
if (do_switch) {
ret = multi_tenancy_add_connection(thd, new_db);
}
return ret;
}
/* Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
a... | C++ |
];
src++;
dst++;
}
if ( l & 1 )
{
dst[0] = tbl[src[0]];
dst[1] = tbl[src[1]];
src += 2;
dst += 2;
}
asm_cel_light_square(l >> 1, tbl, dst, src);
}
static __inline void asm_cel_light_square(unsigned char w, BYTE *tbl, BYTE *&dst, BYTE *&src)
{
for ( ; w; --w )
{
dst[0] = tbl[src[0]];
dst[1] = tb... | C++ |
shadow:0 1px 20px 1px rgba(255,255,255,.6);box-shadow:0 1px 20px 1px rgba(255,255,255,.6)}.btn-outline-white{border-color:#FFF;background-color:transparent;color:#FFF}.btn-outline-white:hover{background-color:#FFF;color:#FFF!important}.alert-black,.alert-black .alert-link,.black{color:#000!important}.btn-outline-white.... | CSS |
Z0IFRp
// SIG // bWUtU3RhbXAgUENBIDIwMTAwHhcNMjUwMTMwMTk0MjU4
// SIG // WhcNMjYwNDIyMTk0MjU4WjCByzELMAkGA1UEBhMCVVMx
// SIG // EzARBgNVBAgTCldhc2hpbmd0b24xEDAOBgNVBAcTB1Jl
// SIG // ZG1vbmQxHjAcBgNVBAoTFU1pY3Jvc29mdCBDb3Jwb3Jh
// SIG // dGlvbjElMCMGA1UECxMcTWljcm9zb2Z0IEFtZXJpY2Eg
// SIG // T3BlcmF0aW9uczEnMCUGA1UECxMe... | JavaScript |
_folder::file_folder: |||
| [Madison'sMetagaming](#MadisonsMetagaming) | Madison扩展 | |:heavy_check_mark: | | :file_folder: |||
| [NinjaClass](#NinjaClass) | 忍者职业 | 汉化 | :x: | :+1: | :file_folder: |||
| [BrawlerClass](#BrawlerClass) | 拳师职业 |QL汉化 | :heavy_check_mark: | :+1: | :file_folder::file_folder: |||
| [WOTR_PATH_... | Markdown |
ass in toxi.color">NamedColor</A>
<DD>
<DT><A HREF="../toxi/color/NamedColor.html#MEDIUMVIOLETRED"><B>MEDIUMVIOLETRED</B></A> -
Static variable in class toxi.color.<A HREF="../toxi/color/NamedColor.html" title="class in toxi.color">NamedColor</A>
<DD>
<DT><A HREF="../toxi/color/NamedColor.html#MIDNIGHTBLUE... | HTML |
changes in relative to the APK root.
*/
class Replacement(
private val pattern: String,
replacementPattern: String,
internal val targetFilePath: String,
) {
private val patternBytes = pattern.toByteArrayPattern()
private val replacementPattern = replacementPattern.toByteArrayPattern()
init {
... | Kotlin |
地圖上的所要位置。<br><br>若要從<b>已定位</b>頁籤中移除項目以避免匯入該項目,請按一下將游標移至該項目上方時所出現的「不要匯入」按鈕。<br><br>提示: 若目前未匯入您擁有之媒體的地理位置資訊,請檢查您的帳號的隱私權設定。 例如,確定您的 Flickr 帳號設定中未隱藏 EXIF 資料。 此外,若關閉用來匯入新上傳之 EXIF 資料的 Flickr 隱私權選項 (預設) 值,則不會在 Flickr 中儲存圖片的地理位置,除非您重新上傳它們,或在 Flickr 中手動指定其位置。",
"leftPanelTab1": "定位",
"leftPanelTab2": "已定位",
"c... | JavaScript |
StructValueRef::ValueRef { val: self }
}
#[allow(clippy::needless_lifetimes)]
#[inline]
fn upcast_gat<'short, 'long: 'short>(long: StructValueRef<'long>) -> StructValueRef<'short> {
long
}
}
impl<'a> ScalarRef<'a> for StructValueRef<'a> {
type ColumnType = StructColumn;
type Scala... | Rust |
R16_INT32K_TUNE += cnt_offset;
}
// ϸ
// ϸ2βֵΪжһΣֻһ
while(!(R8_OSC_CAL_CTRL & RB_OSC_CNT_HALT));
i = R16_OSC_CAL_CNT; // ڶ
R16_OSC_CAL_CNT |= RB_OSC_CAL_OV_CLR;
sys_safe_access_enable();
R8_OSC_CAL_CTRL &= ~RB_OSC_CNT_TOTAL;
R8_OSC_CAL_CTRL |= cali_Lv;
while( R8_OSC_CAL... | C |
case ev := <-g.evq:
switch ev.Type {
case termbox.EventKey:
switch ev.Key {
case 0:
if ev.Ch == 'q' {
break main
}
default:
g.HandleKey(ev.Key)
}
case termbox.EventResize:
g.FitScreen()
}
default:
}
g.Update()
g.Draw()
}
}
/*
arqinator: arq/types/commit.go
... | Go |
_, err = io.Copy(io.Discard, r)
if ferr, ok := err.(*flate.ReadError); ok {
err = ferr.Err
}
if err != io.ErrUnexpectedEOF {
t.Errorf("io.Copy(%s-%d) on truncated stream: got %v, want %v", tc.name, i, err, io.ErrUnexpectedEOF)
}
}
}
}
func TestCVE202230631(t *testing.T) {
var empty = []byte{0x... | Go |
ut.direction) {
ShortcutEvent.PanDirection.Up -> DpOffset(x = 0.dp, y = shortcut.panOffset)
ShortcutEvent.PanDirection.Down -> DpOffset(x = 0.dp, y = -shortcut.panOffset)
ShortcutEvent.PanDirection.Left -> DpOffset(x = shortcut.panOffset, y = 0.dp)
ShortcutEvent.PanDirect... | Kotlin |
the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the Lic... | Go |
,
},
{ type: 'CountsValue', input: '34', expected: 34 },
{
type: 'DateTimeSecond',
input: '2018-07-02 00:55:13',
expected: new Date('2018-07-01T17:55:13-07:00'),
},
] satisfies Array<{ type: keyof typeof types; input: any; expected: any }>;
test.each(deserialization)(
'$type .output($input) => $e... | Typescript |
Skarzhevskyy
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
... | Java |
padding: 50px 20px;
}
}
/* Case Studies */
.case-studies .filter-list li {
color: #000000;
}
.case-studies .filter-list li.active {
color: #C10909;
}
.case-studies .liquid-filter-items {
margin-bottom: 30px;
}
.case-studies .lqd-pf-item {
margin-bottom: 20px;
}
.case-studies>.module-shape-1 {
left: -90px;... | CSS |
to_node->get_index();
to_node=to_node->get_parent();
} else {
to_pos=-1; //insert last in whathever is up
to_node=upper_sibling->get_parent(); //insert at a parent of whathever is up
}
} else {
//just insert over this node because nothing is above at the same level
to_pos=to_node->ge... | C++ |
local sectionDatas = nil
local currDatas = nil
local layout = nil
local intervalTime = 0 --刷新间隔
curIndex1, curIndex2 = 1, 1
local rankTime,rankTimer = 0,0
function Awake()
layout = ComUtil.GetCom(vsv, "UIInfinite")
--layout:AddBarAnim(0.4, false)
layout:Init("UIs/Rank/TotalBattleRankItem", LayoutCallBack, ... | Lua |
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Package info contains logic for the Service Manager info API
p... | Go |
0, %fprs
set sun4u_init, %g2
jmpl %g2 + %g0, %g0
nop
__REF
sun4u_init:
BRANCH_IF_SUN4V(g1, sun4v_init)
/* Set ctx 0 */
mov PRIMARY_CONTEXT, %g7
stxa %g0, [%g7] ASI_DMMU
membar #Sync
mov SECONDARY_CONTEXT, %g7
stxa %g0, [%g7] ASI_DMMU
membar #Sync
ba,a,pt %xcc, sun4u_continue
sun4v_init:
/*... | Assembly |
ation.value, axis.max_value);
if v == axis.default_value {
v = 0.0;
} else if v < axis.default_value {
v = (v - axis.default_value) / (axis.default_value - axis.min_value);
} else {
v = (v - axis.default_value) ... | Rust |
lass="math inline">\(\displaystyle \left\lbrace \begin{array}{c} y=a+b\cdot x\\ y=c+d\cdot x \end{array}\right.\)</span></li>
</ul>
<p>We can re-write these as:</p>
<ul>
<li><span class="math inline">\(\displaystyle \left\lbrack \begin{array}{cc} 1 & -b\\ 1 & -d \end{array}\right\rbrack \cdot \left\lbrack \begi... | HTML |
nd(
{2, 2}, torch::TensorOptions(torch::kFloat).device(DefaultDevice())) *
100.0;
torch::Tensor b = torch::_cast_Long(a);
ForEachDevice([&](const torch::Device& device) {
torch::Tensor lazy_a = CopyToDevice(a, device);
torch::Tensor lazy_b = torch::_cast_Long(lazy_a);
AllEqual(b, lazy_b)... | C++ |
ice>().languageServerStarted()) {
if (showingNotification.get()) {
return
}
delay(1000)
}
val codeiumStatusService = service<CodeiumStatusService>()
codeiumStatusService.updateState(LanguageServer.CodeiumState.CODEIUM_STATE_WARNING)
// User is not logged in. Show a notificati... | Kotlin |
r);
}
void writeFrame(const AtomicGroup& structure)
{
if (_first_frame) {
AtomicGroup output_model = structure.copy();
if (_renum)
output_model.renumber();
PDB pdb = PDB::fromAtomicGroup(output_model);
pdb.remarks().add(_hdr);
... | C++ |
}
val minSpeed = app.settings.minLocationSpeed
if (minSpeed > 0 && (!location.hasSpeed() || location.speed < minSpeed)) {
record = false
}
if (record) {
lastLocationUpdateTime = System.currentTimeMillis()
lastLocation = location
if (app.settings.getChatsShareInfo().isNotEmpty()) {
a... | Kotlin |
templates/otSDKStub.js" data-domain-script="1ba17c45-2e34-475e-b7ac-e17af4c4c36d" data-document-language="true" defer="" data-nscript="beforeInteractive"></script>
<script src="/_next/static/chunks/webpack-c4e0ff7403c2be5c.js" defer=""></script>
<script src="/_next/static/chunks/framework-73b8966a3c579ab0.js" d... | HTML |
. dWZkOmxsfhlF F147Z GFHVVM mdGRlfW k3ex dAG18rc XtURlQ8cj9 ge21i. . f0Z FGV t6YWFCDFY 6dGJiJmxmfk JGF1gjYG. . VDV 1ZjcDNhfW 1ifhtEEV5+Y j5C ElZrcDNhfW. . wnfhdEQ F5+Y2FC AFdlcTN hfWw 9f05E. . EV5+Z WVHAFMgdWJ kOmlkfRl EH18pZTRB DlcicDFgf2. . lse0JBC1p2 YDh CDlM mdGRlfWghe. . kBATF8t ZTZHAlI2YX5 2bm87fBtFS lt4YWdC AFZ... | HTML |
await this.getPlaylistData(url, nextPageToken);
nextPageToken = newPage.nextPageToken;
playlistData.items.push(...newPage.items);
}
// Faz um for na lista de musicas para pegar o nome e url do video
for (let item of playlistData.items) {
const linkYoutube =... | Typescript |
}
}
}
//
// Save all the connections.
//
if ((eResult == ChunkFile_Ok) && (Connections_GetCount() > 0))
{
eResult = pFile->BeginChunk("connections");
if (eResult == ChunkFile_Ok)
{
int nConnCount = Connections_GetCount();
for (int i = 0; i < nConnCount; i++)
{
CEntityConnection *pConnect... | C++ |
KREG r6, 0x80007FFF;
CHECKREG r7, 0x80008000;
imm32 r0, 0x19235655;
imm32 r1, 0xc9ba5157;
imm32 r2, 0x63246755;
imm32 r3, 0x0a060055;
imm32 r4, 0x90abc509;
imm32 r5, 0x10acef5b;
imm32 r6, 0xb00a005d;
imm32 r7, 0x1246a05f;
R0.H = R4.H * R4.L, R0.L = R4.L * R4.L (ISS2);
R1.H = R4.H * R5.L, R1.L = R4.L * R5.H (ISS2);
R2.... | Assembly |
,
'original_data_path': original_data_path,
'test_data_path': test_data_path,
'seed_window_raw_path': seed_window_raw_path,
'seed_window_scaled_path': seed_window_scaled_path,
'history_path': history_path,
'best_epoch': best_epoch,
'best_val_loss': best_val_loss,
... | Python |
) })
}
}
package kdtree
import (
"container/heap"
"encoding/json"
"fmt"
"math"
"math/rand"
"reflect"
"sort"
"testing"
"github.com/go-spatial/geom"
)
// TestQuery tests a simple predefined query
func TestQuery(t *testing.T) {
type tcase struct {
points []geom.Point
queryPoint geom.Point
eOrder ... | Go |
display: table;
}
.col-inset { padding: 1em 3.7037037%; }
@media( min-width: 35em ) {
.col { padding: 3.7037037% 7.4074074%; }
.col-inset { padding: 2em 11.1111111%; }
.col-condensed { padding: 5.55555555% 11.1111111%; }
}
@media( min-width: 60em ) {
.col { padding: 3.7037037%;... | CSS |
public static DateTime UnixTimeStampToDateTime(double _unixTimeStamp)
{
// Unix timestamp is seconds past epoch
DateTime dtDateTime = EpochTime.AddSeconds(_unixTimeStamp).ToLocalTime();
return dtDateTime;
}
public static uint DateTimeToUnixTimeStamp... | C# |
Debug)]
pub struct DCB {
pub DCBlength: ::DWORD,
pub BaudRate: ::DWORD,
pub BitFields: ::DWORD,
pub wReserved: ::WORD,
pub XonLim: ::WORD,
pub XoffLim: ::WORD,
pub ByteSize: ::BYTE,
pub Parity: ::BYTE,
pub StopBits: ::BYTE,
pub XonChar: ::c_char,
pub XoffChar: ::c_char,
... | Rust |
| --- | --- | --- |--- |
|PP-OCRv3|SVTR_LCNet| w/o |78.40%|
|PP-OCRv3|SVTR_LCNet| w |79.40%|
|SVTR|SVTR-Tiny|-|82.50%|
aistudio项目链接: [高精度中文场景文本识别模型SVTR](https://aistudio.baidu.com/aistudio/projectdetail/4263032)
## 2. SVTR中文模型使用
### 环境准备
本任务基于Aistudio完成, 具体环境如下:
- 操作系统: Linux
- PaddlePaddle: 2.3
- PaddleOCR: dyg... | Markdown |
)
}
for i := range numCols {
col2, col1 := chk2.columns[i], chk.columns[i]
col2.elemBuf, col1.elemBuf = nil, nil
require.Equal(t, col1, col2)
}
// Test more types
chk = newChunk(4, 8, 16, 16, 0, 0)
f32Val := float32(1.2)
chk.AppendFloat32(0, f32Val)
f64Val := 1.3
chk.AppendFloat64(1, f64Val)
tVal := ty... | Go |
eLayoutDescriptor(bindGroupLayout))
val pipelineDesc = createRenderPipeline(pipelineLayout, vertexShader, fragShader)
val pipeline = device.createRenderPipeline(pipelineDesc)
val swapChainDescriptor = SwapChainDescriptor(device, TextureFormat.BGRA8_UNORM)
var swapChain = window.configureSwapChain(swapC... | Kotlin |
href="../vendor/qunit/qunit/qunit.css" type="text/css" media="screen">
<script src="../vendor/qunit/qunit/qunit.js"></script>
</head>
<body>
<!-- Elements -->
<h1 id="qunit-header">History.js HTML5 ExtJS Test Suite</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent... | HTML |
"github.com/cell-labs/cell-script/compiler/compiler/name"
"github.com/cell-labs/cell-script/compiler/compiler/internal"
"github.com/cell-labs/cell-script/compiler/compiler/value"
"github.com/cell-labs/cell-script/compiler/compiler/types"
"github.com/cell-labs/cell-script/compiler/parser"
"github.com/llir/llvm/i... | Go |
ble to this
account.
Usage:
rclone backend [-o config] drives drive:
This will return a JSON list of objects like this
[
{
"id": "0ABCDEF-01234567890",
"kind": "drive#teamDrive",
"name": "My Drive"
},
{
"id": "0ABCDEFabcdefghijkl",
... | Go |
"
)
func TestMPNowPlayingInfoCenter(t *testing.T) {
center := MPNowPlayingInfoCenter_defaultCenter()
if center.ID == 0 {
panic("get default center failed")
}
var (
setID int32 = 123
setTitle = "title"
)
dic := core.NSMutableDictionary_init()
defer dic.Release()
dic.SetValueForKey(core.String(... | Go |
[..])
};
let buf = [1_u8; 16];
assert_eq!(writer.write(&buf).unwrap(), buf.len());
}
#[test]
#[allow(deprecated)]
fn error() {
let invalid_utf8 = b"\xff";
let res = if let Err(error) = ::std::str::from_utf8(invalid_utf8) {
Err(Left(error))
} ... | Rust |
, buffer, onSuccess, onError, images, content});
};
};
};
// Gitee存储上传
export const giteeUpload = ({
formData = new FormData(),
file = {},
onProgress = () => {},
onSuccess = () => {},
onError = () => {},
headers = {},
withCredentials = false,
images = [],
content = null, // store content
}) => ... | JavaScript |
�α περισσότερα αποθετήρια σε αυτό το αρχείο έχουν ένα αρχείο Markdown README.md, το οποίο προορίζεται γενικά ως μια αρχική εισαγωγή στο αποθετήριο, περιγράφοντας τι είναι, γιατί υπάρχει και πώς να το χρησιμοποιήσετε.
Μια σύντομη επισκόπηση των πιο συνηθισμένων μορφών αρχείων χωρίς κείμενο μπορεί επίσης να είναι χρήσιμ... | Markdown |
ne(" ---");
var overlapTimeRange = OverlapChecker.OverlapTime(new TimeOnly(10, 00),
new TimeOnly(12, 00),
new TimeOnly(11, 00),
new TimeOnly(15, 00));
Console.WriteLine(overlapTimeRange);
Console.WriteLine(" ---");
var dontOverlapTimeRange = OverlapChecker.OverlapTime(new(10, 00),
new TimeOnly(12, 0... | C# |
java.util.*
data class WalletInfoResponse(
val wallet: String,
@SerializedName("eth_balance") val ethBalanceWei: BigInteger,
@SerializedName("appc_balance") val appcBalanceWei: BigInteger,
@SerializedName("appc_c_balance") val appcCreditsBalanceWei: BigInteger,
@SerializedName("eth_fiat_balance") val ethBal... | Kotlin |
: "\u05DB\u05D3\u05D9 \u05DC\u05E7\u05E8\u05D5\u05D0 \u05E0\u05EA\u05D5\u05E0\
\u05D9 CSV \u05DE\u05E7\u05D5\u05D1\u05E5 \u05D4\u05D0\u05D7\u05E1\u05D5\u05DF \u05D1\
-Google Drive, \u05EA\u05D7\u05D9\u05DC\u05D4 \u05D9\u05E9 \u05DC\u05D4\u05E9\u05D9\
\u05D2 \u05D0\u05EA \u05EA\u05D5\u05DB\u05DF \u05D4\u05E7\u05D5... | Markdown |
: '10 mins',
cookTime: '1 hr to 1hr 15 mins',
totalTime: '1 hr 10 mins',
recipeYield: '1 loaf, 12 generous servings',
ingredients: [
{line: '3 1/2 cups (454g) sliced bananas (4 to 5 medium bananas)', ingredients: ['banana']},
{line: '8 tablespoons (113g) butter, room temperature', ingredients: ['butter'... | Typescript |
key = Reverse(s);
}
};
} // namespace
static ReverseKeyComparator reverse_key_comparator;
static void Increment(const Comparator* cmp, std::string* key) {
if (cmp == BytewiseComparator()) {
key->push_back('\0');
} else {
assert(cmp == &reverse_key_comparator);
std::string rev = Reverse(*key);
re... | C++ |
-rename]\")){const t=o.content.split(\":\",2);e=e.replace(new RegExp(`(^|[?&])${t[0]}($|=)`,\"g\"),`$1${t[1]}$2`)}return e}()}`}let d=!1,m=0;const p=Date.now();async function v(e){var t,o;if(!(!S&&!d&&m<10&&\"function\"==typeof Blob&&\"function\"==typeof PerformanceObserver&&\"undefined\"!=typeof Intl&&\"undefined\"!=t... | Java |
Interfaces15([IncludeDataSources(TestProvName.AllOracle)] string context)
{
using (var db = GetDataContext(context))
using (db.CreateLocalTable<ReviewIndex>())
{
((ITable<IReviewIndex>)db.GetTable<ReviewIndex>())
.Merge()
.Using(ReviewIndex.Data)
.OnTargetKey()
.UpdateWhenMatchedAndTh... | C# |
K"
+ "hx8Tgzttk0CHHHZmUQkMm0RXDj/n07JaeGuQJQ1pK/3Wg7ejfGxj7eFgzmPU"
+ "jOhIAAe/fwOkxUC8quv/+db/L+EeSQBSEyacU5MliXwOPVytMUOP4pFMtonw"
+ "C6NzBU5JMIHYBgkqhkiG9w0BBwGggcoEgccwgcQwgcEGCyqGSIb3DQEMCgEC"
+ "oHIwcDAcBgoqhkiG9w0BDAEDMA4ECF6BMzmkD7DbAgIIAARQlev2YN09882U"
... | Java |
44;
--b7-4: #514062;
--b7-4-rgb: 81,64,98;
--b7-5: #40344d;
--b7-5-rgb: 64,52,77;
--b8-0: #9a91ea;
--b8-0-rgb: 154,145,234;
--b8-1: #ad91ea;
--b8-1-rgb: 173,145,234;
--b8-2: #b991ea;
--b8-2-rgb: 185,145,234;
--b8-3: #5f5c90;
--b8-3-rgb: 95,92,144;
--b8-4: #424062;
... | CSS |
demo/)
## 特性
### 🛠️格式设置
+ **样式** (修改字体样式,字号,颜色或者其他通用的样式)
+ **条件格式** (突出显示所关注的单元格或单元格区域;强调异常值;使用数据栏、色阶和图标集(与数据中的特定变体对应)直观地显示数据)
+ **文本对齐及旋转**
+ **支持文本的截断、溢出、自动换行**
+ **数据类型**
+ **货币, 百分比, 数字, 日期**
+ **Custom** (和excel保持一致,例如: `##,###0.00` , `$1,234.56$##,###0.00_);[Red]($##,###0.00)`, `_($* ##,###0.00_);_(...($... | Markdown |
-affix-wrapper[disabled] {\n color: rgba(0, 0, 0, 0.25);\n background-color: #f5f5f5;\n border-color: #d9d9d9;\n box-shadow: none;\n cursor: not-allowed;\n opacity: 1;\n}\n.ant-input-affix-wrapper[disabled]:hover {\n border-color: #d9d9d9;\n border-right-width: 1px;\n}\n.ant-input-affix-wrapper-borderless,\n.an... | HTML |
;
justify-content: center;
margin-bottom: 2rem;
}
&-question-content {
text-align: left;
}
&-question-header {
margin-bottom: 1.5rem;
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
&-question-text {
font-size: 1.25rem;
font-weight: 600;
col... | CSS |
using System;
using System.Buffers;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using StackExchange.Metrics.Infrastructure;
using Xunit;
namespace StackExchange.Metrics.Tests
{
// tests that ensure the buffering and buffer manipulation aspects of the
// buffered metric handler work corre... | C# |
) do
prepare(node_id)
end
self._content.linenr = { linenr_start, current_linenr - 1 + linenr_start - 1 }
end
---@param linenr_start? number start line number (1-indexed)
function Tree:render(linenr_start)
if is_type("nil", self._.track_tree_linenr) then
self._.track_tree_linenr = is_type("number", linen... | Lua |
m_pGBuffer->m_HDRSRV, NULL, m_TaaDescriptorSet);
SetDescriptorSet(m_pDevice->GetDevice(), 1, m_pGBuffer->m_DepthBufferSRV, NULL, m_TaaDescriptorSet);
SetDescriptorSet(m_pDevice->GetDevice(), 2, m_HistoryBufferSRV, NULL, m_TaaDescriptorSet);
SetDescriptorSet(m_pDevice->GetDevice(), 3, m_pGBuffer... | C++ |
, à proximité des Chutes.$B$BApporter la Fiole d'échantillon des Chutes de la Bondissante remplie à Alanndarian Chantenuit, à Auberdine, dans Sombrivage.";
};
[2342] = {
["name"] = "Des Trésors à recouvrer";
["objective"] = "Rapporter à Patrick Garrett, à Fossoyeuse, son Trésor de famille, qui se trouve d... | Lua |
/// </summary>
public async ValueTask<TokenissuancePolicyListAppliestoResponse> TokenissuancePolicyListAppliestoAsync(CancellationToken cancellationToken)
{
var p = new TokenissuancePolicyListAppliestoParameter();
return await this.SendAsync<TokenissuancePolicyListAppliestoParameter, Tokenis... | C# |
bkit-border-radius: 9px;
border-radius: 9px;
}
/* line 264, ../../../../css/resource/sass/web/components/_tweetpoll-create.scss */
.web-tweetpoll-wrapper div.previewWrapperContent .previewHashTag {
background-color: #febeb2;
border: 1px solid #fd694d;
}
/* line 271, ../../../../css/resource/sass/web/components/... | CSS |
using Grand.Domain.Configuration;
using System.Collections.Generic;
namespace Grand.Domain.Payments
{
public class PaymentSettings : ISettings
{
public PaymentSettings()
{
ActivePaymentMethodSystemNames = new List<string>();
}
/// <summary>
/// Gets or sets... | C# |
nc(a.as_slice());
let fut3 = b3.copy_from_async(a.as_slice());
fut3.await;
fut2.await;
fut1.await;
assert_eq!(a, b1);
assert_eq!(a, b2);
assert_eq!(a, b3);
}
#[tokio::test]
async fn memcpy_async_d2h() {
let device = Device::nth(0).unwrap();
... | Rust |
DDSCAPS_OFFSCREENPLAIN | DDSCAPS_SYSTEMMEMORY;
error = glDirectDraw7_CreateSurface2(This, &ddsd,
(LPDIRECTDRAWSURFACE7*)&This->tmpsurface, NULL, FALSE, 7);
}
if (error != DD_OK) return error;
}
else
{
if ((This->tmpsurface->ddsd.dwWidth >= width) &&
(This->tmpsurface->ddsd.dwHeight >= height)) return... | C++ |
// Copyright (C) 2020 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#ifndef ABSTRACTMETAENUM_H
#define ABSTRACTMETAENUM_H
#include "abstractmetalang_typedefs.h"
#include "enclosingclassmixin.h"
#include "parser/codemodel_enums.h"
#include "typesyste... | C |
out.print("</head>");
out.print("<body>");
out.print("<h1>Get 방식으로 요청 되었습니다.</h1>");
String id = req.getParameter("id");
String password = req.getParameter("pwd");
String name = req.getParameter("name");
String[] hobby = req.getParameterValues("hobby");
String gender = req.getParameter("gender");
Strin... | Java |
er)+`
`+indent.prev}function arrObjKeys(obj,inspect){var isArr=isArray2(obj),xs=[];if(isArr){xs.length=obj.length;for(var i=0;i<obj.length;i++)xs[i]=has2(obj,i)?inspect(obj[i],obj):""}var syms=typeof gOPS=="function"?gOPS(obj):[],symMap;if(hasShammedSymbols){symMap={};for(var k=0;k<syms.length;k++)symMap["$"+syms[k]]=s... | JavaScript |
Clients2;
/*
* Try to get around the differences between Ansi CPP and
* K&R cpp with concatenation.
*/
import org.jboss.jbossts.qa.RawResources02.*;
import org.jboss.jbossts.qa.Utils.OAInterface;
import org.jboss.jbossts.qa.Utils.ORBInterface;
import org.jboss.jbossts.qa.Utils.OTS;
import org.jboss.jbossts.qa... | Java |
class="identifier">String</span></a><span class="symbol">)</span><span class="symbol">: </span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html"><span class="identifier">String</span></a></code>
<p>get String from Assets file</p>
</td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
<HTML>
<HEAD>... | HTML |
dification-of-Bit-Vectors-and-Strings-with-respect-to-EQUAL.html">Visible Modification of Bit Vectors and Strings with respect to EQUAL</a>, <a href="Visible-Modification-of-Conses-with-respect-to-EQUAL.html">Visible Modification of Conses with respect to EQUAL</a>, <a href="Visible-Modification-of-Objects-with-respect... | HTML |
1 = k1 or (data[i4 + 1].toLong() and UNSIGNED_MASK shl 8)
k1 = k1 or (data[i4 + 2].toLong() and UNSIGNED_MASK shl 16)
k1 = k1 or (data[i4 + 3].toLong() and UNSIGNED_MASK shl 24)
// int k1 = (data[i4] & 0xff) + ((data[i4 + 1] & 0xff) << 8) + ((data[i4 + 2] & 0xff)
// <<... | Kotlin |
"sort"
"strings"
"sync"
"time"
"github.com/go-pkgz/lcw/v2"
log "github.com/go-pkgz/lgr"
"github.com/google/uuid"
"github.com/hashicorp/go-multierror"
bf "github.com/russross/blackfriday/v2"
"github.com/umputun/remark42/backend/app/store"
"github.com/umputun/remark42/backend/app/store/admin"
"github.com/u... | Go |
er of sentences to be output
*
* @callgraph
* @callergraph
*
*/
void
result_sentence_malloc(RecogProcess *r, int num)
{
int i;
r->result.sent = (Sentence *)mymalloc(sizeof(Sentence) * num);
for(i=0;i<num;i++) r->result.sent[i].align = NULL;
r->result.sentnum = 0;
}
/**
* <EN>
* Free storage of recogni... | C |
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package opensavvy.ktmongo.sync
import com.mongodb.client.MongoC... | Kotlin |
F);
this.setRotateAngle(fruit5aspect, -2.913827186204533F, -0.6829473363053811F, 3.141592653589793F);
this.leaf10 = new ModelRenderer(this, 22, 32);
this.leaf10.setRotationPoint(0.9F, -13.0F, -3.0F);
this.leaf10.addBox(-2.0F, 0.0F, -2.5F, 4, 0, 3, 0.0F);
this.setRotateAngle(leaf10, -0.27314402793711257F, -0.0... | Java |
s no more room left in the output buffer then something is wrong. */
else if (!pStream->avail_out)
return MZ_BUF_ERROR;
}
else if ((status == TINFL_STATUS_DONE) || (!pStream->avail_in) || (!pStream->avail_out) || (pState->m_dict_avail))
break;
... | Lua |
return static_cast<int32_t>(offsetof(Dictionary_2_t1445386684, ___emptySlot_9)); }
inline int32_t get_emptySlot_9() const { return ___emptySlot_9; }
inline int32_t* get_address_of_emptySlot_9() { return &___emptySlot_9; }
inline void set_emptySlot_9(int32_t value)
{
___emptySlot_9 = value;
}
inline static int... | C |
;
$table_header_bg: $dark !default;
$input-bg: darken($dark, 2%) !default;
$input-color: $light !default;
$input-focus-bg: #444 !default;
$input-focus-border-color: #868686 !default;
$timeline-itilc-bg: #1a221a34 !default;
$timeline-itilc-fg: #85bd81 !default;
$timeline-itilc-border: #324132 !default;
$timeline-fup-bg:... | CSS |
/*
* Kernel module for testing static keys.
*
* Copyright 2015 Akamai Technologies Inc. All Rights Reserved
*
* Authors:
* Jason Baron <jbaron@akamai.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
*... | C |
= AGProgramWithUniforms(PROGRAM)
fun setVertex(n: Int, px: Float, py: Float, tx: Float, ty: Float) {
val offset = n * 4
verticesDataF32[offset + 0] = px
verticesDataF32[offset + 1] = py
verticesDataF32[offset + 2] = tx
verticesDataF32[offset + 3] = ty
}
private fun... | Kotlin |
ON.
-->
</div><noscript><img src="//en.wikipedia.org/wiki/Special:CentralAutoLogin/start?type=1x1" alt="" title="" width="1" height="1" style="border: none; position: absolute;" /></noscript>
<div class="printfooter">Retrieved from "<a dir="ltr" href="https://en.wikipedia.org/w/index.php?title=1930_FIFA_World_Cup_Grou... | HTML |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.