content
stringlengths
2
6.21k
label
stringclasses
16 values
act_excerpt_markdown(content: &str, excerpt_separator: &str) -> String { lazy_static!{ static ref MARKDOWN_REF: Regex = Regex::new(r"(?m:^ {0,3}\[[^\]]+\]:.+$)").unwrap(); } let mut trail = String::new(); if MARKDOWN_REF.is_match(content) { for mat in MARKDOWN_REF.find_iter(content) { ...
Rust
fService.Model.create({ text: data.text, username: data.username, }) await message.save() this.messages.push(message) return message // const created = await fService.Model.create(message) // return created } async get(id: Id, params: Params) { const one = await fServic...
Typescript
string lowerArg = arg.ToLower(); if (lowerComm == CommPredicateWhisper) { whisperTarget = lowerArg; ChangeMode(Mode.Whisper); return true; } return false; } private bool MatchEmptyCommand(string command) { ...
C#
pane.</param> /// <returns> /// The <see cref="IOutputWindowPane"/> instance providing access to the /// window pane, or <see langword="null"/> if no pane exists with the /// specified name. /// </returns> /// <exception cref="ArgumentNullException">If <paramref name="na...
C#
54eb4def64712c042.html#aabb62dc50c032e4691e6d96ea6740f12',1,'cutlass::gemm::warp::MmaTensorOpAccumulatorTileIterator&lt; Shape_, Element_, cutlass::layout::ColumnMajor, InstructionShape_, OpDelta_ &gt;::InstructionShape()'],['../classcutlass_1_1gemm_1_1warp_1_1MmaTensorOpAccumulatorTileIterator_3_01Shape___00_01Element...
JavaScript
" + " window.ws = new WebSocket('ws://localhost:' + port + '/ws');\n" + "}", webSocketServer.getPort()); }); String[] text = {null}; WebSocketFrame frame = ws.waitForFrameReceived(new WebSocket.WaitForFrameReceivedOptions() .setPredicate(webSocketFrame -> { if (!"incoming...
Java
lletet is) egy központi koordinációs mechanizmust használ, amely összeköti a résztvevőket, segítve őket a kommunikációban és a megfelelő CoinJoin tranzakció kialakításában. Bár ez a központi entitás soha nem kezeli a felhasználók pénzét, de kiterjedt betekintést nyer az általuk koordinált tranzakciókba, cenzúrázhatja a...
Dart
.add(filtered) } serv.stats.newInputs.inc() if rotated { serv.stats.rotatedInputs.inc() } if genuine { serv.corpusCliSignal.Merge(inputCliSignal) serv.corpusSrvSignal.Merge(inputSrvSignal) if a.Call == "failure" { serv.corpusFailSignal.Merge(inputCliSignal) serv.corpusFailSignal.Merge(inputSrvSignal...
Go
ee/v14.0.0/packages/mdc-deprecated-list) */ @MDCContentDsl @Composable public fun MDCListScope<HTMLElement>.ListItem( text: String, disabled: Boolean = false, selected: Boolean = false, activated: Boolean = false, attrs: MDCAttrsRaw<HTMLAnchorElement>? = null, ) { ListItem( disabled = disabled, sel...
Kotlin
-- Paginated content Handy.UI.get_keybinds_page = function(page) local result = {} if page == 1 then result = { Handy.UI.PARTS.create_module_section("hand_selection"), Handy.UI.CD.insta_highlight.keybind(), Handy.UI.CD.insta_highlight_entire_f_hand.keybind(), Handy.UI.CD.deselect_hand.keybind(), Han...
Lua
ory override val hashingScheme get() = lExpressionToSmtLibScene.hashingScheme } /** * A generic logical expression. * * Any [LExpression] han hold meta information within a [MetaMap]. Such meta information is meant to be used further * down in the pipeline to guide heuristic choices. It is not guaranteed to be...
Kotlin
// f bit set in RED header, i.e. there are more than one RED header blocks. // WebRTC never generates multiple blocks in a RED packet for FEC. RTC_LOG(LS_WARNING) << "More than 1 block in RED packet is not supported."; return false; } ++packet_counter_.num_packets; packet_counter_.num_bytes += r...
C++
from typing import List, Callable, Optional, Dict from PySide6.QtGui import QShortcut, QKeySequence from common import common, widget_base class Shortcut: def __init__(self, widget: widget_base.WidgetBase, shortcut_name: str, shortcut_key: List[str], ...
Python
ateFrameStack() fs.PushFront(&f) // push the new frame interpret(fs) if f.TOS != 0 { t.Errorf("Top of stack, expected 0, got: %d", f.TOS) } // did we capture the address of the new array in globals? g := globals.GetGlobalRef() if g.ArrayAddressList.Len() != 1 { t.Errorf("Expecting array address list to have...
Go
crate::FieldReader::new(bits)) } } impl core::ops::Deref for SARADC_WAIT_ARB_CYCLE_R { type Target = crate::FieldReader<u8, u8>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `SARADC_WAIT_ARB_CYCLE` writer - wait arbit signal stable after sar_done"] pub stru...
Rust
2677C 80025B7C AFB30024 */ sw $s3, 0x24($sp) /* 026780 80025B80 AFB20020 */ sw $s2, 0x20($sp) /* 026784 80025B84 AFB1001C */ sw $s1, 0x1c($sp) /* 026788 80025B88 AFB00018 */ sw $s0, 0x18($sp) /* 02678C 80025B8C AFBF002C */ sw $ra, 0x2c($sp) /* 026790 80025B90 240E0001 */ li $t6, 1 /* 026794 8002...
Assembly
3 40.906 27.13 81.841 54.361 122.625 81.676 5.81 3.891 11.131 4.055 16.984.137A38295.814 38295.814 0 01387.489 310.1c4.858-3.226 7.511-7.309 7.511-13.094v-80.623c0-5.716-2.775-9.553-7.453-12.659zM268 152.484l93.055 62.218-39.751 26.467c-.919.603-2.923.604-3.839 0a4537.117 4537.117 0 01-47.627-31.815c-1.033-.699-1.828-2...
Dart
ttom part of the pylon. It is preferable to exchange these original servos for better quality ones as they are weak and in the original construction, they help each other. ![Rotorhead](../../assets/airframes/autogyro/auto-g2/modif_rh.png) ### Two-blade rotor The original Durafly Auto-G2 autogyro has a three-blade ro...
Markdown
statements = append(statements, "$"+strconv.Itoa(len(params))) } // Add max count if any. if maxCount > 0 { query += ", max_count" params = append(params, maxCount) statements = append(statements, "$"+strconv.Itoa(len(params))) } // Add metadata if any. if metadata != "" { query += ", metadata" params =...
Go
MatchedRule)otherEnd, msgs); } return super.eInverseAdd(otherEnd, featureID, msgs); } /** * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ @Override public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case...
Java
0; let hide: boolean = false; let topNavigation_Elm: HTMLCollection = document.getElementsByClassName('topNavigation'); //init = when the user landing on the middel of the page //the filter must be hided let myInterval = setInterval(function(){ if(topNavigation_Elm[0].getElementsByClassName('productLister-viewOp...
Typescript
0], [136.0, 479.0], [27.0, 479.0]] [[28.0, 429.0], [372.0, 429.0], [372.0, 445.0], [28.0, 445.0]] ...... ``` - 单独使用识别:设置`--det`为`false` ```bash linenums="1" paddleocr --image_dir ./imgs_words/ch/word_1.jpg --det false ``` 结果是一个list,每个item只包含识别结果和识别置信度 ```bash linenums="1" ['韩国小馆', 0.994467] ``` ...
Markdown
vi:["Phút"]}},32116:e=>{e.exports={en:["Seconds"],vi:["Giây"]}},22163:e=>{e.exports={en:["Ranges"],vi:["Vùng"]}},41815:e=>{e.exports={en:["Weeks"],vi:["Tuần"]}},49512:e=>{e.exports={en:["Ticks"],vi:["Ticks"]}},96554:e=>{e.exports={en:["Copy image"],vi:["Sao chép ảnh"]}},81939:e=>{e.exports={en:["Copy link"],vi:["Sao ch...
JavaScript
local start_time = os.time() if not opts.callback then while not resource_accessed do vim.wait(500) if (os.time() - start_time) > TIMEOUT then return output_handler(nil, "Resource access timed out") end end return resource_result, reso...
Lua
Dead, // rule 2 - stable population (Cell::Alive, 2) | (Cell::Alive, 3) => Cell::Alive, // rule 3 - overpopulation (Cell::Alive, n) if n > 3 => Cell::Dead, // rule 4 - reproduction (Cell::Dead, 3) => Cell::Alive, // anything else is sta...
Rust
is always for initializing all the [TileMapLayer]'s cells. 'coords' contains the coordinates of all modified cells, roughly in the order they were modified. 'forced_cleanup' is true when the [TileMapLayer]'s internals should be fully cleaned up. This is the case when: // // - The layer is disabled; // // - The lay...
Go
/* Copyright 2017 Luiz Ribeiro <luizribeiro@gmail.com> 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 2 of the License, or (at your option) any later version. This program is distrib...
C
.json(); return body.data || { }; } private handleError(error: any): any { let message = ''; if (error instanceof Response) { const errorData = error.json().error || JSON.stringify(error.json()); message = `${error.status} - ${error.statusText || ''} ${errorData}`; } else { messa...
Typescript
Hide Keyboard' : null, ), ), IconButton( onPressed: copy, icon: const Icon(Icons.copy), tooltip: 'Copy', ) ]), body: Padding( padding: EdgeInsets.only(bottom: kBoar...
Dart
�动的NTLDR恶意程序的防御手法 | ├──2021-8-10-中了硬盘病毒的正确防御姿势 .pdf 132.55kb | └──分分钟让你电脑无法启动的NTLDR恶意程序的防御手法.mp4 253.69M ├──0811-白帽子挖洞之文件上传漏洞精讲 | ├──05-启动中国蚁剑.pdf 435.70kb | ├──0811课程资料.zip 3.72M | ├──Burp Suitev2021.6带注册.zip 394.95M | └──无涯_20210811_白帽子挖洞之文件上传漏洞精讲.mp4 469.21M ├──0812-小白必会安全技能信息收集方法 ——APP应用信息收集 | ├──...
Markdown
`); // For all resources in configuration for (const resource of resources) { // Check for duplicate resource name if (getResourceName(resource) == name) throw new Error(`Resource ${name} already exists.`); } } import { Order } from './order-types' import { isOrder } from './val...
Typescript
异常={result['votes']['anomaly']}") print(f"加权得分(支持正常的权重占比): {result['weighted_score']:.3f}") print("\n各模型预测:") for model_name, pred in result['model_predictions'].items(): if 'error' not in pred: print(f" - {model_name}: {pred['prediction']} (置信度...
Python
", life = 1, name = "AGR_20A", username = "APKWS" } }, sigma = { 1, 1, 1 }, t_acc = 0, t_b = 0, t_marsh = 1.1, user_name = "Hydra 70 M151 HE APKWS", v_mid = 350, v_min = 140, warhead = { caliber = 70, concrete_factors = { 1.33, 1.33, 0.1 }, concrete_obj_factor = 0.1, cumulativ...
Lua
, }, }, }, }, Signatures: []xdr.DecoratedSignature{ { Hint: [4]byte{57, 234, 167, 44}, Signature: []byte{ 76, 51, 186, 154, 227, 143, 149, 39, 183, 152, 173, 83, 50, 63, 221, 130, 197, 118, 246, 30, 240, 3, 76, 48, 2...
Go
.include "asm/macros.inc" .include "constants/constants.inc" .syntax unified .text arm_func_start __start __start: @ 0x02000000 b _020000C0 .include "asm/rom_header.inc" _020000C0: mov r0, #0x12 msr cpsr_fc, r0 ldr sp, _020000F8 @ =gUnk_03007FA0 mov r0, #0x1f msr cpsr_fc, r0 ldr sp, _020000F4 @ =gUnk_0...
Assembly
_player(direction: Direction) { match direction { Direction::Up => println!("Движение вверх"), Direction::Down => println!("Движение вниз"), Direction::Left => println!("Движение влево"), Direction::Right => println!("Движение вправо"), } } fn main() { move_player(Direction:...
Markdown
for (IdRef<?> id : ids) { jobs.add(futureCall(new DrainSinkJob(), immediate(pipeClazz), immediate(id.getUri()), null)); } return futureCall(new WaiterJob(), futureList(jobs)); } private List<? extends IdRef<?>> sinkIds() { QueryBuilder<?> q = r.query(sinkClazz).order("id")....
Java
_021F50F8: add sp, #8 pop {r3, r4, r5, r6, r7, pc} thumb_func_start ov05_021F50FC ov05_021F50FC: ; 0x021F50FC ldr r2, _021F511C ; =ov05_021FC650 mov r3, #0 _021F5100: lsl r1, r3, #2 ldr r1, [r2, r1] cmp r0, r1 bne _021F510C add r0, r3, #0 bx lr _021F510C: add r1, r3, #1 lsl r1, r1, #0x18 lsr r3, r1, #0x1...
Assembly
Path()); assertEquals(parsed.getDbName(), "to"); parsed = OURLHelper.parseNew("memory:some"); assertEquals(parsed.getType(), "embedded"); assertEquals(parsed.getPath(), ""); assertEquals(parsed.getDbName(), "some"); parsed = OURLHelper.parseNew("embedded:/path/test/to"); assertEquals(parse...
Java
).window; let articles = document .querySelector('.results')! .querySelectorAll('.OglasiRezHolder:not(.oglasiHolderBanners)'); articles.forEach((a) => { const title = a.querySelector('img')?.getAttribute('alt') || 'No title'; const link = a.querySelector('a')?.getAttribute('href') || '...
Typescript
verschiedenen Holzarten, Metalllegierungen für Timbales-Kessel und besonderen Lackierungen, die das Schwingungsverhalten beeinflussen. Speziell im Bassbereich brachte die Einführung des elektrischen „Baby Bass“ in den **1960er Jahren** einen spürbaren Wandel. Dieser Bass, ursprünglich von **Ampeg** in den USA entwicke...
Markdown
") assert.Equal(t, testThreshold+1, len(keys)) assert.Equal(t, testThreshold+1, len(signPIDs)) // PHASE: signing // use a shuffled selection of the list of parties for this test p2pCtx := tss.NewPeerContext(signPIDs) parties := make([]*LocalParty, 0, len(signPIDs)) errCh := make(chan *tss.Error, len(signPIDs))...
Go
PCM) fmt.mBytesPerPacket = fmt.mBytesPerFrame *= static_cast<UInt32>(ch); } } if (*p != '\0') { fprintf(stderr, "extra characters at end of format string: %s\n", p); goto Bail; } return true; Bail: fprintf(stderr, "Invalid format string: %s\n", inTextDesc); fprintf(stderr, "Syntax of format strings is:...
C++
.crouching self.sr2.spread.steelsight = self.new_m4.spread.steelsight self.sr2.spread.moving_standing = self.new_m4.spread.moving_standing self.sr2.spread.moving_crouching = self.new_m4.spread.moving_crouching self.sr2.spread.moving_steelsight = self.new_m4.spread.moving_steelsight self.sr2.kick = {} self.sr2.kic...
Lua
; } .modal-dark .close>span:not(.sr-only) { color: #fff; } .modal-default .modal-title { color: #fff; } .modal-default .modal-header, .modal-default .modal-footer { border-color: rgba(255, 255, 255, 0.075); } .modal-default .modal-content { background-color: #172b4d; color: #fff; } .modal-default .modal-...
CSS
*/ /* * C library -- _setjmp, _longjmp * * _longjmp(a,v) * will generate a "return(v)" from * the last call to * _setjmp(a) * by restoring registers from the stack, * The previous signal state is NOT restored. */ .set noreorder LEAF(_setjmp) li v0, 0xACEDBADE # sigcontext magic number sw ra, (2 * 4)(a...
Assembly
5: inner_break = True # 标记内层循环被break break print("- Inner loop:", j) if not inner_break: print("Print after inner loop") ``` 当然还有非常聪明的人有更多的好办法,慢慢学习和总结。 ### 最后附上这道题 是leetcode的原题,虽然自己写的代码不是很精炼,但是是自己写的就是最可爱的。 ```python def verify_alien_dictionary(words, order): char_di...
Markdown
utils/rtti/switch.h" namespace tint::glsl::writer { Bindings GenerateBindings(const core::ir::Module& module) { Bindings bindings{}; std::unordered_set<tint::BindingPoint> seen_binding_points; // Set a binding point for the texture-builtins-from-uniform buffer. constexpr uint32_t kMaxBindGroups = 4u...
C++
) const { PRECONDITION(i < NUM_YIELD_TYPES, "Index out of bounds"); PRECONDITION(i > -1, "Index out of bounds"); return m_piYieldModifier ? m_piYieldModifier[i] : -1; } /// Array of yield changes int* CvPolicyEntry::GetYieldModifierArray() const { return m_piYieldModifier; } #if defined(HH_MOD_API_TRADEROUTE_MODIF...
C++
.png)-16px -128px } [dir=rtl] .\@f09fa4b9f09f8fbce2808de29982, [dir=rtl] .\@f09fa4b9f09f8fbce2808de29982efb88f { background: url(https://raw.githubusercontent.com/koke228666/VKify/refs/heads/main/emojis/sprite_7.png)right -16px top -128px } .\@f09fa4b9f09f8fbde2808de29982, .\@f09fa4b9f09f8fbde2808de29982efb88f { ba...
CSS
(freshHeap.size()).toBe(heapData.length); let i = 0; while (freshHeap.size() > 0) { const poppedVal = freshHeap.extract(); expect(poppedVal).toEqual(sortedHeapData[i]); ++i; } }); test("should insert in maxheap of objects", () => { interface valobj { val: number; } c...
Typescript
local M = {} ---Get highlight group value by name. --- ---@param name string String for looking up highlight group. ---@return table local function hl(name) local highlight = vim.api.nvim_get_hl(0, { name = name, link = false }) setmetatable(highlight, { __index = function(self, key) if key...
Lua
- 对浮点数使用 `%.2f` 形式控制小数位数(保留两位小数) ## 示例 ```c new result[128]; new number = 42; format(result, sizeof(result), "数值为 %i。", number); // 数值为 42 new string[] = "简单消息"; format(result, sizeof(result), "这是%s,包含数值%i。", string, number); // 这是简单消息,包含数值42 ``` <br /> ```c new string[64]; format(string, sizeof(string), "您的得分:%d...
Markdown
operties !== undefined && len < this.constraints.minProperties) { throw new Error(`map requires minProperties=${this.constraints.minProperties}, but contains ${len}`); } if (this.constraints.maxProperties !== undefined && len > this.constraints.maxProperties) { throw new Error(`map requires ...
Typescript
rButton.toggled > .toolbarButton.toggled:hover:active, .secondaryToolbarButton.toggled:hover:active { background-color: hsla(0,0%,0%,.4); border-color: hsla(0,0%,0%,.4) hsla(0,0%,0%,.5) hsla(0,0%,0%,.55); box-shadow: 0 1px 1px hsla(0,0%,0%,.2) inset, 0 0 1px hsla(0,0%,0%,.3) inset, 0 1...
CSS
layer.confirm('确定批量移动?', { shade: layer_shade, area: ['480px', '190px'], move: false, title: '提示', btnAlign:'r', closeBtn: 3, btn: ['确定', '取消'] ,//按钮 success: function () { $(".layui-layer-content").css('text-align', 'left'); } ...
JavaScript
| .Y}}`}, {"pipeline with decl", "{{$x := .X|.Y}}", noError, `{{$x := .X | .Y}}`}, {"nested pipeline", "{{.X (.Y .Z) (.A | .B .C) (.E)}}", noError, `{{.X (.Y .Z) (.A | .B .C) (.E)}}`}, {"field applied to parentheses", "{{(.Y .Z).Field}}", noError, `{{(.Y .Z).Field}}`}, {"simple if", "{{if .X}}hello{{end}}", ...
Go
0xa0f4(%rip),%rsi # be30 <_IO_stdin_used+0xe30> 1d3c: b8 01 00 00 00 mov $0x1,%eax 1d41: f3 0f 5e f0 divss %xmm0,%xmm6 1d45: 66 0f ef c0 pxor %xmm0,%xmm0 1d49: f3 0f 5a c6 cvtss2sd %xmm6,%xmm0 1d4d: e8 2e f3 ff ff callq 1080 <__printf_chk@p...
Assembly
// Log the progress of things every 5 seconds this.timer = null; } ensureAnalyticsObject(hostname) { if (this.analytics[hostname]) { return; } this.analytics[hostname] = { totalBytesDownloaded: 0, totalErrors: 0, totalGoodRequests: 0, startTime: null, }; } ge...
JavaScript
ll_lon.units = 'degrees_east' load_cell_lon.long_name = 'loadcell_longitude' # Assign data # https://unidata.github.io/netcdf4-python/ (see "Dealing with Strings") # sta_comp_id[:] = netCDF4.stringtochar(np.array(dmrows,dtype='S10')) # load_cell_id[:] = netCDF4.stringtochar(np.array(load_cells,dt...
Python
iosVersion: "8.3", tags: [], skinTones: false, ), ( emoji: "🇱🇮", description: "flag: Liechtenstein", category: "Flags", aliases: ["liechtenstein"], unicodeVersion: "6.0", iosVersion: "8.3", tags: [], skinTones: false, ), ( emoji: "🇱🇰", description: "flag:...
Dart
import numpy as np import gym from ray.rllib.utils.annotations import PublicAPI @PublicAPI class Simplex(gym.Space): """Represents a d - 1 dimensional Simplex in R^d. That is, all coordinates are in [0, 1] and sum to 1. The dimension d of the simplex is assumed to be shape[-1]. Additionally one can...
Python
using System.Collections; using System.Collections.Generic; using UnityEngine; using System.IO; using Framework.GpuSkinning; public class GpuSkinningInstance : MonoBehaviour { public GpuSkinningAnimData textAsset; private Material _material; public Material AnimMaterial { get { return _material; } se...
C#
|-oldX|ysaX|-ovaX| cXr|C iX|- iXe|i sX|-oneX|-kreX|-yaXr|CamX|-bOXl|-badX|-flaX|lulX|-sraX|-taXl|-leXl|moX |SIlX|Xva |lilX|-vaXa|-IbuX|-Xnac|-eXn |-Xanf|-ebuX|-ioXa|-nbuX|- rIX|-hCeX|-zuXd|-aXia|-kriX|-ofaX|-hoXa|-Xann|-aXaf|-Xges|-bruX|-Xlai|-vkiX|-uyuX|-biXe|-Xnie|-utIX|-duXa|-seeX|-aleX|laiX|-Xlaj|Xgoz|-taXu|- IXa|m...
JavaScript
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ /* * SR-IPv6 implementation * * Author: * David Lebrun <david.lebrun@uclouvain.be> * * * 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 th...
C
---@todo separate module into smaller submodules to handle each framework ---starting to get bulky function server.hasGroup(inv, group) if type(group) == 'table' then for name, rank in pairs(group) do local groupRank = inv.player.groups[name] if groupRank and groupRank >= (rank or 0) then return name, gro...
Lua
hgCIAEoDFIEYmxvYg=='); @$core.Deprecated('Use captchaDescriptor instead') const Captcha$json = const { '1': 'Captcha', '2': const [ const {'1': 'id', '3': 1, '4': 1, '5': 9, '10': 'id'}, const {'1': 'image', '3': 2, '4': 1, '5': 12, '10': 'image'}, ], }; /// Descriptor for `Captcha`. Decode as a `google....
Dart
}66%{height:1em;margin-top:-.5em}}@-webkit-keyframes km-webload{0%{height:1em;margin-top:-.5em}33%{height:2em;margin-top:-1em}66%{height:1em;margin-top:-.5em}}@keyframes km-webrefresh{0%{height:.6em;margin-top:-.3em}33%{height:1.2em;margin-top:-.6em}66%{height:.6em;margin-top:-.3em}}@-webkit-keyframes km-webrefresh{0%{...
CSS
/* * Type definitions for the multi-level security (MLS) policy. * * Author : Stephen Smalley, <sds@epoch.ncsc.mil> */ /* * Updated: Trusted Computer Solutions, Inc. <dgoeddel@trustedcs.com> * * Support for enhanced MLS infrastructure. * * Copyright (C) 2004-2005 Trusted Computer Solutions, Inc. */ #ifndef _...
C
'name' : 'QQ APP ID', 'group' : '登录接口设置', 'editor' : 'text', 'default' : '', }, 'THINK_SDK_QQ.APP_SECRET' : { 'name' : 'QQ KEY', 'group' : '登录接口设置', 'editor' : 'text', 'default' : '', }, 'THINK_SDK_TAOBAO.APP_KEY' : { '...
Python
rn d5.zero;case" ":return d5.space;case"$":return d5.dollar;case"!":return d5.exclam;case'"':return d5.quotedbl;case"#":return d5.numbersign;case"%":return d5.percent;case"&":return d5.ampersand;case"'":return d5.quotesingle;case"(":return d5.parenleft;case")":return d5.parenright;case"*":return d5.asterisk;case"+":ret...
JavaScript
0x00, 0x00, 0x00, 0x01], ByteSplitGranularity::TwoBits, ); test_split_merge( 0x0F, vec![0x00, 0x00, 0x03, 0x03], ByteSplitGranularity::TwoBits, ); test_split_merge( 0x11, vec![...
Rust
only `c` exists now // DROP INDEX s.mustExec(c, "alter table t1 add index idx_c (c)") sql = "alter table t1 drop index idx_c" s.mustExec(c, sql) s.tk.MustGetErrCode(sql, mysql.ErrCantDropFieldOrKey) s.mustExec(c, "alter table t1 drop index if exists idx_c") c.Assert(s.tk.Se.GetSessionVars().StmtCtx.WarningCoun...
Go
* charactersLength)); } await uploadFileToS3(filename,req.file.buffer); res.send("Upload succesfully"); }); app.post('/gcp/aws/update', upload.single('filename'),async function (req, res, next) { await uploadFileToS3(req.file.originalname,req.file.buffer); res.send("Upload succesfully"); }); app.listen(por...
Typescript
_zero())); let lambda = ((point_x + point_x + point_x)*point_x + A)/(point_y + point_y); let new_x = (&lambda).square() - point_x - point_x; let new_y = lambda*(point_x - &new_x) - point_y; (new_x, new_y) } // Note incorrect when given zero inputs pub fn add(x_p: &FieldElement, y_p: &FieldElement, x_q:...
Rust
dir = string.gsub(arg[0], string.basename(arg[0]), "") dir = (dir~="" and dir) or "./" loadfile(dir .. "utils.lua")() fprintf(io.stderr,"# HOST:\t %s\tload avg: %s\n", (io.popen("hostname", "r"):read("*l")), (io.open("/proc/loadavg"):read("*l"))) fprintf(io.stderr,"# DATE:\t %s\n", (io.popen("date", "r"):read("*l"))...
Lua
compressFilepath, compressFileName, Range.FULL_RANGE, storageProperties.defaultStorageCredentials(), ).use { val compressedFileSize = StreamUtils.drain(it!!).toLong() Assertions.assertEquals(compressedSize, compres...
Kotlin
h pulse1LengthValue = LENGTH_TABLE[value shr 3] and 0xFF pulse1TimerPeriod = (pulse1TimerPeriod and 0x00FF) or ((value and 7) shl 8) pulse1EnvelopeStart = true pulse1DutyValue = 0 } 0x4004 -> { // pulse 2 write control pulse2DutyMode = (value shr 6) and 3 ...
Kotlin
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "NGAP-IEs" * found in "../support/ngap-r17.3.0/38413-h30.asn" * `asn1c -pdu=all -fcompound-names -findirect-choice -fno-include-deps -no-gen-BER -no-gen-XER -no-gen-OER -no-gen-UPER -no-gen-JER` */ #include "NGAP_UEContextResumeReques...
C
56, 3) Sleep(100) OP_62(0x00FE, 0x00000000, 2000, 0x00, 0x01, 0x000000FA, 0x02) PlaySE(38, 0x00, 0x64) Sleep(800) ChrTalk( 0x00FE, ( '#1980180504V……礼物?\n', '工作手套?', TxtCtl.Enter, ), ) CloseMessageWindow() ChrTalk( 0x...
Python
": 62655, r"""deh""": 62656, r"""selloff""": 62657, r"""gavel""": 62658, r"""compressions""": 62659, r"""aloo""": 62660, r"""shayne""": 62661, r"""aliso""": 62662, r"""aguirre""": 62663, r"""ulnar""": 62664, r"""bmd""": 62665, r"""pandering""": 62666, r"""tarpaulin""": 62667, r"""characterizat...
Dart
#!/bin/python3 def showInstructions(): #print a main menu and the commands print(''' RPG Game ======== Get to the Garden with a key and a potion Avoid the monsters! Commands: go [direction] get [item] ''') def showStatus(): #print the player's current status print('---------------------------') pr...
Python
["ja"] = "あなたはチャンネル {RBX_NAME} にいません。", ["es"] = "No estás en el canal {RBX_NAME}.", ["pt-br"] = "Você não está no canal {RBX_NAME}", ["ko"] = "{RBX_NAME} 채널에 있지 않아요", ["zh-tw"] = "您未在頻道{RBX_NAME}", ["zh-cn"] = "你不在频道“{RBX_NAME}”", } }...
Lua
mpl(const LeafRange& range, Int32 w) { mParent->checkInterrupter(); AvgT avg(mParent->grid(), w); if (mMask) { typename AlphaMaskT::FloatType a, b; AlphaMaskT alpha(mParent->grid(), *mMask, mParent->minMask(), mParent->maxMask(), mParent->isMaskInverted()); f...
C
_vset yes_no bsr leave_vapos verlaat VAP-OS move.b #2,graf_mode we gaan load voice set doen -> houdt daar rekening mee in de graphics bsr fsel_box show_mouse lea vset_path,a4 lea vset_fname,a5 bsr get_string lees string tst.w d7 is alles goed gegaan? beq fsel_cancel nee -> doe niets ; hide_mouse bset.b #4...
Assembly
new CRC32\n"); return -EIO; } if (fseek(fp, offset + offsetof(struct jffs2_raw_dirent, name), SEEK_SET)) { err = -errno; fprintf(stderr, "Failed to fseek: %d\n", err); return err; } bytes = fwrite(newname, 1, dirent.nsize, fp); if (bytes != dirent.nsize) { fprintf(stderr, "Failed to write new...
C
Recupera el envío de botas y las lentes telescópicas a Gazlowe en Trinquete."; }; [889] = { ["name"] = "El espíritu del viento"; }; [890] = { ["name"] = "[DEPRECATED] El envío perdido"; ["objective"] = "Llévale el libro de contabilidad de Gazlowe al maestro de muelles Vertipeluca."; }; [891] ...
Lua
_string()), base_path: None, trace_parser: trace, trace_checker: trace, }; let fs = &mut fe::FileSet::new(); let asto = &mut fe::objects::Objects::new(); let el = &mut fe::errors::ErrorList::new(); let tco = &mut types::TCObjects::new(); let results = &mut HashMap::new();...
Rust
hese primitive have the following format // tranif (inout, inout, control) else if ((primitive_name.equals("tranif0" )) || (primitive_name.equals("tranif1" )) || (primitive_name.equals("rtranif0")) || (primitive_name.equals("rtranif1"))) { min_ports = 3; max_ports = 3; ...
Java
ll`。 在重新获得控制权后,`runtime.asmcgocall` 会切换回原来的 g (`m.curg`) 的执行栈 并返回 `runtime.cgocall`。 在重新获得控制权后,`runtime.cgocall` 会调用 `exitsyscall`,并阻塞,直到该 m 运行能够在不与 `$GOMAXPROCS` 限制冲突的情况下运行 Go 代码。 ``` Go --> runtime.cgocall --> runtime.entersyscall --> runtime.asmcgocall --> _cgo_Cfunc_f ...
Markdown
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Threading.Tasks; using JetBrains.Annotations; using Microsoft.Extensions.Logging; using Remora.Commands.Attributes; using Remora.Commands.Groups; using Remora.Discord.API.Abstractions.Objects; using Remora.Disc...
C#
ction Call     int a = power(62,                   k, m);     cout << a;   }   else   {     // Function Call     int a = power(62,                   (k + 1), m);     cout << a;   } } // This code is contributed by sanjoy_62 ``` ## Java 语言(一种计算机语言,尤用于创建网站) ``` // Java program for the // above approach import java.uti...
Markdown
Number()+cb.cfg.ChannelTimeout < origin.Number { log.Warn("channel is timed out, ignore frame") return } log.Trace("ingesting frame") if err := currentCh.AddFrame(f, origin); err != nil { log.Warn("failed to ingest frame into channel", "err", err) return } // Prune after the frame is loaded. cb.prune() ...
Go
, r1 mov r4, #0x0 .thumb branch_2261294: @ 2261294 :thumb mov r0, r5 mov r1, r4 bl Function_2261348 cmp r0, #0x1 bne branch_22612aa mov r0, r6 mov r1, r5 mov r2, r4 bl Function_2261220 .thumb branch_22612aa: @ 22612aa :thumb .hword 0x1c64 @ add r4, r4, #0x1 cmp ...
Assembly
); Ok(WebGpuResult::empty()) } #[derive(Deserialize)] #[serde(rename_all = "camelCase")] pub struct GpuColor { pub r: f64, pub g: f64, pub b: f64, pub a: f64, } #[derive(Deserialize)] #[serde(rename_all = "camelCase")] pub struct RenderPassSetBlendConstantArgs { render_pass_rid: ResourceId, color: Gp...
Rust
bserver test( "VP9", {{.active = true, .scalability_mode = ScalabilityMode::kL1T3}, {.active = false}, {.active = false}}, kSinglecastLimits720pVp9->min_start_bitrate_bps, /*automatic_resize=*/true, /*expect_downscale=*/false); RunBaseTest(&test); } #if defined(WEBRTC_USE_...
C++
lookup = KuhnPokerLookup() low = False @classmethod def from_game( cls, hole_cards: CardsLike, board_cards: CardsLike = (), ) -> Hand: """Create a poker hand from a game setting. In a game setting, a player uses private cards from their hole ...
Python
sted-edit .body-diffs table{table-layout:fixed;width:900px;}.suggested-edit .body-diffs .full-diff .content{font-family:Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;font-size:12px;}.suggested-edit .body-diffs .full-diff td{margin-rig...
CSS
Cocinitas", [66020] = "Sandalias de sacrificio", [66021] = "Leotardos de Brazanegra", [66022] = "Leotardos Ira Ardiente", [66023] = "Cinturón hercúleo", [66024] = "Escudo de camaradas", [66025] = "Bufas del desentrenado", [66026] = "Obsequio de la Reina alma en pena", [66027] = "Braciles de tributo", [66028] = "Palo pa...
Lua
尔瓦文|Dargwa |dar| |马来文 |Malay|ms| | 因古什文|Ingush |inh| |马耳他文 |Maltese |mt| | 拉克文|Lak |lbe| |荷兰文 |Dutch |nl| | 莱兹甘文|Lezghian |lez| |挪威文 |Norwegian |no| |塔巴萨兰文 |Tabassaran |tab| |波兰文|Polish |pl| | 比尔哈文|Bihari |bh| | 罗马尼亚文|Romanian |ro| | 迈蒂利文|Maithili |mai| | 斯洛伐克文|Slovak |sk| | 昂加文|Angika |ang| | 斯洛文尼亚文|Slovenian |sl| | 孟...
Markdown