content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
*************************************************************/
void board_led_on(uint8_t led)
{
/* This may be called from an interrupt handler */
irqstate_t flags = irqsave();
#ifdef RESET_KLUDGE_NEEDED
/* I don't understand why this happens yet, but sometimes
* it is necessary to reconfigure port E.
*/... | C |
999 0 11-1.414-1.414 5.25 5.25 0 017.414 0 3.248 3.248 0 004.586 0 .999.999 0 111.414 1.414A5.227 5.227 0 0115 11z"/></svg>';
static const String waves_outline =
'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox... | Dart |
if (didWork) {
anyDidWork = didWork;
}
pendingStable--;
if (pendingStable == 0) {
callback(anyDidWork);
}
}
for (var testability in testabilities) {
js_util.callMethod(
testability!,
'whenStable',
[allowInterop(decrement)],
);
}
... | Dart |
/// Empty - res elements have no child xml elements.
/// </summary>
/// <param name="formatter">
/// A <see cref="ToXmlFormatter"/> object that
/// specifies method implementations for printing
/// media objects and metadata.
/// </param>
/// <param name="data">
/// This object should be a <see cref="To... | C# |
flags);
// could save FLADJ in case of Vaux power loss
// ... we'd only use it to handle clock skew
return rc;
}
static int ehci_pci_resume(struct usb_hcd *hcd)
{
struct ehci_hcd *ehci = hcd_to_ehci(hcd);
struct pci_dev *pdev = to_pci_dev(hcd->self.controller);
// maybe restore FLADJ
if (time_before(jiff... | C |
return PnpChangeSet(id = PnpIdResolver.PnpNoopId(partialData.commonId), breadCrumbs = breadCrumbs)
}
// All ID's agree, but we need to update the database
if (partialData.commonId != null && !allRequiredDbFieldPopulated) {
breadCrumbs.add("CommonIdButNeedsUpdate")
return processNonMergePnpUpda... | Kotlin |
Type )
end
end
function this.SetTimer( params )
local timerName
local time
local stop
if params.timerList then
timerName = params.timerList.timerName or nil
time = params.timerList.time or nil
stop = params.timerList.stop or false
else
timerName = params.timerName or nil
time = params.time or n... | Lua |
1857359).
web.dev is the ultimate resource for developers of all backgrounds to learn,
create, and solve on the web. It's meant to not only educate developers, but
help them apply what they've learned to any site they work on, be it personal or
business.
-----
# [Archived README]
## Building the site 🏗
You'll need... | Markdown |
offset;
}
}
}
@mixin ep-progress--init__loop ($offset, $circumference, $negative_circumference) {
@keyframes ep-progress--init__loop {
0% {
stroke-dashoffset: $circumference;
}
33% {
stroke-dashoffset: 0;
}
66% {
stroke-dashoffset: $negative_circumference;
}
100% {... | CSS |
/**
* 电子邮箱
*/
private String yonghuEmail;
/**
* 余额
*/
private Double newMoney;
/**
* 总积分
*/
private Double yonghuSumJifen;
/**
* 现积分
*/
private Double yonghuNewJifen;
/**
* 会员等级
*/
private Integer huiyuandengjiTypes;
/**
* 会员等级的值
*/
private String... | Java |
/// </exception>
/// <exception cref="FormatException">If <paramref name="base64Encoded" /> is not a valid base64 encoded string</exception>
public static string Decode(string base64Encoded, Encoding encoding)
{
if (base64Encoded == null)
throw new ArgumentNullException(nameof(base64E... | C# |
using Microsoft.Extensions.Logging;
using System;
using System.Threading.Tasks;
namespace Modbus.Net.Modbus
{
/// <summary>
/// Modbus连接类型
/// </summary>
public enum ModbusType
{
/// <summary>
/// Rtu连接
/// </summary>
Rtu = 0,
/// <summary>
... | C# |
const c_void) -> OGRErr;
pub fn OGR_F_SetGeometryDirectly(hFeat: *const c_void, hGeom: *const c_void) -> OGRErr;
pub fn OGR_F_SetFieldString(hFeat: *const c_void, iField: c_int, pszValue: *const c_char) -> c_void;
pub fn OGR_F_SetFieldDouble(hFeat: *const c_void, iField: c_int, dfValue: c_double) -> c_void;... | Rust |
//
template<class T>
struct is_nothrow_move_constructible
{ static const bool value = BOOST_MOVE_IS_NOTHROW_MOVE_CONSTRUCTIBLE(T); };
//////////////////////////////////////
// is_nothrow_copy_assignable
//////////////////////////////////////
template<class T>
struct is_nothrow_copy_assignable
{ static const b... | C++ |
d to illustrate when to use and when not to
_swissZipCodes.OrderBy(x => Vector2.Distance(_min, x.Coordinates)).Take(10).Consume(_consumer);
}
[Benchmark]
[BenchmarkCategory("knn10")]
public void Knn10LinqRectangleBased()
{
// This is not entirely fair as both our R*Tree and RBush ha... | C# |
// SPDX-License-Identifier: Apache-2.0
// Copyright 2019 Western Digital Corporation or its affiliates.
//
// 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/license... | Assembly |
ARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Fr... | Kotlin |
기술자 쿼터플래쉬와 대화해야 합니다."}},
[12276] = {"슬린킨을 찾아서", nil, {"윈터가드 광산에서 폭파전문노움 슬린킨을 찾아야 합니다. 광산을 찾는 데 도움이 필요하면 쿼터플래쉬의 유도 로봇을 사용하십시오."}},
[12277] = {"운에 기대지 말라", nil, {"윈터가드 광산 폭탄을 입수하여 윈터가드 광산 위쪽 입구와 윈터가드 광산 아래쪽 입구를 폭파하고, 용의 안식처에 있는 윈터가드 성채의 공성 기술자 쿼터플래쉬에게 보고해야 합니다."}},
[12278] = {"맥주 사랑 동호회", nil, {"\"맥주 사랑 동호회\" 가입 신청서를 아이언... | Lua |
);
}
public ASN1Encodable getIssuer()
{
return obj;
}
/**
* Produce an object suitable for an ASN1OutputStream.
* <pre>
* AttCertIssuer ::= CHOICE {
* v1Form GeneralNames, -- MUST NOT be used in this
* -- profile
* ... | Java |
* General Public License, version 2 with the GNU Classpath
* Exception [1] and GNU General Public License, version 2 with the
* OpenJDK Assembly Exception [2].
*
* [1] https://www.gnu.org/software/classpath/license.html
* [2] https://openjdk.org/legal/assembly-exception.html
*
* SPDX-License-Identifier: EPL-2.0 OR A... | Assembly |
select "REMOVED fluidboxes:in eid:in" do
remove_assembling_fluid_port(e.eid)
end
end
function assembling_sys:gameworld_build()
local gameplay_world = gameplay_core.get_world()
local gameplay_ecs = gameplay_world.ecs
for e in gameplay_ecs:select "assembling:in building:in chest:in" do
lo... | Lua |
# Ülesanne 4
# Kontrollida N inimese sisestatud isikukoodi õigsust. Määrake isiku sugu. Mitu inimest N-st on mees ja mitu naissoost,
# ütle kasutajale.
N=int(input("Mitu isikukoodi soovid kontrollida? "))
km=0
kn=0
for i in range(N):
ik=input(f"Sisesta isikukood {i+1}: ")
while True:
if len(ik)==11 ... | Python |
2u8, 3u8, 4u8, 5u8, 6u8, 7u8, 0u8,
1u8, 2u8, 3u8, 4u8, 5u8, 6u8, 7u8, 0u8, 1u8, 2u8, 3u8, 4u8, 5u8, 6u8, 7u8,
];
let input: Vector<u8, COUNT> = bytes.try_into().expect("test data");
let mut buffer = vec![];
let _ = input.serialize(&mut buffer).expect("can serialize");
... | Rust |
dState2.NextValidators.GetByAddress(val2PubKey.Address())
// 1. Add
val2VotingPower := val1VotingPower
totalPower = val1VotingPower + val2VotingPower // 20
v2PrioWhenAddedVal2 := -(totalPower + (totalPower >> 3)) // -22
// 2. Scale - noop
// 3. Center
avgSum := big.NewInt(0).Add(big.NewInt(v2PrioWhenA... | Go |
txN = 1u,
tx = signedTx,
clientPublicNonce = coin.publicNonce ?: throw Exception("publicNonce is null"),
serverPublicNonce = coin.serverPublicNonce ?: throw Exception("serverPublicNonce is null"),
clientPublicKey = coin.userPubkey,
... | Kotlin |
}
if (this.isFramerateLimitBelowMax()) {
this.mcProfiler.startSection("fpslimit_wait");
Display.sync(this.getLimitFramerate());
this.mcProfiler.endSection();
}
this.mcProfiler.endSection();
}
public void updateDisplay() {
this.mcProfiler... | Java |
p.placeholderapi.PlaceholderAPI;
import me.libraryaddict.disguise.DisguiseAPI;
import me.libraryaddict.disguise.DisguiseConfig;
import me.libraryaddict.disguise.LibsDisguises;
import me.libraryaddict.disguise.disguisetypes.watchers.LivingWatcher;
import me.libraryaddict.disguise.utilities.DisguiseUtilities;
import me.l... | Java |
/* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */
/*
* Copyright(c) 2018 Intel Corporation.
*
*/
#ifndef TID_RDMA_DEFS_H
#define TID_RDMA_DEFS_H
#include <rdma/ib_pack.h>
struct tid_rdma_read_req {
__le32 kdeth0;
__le32 kdeth1;
struct ib_reth reth;
__be32 tid_flow_psn;
__be32 tid_flow_qp;
__be32 verb... | C |
Returns
[`Matrix4`](Matrix4.md)
#### Defined in
[src/math/Matrix4.ts:321](https://github.com/Orillusion/orillusion/blob/main/src/math/Matrix4.ts#L321)
## Properties
### blockBytes
▪ `Static` **blockBytes**: `number`
matrix44 bytes block size
#### Defined in
[src/math/Matrix4.ts:17](https://github.com/Orillusi... | Markdown |
ervice struct {
mock.Mock
}
// GetStatistic provides a mock function with given fields: params, authInfo
func (_m *MockStatisticClientService) GetStatistic(params *statistic.GetStatisticParams, authInfo runtime.ClientAuthInfoWriter) (*statistic.GetStatisticOK, error) {
ret := _m.Called(params, authInfo)
var r0 *st... | Go |
] .vds-time[data-type=current]) {
margin-left: 8px;
}
:where([data-fullscreen] .vds-video-layout .vds-controls-group:nth-last-child(2)) {
margin-bottom: -16px;
}
@media (orientation: portrait) {
:where([data-fullscreen] .vds-video-layout .vds-captions) {
bottom: 30lvh;
bottom: 10dvh;
}
}
@media (orienta... | CSS |
7.764-7.578,11.51-11.5a232.162,232.162,0,0,0,31.427-41.639c9.542-16.045,17.355-32.905,22.3-50.926,2.859-10.413,4.947-21.045,7.017-31.652,1.032-5.279,1.251-10.723,1.87-16.087.036-.317.358-.6.552-.9V236.005A9.757,9.757,0,0,1,498.252,234.223Zm-161.117-1.15s-16.572-2.98-28.47-2.98c-27.2,0-33.57,14.9-33.57,37.04V360.8H201.5... | JavaScript |
using Cervantes.CORE.Entities;
using Cervantes.Web.Controllers;
using Microsoft.AspNetCore.Components;
using MudBlazor;
namespace Cervantes.Web.Components.Pages.Tasks;
public partial class DeleteTaskNoteDialog : ComponentBase
{
[CascadingParameter] IMudDialogInstance MudDialog { get; set; }
void Cancel() =>... | C# |
with impunity.
* [ESP] is our return address, [ESP-4] is the first
* stack slot to scrub. */
/* We start by setting up our scrub pointer in EAX, our
* guard page upper bound in ECX, and our hard guard
* page upper bound in EDX. */
lea -4(%esp), %eax
mov GNAME(os_vm_page_size),%edx
mov %edx, %ecx
add 8(%es... | Assembly |
69-.499-.448 0-.73.205-.73.525 0 .294.193.383.59.486.779.204.869.217 1.06.345.307.204.32.511.32.652 0 .575-.448 1.023-1.291 1.023-.243 0-.755-.039-1.01-.371-.192-.243-.192-.499-.192-.665h.473m3.196-2.314v2.02c0 .345.077.499.14.588.206.269.525.32.743.32.882 0 .882-.69.882-.934V17.66h.435v2.02c0 .179 0 .537-.269.87-.32.4... | Dart |
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2023 OpenFOAM Foundation
\\/ ... | C |
end
naojoints:msgq_enqueue_copy(m)
else
if self.fsm.vars.yaw ~= nil and self.fsm.vars.pitch ~= nil then
local m = naomotion.YawPitchHeadMessage:new(self.fsm.vars.yaw,
self.fsm.vars.pitch,
... | Lua |
n Smith, Work Experience: 5 years as a software engineer, Education: Bachelor's degree in Computer Science. |
| 实体识别 - 提取文字中的人名 | 请从以下一段文字中提取出所有的人名:在北京时间明天早上七点,张三将和李四一起前往公司开会。 |
| 指令任务 - 拍摄完美日落 | 请告诉我如何拍摄一张完美的日落照片,包括拍摄时需要注意的事项和技巧。 |
| 分... | Markdown |
import org.junit.Test
import org.junit.runner.RunWith
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of ... | Kotlin |
459ce8: a9425bf5 ldp x21, x22, [sp, #32]
459cec: a94363f7 ldp x23, x24, [sp, #48]
459cf0: f9402bfb ldr x27, [sp, #80]
459cf4: a8c77bfd ldp x29, x30, [sp], #112
459cf8: d65f03c0 ret
459cfc: d503201f nop
459d00: f0000101 adrp x1, 47c000 <__PRETTY_FUNCTION__.12139+0x110>
459d04: f00000c0 adrp x0, ... | Assembly |
::core::GUID = ::windows_sys::core::GUID { data1: 3530145628, data2: 55745, data3: 4563, data4: [179, 143, 0, 16, 90, 31, 71, 58] };
#[repr(C)]
#[doc = "*Required features: 'Win32_System_Wmi', 'Win32_Foundation'*"]
#[cfg(feature = "Win32_Foundation")]
pub union SWbemRpnConst {
pub m_pszStrVal: super::super::Foundat... | Rust |
andleMouseDown(mp, 2, 2, 0, paint)
#鼠标左键抬起
elif msg == WM_LBUTTONUP:
point = POINT()
user32.GetCursorPos(ct.byref(point))
user32.ScreenToClient(hwnd, ct.byref(point))
mp = FCPoint(point.x, point.y)
mp.x /= paint.scaleFactorX
mp.y /= paint.scaleFactorY
if paint.isDoubleClick:
handleMouseUp(m... | Python |
is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
* You should have received a copy of the GNU Affero General Public License along with this... | Java |
В современных шифрах [криптографическая стойкость](https://ru.wikipedia.org/wiki/Криптографическая_стойкость) шифра целиком определяется секретностью ключа ([принцип Керкгоффса](https://ru.wikipedia.org/wiki/Принцип_Керкгоффса)). Также выделяют **ключ шифрования** (*encription key*) и **ключ расшифрования** (*decryptio... | Markdown |
* - end - virtual end address of region
*/
v7_dma_inv_range:
dcache_line_size r2, r3
sub r3, r2, #1
tst r0, r3
bic r0, r0, r3
#ifdef CONFIG_ARM_ERRATA_764369
ALT_SMP(W(dsb))
ALT_UP(W(nop))
#endif
mcrne p15, 0, r0, c7, c14, 1 @ clean & invalidate D / U line
tst r1, r3
bic r1, r1, r3
mcrne p15, 0, r1, c7... | Assembly |
/ colNorm \le 2^{2\sigma+1} \f$
// then the balancing coefficient for the row is \f$ 1/2^{\sigma} \f$
// and the balancing coefficient for the column is \f$ 2^{\sigma} \f$
rowB = rowNorm / radix<RealScalar>();
colB = RealScalar(1);
const RealScalar s = colNorm + rowNorm;
while (colNorm < rowB)
... | C |
& c)
{
std::string toeName = _Add_Toe_func(shaderCreator, resourceIndex, true);
const std::string pxl(shaderCreator->getPixelName());
ss.newLine() << ss.floatDecl("J_ts") << " = " << pxl << ".r;";
ss.newLine() << ss.floatDecl("M_cp") << " = " << pxl << ".g;";
ss.newLine() << ss.floatDecl("h")... | C++ |
/w;wn(f,y,m,_,M,r),wn(g,v,x,b,M,o),f=r[3],g=o[3],c.push(r[1],o[1],r[2],o[2],f,g),y=r[5],v=o[5],m=r[6],x=o[6]}p-=w-1}}return a===t?[c,e]:[t,c]}function jG(t,e){for(var n=t.length,i=t[n-2],r=t[n-1],o=[],a=0;a<e.length;)o[a++]=i,o[a++]=r;return o}function qG(t){for(var e=0,n=0,i=0,r=t.length,o=0,a=r-2;o<r;a=o,o+=2){var s=... | Dart |
// 读取配置index,用于更新时执行cas校验,避免覆盖其他更新
val consulConfigKey = getConsulConfigKey(appName, targetProfile)
val getConfigResponse = client.getKVValue(consulConfigKey, this.properties.aclToken, QueryParams.DEFAULT)
// 解析YAML
val putParams = PutParams()
val yaml = Yaml()
... | Kotlin |
@see org.eclipse.xtext.grammarinheritance.foo.FooPackage
* @generated
*/
public interface FooFactory extends EFactory
{
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
FooFactory eINSTANCE = org.eclipse.xtext.grammarinheritance.foo.imp... | Java |
rt';
import 'package:ainoval/screens/editor/widgets/novel_setting_detail.dart';
import 'package:ainoval/services/api_service/repositories/novel_setting_repository.dart';
import 'package:ainoval/services/api_service/repositories/storage_repository.dart';
import 'package:ainoval/screens/editor/managers/editor_layout_mana... | Dart |
=> (View)this.GetValue(ParallaxHeaderViewProperty);
set => this.SetValue(ParallaxHeaderViewProperty, value);
}
#endregion
#region Methods
/// <summary>
/// Invoked when scroll the view.
/// </summary>
public void Parallax()
{
if ... | C# |
stuff/textures";
// create world
world = dWorldCreate();
space = dHashSpaceCreate (0);
contactgroup = dJointGroupCreate (0);
dWorldSetGravity (world,0,0,-0.5);
ground = dCreatePlane (space,0,0,1,0);
// chassis body
body[0] = dBodyCreate (world);
dBodySetPosition (body[0],0,0,STARTZ);
dMassSetBox ... | C++ |
K_KERNEL_TX_NOTIFY
bool reschedule = (!busy && (sent > 0 || _signal.active()));
#else
bool reschedule = (busy || sent > 0 || _signal.active());
#endif
#if HAVE_LINUX_POLLING
if (is_polling) {
// 8.Dec.07: Do not recycle skbs until after unlocking the device, to
// avoid deadlock. After initial patch by ... | C++ |
(state))
stateJson.addProperty("state_flags", stateFlags and 0xFFFF)
stateJson.addProperty("side_flags", sideFlags and 0xFF)
stateJson.addProperty("instrument", state.instrument.name)
stateJson.addProperty("luminance", state.luminance)
stat... | Kotlin |
// cxxabi.h subset for cancellation -*- C++ -*-
// Copyright (C) 2007-2014 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
// GCC 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; either v... | C |
z two_arg_unmasked_exit
flip_sign_y_inf:
mov $0x080000000,dword_frac1+frac32(%ebp)
mov $0x10000\*INFINITY+POSITIVE,sign1(%ebp)
mov $0x7fff,dword_expon1
flip_sign_y_op1:
mov $offset_operand1,%edi
flip_sign_y_to_edi:
movb sign2(%ebp),%dl
notb %dl
movb %dl,sign(%ebp,%edi)
jmp got_result_ptr
/zerror_derror_flip_si... | Assembly |
((zz + 0.0f) * scale + vo));
}
}
t.color(cr * 0.8f, cg * 0.8f, cb * 0.8f, 0.8f);
if (zPos > -1)
{
t.normal(0.0f, 0.0f, -1.0f);
for (int i = 0; i < D; i++)
{
t.vertexUV((xp + 0.0f), (yy + h), (zp + i + 0.0f), ((xx + 0.0f) * scale + uo), ((zz + i + 0.5f) * scale + vo));
... | C++ |
?} scope prefix must be an object",
scope_prefix
)));
}
let potential_specifier_map =
potential_specifier_map.as_object().unwrap();
let scope_prefix_url =
match Url::parse(base_url).unwrap().join(scope_prefix) {
Ok(url) => url.to_string(),
_ => {... | Rust |
_2 then
L4_2 = L58_1
L5_2 = A1_2.useCount
L4_2 = L4_2(L5_2)
A1_2.maxCount = L4_2
L4_2 = A0_2[2]
L5_2 = L4_2
L4_2 = L4_2.f691534BA
L6_2 = A1_2.paneName
L7_2 = L2_2.paneName
L4_2(L5_2, L6_2, L7_2)
end
return L2_2
end
L68_1 = _ENV["CAED28D755C44D010"]["prototype"]
L69_1 = _ENV[... | Lua |
= nil {
// If 'qm.ini' is not found - run 'crtmqm' to create a new queue manager
args := getCreateQueueManagerArgs(mounts, name, devMode)
out, rc, err := command.Run("crtmqm", args...)
if err != nil {
log.Printf("Error creating queue manager: the 'crtmqm' command returned with code: %v. Reason: %v", rc, stri... | Go |
Lesser General Public License
* along with GregTech. If not, see <http://www.gnu.org/licenses/>.
*/
package gregtech.asm.transformers;
import org.objectweb.asm.Opcodes;
import org.objectweb.asm.tree.AbstractInsnNode;
import org.objectweb.asm.tree.ClassNode;
import org.objectweb.asm.tree.InsnList;
import org.object... | Java |
egister<CargoFmtTask>("cargoFmtCheck") {
checkOnly = true
workingDir = nativeDir.asFile
}
val cargoFmtTask = tasks.register<CargoFmtTask>("cargoFmt") {
workingDir = nativeDir.asFile
mustRunAfter(clippyFixTask)
}
val clippyCheckTasks = enabledPlatforms.map { target ->
tasks.register<ClippyTask>("cl... | Kotlin |
++;
}
else if (group_index[j] != -1)
{
group_index[i] = group_index[j];
text[group_index[i]].ers.push_back(a);
}
else
{
group_index[j] = group_index[i];
text[group_index[j]].ers.push_back(b);
}
}
}
}
for (int i = 0; i < text.size(); i++)
{
sort(text[i].ers.be... | C++ |
fonts.gstatic.com/s/notosanssc/v26/k3kIo84MPvpLmixcA63oeALZ3aGt9CX8-qzYBR2czuUKGJi6mhkslBoPRyOEMbc0fwtw3D1FuxsCDw.80.woff2) format('woff2');
unicode-range: U+53fb-5400, U+5402, U+5405-5407, U+540b, U+540f, U+5412, U+5414, U+5416, U+5418-541a, U+541d, U+5420-5423, U+5425, U+5429-542a, U+542d-542e, U+5431-5433, U+5436,... | CSS |
) {
return dataOrNode instanceof Node ? dataOrNode : new Node(dataOrNode);
}
function isMatch(original, query) {
if(typeof original !== 'object') {
return original === query;
}
for(let key in query) {
if(key && query[key] !== original[key]) {
return false;
}
}
return true;
}
module.exp... | JavaScript |
"], .diapo-content pre[class*="language-"] {
line-height: 1.5;
}
.diapo-content h1, .diapo-content h2, .diapo-content h3, .diapo-content h4 {
margin-top: 0;
margin-bottom: .5em;
text-align: center;
white-space: nowrap;
}
.diapo-content h1 {
font-size: 57.6px;
font-size: 3.6rem;
}
.diapo-content h2 {
fon... | CSS |
2
.cprestore 16
#else
subu sp,32
#endif
#ifdef PROF
.set noat
move $1,ra
jal _mcount
.set at
#endif
/* Sanity check arguments. */
li v0,EINVAL
beqz a0,error /* No NULL function pointers. */
beqz a1,error /* No NULL stack pointers. */
subu a1,32 /* Reserve argument save space. */
sw a0,0(a1... | Assembly |
nection.query(sql, [song, link, 1]);
}
export async function deleteSong(id: string) {
const sql = `DELETE from songs WHERE id = $1`;
await connection.query(sql, [parseInt(id)]);
}
export async function getLowScoreSongs() {
const sql = `SELECT * from songs
WHERE score <= 10`;
const lowScoreSo... | Typescript |
#ifndef UIDEFAULTS_H
#define UIDEFAULTS_H
#include "../ogui/Ogui.h"
//
// This file just gives you some button and select list style objects
// so you don't have to define them yourself everytime...
//
// NOTICE: presumes that you have only one instance of Ogui
// otherwise you cannot define defaults without attachi... | C |
bottom = nn.ConvTranspose2d(64, out_channels, 4, 2, 3)
else:
self.conv_bottom = nn.Conv2d(64, out_channels, 3, 1, 0)
for m in self.modules():
if isinstance(m, (nn.Conv2d, nn.ConvTranspose2d)):
nn.init.kaiming_normal_(m.weight, mode='fan_out', nonlinearity='relu')... | Python |
')
// remove any space characters
.filter((n) => n.length > 0)
// remove any newline characters
.filter((n) => n !== '\n')
export const byteCount = (str) => {
// returns the byte length of an utf8 string
let s = str.length
for (let i = str.length - 1; i >= 0; i -= 1) {
const code = str.charC... | Typescript |
e != 200) {
_log.severe('Failed to download binary $url: status ${res.statusCode}');
return;
}
if (verify(
precompiledBinaries.publicKey, res.bodyBytes, signature.bodyBytes)) {
File(finalPath).writeAsBytesSync(res.bodyBytes);
} else {
_log.shout('Signature verification failed... | Dart |
] @ movhi
b .L3421
.L3334:
add fp, fp, #1
b .L3333
.L3337:
ldrh r3, [r6, #558]
add r5, r5, r3
ldr r3, [sp, #16]
uxth r5, r5
cmp r3, r5
strh r5, [r6, #558] @ movhi
bhi .L3339
ldr r3, [r6, #1136]
ldr r5, .L3426+4
cbz r3, .L3340
bl Ftl_gc_temp_data_write_back
cbz r0, .L3340
movs r3, #0
ldrh r0, [r5, #1480... | Assembly |
ip4_rules)
applyIPv6Rules(cfg, defaultConfig, ip6_rules)
// use a Go channel to handle the incoming event messages
passedPackets := make(chan []byte)
passed, err := bpfModule.InitRingBuf("passed_packets", passedPackets)
if err != nil {
log.Fatalf("failed to initialize ring buffer: %v", err)
}
// start liste... | Go |
$0x6e65696c,0x8(%esi)
8049f37: c7 46 0c 74 20 75 6e movl $0x6e752074,0xc(%esi)
8049f3e: c7 46 10 61 62 6c 65 movl $0x656c6261,0x10(%esi)
8049f45: c7 46 14 20 74 6f 20 movl $0x206f7420,0x14(%esi)
8049f4c: c7 46 18 63 72 65 61 movl $0x61657263,0x18(%esi)
8049f53: c7 46 1c 74 65 20 73 movl $0x73206574... | Assembly |
result = matcher2->replaceFirst(&replText, &destText, status);
REGEX_CHECK_STATUS;
REGEX_ASSERT(result == &destText);
REGEX_ASSERT_UTEXT_UTF8(str_SupplementalDigit1bcdefg, result);
const char str_badcapturegroupnumber5[] = { 0x62, 0x61, 0x64, 0x20, 0x63, 0x61, 0x70, 0x74, 0x75, 0x72, 0x65, 0x20, 0x67, 0... | C++ |
}
_borderBrush.Freeze();
if (边框粗细 != 1) _borderPen = new Pen(_borderBrush, 边框粗细);
_borderPen.Freeze();
}
/// <summary>
/// 清空单元格。加载表格时调用此方法以加载存档中的单元格数据
/// </summary>
public void ClearCell()
{
// 置空单元格引用
for ... | C# |
x80
strb r4, [r0, #-1] @ store the result
mov r4, r4, lsr #8
strb_post r5, r0, r1
mov r5, r5, lsr #8
strb r4, [r0, #-1]
mov r4, r4, lsr #8
strb_post r5, r0, r1
mov... | Assembly |
}
}
import 'dart:developer';
import 'package:dio/dio.dart';
class DioProvider {
static Dio instance() {
final dio = Dio();
// dio.interceptors.add(AuthInterceptor());
dio.interceptors.add(HttpLogInterceptor());
return dio;
}
}
class HttpLogInterceptor extends InterceptorsWrapper {
@override... | Dart |
e_RU: "Передняя атака" }],
"s-770-2000-2103-0": "s-770-2000-1103-0",
"s-770-2000-1105-0": [{ type: "text", sub_type: "message", message: "Random Target", message_RU: "Таргет" }],
"s-770-2000-2105-0": "s-770-2000-1105-0",
"s-770-2000-1106-0": [{ type: "text", sub_type: "message", message: "Stun (Dodge)", message... | JavaScript |
e)
if track_oris is not None and bboxes is not None:
for index, track_bbox in enumerate(bboxes):
bbox_color=(0,255,0)
# print(track_bbox)
x1, y1, x2, y2 = track_bbox[:4].astype(np.int32)
text = "{:d}".format(track_oris[index])
... | Python |
)
)
sender.sendMessage("§7所在世界: §f" + player.world.name)
return true
}
sender.sendMessage(error)
return false
}
}
package work.alsace.buildercore.commands.home
import org.bukkit.Bukkit
import org.bukkit.ChatColor
import org.bukkit.command.Command
import ... | Kotlin |
InitResource(&NewSection->IndexBuffer);
}
//Fill the array of transforms with the transform matrix from each section
DeformTransforms[SectionIdx] = SrcSection.DeformTransform;
//Set the max vertex index for this mesh section
NewSection->MaxVertexIndex = LODResource.VertexBuffers.PositionVertexBuff... | C++ |
// })
// }
// }
}
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
let config_key_name = "config";
@Injectable()
export class ConfigProvider {
/*
private config = {
id: "",
nome: "",
email: "",
crm: "",
loginUser: false
}*... | Typescript |
128());
xxxx = sseSplat(inv3, 0);
VECTORMATH_ALIGNED(unsigned int select_y[4]) = { 0, 0xFFFFFFFF, 0, 0 };
inv1 = _mm_shuffle_ps(tmp0, tmp0, _MM_SHUFFLE(0, 3, 2, 2));
inv1 = sseSelect(inv1, tfrm.getCol1().get128(), select_y);
inv2 = _mm_shuffle_ps(tmp1, tmp1, _MM_SHUFFLE(0, 1, 1, 0));
inv2 = sseS... | C++ |
ll, replacement)
: this;
}
extension ListFilterExt<T> on Iterable<T?> {
List<T> get withoutNulls => where((s) => s != null).map((e) => e!).toList();
}
extension MapFilterExtensions<T> on Map<String, T?> {
Map<String, T> get withoutNulls => Map.fromEntries(
entries
.where((e) => e.val... | Dart |
test(std::coroutine_handle<>{});
do_test(std::coroutine_handle<int>{});
return 0;
}
//===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SP... | C++ |
ts');
class Beats {
/**
* @param {import('../index').PublishReport} config
* @param {TestResult} result
*/
constructor(config, result) {
this.config = config;
this.result = result;
this.api = new BeatsApi(config);
this.test_run_id = '';
this.test_run = null;
}
async publish() {
... | JavaScript |
lea ecx,DWORD PTR[718787259+r10*1+rcx]
or r11d,edx
xor r11d,eax
add ecx,r11d
mov r10d,DWORD PTR[36+rsi]
mov r11d,0ffffffffh
rol ecx,15
xor r11d,eax
add ecx,edx
lea ebx,DWORD PTR[((-343485551))+r10*1+rbx]
or r11d,ecx
xor r11d,edx
add ebx,r11d
mov r10d,DWORD PTR[rsi]
mov r11d,0ffffffffh
rol ebx,21
xor r11... | Assembly |
The returned pointer is guaranteed to be suitably aligned for
// storage of any object type.
// The signature of this function is different than thy typical
// realloc-like function to avoid the following common error:
// pv = realloc(pv, cb);
// ... | C++ |
}
if (qlst != null && qlst.size() == 1) {
qlst.get(0).notifyFirstTalk(npc, activeChar);
} else {
npc.showChatWindow(activeChar);
}
if (Config.PLAYER_MOVEMENT_BLOCK_TIME > 0 && !activeChar.isGM()... | Java |
vent": "types-pywin32",
"win32evtlog": "types-pywin32",
"win32evtlogutil": "types-pywin32",
"win32file": "types-pywin32",
"win32gui_struct": "types-pywin32",
"win32gui": "types-pywin32",
"win32help": "types-pywin32",
"win32inet": "types-pywin32",
"win32inetcon": "types-pywin32",
"win... | Python |
* 客服聊天表
* 后端接口
* @author
* @email
* @date 2021-04-24 14:22:10
*/
@RestController
@RequestMapping("/chat")
public class ChatController {
@Autowired
private ChatService chatService;
/**
* 后端列表
*/
@RequestMapping("/page")
public R page(@RequestParam Map<String, Object> params,... | Java |
class _TrayListener extends TrayListener {
_TrayListener({required this.onTrayMenuItemTap});
final void Function(MenuItem menuItem) onTrayMenuItemTap;
@override
Future<void> onTrayIconMouseDown() async {
await WindowUtils.show();
}
@override
Future<void> onTrayIconRightMouseDown() async =>
... | Dart |
users : ["Joey Koblitz","Dominic Savio","Tymon Schroeder","Elon"],
moderators : ["Elon"],
admin: "Joey Koblitz",
keywords: ["Helpful","Charity", "Support"]
},
{
roomID: 3,
title : "Gamers Chat Room",
isActive: true,
isPublic: true,
description: "Le... | Typescript |
LUE-100: #007DBB;--weui-BLUE-120: #3FBEFF;--weui-BLUE-170: #B7E6FF;--weui-BLUE-80: #0C8BCC;--weui-BLUE-90: #0E9CE6;--weui-BLUE-BG-100: #48A6E2;--weui-BLUE-BG-110: #5AAFE4;--weui-BLUE-BG-130: #7FC0EA;--weui-BLUE-BG-90: #4095CB;--weui-BRAND-100: #018942;--weui-BRAND-120: #38CD7F;--weui-BRAND-170: #B4ECCE;--weui-BRAND-80:... | CSS |
srContext,
PKEYBOARD_INPUT_DATA CurrentInput,
POUTPUT_PACKET CurrentOutput,
UCHAR StatusByte,
PUCHAR Byte,
PBOOLEAN ContinueProcessing,
PKEYBOARD_SCAN_STATE ScanState);
typedef struct _INTERNAL_I8042_HOOK_KEYBOARD {
OUT PVOID Context;
OUT PI8042_KEYBOARD_INITIALIZATION_ROUTINE InitializationRouti... | C |
{
Log.Error("Got temperature for null map.", false);
tempResult = 21f;
return true;
}
if (!c.InBounds(map))
{
tempResult = 21f;
return false;
}
if (GenTemperature.TryGetDirectAirTemperatureForCell(c, map, out tempResult))
{
return true;
}
List<Thing> list = map.thingGrid... | C# |
Brackets(arg)).toBe(expected);
});
});
import { Exclude, Expose, Type } from 'class-transformer';
import { Appointment, AppointmentConstructorParams } from './appointment';
import { IsInt, IsNotEmpty, IsString, IsUrl } from 'class-validator';
import instantiateAndValidate from '../../core/validation/instantiateAndVal... | Typescript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.