content
stringlengths
2
6.21k
label
stringclasses
16 values
e GNU General Public License * along with Chummer5a. If not, see <http://www.gnu.org/licenses/>. * * You can obtain the full source code for Chummer5a at * https://github.com/chummer5a/chummer5a */ using System; using System.Threading; using System.Threading.Tasks; namespace Chummer { public static class...
C#
��,还说他也是掘友,有看过我的文章...掘友真是无处不在啊,感动😹) ### 1. 描述一下Promise 这道题我会先大概介绍一下`Promise`: [`Promise`](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise) 是一个对象,它代表了一个异步操作的最终完成或者失败。由于它的`then`方法和`catch、finally`方法会返回一个新的`Promise`所以可以允许我们链式调用,解决了传统的回调地狱问题。 再说一下`then`以及`catch`方法: (此处我是直接拿我之前的...
Markdown
= intArgs[5] movsd fpArgs_offset+0(%rax), %xmm0 # %xmm0 = fpArgs[0] movsd fpArgs_offset+8(%rax), %xmm1 # %xmm1 = fpArgs[1] movsd fpArgs_offset+16(%rax), %xmm2 # %xmm2 = fpArgs[2] movsd fpArgs_offset+24(%rax), %xmm3 # %xmm3 = fpArgs[3] movsd fpArgs_offset+32(%rax), %xmm...
Assembly
agonal; if (params_.diagonalDamping) { sqrtHessianDiagonal = linear->hessianDiagonal(); for (Vector& v : sqrtHessianDiagonal | map_values) { v = v.cwiseMax(params_.minDiagonal).cwiseMin(params_.maxDiagonal).cwiseSqrt(); } } // Keep increasing lambda until we make make progress while (!tryLamb...
C++
ment.sourceIndex] = cellBehavior; } Hashtable lastSelectedCellBehaviors = new Hashtable(); foreach (IHTMLElement cellElement in _lastSelectedCells) { TableCellEditingElementBehavior cellBehavior = _tableEditingContext.GetCellBehavior(cellElement); ...
C#
ult function Slider({ isMenuOpen, toggleMenu }) { const [currentTime, setCurrentTime] = useState(new Date()); const [funFact, setFunFact] = useState(""); useEffect(() => { const fetchFunFact = async () => { try { const response = await fetch( "https://uselessfacts.jsph.pl/random.json?...
JavaScript
/* ** Lua BitOp -- a bit operations library for Lua 5.1/5.2. ** http://bitop.luajit.org/ ** ** Copyright (C) 2008-2025 Mike Pall. All rights reserved. ** ** 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...
C
_warning a.cke_notification_close{opacity:.8;filter:alpha(opacity = 80)}.cke_notification_warning a.cke_notification_close:hover{opacity:1;filter:alpha(opacity = 100)}.cke_chrome{visibility:inherit}.cke_voice_label{display:none}legend.cke_voice_label{display:none}a.cke_button_disabled,a.cke_button_disabled:hover,a.cke_...
CSS
伦敦](LOC)出席[西方八国集团](ORG)外长特别会议的[加拿大](LOC)和[日本](LOC)外相也参加了有关[科索沃](LOC)问题的讨论。 - 从[香港特别行政区筹委会](ORG)的工作实践看,建立这些制度是有必要的。 - [穆巴拉克](PER)表示,[埃及](LOC)将在未来几天内与[阿拉伯](LOC)国家加紧联系,以便就[中东](LOC)和谈的危险局势协调立场。 - 根据中央领导同志指示精神,[中央文明办](ORG)和[共青团中央](ORG)决定,在做好原有项目的基础上,有计划、有步骤地在更大范围实施扶贫接力计划。 - 据[新华社](ORG)[北京](LOC)6月6日电综合本社驻[萨那](LOC)和[突尼斯](LOC)...
Markdown
, getOutputStream()); proto.sendClientHello(CipherSuites.getV2CipherSuites()); final ByteBuffer msg = proto.getNextHandshakeMessage(); if(msg != null) { processResponse(msg); } else { logger.warning("Got EOF receiving SSLv2 Server Hello message"); } return null; } private void processResponse(Byte...
Java
uto MMI = Context.ArgStoreVector.begin(), MME = Context.ArgStoreVector.end(); for (; MMI != MME; ++MMI, Context.ExpectedDist += SlotSize) if (*MMI == nullptr) break; // If the call had no parameters, do nothing if (MMI == Context.ArgStoreVector.begin()) return; // We are either at the last param...
C++
= 'Draenor Leatherworking' }, [2528] = { exp = 4, parent = 165, name = 'Pandaria Leatherworking' }, [2529] = { exp = 3, parent = 165, name = 'Cataclysm Leatherworking' }, [2530] = { exp = 2, parent = 165, name = 'Northrend Leatherworking' }, [2531] = { exp = 1, parent = 165, name = 'Outland Leatherworking' ...
Lua
_msgSend_352( _id, _lib._sel_initWithString_attributes_1, str?._id ?? ffi.nullptr, attrs?._id ?? ffi.nullptr); return NSAttributedString._(_ret, _lib, retain: true, release: true); } NSAttributedString initWithAttributedString_(NSAttributedString? attrStr) { final _ret = _li...
Dart
")" } } class PrefixExpression(val op: Operator, val expression: Expression) : Expression() { override fun generateCode(builder: CodeBuilder){ builder.append(op).appendOperand(this, expression) } override val isNullable: Boolean get() = expression.isNullable } class PostfixExpression(...
Kotlin
the * curriculum once objects are introduced. * The {@link StdPicture} class is intended for earlier use in * the curriculum, before objects (but it can support only one * picture at a time). * See {@link GrayscalePicture} for a version that supports * grayscale images. * * <p> * <b>Getting started.</...
Java
333 14.65 Torrträsket 64.5 19.76667 Torrskogshöjden 59.4 12.65 Torrskog 59.16667 12.08333 Torrskog 59.16667 12.08306 Torrsjön 63.83333 19.5 Torrsjön 58.98333 12.11667 Torpasjön 57.3998 12.19028 Torrsjö 62.2146 17.29583 Torrsjö 57.78333 14.76667 Torrön 60.2 16.7 Torrön 58.25 16.96667 Torrön 57.81667 16.75 Torrön 58.2833...
C#
from argparse import ArgumentParser, Namespace from pathlib import Path from packs.completeness import completeness_test # type: ignore from packs.unbalanced import unbalanced_test # type: ignore from pyspark.sql import SparkSession # type: ignore def main(): # Pull args from CLI args = parse_args() ...
Python
amed?2StarPointerLayout_cpp?2: .byte 0x42, 0x34, 0x00, 0x00 # 806c1300 sHandRadius__31?2unnamed?2StarPointerLayout_cpp?2: .byte 0x41, 0xA0, 0x00, 0x00 # 806c1304 ?267396: .byte 0x42, 0x65, 0x2E, 0xE0 # 806c1308 ?267397: .byte 0x43,
Assembly
="&#91;&quot;\u535a\u4e3d\u7075\u68a6&quot;,2&#93;"><td class="tt-jam" lang="ja"><div class="poem">博麗神社の巫女さん。<br>境界に住む人間。空を飛ぶ程度の能力を持つ。<br>のんきなのか何も考えていないのか、そういう巫女さん。<br>異変が起こるとすぐに駆けつけ解決しようとするが、彼女の周りには異変が絶えない。<br>むしろ、異変を呼び込んでいるのではと疑わしい</div></td><td class="tt-zhm" lang="zh"><div class="poem">博丽神社的巫女。<br>住在境界的人类。拥有在空中飞程度的...
Markdown
cate</code> parameter in the <code>cloneTree</code> * method to <code>true</code>. * * <br> * NOTE: Applications should <i>not</i> call this method directly. * It should only be called by the cloneNode method. * * @param originalNode the original node to duplicate. * @param force...
Java
vec2Normalize(vec2Subtract(out, b, a)) export const vec2Slide = (out: Vec2Out, a: Vec2In, normal: Vec2In) => vec2AddScale(out, a, normal, -vec2Dot(a, normal)) export const vec2Lerp = (out: Vec2Out, a: Vec2In, b: Vec2In, t: number) => vec2Set(out, lerp(a.x, b.x, t), lerp(a.y, b.y, t)) export const vec2SmoothStep = ...
Typescript
from itertools import permutations pos_list = list(permutations(['1','1','2'], 3)) teacher_score = 0 min_diff = min(abs(teacher_score - int(''.join(pos_score))) for pos_score in pos_list) print(min_diff)
Python
nfig: IWailaConfigHandler, ) { super.getWailaBody(itemStack, currenttip, accessor, config) } /** * Used to write information to NBT. * * @see gregtech.api.interfaces.tileentity.IGregtechWailaProvider.getWailaNBTData * @see mcp.mobius.waila.api.IWailaDataProvider.getNBTData */ override fun getWailaNBTDa...
Kotlin
hSensitivity.RELATIVE) @get:InputFiles val devArtifactsDirectoriesInput get() = devArtifactsDirectories.asFileTree // exclude metadata with timestamp which changes with every publication .matching { exclude("**/maven-metadata.*") } // convert to provider ....
Kotlin
CB E2 90 A0 */ lfd f31, lbl_806416A0-_SDA2_BASE_(r2) /* 80186914 00182574 7C 63 0E 70 */ srawi r3, r3, 1 /* 80186918 00182578 3E 80 43 30 */ lis r20, 0x4330 /* 8018691C 0018257C 7C 63 01 94 */ addze r3, r3 /* 80186920 00182580 7C 6E 19 D6 */ mullw r3, r14, r3 /* 80186924 00182584 7C 03 03 D6 */ divw r0, r3, r0 /...
Assembly
ptr + 248 ] # asm 1: movq 248(<ptr=int64#4),>h16=int64#12 # asm 2: movq 248(<ptr=%rcx),>h16=%r14 movq 248( % rcx), % r14 # qhasm: h16 ^= *(uint64 *) ( ptr + 256 ) # asm 1: xorq 256(<ptr=int64#4),<h16=int64#12 # asm 2: xorq 256(<ptr=%rcx),<h16=%r14 xorq 256( % rcx), % r14 # qhasm: h7 ^= h16 # asm 1: xor <h16=in...
Assembly
B_WITH_CUDA if ( DataType<BinType>::type == BB_TYPE_FP32 && DataType<RealType>::type == BB_TYPE_FP32 && !m_host_only && x_buf.IsDeviceAvailable() && y_buf.IsDeviceAvailable() && Manager::IsDeviceAvailable() ) { // CUDA版 auto ptr_x = x_buf.LockDeviceMemoryConst(); ...
C
ട് ഒരു ശിശുവായി നിങ്ങളെ അവന്‍ പുറത്തു കൊണ്ട് വരുന്നു. പിന്നീട് നിങ്ങള്‍ നിങ്ങളുടെ പൂര്‍ണ്ണശക്തി പ്രാപിക്കുവാനും പിന്നീട് നിങ്ങള്‍ വൃദ്ധരായിത്തീരുവാനും വേണ്ടി. നിങ്ങളില്‍ ചിലര്‍ മുമ്പേതന്നെ മരണമടയുന്നു. നിര്‍ണിതമായ ഒരു അവധിയില്‍ നിങ്ങള്‍ എത്തിച്ചേരുവാനും നിങ്ങള്‍ ഒരു വേള ചിന്തിക്കുന്നതിനും വേണ്ടി." }, { "surah_n...
Dart
_MSC_EXTENSIONS # define GLM_MSC_EXT GLM_LANG_CXXMS_FLAG # else # define GLM_MSC_EXT 0 # endif # if __cplusplus >= 201402L # define GLM_LANG (GLM_LANG_CXX14 | GLM_MSC_EXT) # elif __cplusplus >= 201103L # define GLM_LANG (GLM_LANG_CXX11 | GLM_MSC_EXT) # elif __INTEL_CXX11_MODE__ # define GLM_LANG (GLM_LA...
C++
.mitre.org/techniques/T1134/002/ | #### Description Actor: BlackCat/ALPHV IOC Source: https://www.ic3.gov/Media/News/2022/220420.pdf Publish Date: 19 April 2022 ## Defender XDR ```KQL let MD5_IOCs = dynamic(['861738dd15eb7fb50568f0e39a69e107', '9f60dd752e7692a2f5c758de4eab3e6f', '09bc47d7bc5e40d40d9729cec5e39d73', '...
Markdown
--cfg : CfgOpenCondition local canClick=true; function Refresh(_cfg) cfg = _cfg --anchor local pivot = cfg.pivot or 5 local rect = ComUtil.GetCom(gameObject, "RectTransform") local x = 0 local y = 0 if(pivot == 1 or pivot == 4 or pivot == 7) then x = 0 elseif(pivot == 2 or pivot == 5 or pivot == 8) then x...
Lua
individual patch // //=========================================================================== int FMultiPatchTexture::CopyPixels(FBitmap *bmp, int conversion) { int retv = -1; if (conversion == noremap0) { if (bTextual || !UseGamePalette()) conversion = normal; } for(int i = 0; i < NumParts; i++) { in...
C++
#include "spr-defs.h" /* Cache init. To be called during init ONLY */ .global _cache_init .type _cache_init,@function _cache_init: /* Instruction cache enable */ /* Check if IC present and skip enabling otherwise */ l.mfspr r3,r0,SPR_UPR l.andi r4,r3,SPR_UPR_ICP l.sfeq r4,r0 l.bf .L8 l.nop ...
Assembly
utes; namespace KHSave.Lib3.Types { public enum CharacterIconType : byte { [Info] Empty, [Info] Sora, [Info] Riku, [Info] Kairi, [Info] Terra, [Info] Ventus, [Info] Aqua, [Info] Roxas, [Info] Axel, [Info] Xion, [Info] Micke...
C#
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
Python
DID_INTEL_PTL_U_H_CNVI_WIFI_1, PCI_DID_INTEL_PTL_U_H_CNVI_WIFI_2, PCI_DID_INTEL_PTL_U_H_CNVI_WIFI_3, PCI_DID_INTEL_LNL_CNVI_WIFI_0, PCI_DID_INTEL_LNL_CNVI_WIFI_1, PCI_DID_INTEL_LNL_CNVI_WIFI_2, PCI_DID_INTEL_LNL_CNVI_WIFI_3, PCI_DID_INTEL_MTL_CNVI_WIFI_0, PCI_DID_INTEL_MTL_CNVI_WIFI_1, PCI_DID_INTEL_MTL_CNVI_W...
C
formula_count += 1 # 替换公式 modified_content = replace_with_clean_blank(modified_content, f"${formula}$",(f"[FORMULA_PLACEHOLDER:{placeholder}]","complex_formular"),mode) # 处理块级公式 for i, formula in enumerate(block_pattern...
Python
9,0xe1,0x70] vdiv.d $vr4, $vr25, $vr21 # CHECK-INST: vdiv.d $vr4, $vr25, $vr21 # CHECK-ENCODING: encoding: [0x24,0xd7,0xe1,0x70] vdiv.bu $vr13, $vr13, $vr6 # CHECK-INST: vdiv.bu $vr13, $vr13, $vr6 # CHECK-ENCODING: encoding: [0xad,0x19,0xe4,0x70] vdiv.hu $vr1, $vr30, $vr5 # CHECK-INST: vdiv.hu $vr1, $vr30, $vr5 # CH...
Assembly
CE_NAME\]. core.List<core.String>? instances; /// The minimal action that you want to perform on each instance during the /// update: - REPLACE: At minimum, delete the instance and create it again. /// /// - RESTART: Stop the instance and start it again. - REFRESH: Do not stop /// the instance and limit di...
Dart
v16, v16, v17 v_cmp_ne_u32_e32 vcc, 0, v16 v_mov_b32_e32 v24, v14 s_and_b64 s[0:1], vcc, exec v_mov_b32_e32 v23, v13 BB1_12: ; %Flow161 ; in Loop: Header=BB1_10 Depth=3 s_or_saveexec_b64 s[34:35], s[34:35] v_mov_b32_e32 v34, v22 v_mov_b32_...
Assembly
the DECIDE team is located at : * * Laboratoire Lab-STICC – CNRS UMR 6285 * Equipe DECIDE * UNIVERSITÉ DE BRETAGNE-SUD * Institut Universitaire de Technologie de Vannes * 8, Rue Montaigne - BP 561 56017 Vannes Cedex * * OrbisGIS is distributed under GPL 3 license. * * Copyright (C) 2007-2014 CNRS (IRSTV FR ...
Java
irthday=m_yearEdit:GetEditText().."-"..m_monthEdit:GetEditText().. "-".. m_dateEdit:GetEditText() end; girlBtn:selected() manBtn:unselected() selectImg:setPosition(PT(girlBtn:getPosition().x+(girlBtn:getContentSize().width-selectImg:getContentSize().width)/2, girlBtn:getPosition().y+(girlBtn:getContentSize()...
Lua
smValue(ctx, _arg) if err != nil { return err } return mod.setField(ctx, "PluginInstalled_type", v.getPtr(), arg) } func (v *PluginInstalled) GetType() string { ret, err := v.getType(context.Background()) if err != nil { panic(err) } return ret } func (v *PluginInstalled) getType(ctx context.Context) (stri...
Go
val numer2: Double if (point == 1 || point == 2) { scale = (majorMass / (majorMass + minorMass)) * cbrt(minorMass / (3.0 * majorMass)) numer1 = -majorMass // The major mass is to the left of L1 and L2 if (point == 1) { scale = 1.0 - scale numer2 = +minorMass ...
Kotlin
','Segoe UI Symbol','Noto Color Emoji';position:absolute;z-index:1070;display:block;width:max-content;max-width:250px;visibility:visible;transform-origin:var(--arrow-x, 50%) var(--arrow-y, 50%);--antd-arrow-background-color:rgba(0, 0, 0, 0.85);}.css-12ud8jx.ant-tooltip-hidden{display:none;}.css-12ud8jx.ant-tooltip .ant...
CSS
# -*- coding: utf-8 -*- """ 全面測試執行腳本 此腳本用於執行所有類型的測試,包括單元測試、整合測試、端到端測試, 並生成測試覆蓋率報告和性能測試報告。 使用方法: python scripts/run_tests.py [options] 選項: --unit-tests: 執行單元測試 --integration-tests: 執行整合測試 --e2e-tests: 執行端到端測試 --coverage: 生成測試覆蓋率報告 --performance: 執行性能測試 --stress: 執行壓力測試 --all: 執行所有測試 ...
Python
ingPanel"] then local sw, sh = GetScreenWidth(), GetScreenHeight() local textWidth = sw * LayoutConfig.TextWidthPct local textHeight = sh * 0.80 DQuestGreetingScrollFrame:SetWidth(textWidth) DQuestGreetingScrollFrame:SetHeight(textHeight) DQuestGreetingScrollChildFrame:S...
Lua
.footer .social-icons a { color: var(--triple-color); margin-right: 15px; font-size: 18px; } .footer .social-icons a:hover { color: var(--primary-color); } /* Additional Adjustments */ .navbar-collapse { justify-content: flex-end; } .navbar-toggler { border-color: var(--navbar-text-color); } ...
CSS
r frameReader) *decoder { return &decoder{ reader: r, } } func (d *decoder) Close() { if d != nil && d.currentCloser != nil { d.currentCloser.Close() d.current = nil d.currentCloser = nil } } func (d *decoder) Decode(v *packet) error { ty, r, err := d.reader.NextReader() if err != nil { return err } ...
Go
for _, e := range mmGet.GetMock.expectations { if minimock.Equal(e.params, mm_params) { mm_atomic.AddUint64(&e.Counter, 1) return e.results.ip1 } } if mmGet.GetMock.defaultExpectation != nil { mm_atomic.AddUint64(&mmGet.GetMock.defaultExpectation.Counter, 1) mm_want := mmGet.GetMock.defaultExpectation...
Go
dE2BiYBL3ZqX KVwvvoFBuYz/6n1gBp7N1z3TLqMVvKjmJuVvw9y4AyHqnxbxLFS1 -----END CERTIFICATE-----`)) // D-Trust SBR Root CA 1 2022 mozillaIncluded.AppendCertsFromPEM([]byte(`-----BEGIN CERTIFICATE----- MIICXjCCAeOgAwIBAgIQUs/kjG2gSvc/gpcMgAmMlTAKBggqhkjOPQQDAzBJMQsw CQYDVQQGEwJERTEVMBMGA1UEChMMRC1UcnVzdCBHbWJIMSMwIQYDVQQD...
Go
/* SPDX-License-Identifier: GPL-2.0-only */ #include <arch/io.h> #include <console/console.h> #include <cpu/x86/smm.h> #include <smm_call.h> #include <stdint.h> static void apmc_log(const char *fn, u8 cmd) { switch (cmd) { case APM_CNT_ACPI_DISABLE: printk(BIOS_DEBUG, "%s: Disabling ACPI.\n", fn); break; case ...
C
L["Border Settings"] = "边框设置" L["Border Size"] = "边框大小 " L["Border Style"] = "边框风格" L["Bottom"] = "底部" L["Bottom Left"] = "左下" L["Bottom Right"] = "右下" L["Bracket Matching"] = "括号自动匹配" L["Browse Wago, the largest collection of auras."] = "浏览Wago,最大的光环集合网站。" L["Can be a Name or a Unit ID (e.g. party1). A name on...
Lua
if listeners.is_empty() { pending::<()>().await; } else { let _ = select_all( listeners.into_iter().map(|listener| { tokio::spawn(single_http_listener(listener, origins.clone())) }) ).await; } } /// Returns a future for a single HTTP list...
Rust
result.m[4] = 0; result.m[5] = 0; } public m = new Float32Array(6); public static Identity(): Matrix2D { let res = new Matrix2D(); Matrix2D.IdentityToRef(res); return res; } public static IdentityToRef(res: Matrix2D) { ...
Typescript
}); } else { throw Error('Root component need to declare (width, height)'); } } private _diceXY(comp: IComponent): void { if (comp.parent) { this.x = faker.random.number({ min: 0, max: <number>comp.parent.box.w - <number>this.w }); this.y = faker.random.nu...
Typescript
allengeGet_Output) ProtoMessage() {} func (*SeasonChallengeGet_Output) Descriptor() ([]byte, []int) { return fileDescriptor_c93fd103fab7cf9c, []int{29, 1} } func (m *SeasonChallengeGet_Output) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *SeasonChallengeGet_Output) XXX_Marshal(b []byte, determin...
Go
with circumflex', // MISSING '373': 'Latin small letter w with circumflex', // MISSING '375': 'Latin small letter y with circumflex', // MISSING sbquo: 'Single low-9 quotation mark', // MISSING '8219': 'Single high-reversed-9 quotation mark', // MISSING bdquo: 'Double low-9 quotation mark', // MISSING hellip: 'H...
JavaScript
1189, 1194, 1199}, }, // Remote is equal to us (so on a fork with higher td) // We should get the closest couple of ancestors {1500, 1500, []int{1497, 1499}, }, // We're higher than the remote! Odd {1000, 1500, []int{997, 999}, }, // Check some weird edgecases that it behaves somewhat rationall...
Go
lass="external text" href="https://cd.thwiki.cc?arrange=飘游轻风旅&amp;fromwiki=东方远空界_~_Ultimate_Vitality_of_Imagination_Soundtrack"><span title="搜索相似同人曲"></span></a></span></td><td class="time">03:05</td></tr><tr><td class="left"></td><td class="label">作曲</td><td class="text" colspan="2"><a href="/index.php?title=%E9%A3%98...
Markdown
inctColIdx is the index of the column to distinct upon. distinctColIdx int // Set to true at runtime when we've seen the first row. Distinct always // outputs the first row that it sees. foundFirstRow bool lastValNull bool nullsAreDistinct bool } var _ colexecop.ResettableOperator = &distinctBoolOp{} func (p...
Go
without any notations like "." or "+", except "@". For example, for /// example@example.com, this value will be /// 31c5543c1734d25c7206f5fd591525d0295bec6fe84ff82f946a34fe970a1e66 and for /// Example@example.com, this value will be /// bc34f262c93ad7122763684ccea6f07fb7f5d8a2d11e60ce15a6f43fe70ce632 If email ...
Dart
(children.size() - 1); } } private void getDatabaseObjectTreeObjectChildren(List<DatabaseObjectTreeObject> list, TreeParent tp) { for (TreeObject to: tp.children) { if (to instanceof DatabaseObjectTreeObject) { list.add((DatabaseObjectTreeObject) to); } else if (to instanceof TreeParent) { getData...
Java
3Rvcmlh 22780 cGlu 22781 IHdlJ2xs 22782 IG3DqXM= 22783 ZXh0ZW5zaW9u 22784 IHJlcHV0YXRpb24= 22785 IHRyZW0= 22786 INC90Yw= 22787 X0o= 22788 UGVvcGxl 22789 ZmFsbHM= 22790 IGNhbXBv 22791 dHJhY2s= 22792 ZW5zbw== 22793 IGNhdGVnb3I= 22794 INWq 22795 IOuwlA== 22796 IHN0cmVhbWluZw== 22797 aWZh 22798 IOCmhuCmsA== 22799 IFRyYW5zc...
Kotlin
R.U32 idx_Q, idx_Q2, 1; --:-:-:-:1 @!P1 MOV idx_Q, idx_Q2; // Scan backwards on odd rows // if idx_P2 & 1: // idx_Q = gridQ - idx_Q - 1 --:-:-:-:1 LOP.AND.NZ P2, RZ, idx_P2, 1; --:-:-:-:1 MOV negOne, -1; --:-:-:-:1 @P2 IADD3 idx_Q, -idx_Q, param_gridQ, negOne; --:-:-:-:1 BFI idx_nkpq, idx_P, 0x0c0...
CSS
isPreviousSeparator || isNextUpper || isNextSpace)) addCharacter = false; else { var isCurrentUpper = spanName[position] > 64 && spanName[position] < 91; var isPreviousLower = spanN...
C#
); currentPosition = (currentYear - 1970) * 12 + currentMonth + 1; setClickable(true); if (config.isShowLunar) lunarHelper = new LunarHelper(); if (config.signIconSuccessId != 0) { signSuccess = BitmapFactory.decodeResource(getResources(), config.signIconSuccessId); ...
Java
typeof create==='function')?warning$1(false,'Expected useImperativeHandle() second argument to be a function '+'that creates a handle. Instead received: %s.',create!==null?typeof create:'null'):void 0;}// TODO: If deps are provided, should we skip comparing the ref itself? var effectDeps=deps!==null&&deps!==undefined?d...
JavaScript
### Java * ```java * // 인자로 들어가는 문자열은 조합형 문자열임. * ExtUtil.assembleHangul("까?ABC") // "까?ABC" * ``` * * @since 2.0.0 * @return 조합형 문자들이 조합된 문자열. 조합이 불가능한 문자는 그대로 남습니다. */ fun CharSequence.assembleHangulString(): CharSequence = this.assembleHangul() /** * 초성을 [Triple.first] 문자로, 중성을 [Triple.second] 문자로, 종성을 [Tr...
Kotlin
tenthousandths) { if (hour < 0 || hour > 23 || minute < 0 || minute > 59 || second < 0 || second > 59 || tenthousandths < 0 || tenthousandths > 9999) throw LogicExceptionImpl("Time::SetTime", _("Invalid hour, minute, second values")); IBPP::itot(&mTime, hour, minute, second, tenthousandths); } v...
C++
@nth 5/24", "/// @offset 13", "/// @eval fn", ]; let spec = FunctionSpec::new("test".into(), function_type.into(), comment.into_iter()); assert_matches!( spec, Some(Ok(FunctionSpec { nth_entry_of: Some((5, 24)), of...
Rust
.noRippleClickable { onStartTracking() } .border( width = 1.dp, color = PawKeyTheme.colors.green500, ...
Kotlin
_msg .msg-item .p-info { display:block; margin:0 auto 1.2rem; font-size:1rem; text-align:center; line-height:2rem; color:#bdbdbd } .m_msg .msg-item .p-info .time { width:10rem; background-color:#ededed; border-radius:5px; margin:0 auto } .m_msg .msg-item .p-info .owner, .m_msg .msg-item .p-info .other { widt...
CSS
; KONVERT ;- - - - - ; Program fr att lgga in valfria program p STC1 cartridge. ; Disassemblerad och ndrad 91-11-01 men funkar ej... ; Omskriven 91-11-08. v0.14b funkar nu att lgga in program med. ; Genom att toggla bit 0 p fb0001 med DIP-switchen kan cartridget ; antingen auto-boota eller inte. ; v0.14c: ...
Assembly
onEditingChanged: onEditingChanged, ), ), ); } } import 'package:fast_shopping_bloc/fast_shopping_bloc.dart'; import 'package:flutter/material.dart'; import 'package:fast_shopping/l10n/l10n.dart'; import 'actions_menu.dart'; import 'shopping_list_tile_details.dart'; enum ShoppingListActio...
Dart
#ifndef __CERBERUS_SYSTEM_FILE_CONTROL_H__ #define __CERBERUS_SYSTEM_FILE_CONTROL_H__ #include <string> #ifndef _USE_CANDIDATE_FCTL_LIB #include "except/exceptions.hpp" #include <fcntl.h> #include <netinet/tcp.h> #include <arpa/inet.h> namespace fctl { inline int set_tcpnodelay(int sockfd) { int n...
C
i ].y; index++; rend.pVertices[ index ] = corners[ i ].z; index++; } */ } } /* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Cop...
C++
主管部门申请协调处理。 第三十九条 因履行工资集体协议发生争议,双方应当协商解决;协商不成的,任何一方可以申请调解或者提请仲裁。对仲裁裁决不服的,可以依法提起诉讼。 第四十条 工会、职工或者其他有关组织和个人,发现企业在签订、履行工资集体协议过程中有违反本条例规定的,可以向人力资源和社会保障主管部门投诉或者举报。人力资源和社会保障主管部门应当及时查处。 ## 第七章 法律责任 第四十一条 违反本条例规定的行为,国家和省有关法律、法规已有法律责任规定的,从其规定。 第四十二条 违反本条例第十一条规定,企业违法降低协商代表工资以及其他待遇,未经本人同意调整工作岗位,拒绝劳动合同期限自动延长的,人力资源和社会保障主管部门应当责令...
Markdown
from abc import abstractmethod, ABC from typing import List from aiogram import types class BaseStorage(ABC): @abstractmethod async def set_media_group_as_handled(self, media_group_id: str) -> bool: pass @abstractmethod async def append_message_to_media_group( self, media_group_id: s...
Python
ransition:0.5s;-webkit-transition-delay:1s;-o-transition:0.5s;-o-transition-delay:1s;transition:0.5s;transition-delay:1s;} #flyby img:nth-child(2) {position:relative;left:0px;top:-8px;-moz-transition:0.5s all ease;-moz-transition-delay:1s;-moz-transform-origin:right center;-webkit-transition:0.5s all ease;-webkit-tran...
CSS
/** @file badge_eink_dev.h */ #ifndef BADGE_EINK_DEV_H #define BADGE_EINK_DEV_H #include <stdbool.h> #include <stdint.h> #include <esp_err.h> #include <badge_eink_types.h> /** the number of horizontal pixels * @note the display is rotated 90 degrees */ #define DISP_SIZE_X 128 /** the number of vertical pixels * ...
C
struction::Jgz(r, v) => { let entry = *registers.entry(r).or_insert(0); if entry != 0 { i += v - 1; } } } i += 1; } mul_count } #[cfg(test)] mod tests { use super::*; use test::Bencher; #[bench] fn day23(b: &mut Bencher) { b.iter(|| { let input = ...
Rust
, whenever the char sequences "\r", "\n", or "\r\n" are encountered, * the running line count is incremeted by one. Additionally, the whatever * line termination sequence was encountered will be converted to a "\n" * char. Note that this class numbers lines from 0. When the first * line terminator is encountered...
Java
gtk_file_chooser_set_do_overwrite_confirmation(dlg, overwritePrompt); gtk_window_present(dlg); return tcs.Task; } private static void UpdateParent(IntPtr chooser, IWindowImpl parentWindow) { if (parentWindow.Handle is not { } handle) retur...
C#
', '手动保存:当前活动场景最近已保存,跳过'); } } emit(currentState.copyWith( isDirty: false, // 🚀 修复:手动保存后应该清除dirty状态 isSaving: false, lastSaveTime: DateTime.now(), )); } catch (e) { emit(currentState.copyWith( isSaving: false, errorMessa...
Dart
#ifndef Z_KALEIDO_SCOPE_H #define Z_KALEIDO_SCOPE_H #include <libultraship/libultra.h> #include "global.h" extern u8 gAmmoItems[]; extern s16 D_8082AAEC[]; extern s16 D_8082AB2C[]; extern u8 gEquipAgeReqs[][4]; extern u8 gSlotAgeReqs[]; extern u8 gItemAgeReqs[]; extern u8 gAreaGsFlags[]; #define MAP_48x85_TEX_WIDTH ...
C
et_header, dump_func=dump_header, doc="Which methods can be used for the cross origin request.", ) access_control_allow_origin = header_property[str]( "Access-Control-Allow-Origin", doc="The origin or '*' for any origin that may make cross origin requests.", ) access_co...
Python
.radioButtonUserAgentMacCustom.UseVisualStyleBackColor = true; this.radioButtonUserAgentMacCustom.CheckedChanged += new System.EventHandler(this.radioButtonUserAgentMacCustom_CheckedChanged); // // groupBox13 // this.groupBox13.Controls.Add(this.textBoxUserAgentTouchModeIPad); this.groupBox13.Contro...
C#
ame; this.relativePosition = relativePosition; this.width = width; this.height = height; this.defaultState = defaultState; this.yaw = yaw; this.material = material; this.customModel = customModel; } public String getAlternateName() { return altern...
Java
istener<OnServerPrecacheResources>(OnServerPrecacheResources); RegisterEventHandler<EventPlayerSpawn>(EventPlayerSpawn); RegisterEventHandler<EventItemEquip>(EventItemEquip); foreach (var command in Config.MenuCommands.Split(',')) AddCommand(command.Trim(), "", Menu.Open); } ...
C#
4); spi_cs_low(); HAL_SPI_Transmit(max572x_spi_ptr, spi_sb, 3, 100); spi_cs_high(); // printf("max5725_CODEn: "); print_3b(spi_sb); } // printf("max572x_SW_RESET\n"); // printf("max572x_POWER: "); print_3b(spi_sb); // printf("max572x_CONFIG: "); print_3b(spi_sb); // printf("max572x_WDOG: "); print_3b(spi_sb); ...
C
; font-weight: 700; font-display: swap; src: url(https://fonts.gstatic.com/s/notosansjp/v40/-F6pfjtqLzI2JPCgQBnw7HFQei0q1xVxjfp_dakBof6Bs-tb3ab2FNISVac.32.woff2) format('woff2'); unicode-range: U+6d7c, U+6d80-6d82, U+6d85, U+6d87, U+6d89-6d8a, U+6d8c-6d8e, U+6d91-6d98, U+6d9c, U+6daa-6dac, U+6dae, U+6db4-6db5, ...
CSS
tice and this permission notice shall be included in all copies or substantial portions of * the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT * LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. I...
Kotlin
axis] = Math.floor(pos); currSlide.applyCurrentZoomPan(); } }); } /** * Update position of the main scroll, * or/and update pan position of the current slide. * * Should return true if it changes (or can change) main scroll. * * @private * @param {'x' | 'y'} axis * @returns...
JavaScript
f=-2;break;end;n(c,k);break;end;else f=-2;end end end f=f+1 end t=t+1;e=d[t];end end end end until true;else t=e[g];end end end else if 126>=f then if f>=125 then if 124<=f then for o=36,70 do if f~=125 then n[e[b]]=(not n[e[g]]);break;end;local o;for f=0,6 do if f<3 then if f>=1 then if-1~=f then for l=44,93 do if f>...
Lua
SA { fn clone(&self) -> Self { *self } } #[repr(C, packed(1))] #[doc = "*Required features: 'Win32_Media_Audio'*"] pub struct MIDIINCAPSW { pub wMid: u16, pub wPid: u16, pub vDriverVersion: u32, pub szPname: [u16; 32], pub dwSupport: u32, } impl ::core::marker::Copy for MIDIINCAPSW {...
Rust
Opt)] #[structopt(rename_all = "snake")] enum Command { Artifact(ArtifactCommand), } fn main() -> Result<()> { let cmd = Command::from_args(); let subscriber = tracing_subscriber::FmtSubscriber::new(); tracing::subscriber::set_global_default(subscriber).unwrap(); match cmd { Command::Arti...
Rust
a_c+28] v_accvgpr_read_b32 v[v_c+13], a[a_c+29] v_accvgpr_read_b32 v[v_c+14], a[a_c+30] v_accvgpr_read_b32 v[v_c+15], a[a_c+31] v_cvt_f16_f32_e32 v[v_c+12], v[v_c+12] v_cvt_f16_f32_e32 v[v_c+13], v[v_c+13] v_cvt_f16_f32_e32 v[v_c+14], v[v_c+14] v_cvt_f16_f32_e32 v[v_c+15], v[v_c+15] ds_w...
Assembly
e: 'dueDate >= ? AND dueDate <= ? AND dueDate IS NOT NULL', whereArgs: [startOfDay, endOfDay], orderBy: 'dueDate ASC', ); return List.generate(maps.length, (i) { return todo_models.Todo.fromMap(maps[i]); }); } // Update a todo Future<int> updateTodo(todo_models.Todo todo) async { ...
Dart
r1, r2 b _02009598 .align 2, 0 _02009554: .4byte gUnk_03001E30 _02009558: .4byte gUnk_03002570 _0200955C: .4byte gUnk_03002630 _02009560: .4byte gUnk_03002938 _02009564: .4byte gUnk_03001E20 _02009568: .4byte 0x04000130 _0200956C: .4byte 0x000003FF _02009570: .4byte gUnk_03001410 _02009574: .4byte gUnk_0300298C _0200...
Assembly