content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
500)
pins.digitalWritePin(DigitalPin.P15, 0)
let strip = neopixel.create(DigitalPin.P15, 4, NeoPixelMode.RGB)
strip.setPixelColor(0, neopixel.colors(NeoPixelColors.Blue))
strip.setPixelColor(1, neopixel.colors(NeoPixelColors.Red))
strip.setPixelColor(2, neopixel.colors(NeoPixelColors.Blue))
strip.setPixelColor(3, neopi... | Typescript |
y.Id);
await partyJoinTcs.Task;
Assert.Equal(2, createdParty.Presences.Count());
await socket1.CloseAsync();
await socket2.CloseAsync();
}
[Fact(Timeout = TestsUtil.TIMEOUT_MILLISECONDS)]
public async Task ShouldAddAndRemovePresencesMatch()
... | C# |
equals('foo'));
unittest.expect(o.pacingType!, unittest.equals('foo'));
}
buildCounterPacing--;
}
core.List<core.String> buildUnnamed145() => ['foo', 'foo'];
void checkUnnamed145(core.List<core.String> o) {
unittest.expect(o, unittest.hasLength(2));
unittest.expect(o[0], unittest.equals('foo'));
unittes... | Dart |
transform(value: string): string {
const regex = /(.{0,4})(.{0,4})(.{0,4})(.{0,4})(.{0,4})(.{0,4})(.{0,4})(.{0,4})(.{0,2})/;
const found = value.match(regex);
if (!found) {
return value;
}
return found
.slice(1)
.filter(o => !!o)
.join(' ');
}
}
@Pipe({ name: 'ibanAcoun... | Typescript |
HEAP | CODE | DATA | RWX | RODATA
───────────────────────────────────────────────────────[ REGISTERS ]────────────────────────────────────────────────────────
RAX 0x7ffceaf11160 ◂— 0x3030303030303030 ('00000000')
RBX 0x0
RCX 0x7ff756e9b690 (__read_nocancel+7) ◂— cmp rax, -0xfff
RDX 0x60
RDI 0x7ffcea... | Markdown |
.a=1`, we can't propagate t1.a=1 to t2.a=1,
// since after this propagation, t2.a will never be null, which is incorrect for this outer join query.
type propOuterJoinConstSolver struct {
basePropConstSolver
joinConds []Expression
filterConds []Expression
outerSchema *Schema
innerSchema *Schema
// TODO: remove t... | Go |
embers([
"Extras",
"Season 1",
"Season 10",
]);
});
});
/*Combo box that have the search project options
חיפוש לפי
שפ
תחום
select - 2 way binding prop that change the option chosen in the combo box
*/
import { Component, EventEmitter, Input, Output } from '@angul... | Typescript |
sceneB);
// See if it needs to swap src and dst for merging
if (!mergeOps.decideFirstIntoSecond(src, dst)) {
SceneWorkingGraph tmp = dst;
dst = src;
src = tmp;
}
// Don't merge in this situation
if (isSubset(src, dst)) {
if (verbose != null)
verbose.println("Merge results: src=" + ... | Java |
;
} else {
throw new ChainError('Invalid IDs chain', idsChain);
}
});
return {node: neededNode, idsChain};
}
}
/**
* Created by Administrator on 2020/6/21.
*/
function minimumTotal(triangle: number[][]): number {
let res = 0;
let dp: number[][] = []... | Typescript |
ontrols the password file and commands which are
* used to modify it.
*
* The valid options are
*
* -c config file name (default $HOME/.srootdpass.conf)
* -p passwd file name (default $HOME/.srootdpass)
*
* Exit status:
* 0 - success
* 1 - permission denied
* 2 - invalid combination of options
* 3 - unexpe... | C |
xt.includes, context.excludes)
val sourceArchive = createTempFile("fossid-source-archive", ".zip")
logger.info {
"Creating archive ${sourceArchive.toFile().absolutePath}..."
}
try {
path.packZip(sourceArchive.toFile(), overwrite = true)
} finally {
... | Kotlin |
s .weiter ; nein
bset.l d0,d1
.weiter: suba.l #24,a0 ; nchstes Objekt
dbra d0,.test
rts
OkButton: move.w d0,intin
clr.l intin+12
bsr ObjcChange
bsr NewProtDrv
move.l CurrentVec,a0 ; d... | Assembly |
::readOutgoing()
{
// SCTP_DEBUG("read outgoing");
std::lock_guard<std::mutex> lock(d->mutex);
return d->outgoingPacketsQueue.isEmpty() ? QByteArray() : d->outgoingPacketsQueue.dequeue();
}
void Association::writeIncoming(const QByteArray &data)
{
// SCTP_DEBUG("write in... | C++ |
.75V6h-1.5V3.81L8.5 8.56 7.44 7.5l4.748-4.75H10v-1.5h4.75z' fill='%23e5e5e5' fill-rule='evenodd'/%3E%3C/svg%3E")}.p-icon--drag{background-image:url("data:image/svg+xml,%3Csvg width='16' height='16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 12.49a1.5 1.5 0 110 3 1.5 1.5 0 010-3zm-6 0a1.5 1.5 0 110 3 1.5 1.5 0 ... | CSS |
-- ROBLOX upstream: https://github.com/facebook/react-native/blob/v0.68.0-rc.2/Libraries/Components/ScrollView/ScrollViewViewConfig.js
--[[*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tr... | Lua |
on:
{{< code >}}
```linux
$ k6 run --vus 10 --duration 30s script.js
```
```docker
$ docker run --rm -i grafana/k6 run --vus 10 --duration 30s - <script.js
```
```windows
PS C:\> cat script.js | docker run --rm -i grafana/k6 run --vus 10 --duration 30s -
```
{{< /code >}}
_Running a 30-second, 10-VU load test_
{... | Markdown |
> make_reverse_iterator(BidirectionalIterator x)
{
return reverse_iterator<BidirectionalIterator>(x);
}
} // namespace boost
#endif // BOOST_REVERSE_ITERATOR_23022003THW_HPP
// Copyright (C) 2007 The Trustees of Indiana University.
// Authors: Douglas Gregor
// Andrew Lumsdaine
// Use, modificati... | C++ |
is.usedBeds.Add(pawn2, andRemoveFirstAvailableBedFor2);
}
}
}
}
}
}
Caravan_BedsTracker.tmpUsableBeds.Clear();
}
public void Notify_CaravanSpawned()
{
this.RecalculateUsedBeds();
}
public void Notify_PawnRemoved()
{
this.RecalculateUsedBeds();
}
public Buildi... | C# |
{
println!("id: {}, area: {}", id, contained_area_count[&id]);
}
}
println!("{:?}", on_edge_ids);
}
fn day6b(mut matrix: Vec<Vec<Option<usize>>>, coordinates: &[(usize, (usize, usize))], distance_threshold: isize) {
for row in 0..matrix.len() {
for col in 0..matrix[0].len() {
... | Rust |
/* SPDX-License-Identifier: GPL-2.0-only */
/* VR Settings for each domain */
#ifndef _SOC_VR_CONFIG_H_
#define _SOC_VR_CONFIG_H_
#include <fsp/api.h>
struct vr_config {
/*
* The below settings will take effect when this is set to 1
* for that domain.
*/
int vr_config_enable;
/* Power State X current cuto... | C |
iderBarBox .chatBox-btn-box[data-v-d028d424]{display:flex;justify-content:space-between}.siderBarBox .chatBox[data-v-d028d424]{padding:24px 12px 0;height:calc(100vh - 68px);overflow:auto}.siderBarBox .chatBox .createdChat[data-v-d028d424]{cursor:pointer;color:#574ffe;font-size:15px;font-weight:500;display:flex;align-it... | CSS |
| |
// | | +--- [ response ]
// | | | |
// | | | +--- [ header hash1 ]: Response1
// | | | +--- [ header hash2 ]: Response2
// | | | +--- [ header hash3 ]: Response3
// | | | |
// | | | +--- ...
// | | |
// | | +--- [ ... | Go |
.CommandHandler
import eu.vendeli.tgbot.annotations.CommonHandler
import eu.vendeli.tgbot.annotations.InputHandler
import eu.vendeli.tgbot.annotations.UnprocessedHandler
import eu.vendeli.tgbot.annotations.UpdateHandler
import eu.vendeli.tgbot.types.component.UpdateType
class TgAnnotationsModel {
@CommandHandler([... | Kotlin |
#
#
# Copyright (C) 2010 Google Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and ... | Python |
EVENT ARCHI_SOC_EVENT_CLUSTER_ON_OFF
#define ARCHI_SOC_EVENT_PMU_NB_EVENTS 7
#define ARCHI_SOC_EVENT_GPIO 42
#define ARCHI_SOC_EVENT_RTC_APB_IRQ 43
#define ARCHI_SOC_EVENT_RTC_IRQ 44
#define ARCHI_SOC_EVENT_RTC_FIRST_EVT ARCHI_SOC_EVENT_RTC_APB_IRQ
#define ARCHI_SOC_EVENT_ADV_TIMER0 ... | C |
tte_data[high] = output[0];
output[0] = palette_data[high | low7];
}
//#include <Windows.h>
//enum { SAMPLE_COUNT = 128 };
//double samples[SAMPLE_COUNT];
extern int sub_render(void* rgba) {
return 0;
uint32_t* const data = rgba;
// 生成调色板颜色
//memset(data, 0, 256 * 240 * 4);
{
for (int ... | C |
�信
*/
@SerializedName("TakerPhone")
@Expose
private String TakerPhone;
/**
* 开票类型:
1:增值税专用发票;
2:增值税普通发票;
3:增值税电子发票;
4:增值税卷式发票;
5:区块链电子发票。
若该字段不填,或值不为1-5,则认为开具”增值税电子发票”
*/
@SerializedName("InvoiceType")
@Expose
private Long InvoiceType;
/**
* 发票结果回传地址
*/
@Seriali... | Java |
top: 20px;
left: 20px;
right: 20px;
width: auto;
margin: 0;
}
.modal.fade {
top: -100px;
}
.modal.fade.in {
top: 20px;
}
}
@media ( max-width :480px) {
.nav-collapse {
-webkit-transform: translate3d(0, 0, 0);
}
.page-header h1 small {
display: block;
line-height: 20px;
}
input[type="check... | CSS |
347l-3.766 1.98a.75.75 0 0 1-1.088-.79l.72-4.194L.818 6.374a.75.75 0 0 1 .416-1.28l4.21-.611L7.327.668A.75.75 0 0 1 8 .25zm0 2.445L6.615 5.5a.75.75 0 0 1-.564.41l-3.097.45 2.24 2.184a.75.75 0 0 1 .216.664l-.528 3.084 2.769-1.456a.75.75 0 0 1 .698 0l2.77 1.456-.53-3.084a.75.75 0 0 1 .216-.664l2.24-2.183-3.096-.45a.75.75... | CSS |
href],.badge-important[href]{background-color:#953b39}.label-warning,.badge-warning{background-color:#e36b23}.label-warning[href],.badge-warning[href]{background-color:#bb5518}.label-success,.badge-success{background-color:#468847}.label-success[href],.badge-success[href]{background-color:#356635}.label-info,.badge-inf... | CSS |
.EnchantCode};
else
gOutfitter_SelectedOutfit.Items[pSlotName] = {Code = 0, SubCode = 0, Name = "", EnchantCode = 0};
end
else
gOutfitter_SelectedOutfit.Items[pSlotName] = nil;
end
gOutfitter_DisplayIsDirty = true;
end
function Outfitter_GetSpecialOutfit(pSpecialID)
for vOutfitIndex, vOutfit in gOutfitt... | Lua |
3.org/1999/xlink" width="1408" height="1408" preserveAspectRatio="xMidYMid meet" viewBox="0 0 1408 1408"><path fill="currentColor" d="M1152 672v64q0 14-9 23t-23 9H768v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23V768H288q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352V288q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128... | Dart |
// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
// SPDX-License-Identifier: BSD-3-Clause
/**
* @class vtkPlotPie
* @brief Class for drawing a Pie diagram.
*
*
*/
#ifndef vtkPlotPie_h
#define vtkPlotPie_h
#include "vtkChartsCoreModule.h" // For export macro
#include "vtkPlo... | C |
在我们的 *microblog* 应用程序中,在页面的顶部需要一个导航栏。在导航栏里面有编辑账号,登出等等的链接。
我们可以在 *index.html* 模板中添加一个导航栏,但是随着应用的扩展,越来越多的模板需要这个导航栏,我们需要在每一个模板中复制这个导航栏。然而你必须要保证每一个导航栏都要同步,如果你有大量的模板,这需要花费很大的力气。
相反,我们可以利用 Jinja2 的模板继承的特点,这允许我们把所有模板公共的部分移除出页面的布局,接着把它们放在一个基础模板中,所有使用它的模板可以导入该基础模板。
所以让我们定义一个基础模板,该模板包含导航栏以及上面谈论的标题(文件 *app/templates/base.html... | Markdown |
d)(out < end ?
257 + (end - out) : 257 - (out - end));
state->hold = hold;
state->bits = bits;
return;
}
/*
inflate_fast() speedups that turned out slower (on a PowerPC G3 750CXe):
- Using bit fields for code structure
- Different op definition to avoid & for extra... | C++ |
console.log("Personnes récupéréesX");
console.log("__"+JSON.stringify(this.personsInChargeOf));
}
);}
);
this.feedBackDel();
//this.onSelect(this.selectedCategorie);
}
}
export interface IProduct {
id:string;
imageUrl:string;
price:number;
title:... | Typescript |
Map = oldMap.mapAtPuttingCanDestroy(key, value, true)
if (writeType.isMapType)
{
// Just check the new size, new key, and new value.
if (!writeType.sizeRange.rangeIncludesLong(
newMap.mapSize.toLong())
|| !key.isInstanceOf(writeType.keyType)
|| !value.isInstanceOf(writeType.valueType))
{
t... | Kotlin |
/*
* Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
*
* Licensed under the Apache License 2.0 (the "License"). You may not use
* this file except in compliance with the License. You can obtain a copy
* in the file LICENSE in the source distribution or at
* https://www.openssl.org/source/licens... | C |
Selection
*/
public boolean isMultiSelection()
{
return multiSelection;
}
/**
* @param multiSelection the multiSelection to set
*/
public void setMultiSelection(boolean multiSelection)
{
this.multiSelection = multiSelection;
}
/**
* @return the selection
*/
p... | Java |
ption::is_none")]
pub name: Option<String>,
#[serde(rename = "nameChangeFlag", skip_serializing_if = "Option::is_none")]
pub name_change_flag: Option<bool>,
#[serde(rename = "partnerId", skip_serializing_if = "Option::is_none")]
pub partner_id: Option<String>,
#[serde(rename = "profileIconId", s... | Rust |
harmonyhub/client-ws';
import { Explorer, HubData } from '@harmonyhub/discover';
async function run(): Promise<void> {
const explorer = new Explorer();
explorer.on(Explorer.Events.ONLINE, (data: HubData) => {
console.log('reachable ', data.fullHubInfo);
connectToHub(data);
});
explorer.on(Explorer.E... | Typescript |
kip_next_compile = GL_TRUE;
} else if (file_exists(cg_path)) {
char *buffer;
size_t size;
file_load(cg_path, (uint8_t **) &buffer, &size);
glShaderSource(shader, 1, &string, &size);
strcpy(next_shader_fname, gxp_path);
free(buffer);
skip_next_compile = GL_F... | C |
설정을 변경하지 못하게 하거나 현재 네트워크 하드웨어가 지원되지 않는 경우 몇 가지 옵션이 있습니다:
- 셀룰러 핫스팟을 사용해 봅니다. 이 방법은 일반적으로 연결이 불안정해지므로 권장하지 않습니다.
- LAN 어댑터를 사용할 수 있습니다. `ASIX AX88772` 칩셋이 있어야 하거나 "Wii와 호환"되어야 합니다. Here is a [recommended LAN adapter by Plugable](https://a.co/d/g8XvMDp).
- Note that variants of the chipset (eg. `ASIX AX88772E`) **wil... | Markdown |
amd.js ***!
\****************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__(/*! ./raphael.core */ "./dev/raphael.core.js"), __webpack_require__(/... | JavaScript |
looking like:
* ```
* ⌌-------------⌍
* | | a:Any|
* |--|----------|
* | 0| "text"|
* | 1| { b:2 }|
* | 2| [6, 7, 8]|
* ⌎-------------⌏
* ```
*/
public enum class TypeClashTactic {
ARRAY_AND_VALUE_COLUMNS,
ANY_COLUMNS,
}
}
internal co... | Kotlin |
tx->tx_txg & TXG_MASK;
list_t *list = &dn->dn_dirty_records[txgoff];
ASSERT(dmu_tx_is_syncing(tx));
ASSERT(dnp->dn_type != DMU_OT_NONE || dn->dn_allocated_txg);
DNODE_VERIFY(dn);
ASSERT(dn->dn_dbuf == NULL || arc_released(dn->dn_dbuf->db_buf));
mutex_enter(&dn->dn_mtx);
if (dn->dn_allocated_txg == tx->tx_txg... | C |
gba(179, 180, 179, 0.75);
}
.floating-sidebar .sidebar-overlay {
background: rgba(0, 0, 0, 0.85);
}
.cs-pxabnsnfns00001110101 .overlay-message {
background: rgba(0, 0, 0, 0.85);
}
.cs-pxabnsnfns00001110101 .top-ui-bg, .cs-pxabnsnfns00001110101 .bottom-ui-bg, .cs-pxabnsnfns00001110101 .right-ui-bg, .cs-pxabnsnfns000... | CSS |
mnt/ssd0/cache,/mnt/ssd1/cache
mediumtype: SSD
quota: 4Gi
```
为了启用Alluxio的单层多目录存储配置,唯一要做的修改是在`path`属性中增加若干新的目录,这些目录之间需以逗号分隔.以上述AlluxioRuntime资源对象的yaml配置为例,`path`属性中包含了"/mnt/ssd0/cache"和"mnt/ssd1/cache",这意味着Alluxio将同时使用这两个目录作为数据缓存的实际存储位置.
上述yaml配置同样说明了单层多目录存储配置的一个实用场景: 当应用的数据访问瓶颈来自于存储设备本身时(例如:磁盘带宽上限),上... | Markdown |
ust(first3.apply(word), last3.apply(word))
.flatMap { Stream -> Stream }
}
// Bonus for double letter
val bonusForDoubleLetter = Function<String, Flux<Int>> { word ->
Flux.from<Int>(toBeMaxed.apply(word)
.flatMap<Int>(scoreOfALetter)
... | Kotlin |
|
| Static | 60 |
| RIP | 100 |
| OSPF ASE | 150 |
| OSPF NSSA | 150 |
| IBGP | 200 |
| EBGP | 20 |
# 路由的度量
路由的度量标示出了这条路由到达指定的目的地址的代价,通常以下因素会影响到路由的度量。
### **... | Markdown |
kubelet if CN does not have 'system:node:' prefix": {
req: newCSR(kubeletClientPEMOptions, pemOptions{cn: "not-prefixed"}),
usages: kubeletClientUsages,
exp: false,
},
"does not default to kube-apiserver-client-kubelet if it has an unexpected usage": {
req: newCSR(kubeletClientPEMOptions),
u... | Go |
0BytesInlineArrayBoolBoolResult = 0;
int passUint8Boolx9Struct10BytesInlineArrayBoolBoolCalculateResult() {
int result = 0;
result += passUint8Boolx9Struct10BytesInlineArrayBoolBool_a0;
result += passUint8Boolx9Struct10BytesInlineArrayBoolBool_a1 ? 1 : 0;
result += passUint8Boolx9Struct10BytesInlineArrayBoolB... | Dart |
# encoding: utf-8
import pytest
from tests import utils
from app import create_app
@pytest.yield_fixture(scope='session')
def flask_app():
app = create_app(flask_config_name='testing')
from app.extensions import db
with app.app_context():
db.create_all()
yield app
db.drop_all()
... | Python |
typeMultiSig = byte(0x02)
nameOneSig = "sig"
nameMultiSig = "multi"
)
var _ keys.Signable = Sig{}
var TxMapper data.Mapper
func init() {
TxMapper = data.NewMapper(Sig{}).
RegisterImplementation(&OneSig{}, nameOneSig, typeOneSig).
RegisterImplementation(&MultiSig{}, nameMultiSig, typeMultiSig)
}
/*
DO NOT US... | Go |
neskapersneskaf" +
"úlafinnskafídjeyskafæreyskafranskavesturfrísneskaírskaskosk gelískagalíanskagvar" +
"anígújaratímanskahásahebreskahindíhírímótúkróatískahaítískaungverskaarmenskahere" +
"róalþjóðatungaindónesískainterlingveígbósísúanjíínúpíakídóíslenskaítalskainúktit" +
"útjapanskajavanskageorgískakongóskakíkújú... | Go |
def check_model_list():
"""Check the model list inside the transformers library."""
models_dir = os.path.join(PATH_TO_DIFFUSERS, 'models')
_models = []
for model in os.listdir(models_dir):
model_dir = os.path.join(models_dir, model)
if os.path.isdir(model_dir) and '__init__.py' in os.lis... | Python |
{ x: 10, y: 0 },
]),
).toEqual({ x: 5, y: 0 });
});
test('vertical line', () => {
expect(
getClosestPointOnLine({ x: 5, y: 5 }, [
{ x: 0, y: 0 },
{ x: 0, y: 10 },
]),
).toEqual({ x: 0, y: 5 });
});
test('point already on line', () => {
expect(
getClosest... | Typescript |
ace period(宽限期)已经过去了,所以所有在list_replace_rcu()函数之前开始的读操作都已经完成了。任何读取5、6、7元素的读线程都被保证已经退出了它们的RCU读侧临界区,因此被禁止继续持有节点p的引用。,如下面的5、6、7元素周围的黑色细边框所示。就读线程而言,又回到了单一路径的链表同时更新了节点的数据。

kfree()在第7行完成后,列表将显示如下:
) ? PLATFORM : "Universal", url?.query?.subtype], DataBase);
$.log(`⚠ ${$.name}`, `Settings.Switch: ${Settings?.Switch}`, "");
switch (Settings.Switch) {
case true:
default:
// 获取字幕类型与语言
const Ty... | JavaScript |
});
test('correctly parses multiline raw html', () {
testHtmlConversion(['multiple', 'small', 'lines']);
});
test('correctly parses multiline raw html with whitespace', () {
testHtmlConversion(['if (true)', ' goto label;', '', '', 'label']);
});
test('unescapes files', () {
... | Dart |
+ P2); wB += invIB * (Cross(cp1.rB, P1) + Cross(cp2.rB, P2));
*/
P1.set(normal).mulLocal(d.x)
P2.set(normal).mulLocal(d.y)
temp1.set(P1).addLocal(P2)
temp2.set(temp1).mulLocal(mA)
vA.subLocal(temp2)
temp2.set(temp1).mulLocal(mB)
... | Kotlin |
](https://github.com/ant-design/ant-design/pull/39114) [@MARKX97](https://github.com/MARKX97)
- 🐞 Fix `@ant-design/cssinjs` ssr warning in dev mode caused by dynamic hashId. [#39069](https://github.com/ant-design/ant-design/pull/39069)
- 🐞 Fix FloatButton.Group flicking on closing. [#39061](https://github.com/ant-des... | Markdown |
nic_itm; // logs messages over ITM; requires ITM support
// extern crate panic_semihosting; // logs messages to the host stderr; requires a debugger
// use cortex_m::asm;
use cortex_m_rt::entry;
use cortex_m_semihosting::hprint;
use stm::{interrupt, Interrupt, NVIC};
use stm::{usart1, GPIOB, U... | Rust |
CardSettings.of(context)?.labelWidth ??
120.0,
child: widget.requiredIndicator != null
? Text(
(widget.label) + ' *',
style: ls,
)
: Text(
... | Dart |
-207.9c7.1-9.9 16.4-18 27.2-23.7l29.3-15.5c18.5-9.8 9.7-11.9 135.6-138.9 1-4.8 1-7.3 3.6-8 3-.7 6.6-1 6.3-4.6l-.4-4.6c-.2-1.9 1.3-3.6 3.2-3.6 4.5-.1 13.2 1.2 25.6 10 12.3 8.9 16.4 16.8 17.7 21.1.6 1.8-.6 3.7-2.4 4.2l-4.5 1.1c-3.4.9-2.5 4.4-2.3 7.4.1 2.8-2.3 3.6-6.5 6.1zM230.1 36.4c3.4.9 2.5 4.4 2.3 7.4-.2 2.7 2.1 3.5 6... | JavaScript |
derivative works from or distribute this
software in any way, or make it accessible to any third party,
without first obtaining the written permission of H&Co.
For more information, please visit us at http://typography.com.
290530-129843-20190506
*/
@font-face{ font-family: "Whitney SSm A"; src: url(data:applicat... | CSS |
// Convert tststr2 to uppercase
toupper tststr2, buffer
// Setup the parameters to print
// and then call the kernel to do it.
MOV X2,X0 // return code is the length of the string
MOV X0, #1 // 1 = StdOut
ADRP X1, buffer@PAGE // string to print
ADD X1, X1, buffer@PAGEOFF
MOV X16, #4 // Unix write syst... | Assembly |
jit.dll`,找到 `CILJit::compileMethod` 函数,看到自动分析出了是 `stdcall` 传参,也可以通过调试来确定。我们要获取的是第三个参数 `struct CORINFO_METHOD_INFO* info`,断在 `CILJit::compileMethod` 函数后直接通过 `esp+C` 取到。

随后找到 `Compiler::lvaInitTypeRef` 方法,结合调试定位到 `localsSig = info.compCompHnd->... | Markdown |
Category.Comma && a.lexeme === ',')
expect(actual.length).to.be.equal(5)
})
it('tokenises numbers', () => {
const document = 'mov 25, #26\nadd -27, @28\na123'
const scanner = new Scanner()
const tokens = scanner.scan(document, Parser.DefaultOptions).tokens
expect(toke... | Typescript |
# Generated by Django 4.2.1 on 2024-08-22 19:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('panel', '0008_alter_advertisingbannermodel_url'),
]
operations = [
migrations.RemoveField(
model_name='advertisingbannermodel',
... | Python |
atch-all route ("'+t+'" and "'+t+"[[..."+this.optionalRestSlugName+']]").'),"__NEXT_ERROR_CODE",{value:"E458",enumerable:!1,configurable:!0});r.unshift(t)}return null!==this.restSlugName&&r.push(...this.children.get("[...]")._smoosh(e+"[..."+this.restSlugName+"]/")),null!==this.optionalRestSlugName&&r.push(...this.chil... | JavaScript |
8;o[st+56>>2]=vt;if(vt>>>0<16384){continue}break}}ut=vt&4095;Bt=o[(ut<<2)+Ft>>2];wt=(Bt<<3)+Dt|0;vt=(u(o[wt>>2],vt>>>12)+ut|0)-o[wt+4>>2]|0;o[st+56>>2]=vt;if((Ds|0)>=1){if(!p[Ts+36|0]){ut=0;break a}wt=Ds+xt|0;while(1){c:{if((Bt|0)<1){zt=0;break c}ut=o[Ts+32>>2];Gt=o[Ts+28>>2];Ht=o[Ts+24>>2];tt=0;zt=0;while(1){yt=(ut>>>... | JavaScript |
erride
public float nextFloat() {
return (staffordMix4Upper32(x += PHI) >>> 8) * 0x1.0p-24f;
}
@Override
public boolean nextBoolean() {
return staffordMix4Upper32(x += PHI) < 0;
}
@Override
public void nextBytes(final byte[] bytes) {
int i = bytes.length, n = 0;
... | Java |
es the task from the queue and executes it. Once the task finishes, the worker notifies wait_for_tasks() in case it is waiting.
*/
void kcp_update_worker();
// ============
// Private data
// ============
std::condition_variable kcp_tasks_available_cv = {};
std::condition_variable kcp_tasks_done_cv = {}... | C++ |
// <auto-generated />
using System;
using DDD.ProductCatalog.Infrastructure.EfCore;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueCon... | C# |
com/43864057/163763049-fea46078-3749-4fb9-997c-3ced5b19049f.png)
---------------------------------------------------------------------------------------
## Property search

------------------------------------... | Markdown |
的点
* @return [Point]
*/
static getNearThroughGrid(gridP: Point, targetP: Point = null): Point {
var nearGrid = 5;
var currentScene = Game.currentScene as ProjectClientScene;
var n_32_x1: number = gridP.x - nearGrid;
var n_32_x2: number = gridP.x + nearGrid;
var n_3... | Typescript |
rval = exec_file_addr(a);
if (!rval) {
fprintf(stderr,"NATIVE_TO_DSEG: bad addr: 0x%x\n", a);
exit(1);
}
return(rval);
}
#if 0
/* ??? */
initialize_shlib_fixups()
{
register struct shlib_init **shlib_init_table_pointer;
register struct shlib_init *shlib_init_table;
int miscindx;
/* Get the ... | C |
: absolute;
top: 0;
left: 20%;
width: 60%;
height: 5px;
z-index: 1;
background-repeat: repeat-x;
background-position: 0 -40px;
}
.jslider div.jslider-bg i.default {
left: 0;
width: 1px;
z-index: 1;
background-color: #185f83;
}
.jslider.jslider-single div.jslider-pointer-to,
.jslider.jslider-single... | CSS |
feature = "zh_Hant_HK")]
crate::Annotation {
lang: "zh_Hant_HK",
tts: Some("↑↑↑"),
keywords: &["↑↑↑"],
},
#[cfg(feature = "zu")]
crate::Annotation {
lang: "zu",
tts: Some("isandla esiphakanyisiwe esivuliwe"),
keyword... | Rust |
* @param newTone 0 <= newTone <= 100; invalid valids are corrected.
*/
public fun withTone(newTone: Double): Hct = Hct(HctSolver.solveToInt(hue, chroma, newTone))
/**
* Translate a color into different ViewingConditions.
*
* Colors change appearance. They look different with lights on ... | Kotlin |
case-studies目录下的使用案例
---
**最后更新**: 2025年7月11日
**工具版本**: v1.0
**兼容性**: Python 3.7+, PowerShell 5.1+
# Debug 调试轮次索引
> **说明**: 记录所有调试轮次的概况,方便快速定位和回顾调试历程
## 📊 调试统计
**总计轮次**: {总轮次数}轮
**解决问题数**: {已解决问题数量}个主要问题
**最新更新**: {最新更新日期}
---
## 📋 调试轮次列表
### Round {轮次号} - {问题简述}
**时间**: {调试日期}
**问题**: {问题的详细描述}
*... | Markdown |
,
buildSummary: buildSummary,
buildComponent: buildComponent,
includeOffsets: includeOffsets);
}
Future<List<int>?> compileSummary(InitializedCompilerState compilerState,
List<Uri> inputs, DiagnosticMessageHandler diagnosticMessageHandler,
{bool includeOffsets = false}) async {
CompilerResu... | Dart |
osition)?.let {
callBack.showBookInfo(it.name, it.author, it.bookUrl)
}
}
}
private fun bind(binding: ItemSearchBinding, searchBook: SearchBook) {
binding.run {
tvName.text = searchBook.name
tvAuthor.text = context.getString(R.string.author_sh... | Kotlin |
[19109] = "Anillo raíces profundas",
[19110] = "Hoja forjada en frío",
[19111] = "Cubrehombros de Hacha Invernal",
[19112] = "Protegebrazos de acero congelados",
[19113] = "Brazales de pellejo de yeti",
[19114] = "Arco de tierra alta",
[19115] = "Frasco de mojo del bosque",
[19116] = "Manijas hojaverde",
[19117] = "Qui... | Lua |
xy)](../techniques/generic/MASTG-TECH-0121.md)
- [受動的な盗聴 (Passive Eavesdropping)](../techniques/generic/MASTG-TECH-0122.md)
- [ARP スプーフィングによる MITM ポジションを獲得する (Achieving a MITM Position via ARP Spoofing)](../techniques/generic/MASTG-TECH-0123.md)
- [不正アクセスポイントを使用して MITM ポジションを獲得する (Achieving a MITM Position Using a Rogu... | Markdown |
draw_type = 1
local t = 0
while window:loop() and not window.keys[27] do
window:clear()
if window.keys[string.byte('1')] then
draw_type = 1
elseif window.keys[string.byte('2')] then
draw_type = | Lua |
match input to conversion."))
};
}
//todo: add tests for exitcodes... external tests?
use std::io::Read;
use std::fmt;
use std::path::{PathBuf, Path};
use std::fs::File;
use errors::{ReadError, ReadEnum};
use nginx_config;
use nginx_config::visitors::DirectiveIter;
use nginx_config::ast::{Directive, Main};
pub ... | Rust |
kr=*/8, /*sr=*/1,
/*arch_flags=*/xnn_arch_x86_ssse3);
}
BENCHMARK_GEMM(qs8_qc4w_gemm_minmax_fp32_ukernel_2x4c8__ssse3_madd)
static void qs8_qc4w_gemm_minmax_fp32_ukernel_3x4c8__ssse3_madd(benchmark::State& state, const char* net) {
GEMMBenchmark(state,
xnn_qs8_qc4w_gemm_minmax_fp32_ukernel_3x4c8... | C++ |
(dojo.isIE){
this.editor.focus();
}
switch(sw){
case "insertTableRowBefore":
r=o.tbl.insertRow(o.trIndex);
for(i=0;i<o.cols;i++){
c=r.insertCell(-1);
c.innerHTML=" ";
}
break;
case "insertTableRowAfter":
r=o.tbl.insertRow(o.trIndex+1);
for(i=0;i<o.cols;i++){
c=r.insertCell(-1);
c.innerHTML=" ";
}
break;
case ... | JavaScript |
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
public class BkPlatformInfo {
@JsonProperty("bkAppCode")
private String bkAppCode = "bk_job";
@JsonProperty("name")
private String name = "蓝鲸作业平台";
@JsonProperty("nameEn")
private String nameEn = "BlueKing JOB";
@JsonProperty("a... | Java |
<p>Must be a dimension value, which is a floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form... | Java |
in Arm, sangen lauthals die Refrains bekannter Lieder und eröffneten die Tanzfläche oft schon bei den ersten Takten. Besonders die Lieder von **Rudi Schuricke** oder **Gerhard Wendland** eigneten sich hervorragend zum Tanzen – ihre Melodien waren schwungvoll, ihre Botschaften klar und einfach mitzusingen. Über Generat... | Markdown |
/** 概要 */
description: string
/** 請求書ステータス (draft: 下書き, applying: 申請中, remanded: 差し戻し, rejected: 却下, approved: 承認済み, issued: 発行済み, unsubmitted: 送付待ち) */
invoice_status: 'draft' | 'applying' | 'remanded' | 'rejected' | 'approved' | 'issued' | 'unsubmitted'
/** 入金ステータス (unsettled: 入金待ち, settle... | Typescript |
.w #$4,d5
and.l d6,d5 ; d5=red compound.(STe mode.)
move.b (a3,d3.w),d3 ; d3=blue.(Normal)
move.b (a3,d4.w),d4 ; d4=green.(Normal)
move.b (a3,d5.w),d5 ; d5=red.(Normal)
N set 0
rept 15 ; 15 tables.
cmp.b d5,d2
dc.w $6708 ; beq.s "ok".
dc.w $6c04 ; bge.s "higher".
addq.l #$1,d2 ;
dc.w $6002 ; bra.s... | Assembly |
#define STB_SPRINTF_IMPLEMENTATION
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdouble-promotion"
#pragma clang diagnostic ignored "-Wconditional-uninitialized"
#include<libtransistor/stb_sprintf.h>
#pragma clang diagnostic pop
#include<stdarg.h>
int dbg_printf(char const *fmt, ...) {
va_list vl... | C |
fs.listStatus(logDir);
assertEquals(1, status.length);
}
@Test
public void testRestartWithoutData() throws Exception {
for (int i = 0; i < 10; ++i) {
final LoadCounter loader = new LoadCounter();
storeRestart(loader);
}
LOG.info("ACTIVE WALs " + procStore.getActiveLogs());
assert... | Java |
izations : [ix.authorizations];\n const proposerTempIds = ix.proposer === null ? [] : Array.isArray(ix.proposer) ? ix.proposer : [ix.proposer];\n const ixAccountKeys = Object.keys(ix.accounts);\n const uniqueTempIds = [...new Set(payerTempIds.concat(authorizersTempIds, proposerTempIds))];\n for (const ixAccountKey ... | JavaScript |
Sound? = AudioUtils.instance.hitSound
var isDodging: Boolean = false
private set
private var jumping = false
var isHit: Boolean = false
private set
private var stateTime = 0f
var jumpCount: Int = 0
private set
override fun draw(batch: Batch, parentAlpha: Float) {
... | Kotlin |
pg = pg or {}
pg.equip_data_statistics_108 = {
[14451] = {
anti_siren = 100,
damage = "182 x 3",
base = 14440,
id = 14451,
weapon_id = {
14451
}
},
[14452] = {
anti_siren = 200,
damage = "182 x 3",
base = 14440,
id = 14452,
weapon_id = {
14452
}
},
[14453] = {
anti_siren = 300,
da... | Lua |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.