content
stringlengths
2
6.21k
label
stringclasses
16 values
ang/String;"); global::android.net.MailTo._getSubject5196 = @__env.GetMethodIDNoThrow(global::android.net.MailTo.staticClass, "getSubject", "()Ljava/lang/String;"); global::android.net.MailTo._getBody5197 = @__env.GetMethodIDNoThrow(global::android.net.MailTo.staticClass, "getBody", "()Ljava/lang/String;"); } ...
C#
�文首部后,原封不动将报文交给上层应用 - TCP 只能点对点全双工通信。UDP 支持一对一、一对多、多对一和多对多的交互通信 两者应用场景如下图: ![image](https://github.com/linwu-hi/code-interview/assets/137023716/535902be-7608-4531-a79e-a074772e937b) 可以看到,TCP 应用场景适用于对效率要求低,对准确性要求高或者要求有链接的场景,而UDP 适用场景为对效率要求高,对准确性要求低的场景 ## 参考文献 - https://zh.wikipedia.org - https://www.shangmayuan.co...
Markdown
Single, name = "${name}:ScreenPass" ), RenderPassColorAttachment, RenderPassDepthAttachment { override val colorAttachments: List<RenderPassColorAttachment> = listOf(this) override val depthAttachment: RenderPassDepthAttachment = this override var clearColor: ClearColor = ClearColo...
Kotlin
Some(var_480) = &input.accept_any_date { object.key("AcceptAnyDate").boolean(*var_480); } if let Some(var_481) = &input.after_connect_script { object.key("AfterConnectScript").string(var_481.as_str()); } if let Some(var_482) = &input.bucket_folder { object.key("BucketFolder").st...
Rust
failure: " + e)), returnDocuments); var chunkedInputs = chunker.getChunkedInputs(); assertEquals(4, chunkedInputs.size()); listener.onResponse(new RankedDocsResults(generateRankedDocs(relevanceScores, chunkedInputs))); } public void testParseChunkedRerankResultsListener_MultipleInputsW...
Java
.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/jav...
HTML
RemoveRange(7*(1<<16), 9*(1<<16)) require.Equal(t, 7, a.keys.numKeys()) n = int(1e6) b := NewBitmap() for i := 0; i < n; i++ { b.Set(uint64(i)) } b.RemoveRange(0, uint64(n/2)) require.Equal(t, n/2, b.GetCardinality()) buf := b.ToBuffer() b = FromBuffer(buf) require.Equal(t, n/2, b.GetCardinality()) } func...
Go
. </i>(Pause) <i>Oh my God! This is the longest that anyone has not <b>talked</b> ever! </i>(Pause)<i> There is nothing you can say to make this worse!! So just say something!! </i>(Pause.) (To her) I-I, I uh haven&#146;t had sex in a <b>very</b> long time. (She leaves.) (In his head) <i>Yeah, you really shouldn&#146;t...
HTML
values static const int32_t startOffset; // number of docs to generate for testing static const int32_t noDocs; static RAMDirectoryPtr directory; static IndexSearcherPtr searcher; protected: /// One-time setup to initialise static members void setup() { // set the theoretical max...
C++
l][bone] = bones return bones end local function bone_apply_matrix(ent, bone, new_matrix, endbone) local bone = isstring(bone) and ent:LookupBone(bone) or bone if not bone or isstring(bone) or bone == -1 then return end local matrix = ent:GetBoneMatrix(bone) if not matrix then return end loc...
Lua
s"></script> <script> Sentry.init({ dsn: '{{{sentryDSN}}}', environment: '{{sentryEnvironment}}', beforeSend(event, hint) { // Check if it is an exception, and if so, show the report dialog if (event.exception) { const modal = { subtitle2: '', la...
HTML
use crossterm::terminal::{EnterAlternateScreen, LeaveAlternateScreen}; use tui::backend::CrosstermBackend; use crate::error::AppError; pub type Backend = CrosstermBackend<Stdout>; pub type Term = tui::Terminal<Backend>; pub struct Terminal { terminal: Term, } impl Terminal { pub fn new() -> Result<Self, App...
Rust
from datetime import date from sqlalchemy import and_, func, or_, select from app.bookings.models import Bookings from app.dao.base import BaseDAO from app.database import async_session_maker from app.hotels.rooms.models import Rooms class RoomDAO(BaseDAO): model = Rooms @classmethod async def find_all...
Python
处,要愿意参加民协会的同学签字,但无一个同学签名,而在旁边却有三、四人写了反对意见认为今天每个同学都愿意参加共产党,没有谁还想参加民主党派。在周围很多学生看了这张意见后,都笑出声来说“这个人简直在胡闹。” </p> <h3> “爱智才”哲学研究社启事 </h3> <p> 一、建社宗旨:实行宪法和共产党广开言路的政策 </p> <p> 1、反对“愚”,宣传“智”;反对形而上学和唯心论,宣传辩证唯物主义; </p> <p> 2、积极参加北大革新运动 </p> <p> 3、市政府墙报上马克思主义、教条、修正言论,支持正派,反对邪派,围攻第三派(修正) </p> ...
HTML
} } *pstr = '\0'; return string; } /** * Convert the digits of the given value argument to a null-terminated * character string and store the result (up to 32 bytes) in string. * The function returns a pointer to the begining of the result string. */ char* julong_to_string(julong value, char *string) {...
C++
lickMenuY + fontSizeHeight * offset + 20, fontSize, i7); offset++; drawString("Withdraw-All-But-1", rightClickMenuX + 4, rightClickMenuY + fontSizeHeight * offset + 20, fontSize, i8); } else { drawString("Withdraw-X", rightClickMenuX + 4, rightClickMenuY + fontSizeHeight * offset + 20, fontSi...
Java
= localHeight * localWidth; vector<T> buffer(recvSize_RS + Max(sendSize_RS,recvSize_SR), T(0)); T* firstBuf = &buffer[0]; T* secondBuf = &buffer[recvSize_RS]; // Pack copy::util::RowStridedPack ( localHeightA, width, rowAlign, rowS...
C++
/** ****************************************************************************** * @file os_cfg.c * @author * @version V1.0.0 * @date 2023-8-15 * @brief This file provides firmware functions to define the following * functionalities: * - freertos configuration variable. **...
C
/1895943469.jpg","url1200x1200":"https://imgar.zonapropcdn.com/avisos/1/00/52/97/09/25/1200x1200/1895943469.jpg","url730x532":"https://imgar.zonapropcdn.com/avisos/1/00/52/97/09/25/720x532/1895943469.jpg","url360x266":"https://imgar.zonapropcdn.com/avisos/1/00/52/97/09/25/360x266/1895943469.jpg","url215x159":"https://i...
HTML
#!/usr/bin/env python3 """Convert vocabulary JSON to compressed metadata for ONNX models.""" import argparse import json import base64 import gzip import hashlib from pathlib import Path def main(): parser = argparse.ArgumentParser(description="Convert vocabulary to ONNX metadata format") parser.add_argument("...
Python
| | readlines | 多行读取 | ### open 方法 `open(file, mode='r', buffering=-1, encoding=None, errors=None, newline=None, closefd=True, opener=None)` 打开一个文件,返回一个文件对象(流对象)和文件描述符。打开文件失败,则返回异常 基本使用:创建一个文件test,然后打开它,用完**关闭** ```python f = open("test") # file对象 # windows <_io.TextIOWrapper name='test' mode='r' encoding='cp93...
Markdown
, &lt;U as <a class="trait" href="../convert/trait.TryFrom.html" title="trait std::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="../convert/trait.TryFrom.html#associatedtype.Error" title="type std::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>执行转换。</...
HTML
v0 = v0 + v3 + 1 >> 1; v3 = v0 - v3; v1 = v1 + v2 + 1 >> 1; v2 = v1 - v2; t = v4 * dctSin3 + v7 * dctCos3 + 2048 >> 12; v4 = v4 * dctCos3 - v7 * dctSin3 + 2048 >> 12; v7 = t; t = v5 * dctSin1 + v6 * dctCos1 + 2048 >> 12; v5 = v5 * dctCos1 - v6 * dctSin1 + 2048 >> 12; v6 = t; ...
JavaScript
Clubs: cardSymbol = "♣"; color = SymbolColor.Black; popCard = clubs .splice(Math.floor(Math.random() * clubs.length), 1) .pop(); break; case CardSymbol.Spades: cardSymbol = "♠"; color = SymbolColor.Black; popCard = spades .splic...
Typescript
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using Microsoft.Extensions.DependencyInjection; namespace Aspire.Hosting.Tests; public class ResourceCommandAnnotationTests { [Theory] [InlineData("resource-start", "Starti...
C#
lassDeclaration { return !isAbstraction(statement); }import { IDENTITY } from './affine'; import { PlotDomain } from './types'; export const BI_UNIT_DOMAIN: PlotDomain = { xmin: -1, xmax: 1, ymin: -1, ymax: 1 }; export const UNIT_DOMAIN: PlotDomain = { xmin: 0, xmax: 1, ymin: 0, ymax: 1 }; export const scaleDomai...
Typescript
, 1220610, "Protocol: Purge", 0x0, "DEBUFF"}, {68.06, "COMBAT_LOG_EVENT_UNFILTERED", "SPELL_AURA_REMOVED", "Creature-0-1-2810-1-233814-0000000001", "Plexus Sentinel", 0xa48, 0x0, "Player-1-00000029", "Dps27", 0x510, 0x0, 1220610, "Protocol: Purge", 0x0, "DEBUFF"}, {68.06, "COMBAT_LOG_EVENT_UNFILTERED", "SPELL_AURA_...
Lua
.w-md-50pct { width: 50% !important; } .w-md-75pct { width: 75% !important; } .w-md-100pct { width: 100% !important; } } @media (min-width: 992px) { .w-lg-auto { width: auto !important; } .w-lg-25pct { width: 25% !important; } .w-lg-50pct { width: 50% !important; } .w-lg-75pct { width...
CSS
y:1}.wp-color-picker:-ms-input-placeholder{color:#646970}.wp-picker-container input[type=text].iris-error{background-color:#fcf0f1;border-color:#d63638;color:#000}.iris-picker .iris-strip .ui-slider-handle:focus,.iris-picker .ui-square-handle:focus{border-color:#3582c4;border-style:solid;box-shadow:0 0 0 1px #3582c4;ou...
CSS
getCalPatternId() { if (calPatternId == null && calPatternInfo != null) calPatternId = calPatternInfo.getCalPatternId(); return calPatternId; } public void setCalPatternId(String calPatternId) { this.calPatternId = calPatternId; } @Transient public CalendarPatternInfo getCalPatternInfo() { if (calPatte...
Java
标:`文本内容^上角标^` <br> 章或页水平分割线 <br> `=========` 或 `----------` <br>行尾输入两个以上空格,即可添加人工行分割 | #### YAML 头 在一个 R Markdown 文档的顶部,有一个 YAML 头,被两行 `---` 包围。这个块定义了文档的最终样式,通常包含一个标题、作者、日期和你想输出的文件类型。 支持的文件格式有三种:**HTML、PDF 和 Word**。 ``` --- title: "Sample" author: "It's FOSS" date: "2023-02-08" output: pdf_document --- ``` 这可以在 RS...
Markdown
=rich_media_title id=activity-name> G.O.S.S.I.P 学术论文推荐 2021-05-13 </h2> <div id=meta_content class=rich_media_meta_list> <span id=copyright_logo class="rich_media_meta icon_appmsg_tag appmsg_title_tag">原创</span> <span class="rich_media_meta rich_media_meta_text"> RomanGol </span> <span class="rich_media_...
HTML
#!/usr/bin/env python3 """Test script to verify repository handling.""" import os import sys import argparse from pathlib import Path # Add src to Python path script_dir = os.path.dirname(os.path.abspath(__file__)) src_path = os.path.join(script_dir, "src") if src_path not in sys.path: sys.path.insert(0, src_path...
Python
VgTpi7BgQBghIvwmmQweKgROAYQAnxdyfDyZVwGw" \ "GHRx6WToDAiaKIgB0n3G26RFiNDNjZQ4AABbyfsJZF7429M5FZh8N7ZfZo6e2YfQuMhtpGJ9mT" \ "56PdjGbaAfz5LpdV+" \ "gcuhHFY8dAAAAAUMYUGOJgSkSCAoGAQkH7NEkIxQUUoWgBamtnqDoQx8wwzLa4VuxtRcQwxM6i" \ "mGqnKQgBNWW0tiGP43gquIHMiPBMTg...
C++
); var DEBUG_ENABLED = mav.param["DEBUG_ENABLED"].ToString(); var WIFI_MODE = mav.param["WIFI_MODE"].ToString(); var WIFI_IPADDRESS = new IPAddress(BitConverter.GetBytes((int)mav.param["WIFI_IPADDRESS"])).ToString(); ...
C#
dex = 3; imageWeChat.TabStop = false; // // thankTip // thankTip.AutoSize = true; thankTip.Font = new Font("Microsoft JhengHei UI", 24F, FontStyle.Bold, GraphicsUnit.Point); thankTip.Location = new Point(179, 305); thankTi...
C#
Path: string ) { const match = regex.exec(anyPath) if (!match) return false for (const param in match.groups) { params.set(param, match.groups[param]) } return true } } const fs = require('fs'); const htmlEscape = require('escape-html'); const dateFormat = require('dateformat'); import...
Typescript
ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); rs = call.executeQuery(); rs.next(); assertEquals(1, rs.getInt(1)); assertEquals("Hello", rs.getString(2)); assertFalse(rs.next()); call = conn.prepareCall("SELECT * FROM TEST", ...
Java
nfig.AWSCredentialValidator.validate_credentials') def test_resource_health_check(self, mock_validate_creds, mock_get_account): """Test resource health checking""" mock_validate_creds.return_value = True mock_get_account.return_value = "123456789012" deployer = CompleteProdu...
Python
AM NAME="Loop" VALUE="-1"> <PARAM NAME="Quality" VALUE="High"> <PARAM NAME="SAlign" VALUE="LT"> <PARAM NAME="Menu" VALUE="-1"> <PARAM NAME="Base" VALUE=""> <PARAM NAME="AllowScriptAccess" VALUE=""> <PARAM NAME="Scale" VALUE="NoScale"> <PARAM NAME="DeviceFont" VALUE="0"> <PARAM NAME="EmbedMovie" VALUE="0...
HTML
'macd_slow': strat_params.macd_slow, 'divergence_window': strat_params.divergence_window }) # Generate buy signal with NaN handling df['rsi_div_macd_buy_signal'] = ( (df['bullish_div'].fillna(False).infer_objects(copy=False)) & (df['MACD'] > df['MACD_signal']) & (df...
Python
0x2249d38 .thumb Function_2249d38: @ 2249d38 :thumb push {r4-r6,lr} mov r5, r0 add r0, #0x6c ldrh r0, [r0, #0x0] mov r1, #0xb6 blx _s32_div_f mov r4, r0 mov r0, #0x5a lsl r0, r0, #2 cmp r4, r0 blt branch_2249d52 sub r4, r4, r0 .thumb branch_2249d52: @ 2249d52 ...
Assembly
Video Freezes</h2> <p>Solution: Refresh the video page or restart the video player. Ensure your internet connection is stable and that no other devices are using excessive bandwidth. Clear your browser's cache and cookies and update your browser if needed. If the issue continues, try watching the video on a diffe...
HTML
nt}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:992px)and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:1200px){.visible-lg{display...
CSS
Description(exp.getDescription()); error.setParams(exp.getParams()); error.setSourceLocation(ConvertHelper.toString(exp.getErrorLocation())); error.setBizFatal(exp.isBizFatal()); error.setDetails(exp.getDetails()); // 如果是NopRebuildException,则可能是根据ApiResponse重...
Java
corners(&path, &corners, outset_ratio, segment_length); path = result.0; corners = result.1; if result.2 { // Can terminate early break; } } path } } impl PathF64 { pub fn smooth( &self, corner_threshold: f64, outset_ratio:...
Rust
final tempFile = File(file.name); _attachments.add(tempFile); _webAttachmentData[file.name] = file.bytes!; filesAdded++; } } else { if (file.path != null) { _attachments.add(File(file.path!)); filesAdded++; ...
Dart
#1 bl sub_027F6EB4 ldmia sp!, {r4, lr} bx lr arm_func_end sub_027F6B04 arm_func_start sub_027F6B30 sub_027F6B30: ; 0x027F6B30 stmdb sp!, {r4, lr} mov r4, r0 mov r0, #0x8000 bl sub_037FE5A8 bl sub_027F6F10 mov r0, #6 mov r1, #0 bl sub_027F6F84 mov r0, r4 mov r1, #1 bl sub_027F7004 bl sub_027F6F50 ldm...
Assembly
unless necessary."), NULL, NULL, &set_ada_list, &show_ada_list); add_catch_command ("exception", _("\ Catch Ada exceptions, when raised.\n\ With an argument, catch only exceptions with the given name."), catch_ada_exception_command, NULL, CATCH_PERMANENT...
C
Name qname = parser.getQName(); payload = xmlPayload; elemName = StringUtils.requireNotNullNorEmpty(qname.getLocalPart(), "Could not determine element name from XML payload"); ns = StringUtils.requireNotNullNorEmpty(qname.getNamespaceURI(), "Could not determine namespace from XML payload"); ...
Java
named entity is not supported and would throw an error: :: flytectl update launchplan-meta -p flytesnacks -d development core.advanced.merge_sort.merge_sort --archive Activating launch plan named entity would be a noop: :: flytectl update launchplan-meta -p flytesnacks -d development core.advanced.merge_sort.mer...
Go
", */ "TKL", "TLS", "TKM", "TUN", "TON", "TUR", "TTO", "TUV", /* "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", */ "TWN", "TZA", "UKR", "UGA", "UMI", "USA", "URY", "UZB", /* "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", */ "VAT", "VCT", "VEN", "VGB", "VIR", "VNM", "VUT", "WLF"...
C++
elem.ownerDocument; const { body } = doc; const docElem = doc && doc.documentElement; const box = elem.getBoundingClientRect(); x = box.left; y = box.top; x -= docElem.clientLeft || body.clientLeft || 0; y -= docElem.clientTop || body.clientTop || 0; retu...
Typescript
ototype.set-typedarray-offset"> <h1><span class="secnum" id="sec-22.2.3.23"><a href="#sec-%typedarray%.prototype.set-typedarray-offset" title="link to this section">22.2.3.23</a></span> %TypedArray%.prototype.set(typedArray, offset = 0 )</h1> <p>Set multiple values in this <i>TypedArray</i>...
HTML
/* * arch/arm/mach-ep93xx/adssphere.c * ADS Sphere support. * * Copyright (C) 2006 Lennert Buytenhek <buytenh@wantstofly.org> * * 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 ver...
C
mand.cm-error { border-bottom: 1px solid #c42412; } .theme-dark .cm-s-obsidian pre.HyperMD-codeblock .cm-keyword { font-weight: normal; } .theme-dark .cm-s-obsidian .cm-templater-command.CodeMirror-activeline-background { background: #272727; } .theme-dark .cm-s-obsidian .cm-templater-command.Cod...
CSS
toString().endsWith("E-232"), "test 19, got: "+d+", but exp.: 9.9999999E-232"); d = new Double(8.888889E-54); th.check( d.toString().startsWith("8.88888")&& d.toString().endsWith("E-54"), "test 20, got: "+d+", but exp.: 8.888889E-54"); d = new Double(9.999988E-234); th.check( d.toString().startsWith("9....
Java
rogatore().setNome(this.nomeprov); modificatoNome = true; } } if(modificatoNome){ String nuovoNome = partFruitore + "/" + partErogatore + rimanente; IDPortaDelegata oldIDPortaDelegataForUpdate = new IDPortaDelegata(); oldIDPortaDelegataForUpdate.setNome(nomeAttuale...
Java
ceBus_1_1AzureEventHub"><td class="memSeparator" colspan="2">&#160;</td></tr> <tr class="memitem:a779ce1115cf00dfaf072056a6ad8f9fe inherit pro_methods_classCqrs_1_1Azure_1_1ServiceBus_1_1AzureEventHub"><td class="memItemLeft" align="right" valign="top">override void&#160;</td><td class="memItemRight" valign="bottom"><a...
HTML
title = document.getElementById("opt_title").value; markerOpts.draggable = document.getElementById("opt_draggable").checked; markerOpts.bouncy = document.getElementById("opt_bouncy").checked; markerOpts.bounceGravity = parseFloat(document.getElementById("opt_bounceGravity").value); markerOpts.dragC...
HTML
test("it renders", async () => { let response = await request(app).get('/account'); expect(response.statusCode).toBe(200); let doc = makeDoc(response.text); expect(doc.title).toMatch(/^Manage account/); expect(doc.getElementById('changepasswordform')).toBeTruthy(); }); }); describe("DELETE /token...
Typescript
& !npc.boss && npc.type != NPCID.WallofFleshEye) { canChased = false; } if (chasedByNPC != null && !chasedByNPC.Invoke(npc)) { canChased = false; } if (!canChased) { continue; } ...
C#
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 2>&1 < %s| FileCheck %s // ------------------------------------------------------------------------- // // Invalid element width ssublt z0.b, z0.b, z0.b // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width // CHECK-NEXT: ssublt z0.b, z0.b, z0...
Assembly
e=>{e.exports={en:["change bid and ask lines visibility"],he_IL:["שנה נראות שורות היצע וביקוש bid/ask"]}},32302:e=>{e.exports={en:["change currency"],he_IL:["שנה מטבע"]}},68846:e=>{e.exports={en:["change chart layout to {title}"],he_IL:["שנה פריסת גרף ל-{title}"]}},18867:e=>{e.exports={en:["change continuous contract s...
JavaScript
// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 #pragma once #include <texteditor/texteditor_global.h> #include "assistproposaliteminterface.h" #include <QIcon> #include <QString> #include <QVariant> namespace TextEditor { cl...
C
1,164,147a4.72,4.72,0,0,1,2.25-.39h6.85a3.66,3.66,0,0,1,2.08.45,2.13,2.13,0,0,1,.62,1.8v7Zm18.54,0a1.59,1.59,0,0,1-.67,1.57,5.42,5.42,0,0,1-2.25.34h-7a3.76,3.76,0,0,1-2-.39,1.94,1.94,0,0,1-.62-1.74v-7a1.73,1.73,0,0,1,.67-1.63,4.72,4.72,0,0,1,2.25-.39h6.86a3.65,3.65,0,0,1,2.08.45,2.12,2.12,0,0,1,.62,1.8v7Z" style="fill:...
HTML
tage.LAYER_COLOR); })); } addCreatorItem(gui); plugin.getOptionsRegistry().addGoBackItem(gui, 45); guiStages.put(PatternStage.LAYER, gui); gui.refresh(); } private void prepareLayerColorStageGui() { NormalFastInv gui = new NormalFastInv(54, new MessageBuilder("MENU_OPTION_CONTENT_BAN...
Java
put.Content, ID: getTestName(input.Path), } for _, tp := range input.Content.PICS { var pe pics.Expression pe, err = pics.ParseString(tp) if err != nil { return } t.PICSList = append(t.PICSList, pe) } var currentGroup *testplan.Group for _, s := range input.Content.Tests { ts := &testplan.Step{ ...
Go
키 외에는 접근할 수 없다. - 이와 대조적으로 맵은 직접 순회할 수 있다. - 맵은 정렬과 순회에 필요한 기능이 내장되어 있고, 이 기능은 맵이터레이터의 일부로 포함되어 있다. ```javascript const filters = new Map() .set('색상', '갈색') .set('견종', '토이 푸들'); function checkFilters(filters) { for(const entry of filters) { console.log(entry); } } // ["색상", "갈색"] // ["견종", "토...
Markdown
ss Drag( val mouseDownPoint: Point, override val boardCoordinate: Point, val boardCoordinateF: PointF, val isWithShiftKey: Boolean ) : MousePointer data class Up( val mouseDownPoint: Point, override val boardCoordinate: Point, val boardCoordinateF: PointF...
Kotlin
put') expect.nil_(k.get_keycodes()) expect.nil_(k.get_keycodes('a', {})) reader.source:reset( { '[BIND:A_KEY:IGNORE]', '[KEY:a]', '[BIND:B_KEY:IGNORE]', '[KEY:b]', '[KEY:B]', '[SYM:0:5]', '[BIND:C_KEY:IGNORE]', '[KEY:5]', '[BIND...
Lua
} } pub async fn execute_by_where_call<'c,RB,E>( &self, where_sql: &str, where_bind: RB, executor:E, ) -> Result<<DB as Database>::QueryResult, Error> where for<'q> RB: FnOnce( Query<'q,DB,<DB as HasArguments<'q>>::Arguments> , &'q ...
Rust
var duplicatePercent: Double = 0.0, @Parameter(names = ["-mean_read_depth"], required = true, description = "Mean read depth") var meanReadDepth: Double = 0.0, @Parameter(names = ["-gc50_read_depth"], description = "GC 50 read depth. Defaults to mean reads per KB if not provided") var gc50ReadDept...
Kotlin
nsition-property: opacity;} .swiper-container-fade .swiper-slide .swiper-slide { pointer-events: none;} .swiper-container-fade .swiper-slide-active, .swiper-container-fade .swiper-slide-active .swiper-slide-active { pointer-events: auto;} /* Scrollbar */ .swiper-scrollbar { border-radius: 10px; position: relative; -ms-...
CSS
be clicked and edited by the user. ---```text --- +----------------+ --- | Editable Te|xt | --- +----------------+ ---``` ---@class renoise.Views.TextField : renoise.Views.View ---@field active TextActive ---@field value TextValue ---@field text TextValueAlias ---@field align TextAlignment Only used when not editing. -...
Lua
indowTableRowView(version int) []string { window, err := models.NewWindow(version, string(m.truncateTo), m.offsetInput.Value(), m.sizeInput.Value()) if err != nil { return []string{fmt.Sprintf("%d", version), err.Error(), err.Error()} } var startTimeRow string if startTime, err := window.GetStartTime(m.schedule...
Go
]byte), } } package store import ( "bytes" "testing" "time" "github.com/canopy-network/canopy/lib" "github.com/canopy-network/canopy/lib/crypto" "github.com/stretchr/testify/require" ) const testHeight = 1 func TestGetTxByHash(t *testing.T) { store, _, cleanup := testStore(t) defer cleanup() txRes, _, has...
Go
} if (num4 > 0.6) { this.bodyFrame.Y = this.bodyFrame.Height * 4; if ((double) this.gravDir == -1.0) this.bodyFrame.Y = this.bodyFrame.Height * 2; } } } } else if (this.pulley) this.bodyFrame.Y = this.p...
C#
; if(musical_notes_index > musical_notes_size){ musical_notes_index = ((musical_notes_index - musical_notes_size) - 1); } return this.musical_notes[musical_notes_index]; } generateScale(key: string, scale_forumla: Array<number>, index: number, scale_list: Array<string>){ let scale_forumla_l...
Typescript
ide MCK frequency by 2. */ sysclk_set_prescalers(SYSCLK_PRES_2); genclk_config_set_divider(&gcfg, GENCLK_PCK_PRES_2); genclk_enable(&gcfg, GCLK_ID); wait_for_switches(); #ifdef BOARD_NO_32K_XTAL /* * Switch to the slow clock with all prescalers disabled. */ sysclk_set_source(SYSCLK_SRC_SLCK_RC); ...
C
path->quadTo(SkScalarMul(rand.nextUScalar1(), SkIntToScalar(640)), SkScalarMul(rand.nextUScalar1(), SkIntToScalar(480)), SkScalarMul(rand.nextUScalar1(), SkIntToScalar(640)), SkScalarMul(rand.nextUScalar1(), SkIntToScalar(480))); ...
C++
|在能源转型过程中,你认为政府应该采取怎样的措施来促进清洁能源的发展?| |职业规划|在选择未来职业时,如何平衡个人兴趣和就业前景的考虑?| | 购物推荐 | 用途为赛车的轮胎品牌有哪些? | | 餐饮分类 | 北京最好吃的火锅店是哪家? | | 健康咨询 | 如何缓解肩颈疼痛? | | 科技创新 | 目前最先进的机器人技术是什么? | | 美食探店 | 有哪些特色美食需要去日本才能尝到? | | 电影介绍 | 评价一下电影《泰坦尼克号》的主题曲。 | | 历史研究 | 那个朝代出现了中国第一位女皇帝? | | 生活技巧 | 如何让家里的衣服晾干得更快? | | 旅游景点 | 泰国最美的海滩在哪里? | | 体育竞技 | 普通人如何...
Markdown
-> (usize, usize) { match history_item.operation { Operation::Add | Operation::Modify => (history_item.start_index, history_item.end_index), Operation::Remove => { let index = min(history_item.start_index, history_item.end_index); if index == 0 || list_length == 0 { (0, 0) } else if index >...
Rust
w3c-status"> <link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet"> <link href="https://www.w3.org/TR/webxr-ar-module-1/" rel="canonical"> <meta content="dark light" name="color-scheme"> <link href="https://www.w3.org/StyleSheets/TR/2021/dark.css" media="(prefers-color-scheme: dark)" rel="...
HTML
fr-command:hover,.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:focus{background:#e8e8e8;color:#0097A7}.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button.fr-command:active{background:gainsboro;color:#0097A7}.gray-theme.fr-modal .fr-modal-wrapper div.fr-modal-body button::-moz-fo...
CSS
星数目过少,无法进行 RAIM_FDE 操作 trace(3,"raim_fde: exsat=%2d lack of satellites nvsat=%2d\n", obs[i].sat,nvsat); continue; } rms_e=sqrt(rms_e/nvsat); // 计算伪距残差平方和的标准差rms_e trace(3,"raim_fde: exsat=%2d rms=%8.3f\n",obs[i].sat,rms_e); if (rm...
Markdown
cipher_suite) { auto ssl = this->_get_ssl_object(); SSL_set_cipher_list(ssl, cipher_suite.c_str()); } void TLSBasicSupport::set_cipher_suite([[maybe_unused]] std::string const &cipher_suite) { #if TS_USE_TLS_SET_CIPHERSUITES auto ssl = this->_get_ssl_object(); SSL_set_ciphersuites(ssl, cipher_suite.c_str()); #...
C++
); goto k_finished; } /* * Create two 16x8 patterns; one for the left half and one for * the right half of the 32-byte wide pattern. We take the * pattern lines for which [index % 4 == k]. */ /* * First check for the special case: left half of each 32-byte wide *...
C
de>(); unsafe { &mut *dip.add((inum as usize) % IPB) } } /// Allocate an inode on device dev. pub(crate) fn ialloc(dev: u32, typ: InodeType, major: u16, minor: u16) -> Arc<RwLock<Inode>> { let sb = superblock::get(); for inum in 1..(sb.ninodes) { let mut bcache = buf::buf_cache(); let mut ...
Rust
T,2); // #used words in output buffer a->z_br(Z_R14); // Try KMF query function to get details about crypto instructions. a->bind(getCIPHERFEATURES_KMF); a->z_lghi(Z_R0,(int)Cipher::_Query); // query function code a->z_lgr(Z_R1,Z_R2); // param block addr, 2*...
C++
nil { inBytes.Set(float64(entry.data.Statistics.InBytes)) } if outBytes, found := entry.metrics[outBytesMetric]; found && outBytes != nil { outBytes.Set(float64(entry.data.Statistics.OutBytes)) } if dropPacket, found := entry.metrics[dropPacketsMetric]; found && dropPacket != nil { dropPacket.Set(float64(ent...
Go
Boolean) = prefs.getBoolean(key, defaultValue) /** @see [SharedPreferences.Editor.putBoolean] */ fun write(key: String, value: Boolean) { with(prefs.edit()) { putBoolean(key, value) commit() } } /** Read any JSON object with type T */ inline fun <reified T> read(key: String, decodeWithG...
Kotlin
# If this is one of our list of string fields, then we can just assign # the value, since email *only* has strings, and our get_all() call # above ensures that this is a list. elif raw_name in _LIST_STRING_FIELDS: raw[raw_name] = value # Special Case: Keywords # The...
Python
NegativeInteger({ isNegativeInteger }) { // 不是 [ Infinity, Number.NEGATIVE_INFINITY, 1.2, 2, -0.45, 0, NaN, ].forEach(item => { expect(isNegativeInteger(item)).toBeFalsy() }) // 是 ;[ -1, -3, -4, -500, ].forEach(item => ...
Typescript
id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage"> <path d="M353,9 L626.664028,170 L626.664028,487 L353,642 L79.3359724,487 L79.3359724,170 L353,9 Z" id="Polygon-1" stroke="#007FB2" stroke-width="6" sketch:type="MSShapeGroup"></path> <path d="M78.5,...
HTML
r1} stmia r3!, {r0-r1} ldmia r2!, {r0-r1} stmia r3!, {r0-r1} ldr r0, [r2, #0x0] str r0, [r3, #0x0] bx lr nop _020377C4: .word UNK_020F2B9C thumb_func_start sub_020377C8 sub_020377C8: ; 0x020377C8 ldr r2, _020377DC ; =UNK_020F2BB0 add r3, r0, #0x0 ldmia r2!, {r0-r1} stmia r3!, {r0-r1} ldmia r2!, {r0-r1} s...
Assembly
"listener", "exporter.listener", "string", "default", "-deprecated", "", "", "", "", ""}, //{"", "", "", "", "", "", "", "", "", ""}, }; private Object consumerConfTable[][] = { {"timeout", "default.timeout", "int", 5000, 8000, "", "", "", "", ""}, {"retries", "d...
Java
LCellOwner::scope(|mut owner2| { //! let c1 = Rc::new(owner1.cell(100u32)); //! let c1mutref2 = owner2.rw(&c1); // Compile error //! println!("{}", *c1mutref2); //! }); //! }); //! ``` //! //! You can't have two separate mutable borrows active on the same //! owner at the same time: //! ...
Rust
xf0c93[0x2c]]}${__Oxf0c93[0x9a]}${encodeURIComponent(encodeURIComponent($.Pin))}${__Oxf0c93[0x0]}`;break;case __Oxf0c93[0xd1]:url= `${__Oxf0c93[0xcb]}`;_0xbddex1c= `${__Oxf0c93[0xcc]}${$[__Oxf0c93[0xcd]]}${__Oxf0c93[0xce]}${$[__Oxf0c93[0xcf]]}${__Oxf0c93[0xd0]}${$[__Oxf0c93[0xd1]]}${__Oxf0c93[0x0]}`;break;case __Oxf0c9...
JavaScript
length; i++) { // as matrix T is (quasi-)triangular, also take the sub-diagonal element into account for (int j = FastMath.max(i - 1, 0); j < matrixT.length; j++) { norm += FastMath.abs(matrixT[i][j]); } } return norm; } /** * Find the fi...
Java