content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
.type.DustMaterial.MatFlags.*;
import static gregtech.api.unification.material.type.FluidMaterial.MatFlags.*;
import static gregtech.api.unification.material.type.GemMaterial.MatFlags.*;
import static gregtech.api.unification.material.type.IngotMaterial.MatFlags.*;
import static gregtech.api.unification.material.type.M... | Java |
XNpb25z 3279
IGFuc3dlcg== 3280
bnk= 3281
aXNvZGU= 3282
IGNhcnJ5 3283
IFJ1c3NpYQ== 3284
IGhlYXI= 3285
ZW5ndGg= 3286
cm95 3287
IG5hdHVyYWw= 3288
aW5hbGx5 3289
IGRvZw== 3290
bWl0dGVk 3291
IHRyYWRl 3292
IHN1YnN0 3293
IG11bHRpcGxl 3294
IEFmcmlj 3295
IGZhbnM= 3296
IHNvcnQ= 3297
IGdsb2JhbA== 3298
aWNhdGlvbg== 3299
IFdlZA== 33... | Kotlin |
ection-list-wrapper>'
}).when('/scene/:sceneId', {
template: '<scene-detail></scene-detail>'
}).when('/actor-tag/', {
template: '<section-list-wrapper main-page="true" section-type="\'ActorTagList\'"></section-list-wrapper>'
}).when('/actor-tag/:actorTagId', {
... | JavaScript |
# Copyright (c) Mathias Kaerlev 2012.
# This file is part of Anaconda.
# Anaconda 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 version 3 of the License, or
# (at your option) any later version.
# ... | Python |
mat="VecWColor", mode=0, startSize=10, vecCompLen=4 ){
if( !e.DynamicVerts ) Entity.com_fromName( e, "DynamicVerts" );
let vao = Vao.buildEmpty( name, vecCompLen, startSize );
e.Draw.add( vao, mat, mode );
e.DynamicVerts.buf = DynamicBuffer.newFloat( vao.buf.vertices, vecCompLen, startSize );
e.Dynami... | JavaScript |
= cfg.Range[i].Weight * (wt / w.minute)
break
}
}
}
}
if cfg, ok := wci["group"]; ok {
if len(cfg.Range) > 0 {
for _, item := range cfg.Range {
if strings.Contains(","+task.Group+",", fmt.Sprintf(",%d,", item.Threshold)) {
groupWeight = item.Weight * (wt / w.minute)
}
}
}
}
w... | Go |
ix())
scale(if (useInfinity) 2.0f else 4.0f)
val normMatrix = modelMatrix.top().toMat3()
normMatrix.inverse_().transpose_()
val prog = programs[mode]
glUseProgram(prog.theProgram)
glUniformMatrix4f(prog.modelToCameraMatri... | Kotlin |
x2
add x1, x21, x1, lsl 2
mov x0, x1
ldr w2, [x1, 272]
cbz w2, .L77
ldr w1, [x1, 280]
and w2, w2, -16
cmp w1, wzr
ble .L77
cmp w4, w2
csel w4, w4, w2, ls
.L77:
ldr w1, [x0, 276]
cbz w1, .L74
ldr w0, [x0, 284]
and w1, w1, -16
cmp w0, wzr
ble .L74
cmp w4, w1
csel w4, w4, w1, ls
.L74:
add w3, w3, 1
cmp... | Assembly |
aceData = $zk->getFaceData(123);
// Example response:
// [
// 50 => [
// 'template' => '...',
// 'size' => 1024,
// 'quality' => 92
// ]
// ]
```
## 28. Set User Face Data
```php
// Set face recognition templates for a user
$faceData = [
50 => ['template' => $faceTemplateData]
];
$... | Markdown |
entries.parallelStream().forEach(entry -> {
try {
File f = null;
long sizeInMb = 101;
if(downloadEnabled && !new File(downloadSuccessfulDir, entry.getOntologyShortName() + ".rdf").exists()) {
System.out.println("Loading " + entry.getOntologyShortName() + " from " + entry.getPhysicalURI());
... | Java |
} else {
managementBuilder_.mergeFrom(value);
}
if (management_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
*
* <pre>
* Required. NodeManagement configuration for the node pool.
* </pre>
*
* <code>
... | Java |
ionCodeLensTest);
defineReflectiveTests(AugmentedCodeLensTest);
});
}
@reflectiveTest
abstract class AbstractAugmentationCodeLensTest
extends AbstractLspAnalysisServerTest {
late TestCode libraryCode;
late TestCode augmentationCode;
/// The name of the setting to control whether [codeLensTitle] CodeLe... | Dart |
{
gl.validateProgram(program)
const validateStatus: unknown = gl.getProgramParameter(program, gl.VALIDATE_STATUS)
if (!validateStatus) {
const errorMessage = `Error validating program: ${gl.getProgramInfoLog(program)}`
gl.deleteProgram(program)
throw new Err... | Typescript |
ffchain::timestamp().add(Duration::from_millis(2_000));
// Initiate an external HTTP GET request.
// This is using high-level wrappers from `sp_runtime`, for the low-level calls that
// you can find in `sp_io`. The API is trying to be similar to `reqwest`, but
// since we are running in a custom WASM execut... | Rust |
**子 丑 寅 卯** **青 阴 贵 青** **财 庚子** **青** **⊙**
**勾亥** **辰玄** **子 巳 未 子** **兄 乙未** **贵**
**合戌** **巳阴** **巳 戌 子 戊** **官 壬寅** **虎**
**酉 申 未 午**
**朱 蛇 贵 后**
**据此课****,****吾断不失****,****在家中电脑附近****。****过得几日****,****失主反馈主在电脑桌下面找到丢失的戒指****。**
**案例二**
**某女求占****,****男友联系不上****,****去了何处吉凶如何**... | Markdown |
String, Any>> = if (order == 1) {
parameters.sortedBy { it["name"] as String }
} else {
parameters.sortedByDescending { it["name"] as String }
}
/**
* 获取指定名称的 HTTP 头
*/
@JvmStatic
@HostAccess.Export
fun getHeaderByName(headers: Map<String, String>, name: String) =
... | Kotlin |
# coding: utf-8
"""
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document:
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class manually.
""" # noqa: E501
from __future_... | Python |
the managed adis device
* @adis: The adis device
* @indio_dev: The IIO device
* @trigger_handler: Optional trigger handler, may be NULL.
*
* Returns 0 on success, a negative error code otherwise.
*
* This function sets up the buffer and trigger for a adis devices. If
* 'trigger_handler' is NULL the default ... | C |
.78-1.78V11.5h-.5a.75.75 0 0 1-.75-.75v-2.5Zm12.91.16L13.6 2.6a.5.5 0 0 0-.05-.04 2.07 2.07 0 0 0-.34-.25l-.05-.03-.05-.03-.16-.09c-.2-.08-.41-.12-.63-.14h-.06a.6.6 0 0 0-.08-.01H6a2 2 0 0 0-2 2v16c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V9.83a2 2 0 0 0-.59-1.42ZM18.5 20a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V4c0-.27.22-.5.5-.5h6V8c... | C# |
)("full"===e.size?"scalar-modal-layout-full":"scalar-modal-layout","fixed left-0 top-0 flex items-start justify-center","z-[1001] h-[100dvh] w-[100dvw]","bg-backdrop opacity-0 dark:bg-backdrop-dark","full"===e.size&&"flex"))},[ql(Ao(KF),{class:zn(Ao(t)({size:e.size,variant:e.variant})),style:jn({maxWidth:e.maxWidth})},... | JavaScript |
LengthValue()
}.writeTo(buf, offset)
reportBlocks.forEachIndexed { index, reportBlock ->
reportBlock.writeTo(buf, offset + RtcpRrPacket.REPORT_BLOCKS_OFFSET + index * RtcpReportBlock.SIZE_BYTES)
}
}
}
/*
* Copyright @ 2018 - present 8x8, Inc.
*
* Licensed under the Apache Lice... | Kotlin |
', 'PP'); // Display values are not currently used; PPField displayed instead
a[Fld.toxicity] = new Field('tox', 'Toxicity', 'Tox.');
a[Fld.lastmod] = new Field('lm', 'Last Modified', 'LastMod');
}
static getAbbr(fld :Fld) :string {
return Field.getField(fld).abbr;
}
static getFld(name_or_abbr :string) :Fld ... | Typescript |
ACE::create(64);
mace->salt(owners_passphrase);
vector<Mat> pos_images = ...
mace->train(pos_images);
// now, users have to give a valid passphrase, along with the image:
Mat query = ...
cout << "enter passphrase: ";
string pass;
getline(cin, pass);
mace->salt(pass);
bool same =... | C++ |
: &Fd,
path: P,
oflags: OFlags,
mode: Mode,
) -> io::Result<fs::File> {
let dirfd = dirfd.as_raw_fd();
let path = path.as_c_str()?;
unsafe { _openat(dirfd, &path, oflags, mode) }
}
unsafe fn _openat(dirfd: RawFd, path: &CStr, oflags: OFlags, mode: Mode) -> io::Result<fs::File> {
#[allow(cli... | Rust |
2, self.m_rightFull, self.m_ammoFade)
else
local ammoPerc
if wep:GetMaxClip1() <= 0 then
ammoPerc = 1
else
ammoPerc = ammo / wep:GetMaxClip1()
end
local ammoClr = self.m_warnAmmo and colorDngr or GetTextColor()
if self.m_warnAmmo then
... | Lua |
add r0, pc
ldrh r0, [r0, #6]
lsl r0, r0, #0x10
asr r0, r0, #0x10
add pc, r0
_0225FBA4: ; jump table
.short _0225FBB0 - _0225FBA4 - 2 ; case 0
.short _0225FBE2 - _0225FBA4 - 2 ; case 1
.short _0225FC08 - _0225FBA4 - 2 ; case 2
.short _0225FC3A - _0225FBA4 - 2 ; case 3
.short _0225FC5E - _0225FBA4 - 2 ; case 4
... | Assembly |
ode>: Rehydrates a chat from the most recently
/// terminated past chat contact of the specified past ended chat session. To
/// use this type, provide the <code>initialContactId</code> of the past ended
/// chat session in the <code>sourceContactId</code> field. In this type, Amazon
/// Connect determines the ... | Dart |
니다."}},
[10467] = {"수호자의 맹세", nil, {"시간의 중재자에 우호적 평판을 얻은 다음 시간의 동굴에 있는 소리도르미에게 영원의 고리를 가져가야 합니다."}},
[10468] = {"현자의 서약", nil, {"시간의 중재자로부터 매우 우호적 평판을 얻은 다음 시간의 동굴에 있는 소리도르미에게 영원의 고리를 가져가야 합니다."}},
[10469] = {"구원자의 서약", nil, {"시간의 중재자로부터 매우 우호적 평판을 얻은 다음 시간의 동굴에 있는 소리도르미에게 영원의 고리를 가져가야 합니다."}},
[10470] = {"용사의 서약", nil... | Lua |
iveConfig = new HiveConfig();
hiveConfig.setMaxSplitsToGroup(10);
final HiveSplitSource hiveSplitSource = HiveSplitSource.bucketed(
HiveTestUtils.SESSION,
"database",
"table",
10,
10,
new DataSize(1, MEGABYTE... | Java |
* 100);
bool isStoryLevel = level.SlotType == GameSlotType.Story;
bool isGameBetaBuild = dataContext.Game == TokenGame.BetaBuild;
// Update lowest rankingInPercent of any story/user level leaderboard
if (isStoryLevel)
{
dataContext.Database.UpdateUserPinProgressToLow... | C# |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
// начало программы
int main() {
// временный буфер
char buf[1000];
char buf_cookie[1000];
// получаем в переменную Cook значение Cookies
char *cook = getenv("HTTP_COOKIE");
if(cook != NULL) {
// пропускаем в ней 5 первых символов ("cook="), ес... | C |
_assemblyDefinition.MainModule.AssemblyReferences.Select(ar => new DotnetAssemblyReference(ar));
public void SaveTo(string filePath, bool withSymbols)
{
using var destinationFileStream = File.Create(filePath);
_assemblyDefinition.Write(destinationFileStream, new WriterParameters { Write... | C# |
tls_in, uint8_t *buf, size_t buf_len)
{
struct httpd_tls *tls = (struct httpd_tls *) tls_in;
return mbedtls_ssl_read(&tls->ctx, buf, buf_len);
}
int httpd_tls_write(void *tls_in, uint8_t *buf, size_t buf_len)
{
struct httpd_tls *tls = (struct httpd_tls *) tls_in;
return mbedtls_ssl_write(&tls->ctx, buf, buf_len)... | C |
clickHandler) {
if(!$ax.features.supports.mobile) {
query.click(clickHandler);
return;
}
$(query).bind('touchstart', function(e) {
// We do NOT support multiple touches. This isn't necessarily the touch we want.
var to... | JavaScript |
а парсинге HTML страниц документации,
* содержащих информацию о перечислениях. Он извлекает структурированную
* информацию о названии, описании, связанных объектах и примерах использования.
*
* Основные возможности:
* - Извлечение названий на двух языках
* - Обработка описания функциональности
* - Поддержка связ... | Kotlin |
--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-- Created by: Hang Zhang
-- ECE Department, Rutgers University
-- Email: zhang.hang@rutgers.edu
-- Copyright (c) 2016
--
-- Feel free to reuse and distribute this software for research or
-- non-profit purpose, subject to the following condit... | Lua |
#!/usr/bin/env python3
from typing import List
class Solution:
def longestCommonPrefix(self, arr1: List[int], arr2: List[int]) -> int:
pass
"""
category: combinatorics
subcategory: counting
difficulty: medium
image_path_e1: none
image_path_e2: none
image_path_e3: none
title: Find the Length of the Longes... | Python |
w", errInvalidWriter)
}
// WriteMessage writes message to the writer, it will auto write FileHeader when
// - This method is invoked on the first time of use.
// - This method is called right after SequenceCompleted method has been called.
func (e *StreamEncoder) WriteMessage(mesg *proto.Message) error {
if !e.fi... | Go |
Guid('2A35');
@override
Guid get uuid => characteristicUuid;
@override
Stream<List<int>> get onValueReceived => _valueReceivedController.stream;
@override
Future<bool> setNotifyValue(bool notify, {int timeout = 15, bool forceIndications = false}) async{
if (notify) {
_valueReceivedController.ad... | Dart |
/* lt__dirent.h -- internal directory entry scanning interface
Copyright (C) 2001, 2004, 2006 Free Software Foundation, Inc.
Written by Bob Friesenhahn, 2001
NOTE: The canonical source of this file is maintained with the
GNU Libtool package. Report bugs to bug-libtool@gnu.org.
GNU Libltdl is free softwa... | C |
g this code, you agree to the terms and conditions of the License.
* If you do not agree to such terms and conditions, you must cease using this code and immediately delete all copies of it.
*
* You may obtain a copy of the License at: https://github.com/explyt/spring-plugin/blob/main/EXPLYT-SOURCE-LICENSE.md
*
* ... | Kotlin |
lue = /** @type {number} */ (reader.readInt64());
msg.setDelegatedFrozenBalanceForEnergy(value);
break;
case 6:
var value = /** @type {number} */ (reader.readInt64());
msg.setStorageLimit(value);
break;
case 7:
var value = /** @type {number} */ (reader.readInt64());
msg... | JavaScript |
import re
from translate import translate
def test_translate_examples_in_readme():
# 1984年的四川省涪陵地区南川县
# 对应于2018年的重庆市南川区
assert translate("512323", 1984, 2018) == ["500119"]
# 2000年的湖南省衡阳市城北区
# 对应于2018年的湖南省衡阳市石鼓区、蒸湘区
assert translate("430404", 2000, 2018) == ["430407", "430408"]
# 2010年的... | Python |
further bounds this to be a minimum of 8 bytes.
* But if this isn't met, then the output result will be incorrect.
* Furthermore, due to a lack of available registers, we really can't
* unroll this to be an 8x loop (which would enable us to use the wh64
* instruction memory hint instruction).
*/
$unroll4:
EXI( ld... | Assembly |
&states.ResourceInstanceObjectSrc{
Status: states.ObjectReady,
AttrsJSON: []byte(`{"id":"foo"}`),
},
mustProviderConfig(`provider["registry.terraform.io/hashicorp/aws"]`),
)
root.SetResourceInstanceCurrent(
mustResourceInstanceAddr("aws_instance.a[1]").Resource,
&states.ResourceInstanceObjectSrc{
... | Go |
.676875V516.5609375c-95.7721875 42.1846875-183.5625 87.7903125-248.5509375 115.1540625-57.0075 30.78375-135.676875 23.94375-197.244375 1.14z" ></path><path d="M1285.0165625 563.3065625l-45.605625-45.605625V336.4184375c30.78375-19.3828125 106.033125-36.4846875-5.7-85.51125-126.556875-54.7265625-383.08875-152.77875-494.... | JavaScript |
фермер:');
tge.print('- Он выжил, он выжил! Теперь мне есть, что рассказать внукам!');
tge.print('- Пойду к летописцу, он должен записать это событие');
tge.print('Он ушёл');
await tge.wait();
tge.clear();
tge.print("Через несколько дней вы оправились после лабиринта и вернулись домой");
}
async function end6(tg... | Typescript |
pages .page-five,
.print-all-pages .page-iknis {
display: flex;
justify-content: center;
align-items: flex-start;
min-height: auto;
padding: 20px 0;
}
/* 在打印预览中隐藏主界面的固定位置按钮,但保留打印预览控制按钮 */
.print-all-pages .fixed.bottom-4.right-4:not(.print-control-buttons) {
display: none;
}
@media print {
.card-descrip... | CSS |
using System;
using System.Windows;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Interop;
using System.Windows.Controls;
using System.Windows.Media.Imaging;
using System.Windows.Media.Animation;
using System.Runtime.InteropServices;
using SakuraLibrary;
using SakuraLauncher.View;
usin... | C# |
-X-Server+347
### Headless 条件下的显卡超频
在启动图形界面的情况下,Nvidia 显卡超频较为简单,具体请参考[arch wiki](https://wiki.archlinux.org/title/NVIDIA/Tips_and_tricks#Overclocking_and_cooling)。本节讲述在不启动图形界面的情况下,也即 headless 环境下 Nvidia 显卡的超频操作。
以太坊相关一般的超频思路是:超显存,降/锁核心,有必要的情况下限制最大功率。
较为完整的步骤可以参考文章[Linux 透過命令行對顯示卡超頻](https://jybb.me/linux-overclock-... | Markdown |
_s1_s2_inner_region_s2:
return stateVector[0] == State.main_region_Composite_s1_s2_inner_region_s2;
default:
return false;
}
}
/**
* Set the {@link ITimer} for the state machine. It must be set
* externally on a timed state machine before a run cycle can be correctly
* executed.
*
* @param timer
*/... | Java |
8041476C 0040FCAC 40 82 00 24 */ bne lbl_80414790
/* 80414770 0040FCB0 80 63 00 28 */ lwz r3, 0x28(r3)
/* 80414774 0040FCB4 2C 03 00 00 */ cmpwi r3, 0
/* 80414778 0040FCB8 41 82 00 18 */ beq lbl_80414790
/* 8041477C 0040FCBC 81 83 00 00 */ lwz r12, 0(r3)
/* 80414780 0040FCC0 38 80 00 01 */ li r4, 1
/* 80414784 00... | Assembly |
7c5b258dfede258dd9b447d2a1f5a43db0e70309bb4e0259b8ed9d103e1a751fb563bb4902460667385d38325945e806726aa6db8876920dff670034f3f1
```
### `dpkg` source package: `cdebconf=0.261ubuntu1`
Binary Packages:
- `libdebconfclient0:amd64=0.261ubuntu1`
**WARNING:** unable to detect licenses! (package likely not compliant with DEP... | Markdown |
// rdcartdrag.h
//
// Stored value drag object for Rivendell carts.
//
// (C) Copyright 2013-2021 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Softw... | C |
self:create_enemy{
name = son_name,
breed = "arbror_root",
x = x,
y = 80,
}
son.master_arbror = self
son.speed = 48 + (initial_life - self:get_life()) * 5
sol.audio.play_sound("stone")
end
-- Returns the number of currently existing sons.
function enemy:get_nb_sons()
return self:get_map():g... | Lua |
",
[70630] = "Enigma Sandals",
[70640] = "Frostfire Coronet",
[70641] = "Frostfire Shoulderpads",
[70642] = "Frostfire Raiments",
[70643] = "Frostfire Wristbands",
[70644] = "Frostfire Handguards",
[70645] = "Frostfire Cord",
[70646] = "Frostfire Pants",
[70647] = "Frostfire Sandals",
[70648] = "Fro... | Lua |
: 'Обектът не е папка.',
'errNotFile' : 'Обектът не е файл.',
'errRead' : 'Неуспешно прочитане на "$1".',
'errWrite' : 'Неуспешен запис в "$1".',
'errPerm' : 'Разрешение отказано.',
'errLocked' : '"$1" е заключен и не може да бъде преиме... | JavaScript |
# SPDX-FileCopyrightText: 2020 Dan Halbert for Adafruit Industries
#
# SPDX-License-Identifier: MIT
"""
`adafruit_ble_adafruit.light_sensor_service`
================================================================================
BLE access to light sensor data.
* Author(s): Dan Halbert
"""
__version__ = "1.2.3"
__... | Python |
scope .cxd-Audio-process input[type=range]{-webkit-appearance:none;outline:none;border:none;padding:0;background:none;}.amis-scope .cxd-Audio-process input[type=range]::-webkit-slider-runnable-track{background:#d7dbdd;height:0.375rem;border-radius:0.1875rem;border:0.0625rem solid transparent;}.amis-scope .cxd-Audio-pro... | CSS |
== D3DBASIS_BEZIER)
m_uPatchWidth = m_uPatchHeight = Degrees[tc.Degree]+1;
else if (tc.Basis == D3DBASIS_BSPLINE)
{
m_uPatchWidth = Degrees[tc.Degree]+1;//((tcCount.NumPatches>>1)-tc.NumPatches);
m_uPatchHeight = Degrees[tc.Degree]+1;//(tc.NumPatches);
}
else
{
m_uPatchWidth = Degrees[tc.Degree]+1;//(tc... | C++ |
, last 2 versions, > 0.2%, not dead
```
对于这些配置对应的具体浏览器列表,大家可以去 https://browserslist.dev 站点查看:

好,在说明了目标浏览器的配置之后,接下来我们来看另外一个重要的配置——`useBuiltIns`,它决定了添加 Polyfill 策略,默认是 `false`,即不添加任何的 Polyfi... | Markdown |
/*
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
All Rights Reserved
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereb... | C |
d_date="2024-06-30",
max_cloud_cover=30.0
)
results = searcher.search(params)
assert len(results) == 1
assert results[0]['properties']['identifier'] == "S2A_MSIL1C_20240601"
@patch('requests.Session.post')
def test_search_by_geometry(self, mock_... | Python |
attedSongName.text = song.fullFormattedSongName.Replace("\n", " ");
fullFormattedSongName.color = song.CheckIsDownloaded() ? Color.gray : isCurated ? verifiedSongColor : Color.white;
uploadDateFormatted.text = song.uploadDateFormatted;
var isVerified = (song.detailsSong.uploadFlags & SongDetailsCache.Structs... | C# |
// nocapture value to other functions as long as they don't capture it.
if (isEscapeSource(O1) && AAQI.CI->isNotCapturedBefore(
O2, dyn_cast<Instruction>(O1), /*OrAt*/ true))
return AliasResult::NoAlias;
if (isEscapeSource(O2) && AAQI.CI->isNotCapturedBefore(
... | C++ |
static loadEnemy(filename: string, hue?: number): Bitmap;
static loadCharacter(filename: string, hue?: number): Bitmap;
static loadFace(filename: string, hue?: number): Bitmap;
static loadParallax(filename: string, hue?: number): Bitmap;
static loadPicture(filename: string, hue?: number): Bitmap;
st... | Typescript |
import operator
operator_dict = {
"=": operator.eq,
">": operator.gt,
"<": operator.lt,
">=": operator.ge,
"<=": operator.le
}
def select_aux(db, operand1, operator, operand2):
result = {}
for col in db:
result[col] = []
if operand2 in db:
for i in range(len(db[operan... | Python |
* Decorator which injects the current authentication principal as a parameter value.
*
* Value passed to the method will be an implementation of the `Principal` interface.
*/
export function principal(classDefinition: Object | Function, methodName: string, paramIndex: number) {
let controller = DecoratorRegistr... | Typescript |
ldr x2, [x1, 8]
#APP
// 289 "./arch/arm64/include/asm/uaccess.h" 1
bics xzr, x0, x2
csel x1, x20, xzr, eq
// 0 "" 2
// 297 "./arch/arm64/include/asm/uaccess.h" 1
hint #20
// 0 "" 2
#NO_APP
mov x2, x19
mov x0, x21
bl __arch_copy_from_user
mov x20, x0
bl uaccess_disable_not_uao
cbz x20, .L17
.L18:
sub x19, x1... | Assembly |
ка
JavaScript рекомендуют использование ключевых слов **let** и **const**, которые предоставляют более надежные и гибкие
альтернативы.
## Наименование переменных
### Правила наименования переменных
Существуют всего два ограничения, при создании переменных.
1. Имя переменной может включать в себя только буквы, цифры... | Markdown |
cmd == pSetCollimatorLengthCmd)
pDIOActor->SetCollimatorLength(pSetCollimatorLengthCmd->GetNewDoubleValue(newValue));
if (cmd == pSetBatchSizeCmd) pDIOActor->SetBatchSize(pSetBatchSizeCmd->GetNewDoubleValue(newValue));
GateActorMessenger::SetNewValue(cmd, newValue);
}
//---------------------------------... | C++ |
JS_DATE_TYPE));
if (index->value() == 0) {
__ lw(result, FieldMemOperand(object, JSDate::kValueOffset));
__ jmp(&done);
} else {
if (index->value() < JSDate::kFirstUncachedField) {
ExternalReference stamp = ExternalReference::date_cache_stamp(isolate());
__ li(scratch1, Operand(stamp));
... | C++ |
private static final Class[] lineTypeClasses = {
javax.sound.midi.Receiver.class,
javax.sound.midi.Transmitter.class,
javax.sound.midi.Sequencer.class,
javax.sound.midi.Synthesizer.class,
};
public static void main(String[] args) throws Exception {
boolean allOk = true;
... | Java |
"id" then
continue
end
if fieldtype == "createdTime" or fieldtype == "updatedTime" then
table.insert( fieldsPart, string.format( "`%s`", fieldname ) )
if DATABASES[db].CONNECTED_TO_MYSQL then
table.insert( valuesPart, "NOW()" )
else
table.insert( valuesPart, "DATETIME('now')" )
end
... | Lua |
}
[Test]
public void Test_xyP_in_A_C__rsQ_in_C_D____xy_OJ_rs_IJ()
{
RunTest(x => (x.BO1.I1 == 1 || x.K1 == 1) && ((x.BO1.I2 == 1 && x.BO2.J1 == 1) || x.BO2.J2 == 1),
Setters<TBO1_I, TK, TBO1_I, TBO2_J, TBO2_J>(MyBO.SetBO1_I1, MyBO.SetK1, MyBO.SetBO1_I2, MyBO.... | C# |
1_SHIFT), \
(((e) & ESR_ELx_SYS64_ISS_CRN_MASK) >> \
ESR_ELx_SYS64_ISS_CRN_SHIFT), \
(((e) & ESR_ELx_SYS64_ISS_CRM_MASK) >> \
ESR_ELx_SYS64_ISS_CRM_SHIFT), \
(((e) & ESR_ELx_SYS64_ISS_OP2_MASK) >> \
ESR_ELx_SYS64_ISS_OP2_SHIFT))
#define esr_cp15_to_sysreg(e) \
sys_reg(3, \
(((e) & E... | C |
erique",
[9597] = "Muisek de géant des montagnes",
[9598] = "Robe du dormeur",
[9599] = "Jambières en mailles d'écorce",
[9600] = "Pantalon lacé",
[9601] = "Bottes fourrées",
[9602] = "Lame des broussailles",
[9603] = "Bâton crisseracine",
[9604] = "Marteau de mécanicien",
[9605] = "Cape de réparateur",
[9606] = "Récip... | Lua |
output context for template ..."
// Examples:
// {{define "t"}}{{if .T}}{{template "t" .T}}{{end}}{{.H}}",{{end}}
// Discussion:
// A recursive template does not end in the same context in which it
// starts, and a reliable output context cannot be computed.
// Look for typos in the named template.
// ... | Go |
error('all args must have same length!');
}
// invoke native method
final resultBatch = await MethodChannel('me.yohom/amap_map_fluttify').invokeMethod('com.amap.api.maps.model.BuildingOverlay::isVisible_batch', [for (int i = 0; i < this.length; i++) {"refId": this[i].refId}]);
// convert native... | Dart |
assert.is_false(gstring.endswith(nil, "anything"))
end)
describe("split", function()
assert.is_same(gstring.split("", "\n"), {""})
assert.is_same(gstring.split("\n", "\n"), {"", ""})
assert.is_same(gstring.split("foo", "\n"), {"foo"})
assert.is_same(gstring.split("foo\n", "\n"),... | Lua |
const game: DwGame = this.game;
const tileSize: number = game.getTileSize();
const w: number = game.getWidth() - 4 * tileSize;
const h: number = 7 * tileSize;
const x: number = (game.getWidth() - w) / 2;
const y: number = (game.getHeight() - h) / 2;
const choic... | Typescript |
�能。不過,說到要開啟卡拉贊,這可能也只是一小塊金屬而已。","沒有麥迪文的同意,這把鑰匙就沒有價值。是的,我當然知道麥迪文已死。這只是讓事情變的困難,但不是不可能。","在艾澤拉斯有個地方叫時光之穴,由銅龍軍團守護著。想辦法進到裡面,穿過時光讓麥迪文賦予鑰匙能力。"}, {"進入時光之穴說服麥迪文讓復原的初生之鑰恢復能力。"}},
[10742] = {"攤牌", {"終於到了。我們會把苟克從他的巢穴引出來,然後我們就會殺了他。隨著苟克一死,這些血錘巨魔就再也無法威脅摩克納薩爾了。到位於戈魯爾之巢外苟克的祭壇去,接著吹響我的號角。我會出現,跟你一起面對這個戈魯爾之子。"}, {"在苟克祭壇上使用雷克薩的戰爭號角,接著殺掉苟克。完成... | Lua |
#pragma once
#include <type_traits> // std::aligned_storage_t
#include <cstring> // std::memcmp
#include <cstdint>
#include "libipc/def.h"
#include "libipc/platform/detail.h"
namespace ipc {
using storage_id_t = std::int32_t;
template <std::size_t DataSize, std::size_t AlignSize>
struct id_type;
template <s... | C |
i$v=19$m=65536,t=3,p=1$cHBwcHBwcHBwcHBwcHBwcA$MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA";
let invalid0 = "$argon2i$v=019$m=65536,t=3,p=1$cHBwcHBwcHBwcHBwcHBwcA$MDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDA";
let invalid1 = "$argon2i$v=19$m=065536,t=3,p=1$cHBwcHBwcHBwcHBwcHBwcA$MDAwMDAwMDAwMDAwMD... | Rust |
node.Index = NextOrderIndex;
if (node.Condition != null)
{
node.Condition.Accept(this);
}
if (node.Body != null)
{
node.Body.Accept(this);
}
}
}
pu... | C# |
assert_eq!(&sg1, &sg2);
}
#[test]
fn seating_grid_clone_and_ne() {
let sg1 = SeatingGrid::from_str(&TEST_INPUT_0);
let mut sg2 = sg1.clone();
sg2.seats[2][2] = Cell::Seat(SeatState::Occupied);
assert_ne!(&sg1, &sg2);
}
#[test]
fn occupied_visibility_0() {
... | Rust |
'Spreads users into multiple channels inside a category x from each voice channel',
name: commandName,
options: [
{
channel_types: [ChannelType.GuildStageVoice, ChannelType.GuildVoice],
description: 'First Voice channel to move users from',
name: 'from-voice-channel-1',
required: true,
... | Typescript |
hemaSubject-level SchemaConfig, removes the compatibility field for the
/// SchemaConfig.
///
/// Required.
/// Possible string values are:
/// - "NONE" : No compatibility check.
/// - "BACKWARD" : Backwards compatible with the most recent version.
/// - "BACKWARD_TRANSITIVE" : Backwards compatible with a... | Dart |
from uuid import uuid4
from django.core.cache import cache
from django.db import models
from care.utils.registries.feature_flag import FlagName, FlagRegistry
class BaseManager(models.Manager):
def get_queryset(self):
qs = super().get_queryset()
return qs.filter(deleted=False)
class BaseModel(m... | Python |
OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
package avail.utility.configuration
import org.xml.sax.Attributes
import org.xml.sax.SAXException
/**
* `XMLElement` is designed to be implemented only by [enumerations][Enum] that
* represe... | Kotlin |
c.rl.RUnlock()
pkeeper, ok := cc.cmds[name]
if !ok {
return errors.New("cmdctl not found: " + name)
}
if pkeeper.cmdInfo.OnStart != nil {
if err := pkeeper.cmdInfo.OnStart(); err != nil {
return err
}
}
return pkeeper.start()
}
// Stop send stop signal
// Stop("demo") will quit immediately
// Stop("demo... | Go |
import streamlit as st
import pandas as pd
import os
st.set_page_config(page_title="PrivAIlegiance – Admin Logs", page_icon="🗂️")
st.title("📊 PrivAIlegiance – Consent Log Viewer")
# Check if logs.csv exists
log_file = "logs.csv"
if os.path.exists(log_file):
df = pd.read_csv(log_file, names=["Timestamp", "Name ... | Python |
pressed.
_buttonLog.Add(args.ChangedButton);
_stateLog.Add(args.ButtonState);
// Don't route this event any more.
args.Handled = true;
}
/// <summary>
/// Store record of our fired buttons.
/// < | C# |
ame.gif)
作者一开始想在 Micro:bit 平台上实现,但两个按键和 5x5 LED 最多只能做个贪吃蛇游戏。后来作者想到在 PewPew FeatherWing 平台上做,六个按键及 8x8 LED 能展示的余地大一些。不过最终作者还是选择了一个 ATtiny24 开发板以及 1.3" OLED SH1106 I²C 模块。

### <font color="red">4、Metro M7 - 一款带 AirLift WiFi 模块的 i.MXRT1011 开发板</f... | Markdown |
angle(new Point2dImpl(400, 100),
new Point2dImpl(395, 500),
new Point2dImpl(405, 500));
final FImage pendulumImage = new FImage(800, 600);
final FImage pendulumMask = new FImage(800, 600);
for (int y = 0; y < pendulumImage.height; y++) {
for (int x = 0; x < pendulumImage.width; x++) {
if (triangle... | Java |
T_SECURE_NO_WARNINGS
#include <Windows.h>
#include <mmsystem.h>
#include <cstdint>
#include <unordered_map>
#include <unordered_set>
#include "textures.h"
#include "../render.h"
#include "../config.h"
struct DDS_PIXELFORMAT {
DWORD dwSize;
DWORD dwFlags;
DWORD dwFourCC;
DWORD dwRGBBitCount;
DWORD dwRBitM... | C++ |
}
//Write new values to nodes
(*mpP1_p) = p1;
(*mpP1_q) = q1;
(*mpP2_p) = p2;
(*mpP2_q) = q2;
(*mpPPilot_p) = p_pilot;
(*mpX) = x;
}
};
}
#endif // HYDRAULICPILOTCONTROLLEDCHECKVALVE_HPP_INCLUDED
/*-------------... | C++ |
E8]salonika|Thess)))(?:(?=[\\d\\s\\xa0.:,;\\x1e\\x1f&\\(\\)\\uff08\\uff09\\[\\]/"'\\*=~\\-\\u2013\\u2014])|$)`, "gi")
},
{
osis: ["1Thess"],
regexp: new RegExp(`(^|[^0-9A-Za-zªµºÀ-ÖØ-öø-ɏḀ-ỿⱠ-ⱿꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꟿ])((?:I(?:\\.[\\s\\xa0]*T[e\\xE8]|[\\s\\xa0]*T[e\\xE8])salonika|1(?:\\.[\\s\\xa0]*T[e\\xE8]salonika|[\... | Typescript |
CommandWindow;
Scene_Battle.prototype.createActorCommandWindow = function() {
_Scene_Battle_createActorCommandWindow.call(this);
this._actorCommandWindow.setHandler('pageup', this.commandPageup.bind(this));
this._actorCommandWindow.setHandler('pagedown',this.commandPagedown.bind(this));
... | JavaScript |
/*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <stdio.h>
#include "esp_sleep.h"
#include "esp_err.h"
#include "lp_core_main.h"
#include "ulp_lp_core.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "lp_core_mailbox.h"
... | C |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.