content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
#include "PR/guint.h"
f32 sin_rad(f32 x);
f32 cos_rad(f32 x);
void guPerspectiveF(f32 mf[4][4], u16 *perspNorm, f32 fovy, f32 aspect, f32 near, f32 far, f32 scale) {
f32 cot;
s32 i, j;
guMtxIdentF(mf);
fovy *= 3.1415926 / 180.0;
cot = cos_rad(fovy/2) / sin_rad(fovy/2);
mf[0][0] = cot / aspe... | C |
//
// Colormap picker header file for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2010 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see t... | C |
using System;
using Community.Domain.Members.ValueObjects;
using Core.Domain;
namespace Community.Domain.Members.Events
{
public class BookingNotRealized : EventBase
{
public BookingNotRealized(Guid memberId, BookingOffer offer, BookingFacility facility, BookingEmployee employee, DateTime date, short d... | C# |
{
super.onInitBaseLayoutAfter()
val beanList = mutableListOf<TreeSelectBean>()
beanList.add(TreeSelectBean(text = "第一组").apply {
childList = mutableListOf<TreeSelectBean>().apply {
add(TreeSelectBean(level = level + 1, text = "第一组-1").apply {
chi... | Kotlin |
Size != 0 && key <= mKeys[mSize - 1]) {
put(key, value);
return;
}
if (mGarbage && mSize >= mKeys.length) {
gc();
}
int pos = mSize;
if (pos >= mKeys.length) {
int n = ContainerHelpers.idealIntArraySize(pos + 1);
int... | Java |
Incrementally iterate sorted set elements for elements matching a pattern.
#[inline]
fn zscan_match<K: ToRedisArgs, P: ToRedisArgs, RV: FromRedisValue>
(&mut self, key: K, pattern: P) -> RedisResult<Iter<'_, RV>> {
let mut c = cmd("ZSCAN");
c.... | Rust |
it: ValueRef
}
macro_rules! upcall (
(fn $name:ident($($arg:expr),+) -> $ret:expr) => ({
let fn_ty = Type::func([ $($arg),* ], &$ret);
base::decl_cdecl_fn(llmod, ~"upcall_" + stringify!($name), fn_ty)
});
(nothrow fn $name:ident($($arg:expr),+) -> $ret:expr) => ({
let fn_ty = Type::... | Rust |
## 2.2 二. 思考几个问题
如果要实现**MyBatis**与**Spring**的集成,那么就需要解决单独使用**MyBatis**时的几个关键对象的生命周期管理,重点考虑**SqlSessionFactory**,**SqlSession**和**Mapper**接口实例。下面罗列出需要思考的问题。
1. **SqlSessionFactory**在什么时候创建;
2. **SqlSession**如何获取;
3. **Mapper**接口实例如何生成。
## 2.3 三. Spring集成MyBatis示例
在**Spring**中集成**MyBatis**,其核心思想就是将单独使用**MyBatis*... | Markdown |
ngth;
secondCounter++;
}
GridRecipeAndUnnamedIngredients recipeunin = CurrentVisibleRecipe = GridRecipesAndUnIn[curItemIndex];
if (extraTexts.TryGetValue(curItemIndex, out LoadedTexture extraTextTexture))
{
capi.Render.Render2DTexturePrem... | C# |
�', '使用至少两名灭刃阵营的队员通过普通级别的挑战', '', '', '', '', '2025/3/26 12:00:00', '2025/04/16 03:00:00', '', '180009', '', '[[10040,30,2],[10035,10,2]]', ''},
{'10910', '', '6002', '10', '战术验证-山脉', '使用至少两名山脉阵营的队员通过困难级别的挑战', '', '', '', '', '2025/3/26 12:00:00', '2025/04/16 03:00:00', '', '180010', '', '[[10040,30,2],[10035,10,2]]', ... | Lua |
property “{0}” to True for the local repository.");
public readonly TranslationString SparseWorkingCopy = new("Sparse Working Copy");
public readonly TranslationString SparseWorkingCopySupportHasNotBeenEnabledForThisRepository = new("Git Sparse feature has not been enabled for this repository.... | C# |
/*
* Copyright 2024 Redpanda Data, Inc.
*
* Licensed as a Redpanda Enterprise file under the Redpanda Community
* License (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* https://github.com/redpanda-data/redpanda/blob/master/licenses/... | C |
{
bool first = true;
const char * message;
while((message = g_machine->GetLog().GetEntry(first)))
{
fprintf(stderr, "%s"GM_NL, message);
}
g_machine->GetLog().Reset();
delete g_machine;
delete[] script;
if(keypress || keypressOnError)
{
getchar();
}
return;... | C++ |
rownum
2023-11-05 19:35:38 99.53 1382 3120 2023-11-05 19:30 2023-11-05 19:40 1
2023-11-05 19:35:39 99.04 1216 3204 2023-11-05 19:30 2023-11-05 19:40 2
2023-11-05 19:35:32 98.95 1364 3114 2023-11-05 19:30 2023-11-05 19:40 3
2023-11-05 19:42:41 9... | Markdown |
the called task
if err := e.executeTask(targetTask, callCtx); err != nil {
return fmt.Errorf("task '%s' failed: %v", callStmt.TaskName, err)
}
// Copy back any new variables that might have been set in the called task
for k, v := range callCtx.Variables {
ctx.Variables[k] = v
}
return nil
}
// executeUseS... | Go |
[d(g,{type:"primary",onClick:_},{default:u((()=>a[11]||(a[11]=[s("保存")]))),_:1})])),_:1})])),_:1},8,["model"])])),_:1})])}}});export{v as default};
const c="data:image/svg+xml,%3csvg%20t='1642407349568'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='6204'%20w... | JavaScript |
if C then
local S = C:get_seed(R)
S.floor_h = imp.area.floor_h
if not C.conn_h then
C.conn_h = imp.area.floor_h
end
end
end
end
local function update_min_max_floor()
R.floor_min_h = entry_h
R.floor_max_h = entry_h
each B in area.walk_floors do
... | Lua |
_AddAccess_Call {
_c.Call.Return(_a0, _a1)
return _c
}
func (_c *Flags_AddAccess_Call) RunAndReturn(run func(*bind.TransactOpts, common.Address) (*types.Transaction, error)) *Flags_AddAccess_Call {
_c.Call.Return(run)
return _c
}
// Address provides a mock function with no fields
func (_m *Flags) Address() common... | Go |
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
os.write_unknown_fields(self.get_unknown_fields()... | Rust |
tum);
}
}
public class TestClass
{
public required DateTime ADateTimeProperty { get; set; }
public DateTime? ANullableDateTimeProperty { get; set; }
public string? ANullableStringProperty { get; set; }
public required string AStringProperty { get; set; }
}
public struct TestStruct
{
public ... | C# |
ter.odometer-theme-default.odometer-animating-up.odometer-animating .odometer-ribbon-inner{-webkit-transform:translateY(-100%);-moz-transform:translateY(-100%);-ms-transform:translateY(-100%);-o-transform:translateY(-100%);transform:translateY(-100%)}.odometer.odometer-auto-theme.odometer-animating-down .odometer-ribbo... | CSS |
expectedOut: []getMatcher{
matchTarget("testdata/proprietary/bin/bin1.meta_lic"),
matchTarget("testdata/proprietary/lib/liba.so.meta_lic"),
matchTarget("testdata/proprietary/lib/libc.a.meta_lic"),
matchEdge("testdata/proprietary/bin/bin1.meta_lic", "testdata/proprietary/lib/liba.so.meta_lic", "static")... | Go |
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ Duplicate group name year in regular expression
/(?<month>[0-9])-(?<year>[0-9])-(?<month>[0-9])-(?<year>[0-9... | Markdown |
e_output", 0755)
// Render each variant
backgrounds := []struct {
name string
background background.Background
}{
{"no_blur", noBlur},
{"gaussian_blur", gaussianBlur},
{"pixelated_blur", pixelatedBlur},
}
for _, bg := range backgrounds {
canvas := render.NewCanvas().
WithChrome(
chrome.N... | Go |
rs | others | x(*1)| x(*2)| - | x |
- (*1) use linux-elf as a fallback configuration
- (*2) no-asm used
- (*3) currently masm (Microsoft Macro Assembler) is used but it's no
longer supported in openssl. We need to move to use nasm or yasm.
All parameters such as sources, defines, cflags and o... | Markdown |
d) } returns "" }
test {
run("e!lang clear", "clear", null, "iid", "1234", "")
}
coVerify {
df.clearLanguagePreference("iid")
dcf.sendChannelMessage("1234", embed)
}
}
@Test
fun `Test lang command set success`() {
val embed = mockk... | Kotlin |
-dialog-auth-list-title {
margin-left: 2em;
padding-bottom: $base_padding;
}
.login-dialog {
.login-dialog-auth-list-item {
@extend %button_common;
@include button(normal, $tc:$_gdm_fg, $c:$system_base_color, $always_dark: true);
&:selected,
&:focus { @include button(focus, $tc:$_gdm_fg, $c:$syst... | CSS |
68: 3c08e809 lui t0,0xe809
bfc0806c: 35085d20 ori t0,t0,0x5d20
bfc08070: 3c030007 lui v1,0x7
bfc08074: 3463404a ori v1,v1,0x404a
bfc08078: 00081342 srl v0,t0,0xd
bfc0807c: 144306bb bne v0,v1,bfc09b6c <inst_error>
bfc08080: 00000000 nop
/home/ghj/Desktop/func/inst/n35_srl.S:37
bfc08084: 3c08afdd lui t0,0xafdd
bf... | Assembly |
nt addr_sel = 0;
!!# int store_addr = 0;
!!# int rnd_cnt = 0;
!!# int invalid_config = 1;
!!#
!!# int sjm0_w_mask = 0, sjm1_w_mask = 0;
!!# int m_tmp = 0;
!!# uint64 mask = 0;
!!# int sjm_rd0 = 0, sjm_wr0 = 0, sjm_rd1 = 0, sjm_wr1 = 0;
!!# int sjm4_dat = 0, sjm5_dat = 0, sjm4_cnt = 0, sjm5_cnt = 0;
!!#... | Assembly |
posScale1, posScale2, posScale3, posScale4,
maxAcc1, maxAcc2, maxAcc3, maxAcc4,
enable1, enable2, enable3, enable4,
sync0CycleTime); // Update positions
Step->makeAllPulses(); // Make first step right here
i... | C++ |
in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR... | C++ |
",
"GY",
"GF",
"GP",
"GU",
"GT",
"JM",
"JP",
"DJ",
"GE",
"HT",
"HU",
"HK",
"HM",
"HN",
"NL",
"IC",
"EC",
"IM",
"IN",
"ID",
"IQ",
"IR",
"... | Java |
"""
Copyright (c) 2018-2024 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | Python |
Count;
private TextView progressSecPercent;
private final Context activity;
private final OnAsyncTaskFinish finishListener;
private PowerManager.WakeLock wl;
private boolean secureDelete = false;
public DeleteFiles(Context activity){
this(activity, null, false);
}
public DeleteFiles(Context a... | Java |
(area);i > 0;i--){
if(area % i == 0){
return new int[]{area / i,i};
}
}
return new int[]{};
}
}
```
## Python:
```python
```
# [606. 根据二叉树创建字符串](https://leetcode-cn.com/problems/construct-string-from-binary-tree/)
# 题目描述:
你需要采用前序遍历的方式,将一个二叉树转换成一个由括号和整数组成... | Markdown |
await PermissionChecker.checkPhotoPermission(context);
if (!photoPermission) {
Log.error('Has no permission to access the photo library');
return;
}
// on mobile, the users can pick a image file from camera or image library
final files = await ImagePicker().pickMultiImage();
wi... | Dart |
_wins_work() {
ExtBuilder::build().execute_with(|| {
// Create a new game between players 1 and 2
assert_ok!(TicTacToe::create_game(Origin::signed(1), 2));
// 1 | |
// ---------
// 2 | 1 |
// ---------
// 2 | | 1
// Players make moves according to board diagram
assert_ok!(TicTacToe::t... | Rust |
/* c code tables-- compile to register */
fp = 1 /* enable floating-point */
.globl _regtab
_regtab=.;.int .+4
.int 20, cr20
.int 21, cr20
.int 22, cr20
.int 30, cr30
.int 31, cr30
.int 32, cr32
.int 33, cr32
.int 34, cr34
.int 35, cr35
.int 29, cr29
.int 36, cr36
.int 37, cr37
.int 38, cr38
.int 101,... | Assembly |
RegistryReference<SoundEvent> = of("block.netherite_block.fall")
@JvmField
public val NETHERRACK_BREAK: RegistryReference<SoundEvent> = of("block.netherrack.break")
@JvmField
public val NETHERRACK_STEP: RegistryReference<SoundEvent> = of("block.netherrack.step")
@JvmField
public val NETHERRACK_... | Kotlin |
.boardName,
isLogin: !!this.props.session.data.token,
handleShowOperationDialog: () => this.showOperationDialog()
});
this.fetchTopic();
}
componentWillReceiveProps(nextProps) {
const { topicItem } = nextProps;
// Seems like the code here won't be invoked since we
// display login ... | JavaScript |
urface(r, srf)
SDL.RenderCopy(r,txt,nil,rect)
end
end
local function hitButton(r,x,y)
local rect = ffi.new('SDL_Rect')
x = math.floor(x * width)
y = math.floor(y * height)
for idx,btn in ipairs(buttons) do
if x > btn.x and x < (btn.x + btn.w) then
if y > btn.y and y < (btn.y + btn.h) then
rect.x = btn... | Lua |
border-radius: 50%;
font-size: 30px;
display: inline-block;
background-color: #efefef;
top: 20px;
margin-left: -10px;
}
.cid-qpgHY13kbT .separline:before {
top: 20px;
bottom: 0;
position: absolute;
content: "";
width: 2px;
background-color: #efefef;
left: calc(50% - 1px);
height: calc(100% + 4... | CSS |
t.Fatalf("expected nil, but found %d", target.StoreID)
}
})
}
}
// TestAllocatorRebalanceThrashing tests that the rebalancer does not thrash
// when replica counts are balanced, within the appropriate thresholds, across
// stores.
func TestAllocatorRebalanceThrashing(t *testing.T) {
defer leaktest.AfterTes... | Go |
push_preserved!(),
$save2!(),
// TODO: Map PTI
// $crate::arch::x86_64::pti::map();
// Call inner function with pointer to stack
"
mov rdi, rsp
call {inner}
",
// TODO: Unm... | Rust |
leBytes() => Uint8List.fromList([123, 125]);
Uint8List _getZippedEmptyArbFilesBytes() => Uint8List.fromList([
80,
75,
3,
4,
20,
0,
8,
8,
8,
0,
154,
90,
50,
81,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
11,
0,
0,
0,
105,
110,
116,
108,
95,
100,
101,
... | Dart |
axis2] = self.margin;
if fs[axis2] > 0 {
target_size[axis2] = fs[axis2];
} else {
target_size[axis2] = container_size[axis2];
}
}
}
child.borrow_mut().set_pos((pos[0], pos... | Rust |
PUBWEAK BLE_WAKEUP_LP_Handler
PUBWEAK rwble_isr
PUBWEAK UART_Handler
PUBWEAK UART2_Handler
PUBWEAK I2C_Handler
PUBWEAK SPI_Handler
PUBWEAK ADC_Handler
PUBWEAK KEYBRD_Handler
PUBWEAK BLE... | Assembly |
et ve of ce.requests.values()){let Ie=`p${zi(ce.subject.locatorHash,rn(ce.ident),ve.requester.locatorHash).slice(0,5)}`;u.set(Ie,{subject:ce.subject.locatorHash,requested:ce.ident,rootRequester:ve.requester.locatorHash,allRequesters:Array.from(S1(ve),g=>g.requester.locatorHash)})}let pe=[...S1(ce)];if(ce.provided.range... | JavaScript |
#if (DEBUG && !UI_DEMO) || (!DEBUG && UI_DEMO)
using System.Application.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace System.Application.Services.CloudService
{
partial class MockCloudServiceClient
{
public Task<IApiResponse<List<ScriptDTO>>> Scripts()
{
... | C# |
}
item_info = __atomic_load_n(&curr_bkt[i], __ATOMIC_RELAXED);
if (item_info == 0) {
continue;
}
seg_id = GET_SEG_ID_NON_DECR(item_info);
if (target_seg_id == seg_id) {
ASSERT(item_info =... | C |
TOO_MANY_LINES_IN_LAMBDA)
fun `nested lambda with implicit parameter`() {
lintMethod(
"""
|fun foo() {
| private val allTestsFromResources: List<String> by lazy {
| val fileUrl: URL? = javaClass.getResource("123")
... | Kotlin |
: number;
@Field()
@Column("text")
content: string;
@ManyToOne(
() => Post,
post => post.comment
)
post: Post;
@CreateDateColumn()
readonly createdAt?: Date;
@UpdateDateColumn()
readonly updateAt?: Date;
}
export class Coord2 {
x: number;
y: number;
constructor(coord: { x: number; y:... | Typescript |
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using ICSharpCode.NRefactory.Parser;
using ICSharpCode.NRefactory.Ast;
namespace ICSharpCode.NRefactory.PrettyP... | C# |
The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.xudrpc.RestoreNodeResponse = function(opt_data) {
jspb.Message.initialize(this, opt_dat... | JavaScript |
// Created by Dmitry Khrykin on 2019-07-08.
//
#ifndef STRATEGR_APPLICATIONMENU_H
#define STRATEGR_APPLICATIONMENU_H
#include <QMenu>
#include <QMenuBar>
#include <strategr/actioncenter.h>
class MainWindow;
class MainScene;
class ApplicationMenu : public QMenuBar {
Q_OBJECT
public:
explicit ApplicationMenu... | C |
64c::PI * (index.0 as f64 / index.1 as f64);
let radius = if index.1 >= 2 { 100.0 } else { 0.0 };
let color = Hsv::new(ang as f32 * 180.0 / f32c::PI, 0.5, 0.9).to_rgb().to_inner();
let escaped_name = escape_xml(&breed.ident.id);
write!(breed_sprites, r#"<sprite name="{name}" x="{x}" y="{y}" heading="{h... | Rust |
rmal_Role(entity), // What it is
'agentive': Determine_Agentive_Role(entity), // How it came about
'telic': Determine_Telic_Role(entity), // Its purpose/function
'constitutive': Determine_Constitutive_Role(entity) // What it's made of
}
RETURN qualia
END
FUNCTION Disco... | Markdown |
, #68]
ldrneh r5, [r5, #10]
strneh r5, [r3, #10] @ movhi
tst ip, #61440
ldrne r6, [sp, #68]
ldrneh r6, [r6, #8]
strneh r6, [r3, #8] @ movhi
tst ip, #983040
ldrne lr, [sp, #68]
ldrneh lr, [lr, #6]
strneh lr, [r3, #6] @ movhi
tst ip, #15728640
ldrne r4, [sp, #68]
ldrneh r4, [r4, #4]
s... | Assembly |
nop
.text
.globl b_mgenaf_nqbcgSebz_64
.type b_mgenaf_nqbcgSebz_64,%function
b_mgenaf_nqbcgSebz_64:
nop
.text
.globl b__MAX6vph_648Pbyyngbe11pbzcnerHGS8REXAF_11FgevatCvrprRF3_E10HReebePbqr
.type b__MAX6vph_648Pbyyngbe11pbzcnerHGS8REXAF_11FgevatCvrprRF3_E10HReebePbqr,%function
b__MAX6vph_648Pbyyngbe11pbzcnerHGS8REXAF_11... | Assembly |
"`
// The relabelling rules to apply to each log entry before it's forwarded.
RelabelConfigs []*alloy_relabel.Config `alloy:"rule,block,optional"`
// The maximum number of items to hold in the component's LRU cache.
MaxCacheSize int `alloy:"max_cache_size,attr,optional"`
}
// DefaultArguments provides the default ... | Go |
lain text/css application/json application/javascript;
include nginx-kong-gui-include.conf;
}
> end -- of the (role == "control_plane" or role == "traditional") and #admin_listeners > 0 and #admin_gui_listeners > 0
> if role == "control_plane" then
server {
charset UTF-8;
server_name kong_cluster_listener... | Lua |
age(grandParent, NPPM_INTERNAL_CLEARINDICATOR, 0, 0);
return TRUE;
}
case IDC_CHECK_SMARTHILITECASESENSITIVE:
{
nppGUI._smartHiliteCaseSensitive = isCheckedOrNot(IDC_CHECK_SMARTHILITECASESENSITIVE);
if (nppGUI._smartHiliteCaseSensitive)
{
::SendDlgItemMessage(_hSelf, IDC_CHECK_SMA... | C++ |
xzr
#endif
alternative_else_nop_endif
#endif
3:
scs_save tsk, x0
/* No kernel C function calls after this as user keys are set. */
ptrauth_keys_install_user tsk, x0, x1, x2
apply_ssbd 0, x0, x1
.endif
msr elr_el1, x21 // set up the return data
msr spsr_el1, x22
ldp x0, x1, [sp, #16 * 0]
ldp x2, x3, [sp, #... | Assembly |
ic boolean shouldExecute() {
if (this.villagerObj.getGrowingAge() != 0) {
return false;
} else if (this.villagerObj.getRNG().nextInt(500) != 0) {
return false;
} else {
this.villageObj = this.worldObj.getVillageCollection().getNearestVillage(new BlockPos(this.... | Java |
犬'},
{'10867', '巴拿马文件', '巴拿马文件'},
{'10868', '386系统驱动游戏', '386系统驱动游戏'},
{'10869', '习公奭', '习公奭'},
{'10870', '射秽煮疫制度', '射秽煮疫制度'},
{'10871', '刁二将', '刁二将'},
{'10872', '包子病毒', '包子病毒'},
{'10873', '总统包子习', '总统包子习'},
{'10874', '电脑世代586', '电脑世代586'},
{'10875', '习背书', '习背书'},
{'10876', '刁二婚', '刁二婚'},
{'10877', '中国首席造梦大师', '中国首席造梦... | Lua |
�₆₃, TC 60₅₄₅.
'3o3j6m4j3d,'
// #2880: 4 fonts: HK 65₉₂, JP 44₁₈₀, KR 89₃₄₉, TC 61₅₄₆.
'3o3j6m7o,'
// #2881: 3 fonts: HK 65₉₂, JP 44₁₈₀, SC 58₄₄₂.
'3o3j10b,'
// #2882: 4 fonts: HK 65₉₂, JP 44₁₈₀, SC 86₄₇₀, TC 60₅₄₅.
'3o3j11d2w,'
// #2883: 4 fonts: HK 65₉₂, JP 44₁₈₀, SC 86₄₇₀, TC 61₅₄₆.
... | Dart |
*32*/ imports.NewTable("CustomDrawGrid_Flat", 0),
/*33*/ imports.NewTable("CustomDrawGrid_FocusColor", 0),
/*34*/ imports.NewTable("CustomDrawGrid_FocusRectVisible", 0),
/*35*/ imports.NewTable("CustomDrawGrid_GridHeight", 0),
/*36*/ imports.NewTable("CustomDrawGrid_GridLineColor", 0),
/*37*/ imports.NewTable... | Go |
color:var(--light);white-space:normal;border-radius:5px;width:30rem;max-height:20rem;padding:0 1rem 1rem;position:relative;overflow:auto;box-shadow:6px 6px 36px #00000040}.popover>.popover-inner[data-content-type][data-content-type*=pdf],.popover>.popover-inner[data-content-type][data-content-type*=image]{max-height:10... | CSS |
libertação. Procure lobos doentes nas proximidades e mate-os. Por favor, $N, acabe com a miséria deles - isso certamente acalmará a minha.",
["O"] = "Destrua 8 Lobos Doentes e depois retorne para Mulgris Deepriver no Assombrado Contorcido, nas Terras Pestilentas Ocidentais.",
["T"] = "A vida selvagem também sof... | Lua |
XRVMU5NTFZSbGMzUWdRMEV4RHpBTkJnTlZCQW9NQmsxTQpSbXh2ZHpFV01CUUdBMVVFQ3d3TlRFUkJVQzFUVTB3dFZHVnpkREFlRncweU5UQXpNRE14TnpJMU1qVmFGdzB5Ck5UQXpNRFF4TnpJMU1qVmFNRXN4SURBZUJnTlZCQU1NRjAxTVJteHZkeUJNUkVGUUxWTlRUQzFVWlhOMElFTkIKTVE4d0RRWURWUVFLREFaTlRFWnNiM2N4RmpBVUJnTlZCQXNNRFV4RVFWQXRVMU5NTFZSbGMzUXdnZ0VpTUEwRwpDU3FHU0liM0RRR... | Markdown |
# ifdef DEBUG
static const char * const avahi_states[] =
{ // AvahiEntryGroupState strings
"AVAHI_ENTRY_GROUP_UNCOMMITED",
"AVAHI_ENTRY_GROUP_REGISTERING",
"AVAHI_ENTRY_GROUP_ESTABLISHED",
"AVAHI_ENTRY_GROUP_COLLISION",
"AVAHI_ENTRY_GROUP_FAILURE"
};
# endif // DEBUG
(void)srv;
DE... | C |
connectToHotspot(
ssid: String,
password: String,
callback: ((Boolean, String?) -> Unit)? = null
) {
if (!isInitialized) {
callback?.invoke(false, "WiFi热点管理器未初始化")
return
}
VTCoroutineUtil.getScope(SCOPE_NAME).launch {
try {
... | Kotlin |
nalString).toBe(simpleSrt);
});
it('should show time range error', () => {
const simpleSrt = '5.05 --> 5.04\nFoo';
const result = parseSimpleSrt(simpleSrt);
expect(result.errors[0] && result.errors[0].errorType)
.toBe(errorMessages.TIME_RANGE);
});
it('should ... | Typescript |
, name = "Title", help = "The title of the game rule shown in the list of game rules",
editor = "text", default = false, translate = true, },
{ category = "General", id = "description", name = "Description", help = "Text description of the game rule",
editor = "text", default = false, translate = true, lines ... | Lua |
nt_pos.y)
self:SetSize(w, h)
BaseClass.PerformLayout(self)
end
local function GetMSBColorForPlayer(ply)
local color = color_blacktrans -- not yet confirmed
if ply:OnceFound() then
if ply:HasRole() then
local roleColor = ply:GetRoleColor()
color = Color(roleColor.r, ro... | Lua |
{v3.b}[2], [x2], x1
ld1 {v3.b}[3], [x2], x1
ld1 {v3.b}[4], [x2], x1
ld1 {v3.b}[5], [x2], x1
ld1 {v3.b}[6], [x2], x1
ld1 {v3.b}[7], [x2] // v3.8b high 8bit in left
uxtl v2.8h, v2.8b
uxtl v3.8h, v3.8b
sub v0.8h, v1.8h, v0.8h
sub v2.8h, v3.8h, ... | Assembly |
default:
fprintf(stderr, "CURLMSG default\n");
abort();
}
}
}
```
## Loading libraries
libuv提供了一个跨平台的API来加载[共享库shared libraries](http://liaoph.com/linux-shared-libary/)。这就可以用来实现你自己的插件/扩展/模块系统,它们可以被nodejs通过`require()`调用。只要你的库输出的是正确的符号,用起来还是很简单的。在载入第三方库的时候,要注意错误和安全检查,否则你的程序... | Markdown |
e, a := 2, q.Len(); e != a {
t.Errorf("Expected %v, got %v", e, a)
}
q.Add("foo") // should not increase the queue length.
if e, a := 2, q.Len(); e != a {
t.Errorf("Expected %v, got %v", e, a)
}
}
/*
Copyright 2014 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the ... | Go |
_DISKPATCH: return langRomTypeDiskPatch();
case ROM_CASPATCH: return langRomTypeCasPatch();
case ROM_TC8566AF: return langRomTypeTc8566afFdc();
case ROM_TC8566AF_TR: return langRomTypeTc8566afTrFdc();
case ROM_MICROSOL: return langRomTypeMicrosolFdc();
case ROM_ARC: return "Parall... | C++ |
422a7cc5 */
1.7080809021e+02, /* 0x432acedf */
1.6673394775e+02, /* 0x4326bbe4 */
};
static const float qS3[6] = {
4.8758872986e+01, /* 0x42430916 */
7.0968920898e+02, /* 0x44316c1c */
3.7041481934e+03, /* 0x4567825f */
6.4604252930e+03, /* 0x45c9e367 */
2.5163337402e+03, /* 0x451d4557 */
-1.4924745178e+... | C |
s_cavedrillv3 = {
"nes_cavedrillv3", NULL, NULL, NULL, "2023",
"Cave Driller (HB, v3.0)\0", NULL, "Mazionach", "NES / Famicom",
NULL, NULL, NULL, NULL,
BDF_GAME_WORKING | BDF_HOMEBREW, 1, HARDWARE_NES, GBF_ACTION, 0,
NESGetZipName, nes_cavedrillv3RomInfo, nes_cavedrillv3RomName, NULL, NULL, NULL, NULL, NESInputInf... | C++ |
/*
* Copyright 2025 Redpanda Data, Inc.
*
* Licensed as a Redpanda Enterprise file under the Redpanda Community
* License (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* https://github.com/redpanda-data/redpanda/blob/master/licenses/... | C |
px;overflow: hidden;border-radius: 2px;}.WB_tab_b .W_mod_shadow .opt_bar{margin-bottom: 0;}.WB_tab_b .opt_bar .W_btn_a,.WB_tab_b .opt_bar .W_btn_b{margin-right: 6px;}.WB_tab_b .opt_bar .W_fr .W_btn_a,.WB_tab_b .opt_bar .W_fr .W_btn_b{margin-right: 0;}.WB_tab_b .opt_bar .text{margin-right: 4px;}.WB_tab_b .opt_bar .W_fl ... | CSS |
/*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
* Copyright (C) 1992 Ross Biro
* Copyright (C) Linus Torvalds
* Copyright (C) 1994, 95, 96, 97, 98, 2000 Ralf Baechle
* Copyright (C) 199... | C |
/// yet and ratcheting, of course, did not solve the problem. So if we fail RATCHET_WINDOW_SIZE times,
/// we come back to the initial key.
if (initialKeySet != null) {
logger.warning(
'decryption failed, ratcheting back to initial key, keyIndex: $initialKeyIndex');
await... | Dart |
yright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | Java |
其值越大,幅度越小,三个 DATA 通道的配置必须一致。 |
| D1 幅度 | HDMI DATA1 通道信号幅度,范围:0 - 15,其值越大,幅度越小,三个 DATA 通道的配置必须一致。 |
| D2 幅度 | HDMI DATA2 通道信号幅度,范围:0 - 15,其值越大,幅度越小,三个 DATA 通道的配置必须一致。 |
举例如下:
```
&hdmi {
status = "okay";
rockchip,phy_table =
<165000000 0 0 17 17 17 17>,
<340000000 0 0 14 17 17 17>,
<59400000... | Markdown |
decoration: TextDecoration.lineThrough,
height: 1.1,
),
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
),
],
],
);
}
// Removed old capsule style sold bar; replaced with bottom red banner.
Widget _... | Dart |
weight:bold}.highlight .no{color:#008080}.highlight .ni{color:#800080}.highlight .ne,.highlight .nf{color:#900;font-weight:bold}.highlight .nn{color:#555}.highlight .nt{color:#000080}.highlight .nv{color:#008080}.highlight .ow{font-weight:bold}.highlight .w{color:#bbb}.highlight .mf,.highlight .mh,.highlight .mi,.highl... | CSS |
jp loadRoomCollisions
wallRetraction_dungeon8:
ld a,(wCutsceneState)
rst_jumpTable
.dw @state0
.dw @state1
@state0:
ld a,GFXH_ANCIENT_TOMB_WALL_RETRACTION
jp func_701d@func_702f
@state1:
ld a,(wTmpcbb3)
rst_jumpTable
.dw func_701d@cbb3_00
.dw @cbb3_01
@cbb3_01:
ld a,$3c
call setScreenShakeCounter
call ... | Assembly |
outputter.visitInsn(LSUB);
break;
case FLOAT:
bcoutputter.visitInsn(FCONST_1);
bcoutputter.visitInsn(FSUB);
break;
case DOUBLE:
bcoutputter.visitInsn(DCONST_1);
bcoutputter.visitInsn(DSUB);
break;
default:
bcoutputter.visitInsn(ICONST_1);
bcoutputter.visitInsn(IS... | Java |
Equal(g(_.of('aaa'))(), O.none)
})
it('tapEither', () => {
const f = (s: string) => (s.length <= 2 ? E.right(s + '!') : E.left(s.length))
const g = _.tapEither(f)
U.deepStrictEqual(g(_.of(''))(), O.some(''))
U.deepStrictEqual(g(_.of('a'))(), O.some('a'))
U.deepStrictEqual(g(_.of('aa'))(), O.som... | Typescript |
LETTER A WITH CIRCUMFLEX AND GRAVE
pub const KEY_Acircumflexgrave: u32 = 0x0100_1ea6;
/// U+1EA7 LATIN SMALL LETTER A WITH CIRCUMFLEX AND GRAVE
pub const KEY_acircumflexgrave: u32 = 0x0100_1ea7;
/// U+1EA8 LATIN CAPITAL LETTER A WITH CIRCUMFLEX AND HOOK ABOVE
pub const KEY_Acircumflexhook: u32 = 0x0100_1ea8;
/// U+1EA... | Rust |
def is_mirror(str1, str2):
filter1 = ''.join(filter(str.isalpha, str1))
filter2 = ''.join(filter(str.isalpha, str2))
return filter1 == filter2[::-1]
"""
Given two strings, determine if the second string is a mirror of the first.
A string is considered a mirror if it contains the same letters in reverse ... | Python |
++)
c++ ;
nodecounts.push_back(c) ;
bool hasnode=false ;
for(int j=1;j<c;++j)
if(bfaceinfo[i][3] != bfaceinfo[i+j][3])
hasnode = true ;
if(hasnode) {
new_bnodes += bfaceinfo[i][0] ;
// now divide face up based on boundary id
for(int j=0;j<c;) {
int c2 = 0 ;... | C++ |
057, 0.28095, -0.75666}, {-3.45541, 0.19746, 0.41907}, {-1.05013, 0.14591, -1.18833}, {-4.65415, 0.0397, -0.29381}, {-2.52233, -0.00896, -1.38923}, {-4.24111, -0.06443, -0.60023}, {-2.07876, -0.05923, -0.96274}, {-1.73229, -0.04274, -0.29595}, {0.0, -0.0, 0.0}};
Assertions.assertEquals(S_.length, expected_S_.le... | Java |
,"Integer")["$==="](r))?r:a(t(r,0))?1:a(n(r,0))?-1:0},$.$$arity=1),e.defn(h,"$==",c=function(t){var n=this,r=i;try{return!!a(n["$equal?"](t))||n["$<=>"]!=e.Kernel["$<=>"]&&(n.$$comparable?(delete n.$$comparable,!1):!!a(r=n["$<=>"](t))&&0==e.const_get_relative(g,"Comparable").$normalize(r))}catch(o){if(!e.rescue(o,[e.co... | JavaScript |
gle_register)
{
int r1, r2; /* Values of R fields */
RRE0(inst, regs, r1, r2);
/* Multiply signed registers ignoring overflow */
regs->GR_L(r1) = (S32)regs->GR_L(r1) * (S32)regs->GR_L(r2);
} /* end DEF_INST(multiply_single_register) */
/*------------------------------... | C |
8C 02006330 */ andi $v1, $v1, 0x2
/* EFF058 80083A90 14006010 */ beqz $v1, .Llevel_12_80083AE4
/* EFF05C 80083A94 070022A6 */ sh $v0, 0x7($s1)
/* EFF060 80083A98 CB89010C */ jal rand
/* EFF064 80083A9C 00000000 */ nop
/* EFF068 80083AA0 0F002396 */ lhu $v1, 0xF($s1)
/* EFF06C 80... | Assembly |
local sbox_noclip = GetConVar("sbox_noclip")
local function EnableDisableNoclip(ply)
return ply:FAdmin_GetGlobal("FADmin_CanNoclip") or
((FAdmin.Access.PlayerHasPrivilege(ply, "Noclip") or sbox_noclip:GetBool())
and not ply:FAdmin_GetGlobal("FADmin_DisableNoclip"))
end
FAdmin.StartHooks["zz_No... | Lua |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.