content
stringlengths
2
6.21k
label
stringclasses
16 values
Gater connGtr, err = gating.NewExtendedConnectionGater(datastore) if err != nil { return nil, fmt.Errorf("failed to open connection gater: %w", err) } if cfg.DisablePrivateIPScan { // Prevent dialing of public addresses connGtr = gating.AddBlocking(connGtr, cfg.DisablePrivateIPScan) } connGtr = gating.AddBa...
Go
onstructor for create a load state */ private LoadState( InputStream stream, String name ) { this.name = name; this.is = new DataInputStream( stream ); } private static final class GlobalsUndumper implements Globals.Undumper { public Prototype undump(InputStream stream, String chunkname) throws IOExcepti...
Java
ZGhTS0TJeBwOT0aJ2BYNKJl+TtOTUUKLJhRfF/AoqUULivugDqX8SU88YN3WAyXwnvjmsJ4oE12LrlcwoYyYFv1ebMe44I3vgiCYBe/RCu/TGd+PUMFw48IreAFoy9k4hv/J6QAAAABJRU5ErkJggg==); background-position: center; background-repeat: no-repeat; } .dx-searchbox .dx-texteditor-input, .dx-searchbox .dx-placeholder:before { padding-left: 37px; } ....
CSS
e want // its state, but we aren't actually changing it (we hope). This should really // construct a copy of the preprocessor. Preprocessor &TmpPP = const_cast<Preprocessor&>(PP); DiagnosticsEngine *OldDiags = &TmpPP.getDiagnostics(); TmpPP.setDiagnostics(TmpDiags); // Inform the preprocessor that we don't...
C++
ber(dt, fmt) { val duration = now - dt val diffMinutes = duration.inWholeMinutes val localDt = dt.toLocalDateTime(timeZone) mutableStateOf(fmt(timeDiff(diffMinutes = diffMinutes), localDt, duration)) } return timeString } object TimeDescriptionDefaults { @Composable fun...
Kotlin
{ static const char str[] = "Hello World"; return value_create_string(str, sizeof(str) - 1); } else if (id == TYPE_PTR) { static int int_val = 15; return value_create_ptr(&int_val); } else { log_write("metacall", LOG_LEVEL_ERROR, "Unrecognized return type"); } } return NULL; } functi...
C++
Color(ARC9.GetHUDColor("fg", 200 * hint_alpha)) surface.SetTextColor(ARC9.GetHUDColor("fg", 200 * hint_alpha)) surface.SetTextPos(hx, hy) strreturn = CreateControllerKeyLine( {x = hx, y = hy, size = ARC9ScreenScale(9), font_keyb = "ARC9_10", font = "ARC9_10" }, { hint.glyph, SIZE }, (hint.glyph2...
Lua
64 & neededBytes ); // These set stats within the profile as a enum/value pair virtual void SetStatInt( int stat, int value ); virtual void SetStatFloat( int stat, float value ); virtual int GetStatInt( int stat ); virtual float GetStatFloat( int stat); virtual idPlayerProfile * GetProfile() { retu...
C
E=A[C],E.type==="byname"&&E.name===g){P=C;break}if(P>0&&P<A.length-1){var T=[];for(C=0;C<A.length;C++)E=A[C],(A[C].type!=="byname"||C>P)&&T.push(E);A=T}}A.length>0?h(A):(e.emit("plotly_animated"),u())})}function Adt(e,t,r){if(e=xa.getGraphDiv(e),t==null)return Promise.resolve();if(!xa.isPlotDiv(e))throw new Error("This...
HTML
.md) | 13 | Fine-Grained Control of Authorization | Jonathan Jove | Final | | [CAP-0019](cap-0019.md) | 13 | Future-upgradable TransactionEnvelope type | David Mazières | Final | | [CAP-0020](cap-0020.md) | 11 | Bucket Initial Entries | Graydon Hoare | Final | | [CAP-0021](cap-0021.md) | 19 | Generalized transaction pr...
Markdown
ifq->ifq_head; tqn != NULL; ) { nat = tqn->tqe_parent; tqn = tqn->tqe_next; if (nat->nat_p != IPPROTO_TCP) continue; if ((nat->nat_tcpstate[0] > IPF_TCPS_ESTABLISHED) && (nat->nat_tcpstate[1] > IPF_TCPS_ESTABLISHED)) { nat_delete(nat, NL_EXPIRE); removed++; ...
C
" content="no-cache"> <title>dataAc demo</title> <link rel="stylesheet" href="./css/bootstrap.min.css"> <style> blockquote > p{ font-size: 14px; } h4{ margin-top: 30px; } .row{ padding: 0px 15px; } </style> </head> <body...
HTML
cf7a127b2042cb7a85e4144baa4e2ce.png) 其中 **a** 为基长, **h** 为六角棱镜的高度。 > 表面积= ![6ah + 3\sqrt{3}a^{2} ](img/317690b626f401af8024999485e02140.png "Rendered by QuickLaTeX.com") > 体积= ![\frac{3\sqrt{3}}{2}a^{2}h ](img/d5571d197300b2a1eea3c4b56b5dc5c6.png "Rendered by QuickLaTeX.com") **例:** ``` Input : a = 4, h = 3 Outpu...
Markdown
if (projectNodes is []) { return null; } if (targetFramework == null) { if (projectNodes.Count > 1) { logger.LogError("Project '{ProjectPath}' targets multiple frameworks. Specify which framework to ...
C#
std::string, std::unique_ptr<BaseFeature>> BAASFeature::features; BAASFeature* BAASFeature::instance = nullptr; BAASFeature* baas_features = nullptr; BAASFeature* BAASFeature::get_instance() { if (instance == nullptr) { instance = new BAASFeature(); } return instance; } void BAASFeature::load() ...
C++
import os import torch from torchlogic.nn import LukasiewiczChannelAndBlock, LukasiewiczChannelOrBlock, Predicates, ConcatenateBlocksLogic from pytest import fixture ROOT_DIR = os.path.dirname(os.path.abspath(__file__)) PARENT_DIR = os.path.abspath(ROOT_DIR) class TestLukasiewiczChannelBlock: @fixture def...
Python
**组件:** Cairo 中的组件是封装特定功能的可重用代码片段。Solidity 中组件的等价物是抽象合约,尽管它们在使用方式上略有不同,但它们共享相似的可重用代码概念,这些代码不能直接实例化,旨在由其他合约扩展或使用。 与 Cairo 中的合约类似,组件可以包含存储、事件和函数,但它们不能被声明或部署。它们只能被注入到任何智能合约中,并最终成为嵌入它们的合约字节码的一部分。 # 可嵌入实现:组件的构建基石 虽然组件为 Starknet 上的智能合约提供了强大的模块化功能,但它依赖于一些底层概念,其中之一是**可嵌入实现**。 可嵌入实现(embeddable implementation)是可以嵌入到任何其他智能合约中...
Markdown
portant; } .cont.s--signup .sub-cont { transform: translate3d(0, 0, 0) !important; } .cont.s--signup .img__text.m--in { transform: translateX(0px) !important; transform: translateY(0) !important; } .cont.s--signup .img__text.m--up { transform: translateX(0px) !important; transf...
CSS
gEnabled: DWORD, FlightingLevel: DWORD, DynamicConfig: PVOID, AutoSampleSubmission: DWORD, EnableThreatLogging: DWORD, ProductName: PWCHAR, PassiveMode: DWORD, SenseEnabled: DWORD, SenseOrgId: PWCHAR, Attributes: DWORD, BlockAtFirstSeen: DWORD, PUAProtection: DWORD, SideBySidePassiveMode: DWORD,...
Rust
ArrayAdapter<String> array_adapter = new ArrayAdapter<>( mContext, R.layout.message ); ListView list = (ListView) findViewById(R.id.list); list.setAdapter( array_adapter ); list.setOnItemClickListener( this ); list.setDividerHeight( 2 ); // setTitle( R.string.title_calib_check ); // NOTE n...
Java
] } } if (unknowns.attribute) { if (bindings[unknowns.attribute]) { bindings[unknowns.attribute].push(latestFact.attribute) } else { bindings[unknowns.attribute] = [latestFact.attribute] } } if (unknowns.value) { if (bindings[unknowns.value]) { bind...
Typescript
""" def __init__(self, data_path, custom_grouping=None, **kwargs): """ """ if custom_grouping is None: num_classes = 601 label_mapping = None else: num_classes = len(custom_grouping) label_mapping = get_label_mapping("custom_imagen...
Python
/* Copyright (c) 2005-2018 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 la...
C
icalize & store chunks assert isinstance(chunks, dict) op._chunks = { pxu.as_canonical_axes( ax, rank=op.dim_rank, )[0]: chunk_size for (ax, chunk_size) in chunks.items() } # Update op.apply() to perform re-chunking def op_apply(_, arr: pxt.NDArray) -...
Python
7: // rs1==x23, rd==x10, // opcode:lhu op1:x23; dest:x10; immval:-0x800; align:0 TEST_LOAD(x1,x3,0,x23,x10,-0x800,20,lhu,0) inst_28: // rs1==x12, rd==x14, // opcode:lhu op1:x12; dest:x14; immval:-0x800; align:0 TEST_LOAD(x1,x3,0,x12,x14,-0x800,24,lhu,0) inst_29: // rs1==x19, rd==x8, // opcode:lhu op1:x19; dest:x8;...
Assembly
QoGZ3JvdXBzGAEgAygLMhEubmFrYW1hLmFwaS5Hcm91cFIGZ3JvdXBzEhYKBmN1cnNvchgCIAEoCVIGY3Vyc29y'); @$core.Deprecated('Use groupUserListDescriptor instead') const GroupUserList$json = const { '1': 'GroupUserList', '2': const [ const { '1': 'group_users', '3': 1, '4': 3, '5': 11, '6': '.naka...
Dart
Would you like to apply these changes?" L["Progress"] = "Progress Watch" L["Progress_Cycle"] = "<Alt+Click> Cycle display" L["Progress_OpenArt"] = "<Click> Open equipped artifact" L["Progress_OpenHonor"] = "<Click> Open honor talents" L["Progress_OpenRep"] = "<Click> Open faction list" L["Raid_30Width"] = "30 Player W...
Lua
Event::pageX( /* [retval][out] */ long* /*result*/) { return E_NOTIMPL; } HRESULT STDMETHODCALLTYPE DOMUIEvent::pageY( /* [retval][out] */ long* /*result*/) { return E_NOTIMPL; } HRESULT STDMETHODCALLTYPE DOMUIEvent::which( /* [retval][out] */ long* /*result*/) { return E_NOTIMPL; } // DOM...
C++
val onBootUpdateSuccessful: ConfigUpdateStatus = ConfigUpdateStatus.STATUS_OFF, val onPluggedUpdateSuccessful: ConfigUpdateStatus = ConfigUpdateStatus.STATUS_OFF, val chargingSwitchUpdateSuccessful: ConfigUpdateStatus = ConfigUpdateStatus.STATUS_OFF, val prioritizeBatteryIdleModeSuccessful: ConfigUpdate...
Kotlin
add r1, r3, #0x500 ldrsh ip, [r1, #0xd4] b _0203AB28 _0203AB10: add r1, r3, r2, lsl #1 ldrsh r1, [r1, #0x12] cmp r0, r1 moveq r0, r2 bxeq lr add r2, r2, #1 _0203AB28: cmp r2, ip blt _0203AB10 mvn r0, #0 bx lr .align 2, 0 _0203AB38: .word _020AFE5C arm_func_end sub_0203AAF8 arm_func_start sub_0203AB3C su...
Assembly
ct_group, object_ungroup, opera_alt, paperclip, paragraph, paypal, pentagon, polygon, previous, print, process, pump, question_circle, record_audio, reddit_alien_alt, redo, refresh, repeat, right_indent, right_indent_alt, rocket, ruler,...
Dart
throw new Error('Wasm return value ' + expected + ' expected, got ' + v8); } ; } function f10(action) { let v8 = action(); if (!Number.isNaN(v8)) { throw new Error('Wasm return value NaN expected, got ' + v8); } ; } let v9 = Math.fround; v3 = f2('\0asm\r\0\0\0\x01\t\x02`\x01~\x01~`\0\0\x...
JavaScript
#include "overlay006/feebas_fishing.h" #include <nitro.h> #include <string.h> #include "field/field_system.h" #include "heap.h" #include "inlines.h" #include "map_matrix.h" #include "narc.h" #include "record_mixed_rng.h" #include "unk_0205F180.h" // Calculates if the player is facing a Feebas tile, but exits early ...
C
#include "bcftools.pysam.h" /* Copyright (C) 2019 Genome Research Ltd. Author: Petr Danecek <pd3@sanger.ac.uk> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software withou...
C
t::getSSLSharedCiphers(std::string& sharedCiphers) const { char ciphersBuffer[1024]; ciphersBuffer[0] = '\0'; SSL_get_shared_ciphers(ssl_.get(), ciphersBuffer, sizeof(ciphersBuffer) - 1); sharedCiphers = ciphersBuffer; } void AsyncSSLSocket::getSSLServerCiphers(std::string& serverCiphers) const { serverCiphe...
C++
dding: 0; } /* Some bootstrap implementations mess the layout up! */ .dashboard, .dashboard * { box-sizing: initial; } div.dashboard div { background: none !important; cursor: move; height: 165px; overflow: hidden; padding-top: 10px; position: relative; width: 147px; } div.dashboard caption { color: #CF0; ...
CSS
的东西,要搬回临高博物馆做展览。 “我怎么觉得我们像英国人……什么古董都往自己的博物馆里塞……”聂义峰举着望远镜,植被的缝隙中看到了海兵的身影,不由自主地把自己代入到了旧时空殖民侵略者的位置上。 “这是老祖宗的东西,放在咱们自己的博物馆里,不倒白不倒!”陈亮不再看西北方向,而是仔细观察着海岸线,突然脸色一变,“东南方向,有船!” 这可是个重要发现,西沙宋代开始就是重要的渔场但并不代表这里是人类活动多的地方,头一次来就能遇到船的概率和买彩票差不多。大家的目光立刻集中到了东南方向,很快发现了海边有几艘大小不同的渔船模样的船只随海浪漂浮,还有一艘稍大一些的似乎是被礁石卡住了,任凭海浪拍打一动不动。 “要不要过去看看?”陈亮踢了一下...
Markdown
RI, 1, env); function!(global, name::ENCODE_URI_COMPONENT, Global_encodeURIComponent, 1, env); value!(global, name::NAN, JsValue::new_number(f64::NAN), false, false, false, env); value!(global, name::INFINITY, JsValue::new_number(f64::INFINITY), false, false, false, env); value!(global, name::UNDEF...
Rust
// Written by Adrian Musceac YO8RZZ , started March 2016. // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License as // published by the Free Software Foundation; either version 3 of the // License, or (at your option) any later version. // // T...
C
406px; background-size: 428px 406px; } } .dropzone .preview .error-mark span, .dropzone .preview .success-mark span { display: none; } .dropzone .preview .error-mark { background-position: -268px -123px; } .dropzone .preview .success-mark { background-position: -268px -163px; } .dropzone .preview .progress...
CSS
]; window.configParams = { beta: true,// 必须这么写,否则wx.invoke调用形式的jsapi会有问题 debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。 appId: "[[${signConfig.appId}]]", // 必填,企业微信的corpID timestamp: "[[${signConfig.timestamp}]]", /...
HTML
ed_ptr<v6::CTCGreedyDecoderSeqLen> ctc_greedy_decoder = nullptr; if (blank_index == -1) { // default value for blank index means it should be equal to num_classes - 1 // in this case it is not required to specify the third input for OpenVINO CTCGreedyDecoderSeqLen ctc_greedy_decoder = make_s...
C++
def add(self, name: str, value: Any, allow_exist=False) -&gt; NamedContext: &#34;&#34;&#34;Add new variable with associated value to context. Parameters ---------- name : str Name of variable to add. value : Any Value of variable to add. allow_exist : bool, optional Dete...
HTML
dd>radius</dd> <dt>&lt;normalize&gt;</dt> <dt>&lt;oilpaint&gt;</dt> <dd>radius</dd> <dt>&lt;print&gt;</dt> <dd>output</dd> <dt>&lt;profile&gt;</dt> <dd>[profilename]</dd> <dt>&lt;read&gt;</dt> <dt>&lt;resize&gt;</dt> <dd>blur, filter, geometry, height, width</dd> <dt>&lt;roll&gt;</dt> <dd>geometry, ...
HTML
ceived a copy of the GNU General Public License // along with KonfDB. If not, see <http://www.gnu.org/licenses/>. // // You can also view the documentation and progress of this project 'KonfDB' // on the project website, <http://www.konfdb.com> or on // <http://www.ganshani.com/applications/konfdb> ...
C#
this.slider; } JSpinner getSpinner() { return this.spinner; } float getValue() { return this.value; } void setValue(float value) { int min = this.slider.getMinimum(); int max = this.slider.getMaximum(); this.internal = true; this.slider.setValu...
Java
43T235 78T260 137Q263 149 265 151T282 153Q302 153 302 143Q302 135 293 112T268 61T223 11T161 -11Q129 -11 102 10T74 74Q74 91 79 106T122 220Q160 321 166 341T173 380Q173 404 156 404H154Q124 404 99 371T61 287Q60 286 59 284T58 281T56 279T53 278T49 278T41 278H27Q21 284 21 287Z"></path><path id="MJX-80-TEX-N-29" d="M60 749L64...
HTML
{ if let Some(p) = $val.get(&$index) { match p { Value::Array(arr) => { let mut ret = vec![]; for v in arr { if let Value::String(s) = v { ret.push(s.clone()); } ...
Rust
kind: languages.CompletionItemKind.Function, semantics: [" SUB / x : y : S => [FAILED] iff x < y", " SUB / x : y : S => (x - y) : S"], insertText: "SUB" }, { label: "MUL", documentation: "\n\n MUL / x : y : S => [FAILED] on overflow...
Typescript
не на клетка преди","insertAfter":"Вмъкване на клетка след","deleteCell":"Изтриване на клетки","merge":"Сливане на клетки","mergeRight":"Сливане в дясно","mergeDown":"Merge Down","splitHorizontal":"Split Cell Horizontally","splitVertical":"Split Cell Vertically","title":"Настройки на клетката","cellType":"Тип на клетка...
JavaScript
ault: errflag = 0xFF; break; } } /* errflag = 0xFF means a request not support or some errors occurred, else correct */ if( errflag == 0xff) { /* if one request...
C
if (x == 101) { Q('LeftMenuMyDevices').classList.add('lbbuttonsel2'); } if (x == 103) { Q('LeftMenuMyCerts').classList.add('lbbuttonsel2'); } if (x == 102) { Q('LeftMenuMyUsb').classList.add('lbbuttonsel2'); } if (x == 104) { Q('LeftMenuPlayer').classList.add('lbbuttonsel2')...
HTML
//------------------------------------------------------------------------------------------------------------------------------------------------------------- // // Copyright 2023-2025 Apple Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance wit...
C
c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"></path></g> <g id=grade><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"></path></g> <g id=group-work><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S1...
HTML
using System.Numerics; using Robust.Shared.GameStates; using Robust.Shared.Serialization; using Robust.Shared.Timing; namespace Content.Shared.Throwing { [RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true), AutoGenerateComponentPause] public sealed partial class ThrownItemComponent : Compo...
C#
stractAnimation::Backward); animation->start(); } return QPushButton::event(event); } QPixmap Function_Button::Function_Button_pixmap() const { return m_Function_Button_pixmap; } void Function_Button::setFunction_Button_pixmap(const QPixmap& newFunction_Button_pixmap) { m_Function_Button_pixm...
C++
$crate::interpreter::Value::Intrinsic( $crate::interpreter::Intrinsic($name), ), );)* hm }; } }; } macro_rules! intrinsics { ( pkg $pkg_name:tt as $ty_name:ident; $(mod $module_name:tt as $mod_name:i...
Rust
| 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127; // prettier-ignore export const MIDI_NUMBER_MIN = 0; export const MIDI_NUMBER_MAX = 127; export const midis: Midi[] = Object.freeze( Array.from({length: MIDI_NUMBER_MAX + 1}, (_, i) => i), ) as Midi[]; export const isMidi = (n: number): n is Midi => n >= MIDI_NUMBER_...
Typescript
gic sim, analog sim, etc</a></h4> <div class="level4"> <p> In an *AMS language, nets have types. It&#039;s not just “wire”. The schematic needs to be extended so that pins on symbols can have types. It is not prohibited to mix types. Verilog has something called a “connectmodule” to define how to resolve mixed typ...
HTML
tPos[0] * fPlane[3]; // second column fDestMat[1] = 0.0f - fLightPos[1] * fPlane[0]; fDestMat[5] = dot - fLightPos[1] * fPlane[1]; fDestMat[9] = 0.0f - fLightPos[1] * fPlane[2]; fDestMat[13] = 0.0f - fLightPos[1] * fPlane[3]; // third column fDestMat[2] = 0.0f - fLightPos[2] * fPlane[0]; fDestMat[6] = 0.0f - ...
C++
bar - baz ` b.ReportAllocs() for i := 0; i < b.N; i++ { NewRichTextFromMarkdown(md) } } package widget_test import ( "testing" "time" "fyne.io/fyne/v2" "fyne.io/fyne/v2/driver/desktop" "fyne.io/fyne/v2/test" "fyne.io/fyne/v2/theme" "fyne.io/fyne/v2/widget" "github.com/stretchr/testify/assert" ) func T...
Go
se(loadStoreByIdRepositoryStub, loadProductByStoreRepositoryStub) return { sut, loadStoreByIdRepositoryStub, loadProductByStoreRepositoryStub } } describe('LoadProductsByStore UseCase', () => { it('Should call LoadStoreByIdRepository with correct value', async () => { const { sut, loadStoreByIdRep...
Typescript
alloc, heap); impl<'a, T : Clone+'a> HeapPrealloc<'a, T> { fn make_freelist(freelist_size : usize) -> std::boxed::Box<[&'a mut[T]]> { let mut retval = Vec::<&'a mut[T]>::with_capacity(freelist_size); for _i in 0..freelist_size { retval.push(&mut[]); } return retval.into_...
Rust
{ return Err(error::NetworkManager::Config(error::Config::NotSupported { msg: "Invalid mac address".to_string(), })); } Ok(lifmgr::DhcpReservation { id: ElementId::default(), name, address: allocations.ip_address, ma...
Rust
.x(function(d,i) { return i }); {% endif %} {% if chart.resize %} nv.utils.windowResize(chart.update); {% endif %} {% block inject %} {{super()}} {% endblock inject %} {% block extras %} {{ super () }} {% endblock extras %} {% block close %} }); {% endblock clo...
HTML
m.numAttacksThisTurn = 0; m.zonepos = zonepos; m.windfury = hc.card.windfury; m.taunt = hc.card.tank; m.charge = (hc.card.Charge) ? 1 : 0; m.Rush = hc.card.Rush; m.DivineShield = hc.card.DivineShield; m.Reborn = hc.card.Reborn; ...
C#
``` handleCreateService方法就是Service启动的核心代码了,这个是在ActivityThread里面发生的哦.这个方法首先是把Service实例给构建出来,然后调用Service的attach方法,初始化一些东西,然后就开始了Service的onCreate方法的调用.这里需要注意的是Service的onCreate方法,还有其他生命周期的方法都是运行在主线程的. 到此,Service的启动流程就分析完了. **本文是基于 androidx.lifecycle:lifecycle-extensions:2.0.0 的源码进行分析** ViewModel旨在以生命周期意识的方式存储和管理用户界面相关...
Markdown
标准输出功能。 Node还提供一些全局函数。 - **setTimeout()**:用于在指定毫秒之后,运行回调函数。实际的调用间隔,还取决于系统因素。间隔的毫秒数在1毫秒到2,147,483,647毫秒(约24.8天)之间。如果超过这个范围,会被自动改为1毫秒。该方法返回一个整数,代表这个新建定时器的编号。 - **clearTimeout()**:用于终止一个setTimeout方法新建的定时器。 - **setInterval()**:用于每隔一定毫秒调用回调函数。由于系统因素,可能无法保证每次调用之间正好间隔指定的毫秒数,但只会多于这个间隔,而不会少于它。指定的毫秒数必须是1到2,147,483,647(大约24.8天)...
Markdown
this code without refreshing the page function ClearParcelCache() { Object.keys(window).filter((k)=>k.startsWith("parcelRequire")).forEach((k)=>delete window[k]); } ClearParcelCache(); function ClearModificationsFromLastRun() { for (const el of (0, _generalJs.FindHTMLElementsMatching)(".v-added"))el.remove(); ...
JavaScript
..Default::default() }, ], stats: vec![ Stat::new(StatName::Damage, 10.0), ], modifier: vec![ ModifierBase::Poison(Poison::new(Entity::new(0), 5.0, 2.0, 5)), ], }; let ron_file_data = ron::ser::to_string_pretty(&sword, ...
Rust
{"vote extension present without signature", func(v *Vote) { v.Extension = []byte("extension") v.ExtensionSignature = nil }}, {"oversized vote extension signature", func(v *Vote) { v.ExtensionSignature = make([]byte, MaxSignatureSize+1) }}, } for _, tc := range testCases { precommit := examplePrecommit() ...
Go
tTypeNrvBuryDeath .global __vt__Q212NrvSamboHead18HostTypeNrvHitBlow .global __vt__Q212NrvSamboHead21HostTypeNrvStampDeath .global __vt__Q212NrvSamboHead20HostTypeNrvStampFall .global __vt__Q212NrvSamboHead23HostTypeNrvStarPieceHit .global __vt__Q212NrvSamboHead22HostTypeNrvHitToPlayer .global __vt__Q212NrvSamboHead20H...
Assembly
on-answer{font-family:"PingFang SC","Lantinghei SC","Microsoft YaHei",arial,"\5b8b\4f53",sans-serif,tahoma;margin-left:10px;background-image:linear-gradient(90deg,#33cc75 0,#29cfb3 99%);color:#fff}.ui-dialog.incentive-lottery-dialog .lottery-group .lottery-result-box .lottery-result-btns p.goon-answer a{text-decoration...
CSS
)('string');"); check("(foo)();"); check("(foo)(1);"); check("(foo)('string');"); // Invocations on function expressions. check("(foo){}();", MessageKind.MISSING_ARGUMENT); check("(foo){}(1);"); check("(foo){}('string');"); check("(int foo){}('string');", NOT_ASSIGNABLE); check("(String foo){}('strin...
Dart
* names/comments match those of the extra fields, transfer the * known Unicode values from the extra field. */ static void setNameAndCommentFromExtraFields(final ZipArchiveEntry ze,final byte[] originalNameBytes,final byte[] commentBytes){ final ZipExtraField nameCandidate = ze.getExtraField(Unico...
Java
name: "skip", group: "sounds", memberName: "skip", description: "Skip current sound in queue." }); } /** * Runs the command. * @param msg The command message. * @param args The command arguments. * @param fromPattern Whether or not the c...
Typescript
eln(); return buffer.toString(); } String renderTypedef(TypedefTemplateData context0) { final buffer = StringBuffer(); buffer.write(_renderTypedef_partial_head_0(context0)); buffer.writeln(); buffer.write(''' <div id="dartdoc-main-content" class="main-content" data-above-sidebar="'''); ...
Dart
#nullable enable using System.Text; using Microsoft.Xna.Framework.Input; namespace SociallyDistant.Core.OS.Devices { public class LineEditor { private readonly ITextConsole console; private readonly StringBuilder lineBuilder = new StringBuilder(); private readonly LineWrapper lineWrapper = new LineWrapper(); ...
C#
odifier = modifier .width(width) .background(color = BakeRoadTheme.colorScheme.White, shape = AlertShape) .padding(AlertPadding), properties = properties, onDismissRequest = onDismissRequest, ) { Column(modifier = Modifier.fillMaxWidth()) { if ...
Kotlin
mmitSha: string) { await octo.git.updateRef({ owner, repo, ref: `heads/${branch}`, sha: commitSha, }); } export interface AddFilesToRepositoryResult { addFileWithlines: (fileName: string, lines: string[]) => Promise<void>; // eslint-disable-next-line @typescript-eslint/no-explicit-any addJson...
Typescript
#ifndef _GENERAL_H_ #define _GENERAL_H_ #include <unistd.h> #include <sys/types.h> #include <sys/time.h> #ifdef _POSIX_SOURCE #undef _POSIX_SOURCE #endif #ifndef __FreeBSD__ #define _POSIX_SOURCE 1 #endif #include <stdio.h> #include <signal.h> #include <errno.h> #include <stdlib.h> #include <X11/X.h> #include <X1...
C
� {card} thành {after}", "{user} has updated the due date of card {card} to {after}" : "{user} đã cập nhật ngày đến hạn tại thẻ {card} thành {after}", "You have added the tag {label} to card {card} in list {stack} on board {board}" : "Bạn đã thêm nhãn dán {label} vào thẻ {card} trong danh sách {stack} tại bảng ...
JavaScript
23/11/SEI_178354695-c78b.jpg?quality=90&#038;strip=all&#038;crop=0px%2C200px%2C2500px%2C1314px&#038;resize=1200%2C630"> <meta name="twitter:title" content="Storm Ciar&aacute;n may fire &#039;sting jet&#039; at UK causing 30 miles of devastation"> <meta name="twitter:description" content="It &#039;punches&#039; the atmo...
HTML
raw_text!("foo")], soydoc_params: vec![], }], }, ), ]; cases.iter().for_each(|(input, expected)| { assert_eq!( parse!(input, (soy_file, parse_soyfile)).unwrap(), *expected, "\n{}", input ); ...
Rust
/* * Copyright (c) 2023 Proton AG * * This file is part of ProtonVPN. * * ProtonVPN 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 ver...
C#
ENAME, PF_DIMS | PF_LOCALDIMS | PF_FILENAME) ADD_STRINGPROP_FLAG(DestroyedSkin, DEFAULT_BROKE_SKIN, PF_FILENAME) ADD_BOOLPROP(StartOn, LTTRUE) ADD_OBJECTPROP(Target, "") ADD_REALPROP(FOV, 20.0) ADD_REALPROP(Yaw1, -45.0) ADD_REALPROP(Yaw2, 45.0) ADD_REALPROP(YawTime, 5.0) ADD_REALPROP(Yaw1PauseTime, 0.0) ADD...
C++
} @override Map<String, dynamic> toJson() { final returnValue = <String, dynamic>{ "\$hash": "500377f9", "\$name": "PhoneLeaveGroupCall", "call": call, "source": source, }; // Finished toJson. return returnValue; } } /// Phone Invite To Group Call. /// /// Return Type...
Dart
de-next .swiper-zoom-container img { transition: none !important; } .jp-carousel-overlay .swiper-button-prev, .jp-carousel-overlay .swiper-button-next { opacity: 0.5; transition: 0.5s opacity ease-out; height: initial; width: initial; padding: 20px 40px; background-image: none; } .jp-carousel-overlay .swiper-b...
CSS
gth; i++) int32_t L_125 = V_19; V_19 = ((int32_t)il2cpp_codegen_add((int32_t)L_125, (int32_t)1)); } IL_029d: { // for (int i = 0; i < chakes2.Length; i++) int32_t L_126 = V_19; ChakeTestU5BU5D_t091116E2D24C6B932419738AE810D64CD41E3F3E* L_127 = V_8; NullCheck(L_127); if ((((int32_t)L_126) < ((int32_t)((...
C++
.mmPaginator .pageList li.disable a{ color: #333; cursor: default; } .mmPaginator .pageList li.disable{ background: #efefef; } .mmPaginator .pageList li.disable a{ color: #333; cursor: default; } .mmPaginator .pageList li a{ color: #b00; text-align: center; cursor: pointer; } .mmPagi...
CSS
detect that we are in, hence // travel icon won't show and [_decideIfCallTrades] won't trigger again. This // way we allow it to trigger again. bool _lastTradeCallWasIn = false; bool _vaultEnabled = false; bool _vaultPreferencesLoaded = false; bool _vaultIconActive = false; bool _vaultDetected = false; ...
Dart
-max-height: 95vh; --popover-pdf-height: 400px; --popover-pdf-width: 450px; --popover-width: 450px; --prompt-border-color: hsl(258, calc(88% / 3), 65%); --prompt-border-width: 1px; --prompt-input-height: 40px; --prompt-max-height: 70vh; --prompt-max-width: 80vw; --prompt-width: 700px; --purple-h: 27...
CSS
.f); alSourcef(source, AL_DOPPLER_FACTOR, 0.f); alSourcef(source, AL_ROLLOFF_FACTOR, 0.f); alSourcef(source, AL_MAX_GAIN, SfxVolume); alSourcef(source, AL_GAIN, SfxVolume*vol); if(AL.EXT_SOURCE_RADIUS) alSourcef(source, AL_SOURCE_RADIUS, 0.f); if(AL.SOFT_source_spatialize) alSourcei(source, AL_SOURCE_SPATIALI...
C++
glabel func_801E5DC8_ovl10 /* 1D6B38 801E5DC8 3C068005 */ lui $a2, %hi(D_8004A7C4) # $a2, 0x8005 /* 1D6B3C 801E5DCC 24C6A7C4 */ addiu $a2, %lo(D_8004A7C4) # addiu $a2, $a2, -0x583c /* 1D6B40 801E5DD0 8CCE0000 */ lw $t6, ($a2) /* 1D6B44 801E5DD4 27BDFFD8 */ addiu $sp, $sp, -0x28 /* 1D6B48 801E5DD8 AFBF0014 */ ...
Assembly
[3454] = {"응보의 횃불", nil, {"응보의 횃불을 집어 들어야 합니다."}}, [3461] = {"티모르에게 돌아가기", nil, {"아이언포지에 있는 티모르에게 탁본 도구를 돌려주어야 합니다."}}, [3462] = {"수습기사 몰트레이크", nil, {"수습기사 몰트레이크와 대화해야 합니다."}}, [3463] = {"불 공격!", nil, {"북쪽, 남쪽, 동쪽과 서쪽 감시탑 내부에서 응보의 횃불을 사용해 불을 지르십시오."}}, [3481] = {"만물 상자...", nil, {"궤짝을 여십시오."}}, [3482] = {"<NYI> <TXT> ...
Lua
source.model.SAnime import eu.kanade.tachiyomi.animesource.model.Video import eu.kanade.tachiyomi.lib.doodextractor.DoodExtractor import eu.kanade.tachiyomi.lib.gdriveplayerextractor.GdrivePlayerExtractor import eu.kanade.tachiyomi.lib.okruextractor.OkruExtractor import eu.kanade.tachiyomi.lib.sibnetextractor.SibnetExt...
Kotlin
:10px 0 10px 10px;} .help-lnk+.formtitle{margin-top:0;} .fieldLabelArea,.fieldLabelAreaTop{vertical-align:top;text-align:right;} .fieldLabelArea{width:180px;} .fieldValueArea{vertical-align:top;} .fieldLabelAreaBulk{text-align:left;} .buttons-container td{border-top:1px solid #ddd;padding-top:10px;} .formtitle+.aui-mes...
CSS
= PICK_FONT(ri, uc); int32_t *dp, *rp; uint8_t *rrp; u_char *fr; uint32_t buffer[64]; /* XXX */ int x, y, r, g, b, aval; int r1, g1, b1, r0, g0, b0; #ifdef RASOPS_CLIPPING /* Catches 'row < 0' case too */ if ((unsigned)row >= (unsigned)ri->ri_rows) return; if ((unsigned)col >= (unsigned)ri->ri_cols) ret...
C
yotis nipalensis</i>"</a>. <i><a href="/wiki/IUCN_Red_List" title="IUCN Red List">IUCN Red List of Threatened Species</a></i>. <b>2019</b>: e.T136495A21976309. <a href="/wiki/Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.2305%2FIU...
HTML
thoutCalls = false; permitKeepAliveTimeInNanos = 0; manualSetUp(); for (int i = 0; i < KeepAliveEnforcer.MAX_PING_STRIKES + 1; i++) { channelRead(pingFrame(false /* isAck */, 1L)); } verifyWrite().writeGoAway(eq(ctx()), eq(0), eq(Http2Error.ENHANCE_YOUR_CALM.code()), any(ByteBuf.class...
Java