content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
ojo.ClusterArchitecture
import com.tencent.bkrepo.common.api.pojo.ClusterNodeType
import com.tencent.bkrepo.common.service.cluster.properties.ClusterProperties
import org.springframework.beans.factory.annotation.Autowired
/**
* 只在中心节点执行的定时任务
*/
abstract class CenterNodeJob : LockableJob() {
@Autowired
priva... | Kotlin |
s_lshr_b32 vcc_hi, s1, s2
// CHECK: [0x01,0x02,0x6b,0x8f]
s_lshr_b32 tba_lo, s1, s2
// CHECK: [0x01,0x02,0x6c,0x8f]
s_lshr_b32 tba_hi, s1, s2
// CHECK: [0x01,0x02,0x6d,0x8f]
s_lshr_b32 tma_lo, s1, s2
// CHECK: [0x01,0x02,0x6e,0x8f]
s_lshr_b32 tma_hi, s1, s2
// CHECK: [0x01,0x02,0x6f,0x8f]
s_lshr_b32 ttmp11, s1, s2... | Assembly |
}
else {
if capacity <= 70 {
writer.write_all(format!("{} {}%\n", "", capacity).as_bytes()).unwrap();
}
else {
writer.write_all(format!("{} {}%\n", "", capacity).as_bytes()).unwrap();
}
}
}
else if capacity <= 90 {
if status != String::from("Discharging") {
writer.write_all(format!("{}... | Rust |
d'hiver",
WINTERSABER_TRAINERS = "Éleveurs de sabres-d'hiver",
WRATH_OF_THE_LICH_KING = "Wrath of the Lich King",
ZANDALAR_TRIBE = "Tribu Zandalar",
}
elseif LOCALE == "koKR" then
L = {
ALLIANCE = "얼라이언스 연합",
ALLIANCE_FORCES = "얼라이언스 군대",
ALLIANCE_VANGUARD = "얼라이언스 선봉대",
ARGENT_CRUSADE = "은빛십자군",
ARGE... | Lua |
rg = KRPC.Argument()
arg.position = 0
arg.value = self.encode_int32(42)
call.arguments.extend([arg])
request = KRPC.MultiplexedRequest()
request.request.calls.extend([call])
self.rpc_send(request)
response = self.rpc_recv(KRPC.MultiplexedResponse).response
... | Python |
ne-button {
background-image: url("../resource/phrase/character_button.png");
width: 10rem;
padding: 0.5rem;
/* 按钮内边距 */
cursor: pointer;
/* 鼠标悬停样式 */
margin-left: 2rem;
margin-right: 2rem;
border: none;
border-radius: 0.5rem;
background-color: #807b75;
box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.... | CSS |
�",
[17002] = "\"갈퀴발톱\" 안젤라 케스트렐",
[17004] = "지르시",
[17005] = "결투사 라레니스",
[17006] = "엘사아나",
[17007] = "여군주 케이라 베리벅",
[17008] = "굴단",
[17009] = "듀로탄",
[17010] = "드라카",
[17011] = "파괴자 블랙핸드",
[17012] = "오그림 둠해머",
[17013] = "사로잡힌 드레나이",
[17014] = "붕괴하는 공허방랑자",
[17015] = "탈레리스 돈게이저",
[17016] = "용... | Lua |
f);
MkWkRmpPts(&Eq, WkRmpPts, InpRmp, nRedBits, nGreenBits, nBlueBits);
BldClrRmp(Rmp[BC], WkRmpPts[BC], dwNumPoints);
CODECFLOAT RmpErr[MAX_POINTS][MAX_BLOCK];
for (int i = 0; i < _NmrClrs; i++)
{
... | C++ |
.size() > 1)
{
break;
}
StructureVillagePieces.Village structurevillagepieces$village = func_176065_a(start, structurevillagepieces$pieceweight, p_176067_1_, rand, p_176067_3_, p_176067_4_, p_176067_5_, facing, p_176067... | Java |
addr2: "44",
countryId: "c1",
cityId: "ct1",
postcode: "",
ticketId: '774c5999-5031-402d-bd4c-588d933dda20',
phoneIds: []
}
];
const newState = {
ids: ['d0dca54d-925e-4083-a52c-77c8a70d6628', '9... | Typescript |
ey_id())
}
}
#[derive(Clone, Copy)]
pub struct ImmutableGetRequestReceiptsForBlockParams {
pub(crate) id: i32,
}
impl ImmutableGetRequestReceiptsForBlockParams {
pub fn block_index(&self) -> ScImmutableInt32 {
ScImmutableInt32::new(self.id, PARAM_BLOCK_INDEX.get_key_id())
}
}
#[derive(Clone, Copy)]
pub s... | Rust |
h3.googleusercontent.com/-JyfY07TGPCA/AAAAAAAAAAI/AAAAAAAAAAA/sw7l7WG23ik/photo.jpg?sz=32" alt="Jon Patell's profile photo"class="Fn Yi fl Mm"></a><div ><a href="./102129989581598029593" class="yn Hf ox" rel="nofollow" oid="102129989581598029593">Jon Patell</a> - <span class="zj">Honestly the entire time si... | HTML |
"""Models for Playlist app."""
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class Playlist(db.Model):
"""Playlist model."""
__tablename__ = "playlists"
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(100), nullable=False)
description = db.Column(db.String(25... | Python |
20px space + 1px border
* (which is different from 2px border + 20px space). 21px regular
* space is about as close as we can get to that value. If the value
* used here is too large, it causes some overflow errors (undesirabled
* scroll bars) due to 1px aliasing.
*/
padding-top: 21px;
}
.newWaveWit... | CSS |
#80.5
vfmadd213pd 64(%r8,%rax,8), %zmm3, %zmm4 #80.5
vmovupd %zmm2, (%r13,%rax,8) #80.5
vmovupd %zmm4, 64(%r13,%rax,8) #80.5
addq $16, %rax #80.5
cmpq %r... | Assembly |
", encoding="utf-8") as file:
file.write(_TEST_MAPPING_WITH_SUPPORTED_COMMENTS)
with open(self.test_mapping_file, "r", encoding="utf-8") as file:
android_test_mapping_format.process_file(file.read())
def test_valid_test_mapping_file_with_non_supported_comments(self):
"""Veri... | Python |
// CodeContracts
//
// Copyright (c) Microsoft Corporation
//
// All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including wit... | C# |
pyright (c) 2019-2020 jsnimda <7615255+jsnimda@users.noreply.github.com>
* Copyright (c) 2021-2022 Plamen K. Kosseff <p.kosseff@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Fou... | Kotlin |
4YZDc-Sx9Kwc-r4nke{background-color:var(--dt-surface,#fff);color:var(--dt-on-surface,#3c4043);font:var(--dt-headline-small-font,400 1.5rem/2rem "Google Sans"),"Google Sans",Roboto,Arial,sans-serif;letter-spacing:var(--dt-headline-small-spacing,0)}.ndfHFb-c4YZDc-Sx9Kwc-r4nke-TvD9Pc{height:11px;filter:alpha(opacity=70);o... | HTML |
;display:flex;flex-direction:row;align-items:center;min-width:200px}.tree-node:hover{background:rgba(204,204,204,.2);border-radius:5px}.tree-node .node-span-wrapper{min-width:300px}.tree-node .node-span-wrapper .node-span{width:-moz-fit-content;width:fit-content}::-webkit-scrollbar-thumb{background-color:#ccc9;border-r... | CSS |
using System.Buffers;
using Melville.Icc.Parser;
using Melville.Parsing.SequenceReaders;
namespace Melville.Icc.Model.Tags;
internal abstract class ProfileArray<T>
{
public IReadOnlyList<T> Values { get; }
protected ProfileArray(ref SequenceReader<byte> reader)
{
reader.Skip32BitPad();
v... | C# |
rorf("field `Mchid` is required and must be specified in ActParticipateMchInfo")
}
toSerialize["mchid"] = o.Mchid
if o.MerchantName != nil {
toSerialize["merchant_name"] = o.MerchantName
}
if o.CreateTime != nil {
toSerialize["create_time"] = o.CreateTime
}
if o.UpdateTime != nil {
toSerialize["update_t... | Go |
tmp->stats.UL_frames,
tmp->stats.UL_total_bytes, UL_bw,
tmp->stats.UL_total_acks,
tmp->stats.UL_total_nacks,
tmp->stats.UL_total_missing,
tmp->stats.DL_frames,
tmp->stats.DL_total_bytes, DL_bw,
tmp->stats.DL_total_... | C |
6747ed0f15ce4532624715c2b2a079e18f2))
* **unbound-method:** remove `docs.recommended` and `docs.requiresTypeChecking` properties ([945651c](https://github.com/jest-community/eslint-plugin-jest/commit/945651c36c471f424b743f0aae3ccca6271f21ba))
### BREAKING CHANGES
* dropped support for ESLint v8.x prior to v8.57.0
* ... | Markdown |
aseSensitive(v1_quoteJSON, "ask_price");
if (cJSON_IsNull(ask_price)) {
ask_price = NULL;
}
if (ask_price) {
if(!cJSON_IsNumber(ask_price))
{
goto end; //Numeric
}
}
// v1_quote->ask_size
cJSON *ask_size = cJSON_GetObjectItemCaseSensitive(v1_quoteJSON, "ask_size");
... | C |
call goes directly to code */
#define CO_SWAP_ASM( x, y ) \
((void (*)( cothread_t, cothread_t )) (uintptr_t) libco_ppc_code)( x, y )
#endif
#endif
static uint32_t* co_create_( unsigned size, uintptr_t entry )
{
uint32_t* t = (uint32_t*) malloc( size );
(void) entry;
#if LIBCO_PPCDESC
if ( t )
{
/*... | C |
玩家进行同水准的对抗时才会接触到的内容。
* **叙事和创意**的体验也许玩家在一开始就会接触到,玩家也许会被其短暂吸引。但是如果没有前面任何一个模块的支持,全凭叙事和创意这个模块不足以创造优秀和有深度的游戏体验。所以这个模块的重要层级最低。

### 游戏 UI 的交互细节
**UI 组件的可用性优劣是通过它的交互细节来决定的。交互细节是由信息的传递途径和交互模式这两个方面的因素决定的。**
* **UI 反馈信息的传递途径是什么**
传递途径所指的就是 UI 组件通过什么载体和什么方式将信息反馈给玩家。
文字、符号或绘画都是 UI 功能信息的不同载体。
而信息呈... | Markdown |
.deleteFromPool(list);
LOG.info("<======== 清理缓冲池中没有对账的数据,记录差错结束<=========");
}
/**
* 差错处理
*
* @param mistake
* 差错信息
*/
@Transactional(rollbackFor = Exception.class)
public void handle(String id, String handleType, String handleRemark) {
// 根据id查询
ReconciliationAccountCheckMistake mis... | Java |
1.516 2.156a3.458 3.458 0 01-.938 4.823 3.272 3.272 0 01-1.901.604zm10.209-5.433a3.471 3.471 0 01-.938 4.828 3.47 3.47 0 01-4.828-.938 3.463 3.463 0 01.938-4.828c.193-.141.385-.219.578-.333l-1.49-2.036a3.516 3.516 0 01.771-4.885 3.512 3.512 0 014.885.776 3.51 3.51 0 01-.771 4.88 3.241 3.241 0 01-.693.385zm-11.563-4.604... | Dart |
In one form, CIOs describe the challenge of stitching together multiple security point solutions into a single SASE deployment. They choose our network for the reasons described above; the CIO’s team benefits from features that work better together, and they avoid the need to maintain multiple systems.</p>
<p>In the ... | HTML |
ra.split("\t")
return linked_titles_all
def load_para_and_linked_titles_dict_from_tfidf_id(tfidf_id, db):
"""
load paragraphs and hyperlinked titles from DB.
This method is mainly for Natural Questions Open benchmark.
"""
# will be fixed in the later version; current tfidf weights use indexed ... | Python |
ct-item.p-highlight {
color: #3F51B5;
background: rgba(63, 81, 181, 0.12);
}
.landing-themes .p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover {
color: rgba(0, 0, 0, 0.87);
background: rgba(0, 0, 0, 0.04);
}
.landing-themes .p-multiselect-panel .p-multiselect... | CSS |
* b), Mask::from_array([false, true, true, false]));
assert_eq!(a.lanes_lt(i32x4::splat(5) * b), Mask::from_array([false, false, true, false]));
assert_eq!(a.lanes_ge(i32x4::splat(5) * b), Mask::from_array([true, true, false, true]));
assert_eq!(a.lanes_gt(i32x4::splat(5) * b), Mask::from_array([true, fals... | Rust |
PRE90S, GBF_QUIZ, 0,
NULL, promutrvbRomInfo, promutrvbRomName, NULL, NULL, NULL, NULL, EttriviaInputInfo, EttriviaDIPInfo,
DrvInit, DrvExit, DrvFrame, DrvDraw, DrvScan, &DrvRecalc, 0x100,
224, 256, 3, 4
};
// Progressive Music Trivia (Question set 4)
static struct BurnRomInfo promutrvcRomDesc[] = {
{ "u16.u16", ... | C++ |
locale } = i18n;
const adminLevelMap = reportingLocationConfig?.get("admin_level_map");
return [
{
...buildField(current, formSection, locale),
id: `loc:${current.get("name")}`,
display_text: `${displayNameHelper(current.get("display_name"), locale)}`
}
].concat(
adminLevelMap?.en... | JavaScript |
// put everyone back in from endgame spectate
for ( i = 0; i < gameLocal.numClients; i++ ) {
idEntity *ent = gameLocal.entities[ i ];
if ( ent && ent->IsType( idPlayer::Type ) ) {
if ( !static_cast< idPlayer * >( ent )->wantSpectate ) {
CheckRespawns( static_cast<idPlayer *>( ent ) );
... | C++ |
by rl4);
R5.H = LSHIFT R5.L BY R4.L;
R6.H = LSHIFT R6.L BY R4.L;
R7.H = LSHIFT R7.L BY R4.L;
CHECKREG r0, 0x00010001;
CHECKREG r1, 0x00010001;
CHECKREG r2, 0x00020002;
CHECKREG r3, 0x00030003;
//CHECKREG r4, 0x00040004;
CHECKREG r5, 0x00050005;
CHECKREG r6, 0x00060006;
CHECKREG r7, 0x00070007;
imm32 r0, 0x00000001;
i... | Assembly |
1.0
is Const -> expr.number
is Sum -> eval(expr.e1) + eval(expr.e2)
is Multiply -> eval(expr.e1) * eval(expr.e2)
NaN -> Double.NaN
// 不再需要 `else` 子句,因为我们已经覆盖了所有的情况
}
```
测试代码:
```kotlin
fun main(args: Array<String>) {
val u = eval(Unit())
val a = eval(Const(1.1))
val b = eval(Sum(Const(1... | Markdown |
new = ""
for i,v in pairs(teams) do
if v == curr then
new = teams[i + 1] or teams[1]
end
end
if new ~= "None" then
ToggleTracers(new, true)
end
Tracers.Text = "Tracers: " .. new
end)
local BtoolActive = false
local m = plr:GetMouse()
local Btool = CreateButton("Btool: Off", StuffFrame)
Btool.Position = ... | Lua |
import java.util.Map;
/**
* 检查pom依赖
*
* @author nieqiurong 2019/2/9.
*/
class GeneratePomTest {
@Data
@AllArgsConstructor
private static class Dependency {
private String artifactId;
private String scope;
private boolean optional;
}
@Test
void test() throws IOExce... | Java |
"""
批量操作管理器
提供統一的批量操作功能,包括:
- 批量策略執行
- 批量數據更新
- 批量交易訂單處理
- 批量風險管理操作
- 進度追蹤和錯誤處理
"""
import time
import asyncio
import threading
from typing import Any, Dict, List, Optional, Callable, Union, Tuple
from enum import Enum
from datetime import datetime, timedelta
from dataclasses import dataclass
import streamlit as st
i... | Python |
translate %}</p>
{% if not form.user.has_usable_password %}
<p>{% blocktranslate %}This action will <strong>enable</strong> password-based authentication for this user.{% endblocktranslate %}</p>
{% endif %}
<fieldset class="module aligned">
<div class="form-row">
{{ form.usable_password.errors }}
<div class="f... | HTML |
in-left:.25rem}[dir=rtl] .result-streaming:not(.streaming-animation)>:is(ul,ol):last-child>li:last-child:not(:has(*>li)):after,[dir=rtl] .result-streaming:not(.streaming-animation)>:is(ul,ol):last-child>li:last-child>:is(ul,ol):last-child>li:last-child:after,[dir=rtl] .result-streaming:not(.streaming-animation)>:is(ul,... | CSS |
)
}.mapKeys {
it.key?.toString() ?: "null"
}
}
is Collection<*> -> {
value.map { toDisplayableMap(it) }
}
is Array<*> -> {
value.map { toDisplayableMap(it) }
}
is I... | Kotlin |
849 "echo32.c" 1
mov ecx, [SHA3_S+2*16+8]
# 0 "" 2
# 849 "echo32.c" 1
mov edx, [SHA3_S+2*16+12]
# 0 "" 2
# 849 "echo32.c" 1
mov esi, [SHA3_S+3*16]
# 0 "" 2
# 849 "echo32.c" 1
mov edi, [SHA3_S+3*16+4]
# 0 "" 2
# 849 "echo32.c" 1
mov ebp, [SHA3_S+3*16+8]
# 0 "" 2
# 849 "echo32.c" 1
mov esp, [SHA3_S+3*16+12]
#... | Assembly |
'Default plugin implementations'
from .hookspec import hookimpl
from .hookspec import USBQPluginDef
@hookimpl
def usbq_declare_plugins():
# These are the bundled plugins.
return {
'proxy': USBQPluginDef(
name='proxy',
desc='Send and receive USB packets from a USBQ proxy device ... | Python |
anchorOffsetY = offsetY + self.offsetY
else
--Assumes that relative point is one of the left side anchors
anchorPoint = RIGHT
anchorOffsetX = self.offsetX - (ZO_POINTER_BOX_ARROW_CENTER_TO_TIP_DISTANCE + ZO_POINTER_BOX_ARROW_CENTER_OFFSET_FROM_BOX_SIDE + self... | Lua |
[](https://www.codechef.com/viewsolution/12161855) (100 pts) [](#) | | |
| [DEC16](https://www.codechef.com/DEC16) | [KIRLAB](https://www.codechef.com/DEC16/problems/KIRLAB/) | ★★ | | [](DEC/DEC16/KIRLAB/KIRLAB.cpp) [](https://... | Markdown |
class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center">
<img src="classCqrs_1_1Sql_1_1DataStores_1_1ExpressionTreeConverter.png" usemap="#Cqrs.Sql.DataStores.ExpressionTreeConverter_3C_20TA_2C_20TB_20_3E_map" alt=""/>
<map id=... | HTML |
u zo sliviek.",
"Ona pije džús z pomaranča.",
"My kupujeme hrozno.",
"Jahody sú v miske.",
"Slivka je už zrelá.",
"Hrušky ležia na stole.",
"Citrón sa pridáva do čaju.",
"Banán je v taške.",
"Višňa rastie na strome.",
"Melón je veľmi chutný."
]
# Module 3 – Learning and Languages
##... | Markdown |
erialize<IgnoreMembers>(json)!;
// then
expect(instance.name, null);
expect(instance.title, 'Marley');
// given
final expectedJson = '''{"name":"Bob"}''';
// when
final targetJson =
JsonMapper.serialize(IgnoreMembers(name: 'Bob', title: 'Marley'));
// then
... | Dart |
= "Mallas de Caparazón de Plata",
[10634] = "Círculo de Ojo Mental",
[10635] = "Mallas de Cadena Pintadas",
[10636] = "Guantes Nómadas",
[10637] = "Guantes de Cervecero",
[10638] = "Capa Larga Colgante",
[10639] = "Seta Jacinto",
[10640] = "Icor de Tejido de Telaraña",
[10641] = "Lirio de Pétalo Lunar",... | Lua |
= rememberSaveableMapControls(),
locationEngine: LocationEngine? = null,
locationRequestProperties: LocationRequestProperties = LocationRequestProperties.Default,
locationStyling: LocationStyling = LocationStyling.Default,
userLocation: MutableState<Location>? = null,
onMapReadyCallback: ((Style) -... | Kotlin |
, .ad640x60, .ad644, .ad650x140, .ad652, .ad670x83, .ad68570, .ad70, .ad72890, .ad728By90, .ad728_90, .ad728_blk, .ad728_cont, .ad728_wrap, .ad728cont, .ad728h, .ad728x90, .ad728x90-1, .ad728x90-2, .ad728x90-main_wrap, .ad728x90WithLabel, .ad728x90_2, .ad728x90_container, .ad728x90_wrap { display: none!important; }
.ad... | HTML |
def solve():
import sys
# Set the default input filename
input_filename = 'input.txt'
# Open the input file
with open(input_filename, 'r') as input_source:
data = input_source.read().splitlines()
T = int(data[0]) # number of test cases
output = []
index = 1
for t in rang... | Python |
fn parse_formula(
mut rgce: &[u8],
sheets: &[String],
names: &[(String, String)],
) -> Result<String, XlsbError> {
if rgce.is_empty() {
return Ok(String::new());
}
let mut stack = Vec::new();
let mut formula = String::with_capacity(rgce.len());
while !rgce.is_empty() {
l... | Rust |
//*****************************************************************************
//
// cpu.h - Prototypes for the CPU instruction wrapper functions.
//
// Copyright (c) 2006 Luminary Micro, Inc. All rights reserved.
//
// Software License Agreement
//
// Luminary Micro, Inc. (LMI) is supplying this software for use sol... | C |
ctx.SetQueryTime(queries.Dec15_1_30)
if assertion.ExpectedErr != nil {
AssertErr(t, e, harness, assertion.Query, nil, assertion.ExpectedErr)
} else if assertion.ExpectedErrStr != "" {
AssertErr(t, e, harness, assertion.Query, nil, nil, assertion.ExpectedErrStr)
} else {
var expect... | Go |
ontent/uploads/2017/03/图片-2-800-1-300x168.jpg 300w, http://www.aqniu.com/wp-content/uploads/2017/03/图片-2-800-1-768x431.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>如下,*.35 向62.149.175.81发送SYN,后者快速回复RST的数据包,时间差不足1ms,推测为出口防火墙阻断保护(因为后者位于意大利,所以后者真是返回RST数据包时间差应大于50ms),*.35发出的SYN数量极多同时频率极高现象,基本断定*.35发动了SYN... | HTML |
var length: Long = 0
directory.listFiles()?.forEach { file ->
length += if (file.isFile)
file.length()
else
folderSize(file)
}
return length
}
fun Long.readableFileSize(): String {
if (this <= 0) return "0 MB"
val units = arrayOf("B", "kB", "MB", "GB", "T... | Kotlin |
-services.html"},{"id":"511165643244194680","title":"What is an EMC?","url":"what-is-an-emc.html"},{"id":"609623489966598466","title":"Site Map","url":"site-map.html"}],'158770568384106195',"<li class='wsite-nav-more'><a href='#'>more...<\/a><\/li>",'active',false)}
if (jQuery) {
if (jQuery.browser.msie && !window.flyo... | HTML |
ody.levels, containsInAnyOrder("ERROR", "WARN", "INFO", "DEBUG", "TRACE"));
assertEquals(2, responseBody.loggers.size());
final var firstLogger = responseBody.loggers.get(0);
assertEquals("org", firstLogger.name);
assertEquals(null, firstLogger.level);
assertFalse("Expected logger info to report 'u... | Java |
c4,#d0d0d0 10%,#dddddd 65%,#dedede);background-image:-ms-linear-gradient(top, #c4c4c4,#d0d0d0 10%,#dddddd 65%,#dedede);-webkit-box-shadow:rgba(255,255,255,0.7) 0 0.1em 0;-moz-box-shadow:rgba(255,255,255,0.7) 0 0.1em 0;box-shadow:rgba(255,255,255,0.7) 0 0.1em 0;-webkit-border-radius:0.4em;-moz-border-radius:0.4em;-ms-bo... | CSS |
src
e.regs.copyWithin(1, 0, j)
e.regs[0] = r
return
}
}
// copy(e.regs[1:], e.regs[:])
e.regs.copyWithin(1, 0)
e.regs[0] = r
return
}
// d.entries = append(d.entries, desiredStateEntry{vid, [r, noReg, noReg, noReg]})
d.entries.push({ id: v... | Typescript |
.WriteLine($"Error running preprocess_data.py: {ex.Message}");
// }
// }
// RunStreamlit();
// }
private Process _streamlitProcess;
private void RunStreamlit()
{
var currentDir = Directory.GetCurrentDirectory();
var mlFolderPath = Path.Combine(currentDir, "M... | C# |
ument.body.style.zoom=1,window.addEventListener("message",(({data:t,origin:e})=>{if(e===window.origin)try{if(t&&"string"==typeof t&&t.startsWith(c)){const[,e]=t.split(","),i=Number.parseFloat(e);Number.isNaN(i)||(m=i)}}catch(t){console.error(t)}})));let n=!1;Array.from(e.querySelectorAll("svg[data-marpit-svg]"),(t=>{va... | HTML |
(),
CLIC_COM_R = counter(),
CLIC_TAKEOFFTRIMF15 = counter(),
CLIC_COL_LIGHTS = counter(),
CLIC_TEST = counter(),
} | Lua |
before ^$*+?.()|{}[] after'.match(new RegExp('\\^\\$\\*\\+\\?\\.\\(\\)\\|\\{\\}\\[\\]'))",
String(["^$*+?.()|{}[]"]),
String('before ^$*+?.()|{}[] after'.match(new RegExp('\\^\\$\\*\\+\\?\\.\\(\\)\\|\\{\\}\\[\\]'))));
// 'before ^$*+?.()|{}[] after'.match(/\^\$\*\+\?\.\(\)\|\{\}\[\]/) (using literal)
n... | JavaScript |
开发了一个mac地址输入框,主要实现的功能有限制输入符合条件的字符1-9,a-f,并每隔两位可以自动添加用于分割的冒号。项目屏蔽了react的事件处理,同时使用setSelectionRange来手动控制光标。可以查看项目的<a href="http://hpoenixf.com/demo/macInput.html">demo</a>,<a href="https://github.com/hpoenixf/rx-macInput" target="_blank" rel="external">项目地址</a></p>
<h4 id="RxJS简介"><a href="#RxJS简介" class="headerlink" tit... | HTML |
BUS: Actor + 'static,
{
type Output = BusTransaction<BUS>;
fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
if let Ok(val) = self.shared.begin_transaction() {
if val {
return Poll::Ready(BusTransaction::new(self.arbitrator, self.bus));
... | Rust |
send_json({"event": "initial_data", "data": initial_data})
# Keep connection alive and handle incoming messages
while True:
try:
# Wait for incoming messages (ping/pong, etc.)
await websocket.receive_text()
# Echo back for keep-alive
... | Python |
AddZoneArea("Seafarer's Roost", "freporte-03", "freporte-03");
AddZoneAreaBox("Seafarer's Roost", -182.084061f, -797.880615f, 100f, -265.703278f, -909.308350f, -84.705994f);
AddZoneArea("Armor by Ikthar");
AddZoneAreaBox("Armor by Ikthar", 83.689796f, -154.161804f, 2.793000f, 28.222... | C# |
// Copyright 2007-2010 The Apache Software Foundation.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use
// this file except in compliance with the License. You may obtain a copy of the
// License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by... | C# |
in the plugin. Only useful for some hosts.
SpeakerArrangementType int32
// Speaker configuration.
Speaker struct {
Azimuth float32
Elevation float32
Radius float32
Reserved float32
Name ascii64
Type SpeakerType
Future [28]byte
}
// SpeakerType of particular speaker.
SpeakerType... | Go |
width:2px;
}
.width-05{
width:0.25rem;
}
.width-1{
width:0.5rem;
}
.width-105{
width:0.75rem;
}
.width-2{
width:1rem;
}
.width-205{
width:1.25rem;
}
.width-3{
width:1.5rem;
}
.width-4{
width:2rem;
}
.width-5{
width:2.5rem;
}
.width-6{
width:3rem;
}
.width-7{
width:3.5rem;
}
.width-8{
width:4rem;
}... | CSS |
u.words[0] = *tokp;
u.words[1] = nargs;
u.words[2] = nret;
va_start(list, outputs);
for (i = 0; i < nargs; ++i)
u.words[i+3] = va_arg(list, unsigned long);
va_end(list);
/*
* RTAS doesn't use floating point.
* Or at least, according to the CHRP spec we enter RTAS
* with FP disabled, and it doesn't change... | C |
origin, 0, CODE_KECCAK_LEAF_KEY)
(tx.target, 0, VERSION_LEAF_KEY)
(tx.target, 0, BALANCE_LEAF_KEY)
(tx.target, 0, NONCE_LEAF_KEY)
(tx.target, 0, CODE_SIZE_LEAF_KEY)
(tx.target, 0, CODE_KECCAK_LEAF_KEY)
```
#### Write events
```
(tx.origin, 0, NONCE_LEAF_KEY)
```
if `value` is non-zero:
```
(tx.origin, 0, BALANCE_LE... | Markdown |
{}, "sub.ubuntu.com")
require.NoError(t, err, "Error when checking allowed")
require.True(t, allowed, "request was rejected when it should be allowed")
// Case 4 | EPID1 | DstID1 | 53 | UDP | sub.ubuntu.com | Allowed
allowed, err = s.proxy.CheckAllowed(epID1, udpProtoPort53, dstID1, netip.Addr{}, "sub.ubunt... | Go |
-decoration: none;
}
a.tabledrag-handle .handle {
margin-top: 4px;
height: 13px;
width: 13px;
background: url(../../misc/draggable.png) no-repeat 0 0;
}
a.tabledrag-handle-hover .handle {
background-position: 0 -20px;
}
/*
** Teaser splitter
*/
.joined + .grippie {
height: 5px;
background-position: cente... | CSS |
rame, selectmode='day', year=2025, month=3, day=27, width=12)
elif field == "11. Donation Time":
entry = tk.Entry(main_frame, width=40)
entry.insert(0, strftime('%H:%M:%S'))
elif field == "13. Receipt Number":
entry = tk.Entry(main_frame, width=40)
entry.insert(0, generate_receip... | Python |
DefaultTargetPlatformOverride = TargetPlatform.android;
isLogged = false;
isAutoLogAppEventsEnabled = false;
facebookAuth = FacebookAuth.getInstance();
TestDefaultBinaryMessengerBinding.instance.defaultBinaryMessenger
.setMockMethodCallHandler(
channel,
(M... | Dart |
().text("A comment that will be with invalid underline").text("===89s").String()
tokens, err := parser.GenerateTokens(specText, "")
c.Assert(err, IsNil)
c.Assert(len(tokens), Equals, 2)
c.Assert(tokens[0].Kind, Equals, gauge.CommentKind)
c.Assert(tokens[0].Value, Equals, "A comment that will be with invalid und... | Go |
# define get_f64(which) fsd which, 0(a1); j 2f
# define put_f64(which) fld which, 0(a1); j 2f
#endif
.macro fp_access_prologue
/*
* Compute jump offset to store the correct FP register since we don't
* have indirect FP register access
*/
sll t0, a0, 3
la t2, 1f
add t0, t0, t2
li t1, SR_FS
csrs CSR_STATUS, ... | Assembly |
param reason Důvod ztráty spojení
*/
protected _socketDisconnected(reason) {
this._disconnected.next();
}
/**
* Základní CRUD handler na jednotlivá volání CRUD
*
* @param event Událost, na kterou se má reagovat
*/
private _changeServiceEventHandler(event: ChangeServiceEvent<T>): void {
i... | Typescript |
旗,全世界无产阶级和一切革命人民正集合在这面大旗下胜利前进。一面是美帝国主义和它的帮凶苏联现代修正主义集团支撑着的反革命黑旗,一切帝国主义、现代修正主义和各国反动派正麇集在这面破旗下垂死挣扎。你是革命者,你是马克思列宁主义者,你就必然拥护伟大领袖毛主席,拥护战无不胜的毛泽东思想;你是反革命,你是反马克思列宁主义者,你就必然反对毛主席,反对毛泽东思想。
</p>
<p>
对待毛主席和毛泽东思想的态度,在我们这个伟大的时代,已经成为革命和反革命、真革命和假革命、马克思列宁主义和反革命修正主义最灵验的试金石和分水岭。
</p>
<p>
以中国赫鲁晓夫为首的党内最大的一小撮走资本主义道路的当权派,出于反革命复辟阴... | HTML |
const ThisType&) noexcept = default;
#endif
constexpr FunctionRef(ThisType&&) noexcept = default;
constexpr ThisType& operator=(ThisType&&) noexcept = default;
#endif
// Construct a FunctionRef which wraps the given callable.
template <typename F>
constexpr FunctionRef(F&& f) noexcept
: m_o... | C++ |
deconnect.Backends.LanBackend
import android.net.nsd.NsdManager
import android.net.nsd.NsdServiceInfo
import android.util.Log
import java.util.LinkedList
class NsdResolveQueue {
val LOG_TAG: String = "NsdResolveQueue"
private val nsdManager: NsdManager
private val lock: Any
private data class Pendin... | Kotlin |
#include <Jolt/Physics/Collision/Shape/SphereShape.h>
#include <Jolt/Physics/Collision/Shape/MeshShape.h>
#include <Jolt/Physics/Collision/Shape/StaticCompoundShape.h>
#include <Jolt/Geometry/Triangle.h>
#include <Jolt/Physics/Body/BodyCreationSettings.h>
#include <Layers.h>
JPH_IMPLEMENT_RTTI_VIRTUAL(EnhancedInternal... | C++ |
} seconds old)`);
return scheduleData;
}
throw err;
}
};
export const getCurrentProgramme = async (): Promise<Programme> => {
const programmes = await getScheduleMemoized();
const currTime = now() + config.safetyBuffer;
const programme = programmes.find(
({ startDate, endDate }) => currTime... | Typescript |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.EntityFrameworkCore;
using WebApp_KetNoiViecLam.Data;
using WebApp_KetNoiViecLam.Models;
namespace WebApp_KetNoiViecLam.Controllers... | C# |
rnodeAST vn) {
SortedSet<VarnodeAST> sset = locTree.tailSet(vn);
if (!sset.isEmpty()) {
VarnodeAST oldvn = sset.first();
if (oldvn.equals(vn)) { // Set already contains this Varnode
oldvn.descendReplace(vn);
return oldvn;
}
}
locTree.add(vn);
// defTree.add(vn);
return vn;
}
public voi... | Java |
207EBC 00203B1C FC 20 08 50 */ fneg f1, f1
lbl_80207EC0:
/* 80207EC0 00203B20 C0 02 99 94 */ lfs f0, lbl_80641F94-_SDA2_BASE_(r2)
/* 80207EC4 00203B24 FC 01 00 40 */ fcmpo cr0, f1, f0
/* 80207EC8 00203B28 4C 40 13 82 */ cror 2, 0, 2
/* 80207ECC 00203B2C 40 82 00 0C */ bne lbl_80207ED8
/* 80207ED0 00203B30 C0 23 0... | Assembly |
niente",
[1973] = "Orbe de engaño",
[1974] = "Brazales de punzada mental",
[1975] = "Espada magna vieja de Pysan",
[1976] = "Martillo de escoria",
[1978] = "Guantes de garra de lobo",
[1979] = "Muro de los muertos",
[1980] = "Sortija del submundo",
[1981] = "Chaleco de malla de hielo",
[1982] = "Hoja de la noche",
[198... | Lua |
https://docs.agora.io/en/Voice/API%20Reference/web/interfaces/agorartc.client.html#enabledualstream)), the image enhancement options apply only to the high-video stream.
* - If image enhancement is enabled, you must call this method to disable it before calling the following methods: leave, stop, removeTrack, unpubl... | Typescript |
etched ticket and expect an error
try {
await secondInstance!.save();
} catch (error) {
return done();
}
throw new Error('Should not reach this point');
});
it('Increments the version number on multiple saves', async()=> {
const ticket = Ticket.build({
title: 'concert',
price: 20,
userid: '123... | Typescript |
, filePtr);
fread(m_strGroupGlossMap, sizeof(CChar), MAX_NAME_SIZE, filePtr);
if (m_hasGroupGlossMap && tempScene->m_geometries.size() >= j + 1)
tempScene->m_geometries[j]->m_groups[k]->SetGlossMap(m_strGroupGlossMap);
CChar m_strGroupDirtMap[MAX_NAME_SIZE];
CBool m_hasGroupDirtMap;
... | C++ |
}
#dashboard_right_now .warning a:before,
#dashboard_right_now .warning span:before {
color: #d54e21;
}
/* Dashboard Quick Draft */
#dashboard_quick_press .inside {
margin: 0;
padding: 0;
}
#dashboard_quick_press div.updated {
margin-bottom: 10px;
border: 1px solid #eee;
border-width: 1px 1px 1px 0;
}
#dashb... | CSS |
lay.png") no-repeat scroll 0 0 transparent; */
}
.lg-outer .lg-has-youtube:hover .lg-video-play {
/* background: url("img/youtube-play.png") no-repeat scroll 0 -60px transparent; */
}
.lg-outer .lg-video-object {
width: 100% !important;
height: 100% !important;
position: absolute;
top: 0;
left: 0;
}
.lg-out... | CSS |
:block;z-index:-1;overflow:hidden;filter:contrast(309%) brightness(5%) saturate(32) grayscale(96%)}img.imageSourceBottom{top:-114px;left:0;margin:auto;display:block;z-index:-1;overflow:hidden;filter:contrast(309%) brightness(5%) saturate(32) grayscale(96%)}.recent-cover .hover-homepage-item{position:relative;top:-338px... | CSS |
3 3.82781,-2.248329 5.74023,-3.375 0.0396,-1.199558 -0.0142,-2.413731 0.24219,-3.587891 -0.0222,-1.061754 -1.27193,-1.818341 -2.21354,-1.303916 -0.4361,0.07207 -0.95475,0.446837 -1.31358,0.0097 -0.30768,-0.168724 -0.69727,-0.282971 -1.04124,-0.182359 z" />
<path
id="path474"
style="fill:#000000;stroke... | HTML |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.