content
stringlengths
2
6.21k
label
stringclasses
16 values
e: Vec<i32>, } let opts = Opts::parse_args_default(&["1", "2", "3"]).unwrap(); assert_eq!(opts.free, [1, 2, 3]); } #[test] fn test_multi_free() { #[derive(Options)] struct Opts { #[options(free, help = "alpha help")] alpha: u32, #[options(free, help = "bravo help")] ...
Rust
#0x7_pending_order_book_index_PendingOrderBookIndex">PendingOrderBookIndex</a>, order_id: OrderIdType, trigger_condition: TriggerCondition, unique_priority_idx: UniqueIdxType, is_buy: bool ) { // Add this order <b>to</b> the pending order book index <b>let</b> (price_move_down_index, price_move_...
Markdown
using Grand.Core.ModelBinding; using Grand.Core.Models; using Microsoft.AspNetCore.Mvc.Rendering; using System.Collections.Generic; namespace Grand.Plugin.Tax.CountryStateZip.Models { public class TaxRateListModel : BaseModel { public TaxRateListModel() { AvailableStores = new List...
C#
}, func() interface{} { j := jsiiProxy_ManagedKafkaEventSource{} _jsii_.InitJsiiProxy(&j.jsiiProxy_StreamEventSource) return &j }, ) _jsii_.RegisterStruct( "aws-cdk-lib.aws_lambda_event_sources.ManagedKafkaEventSourceProps", reflect.TypeOf((*ManagedKafkaEventSourceProps)(nil)).Elem(), ) _jsii_.Regi...
Go
执行以下命令来临时修改 vm.max_map_count 的值: ```shell sudo sysctl -w vm.max_map_count=262144 ``` #### 漏洞复现 依次执行如下命令 ```sql CREATE TABLE info_leak(info_leak STRING); COPY info_leak FROM '/etc/passwd' with (format='csv', header=false); SELECT * FROM info_leak; ``` ———————————————— 1.CREATE TABLE info_leak(info_leak STRING);...
Markdown
/* MIT License Copyright(c) 2020 megai2 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 without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribut...
C
for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CreateSSLCipherSuiteDetails model) { ...
Java
PrefixLabel(rect, new GUIContent(name)); using (new EditorGUI.IndentLevelScope(-EditorGUI.indentLevel)) { if (QuantumEditorUtility.TryParseAssetRef(value, out var assetRef)) { var halfRect = rect.SetWidth(rect.width / 2); EditorGUI.SelectableLabel(halfRect, value); AssetRefDr...
C#
C, 0x00, 0x01, 0x2C # 804aa648 .byte 0x7C, 0xF8, 0x8B, 0xA6 # 804aa64c .byte 0x7C, 0x99, 0x8B, 0xA6 # 804aa650 .byte 0x7C, 0x78, 0x8B, 0xA6 # 804aa654 .byte 0x4C, 0x00, 0x01, 0x2C # 804aa658 .byte 0x7C, 0xF0, 0x8B, 0xA6 # 804aa65c .byte 0x7C, 0x91, 0x8B, 0xA6 # 804aa660 .byte 0x7C, 0x70, 0x8B, 0xA6 # 804aa664 .byte 0x4...
Assembly
"android.permission.HARDWARE_TEST": { "name": "硬件测试", "description": "访问硬件辅助设备,用于硬件测试", }, "android.permission.INJECT_EVENTS": { "name": "注射事件", "description": "允许访问本程序的底层事件,获取按键、轨迹球的事件流", }, "android.permission.INSTALL_LOCATION_PROVIDER": { "name": "安装定位提供", "description": "安装定位提供", ...
Dart
ks<br /> <strong>企业团队使用</strong>:Cisco AnyConnect + 专线解决方案<br /> <strong>预算有限学生</strong>:V2Ray + 公益节点分享 </p> <h2>结语:自由与责任的平衡</h2> <p>科学上网工具如同数字时代的钥匙,为我们打开了通往全球信息的大门。然而,这把钥匙的使用需要智慧和责任。作为Mac用户,我们拥有追求知识自由的权利,同时也应承担合法使用的义务。希望本指南能帮助你找到最适合自己的解决方案,在安全、快速、稳定的前提下,探索无限广阔的网络世界。</p> <p>记住,工具的价值在于使用者。选择适合的软件只是第一步,更重要的是培养良好的网络素养...
HTML
local this = class("modulePhotoLightSetting", G_UIModuleBase) function this.bind() return { moduleColorPick = { moduleName = "pages/photo/submodule/moduleColorPick" }, isActive_range = true, isActive_intensity = true, isActive_reset = true, isOn = false, value_intensity = 1, val...
Lua
$v0, $at, .L80AE7114 /* 007CC 80AE70FC 2401000C */ addiu $at, $zero, 0x000C ## $at = 0000000C /* 007D0 80AE7100 0C03D295 */ jal func_800F4A54 /* 007D4 80AE7104 2404005A */ addiu $a0, $zero, 0x005A ## $a0 = 0000005A /* 007D8 80AE7108 1000002E */ beq $zero, $zero, ....
Assembly
ogFile = path; } void initialize() { const char *envMaxLogBytes = getenv("PASSENGER_MAX_LOG_LINE_LENGTH_BYTES"); if (envMaxLogBytes != NULL && *envMaxLogBytes != '\0') { bufSize = atoi(envMaxLogBytes); } buf = new char[bufSize]; oxt::thread(boost::bind(threadMain, shared_from_this()), "PipeWatcher: ...
C
ter sw = new StringWriter(); String line; BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream())); while ((line = in.readLine()) != null) sw.write(line + NEWLINE); int rc = p.waitFor(); expect("testCommand", sw.toString(), rc, expect_rc); ...
Java
string){ this.code = code; } //creating boosters// addBooster(booster: Booster): void { this.boosters.push(booster); } //back away function backAway( boosters: number[], x: number){ let conPower: boolean = false; let div = (document.getElementById(rocket...
Typescript
ds URIS2>(W: Comonad2<F>, M: Monad2<G>, T: Distributes22<F, G>) { return <E, A, B>(): BiKleisliIO<F, G, E, [A, B], B> => liftK(W, M, T)(([, b]) => b); } /** * Convenience method which retruns instances of Kleisli API for the given monad. * @param M Monad2 & Bifunctor instance */ export function getInstancesFor<F ...
Typescript
ageCompleteProperty); } set { SetValue(PercentageCompleteProperty, value); } } void OnPaintSurface(object sender, SKPaintSurfaceEventArgs e) { SKImageInfo info = e.Info; SKCanvas canvas = e.Surface.Canvas; canvas.Clear(); float startAngle = -90; float sweepAngle = 360 * (float)(PercentageComp...
C#
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Python项目通用打包脚本 将Python项目打包为单个EXE可执行文件 使用方法: python build.py 功能: 1. 检查所需依赖并自动安装 2. 清理旧的构建文件 3. 获取用户打包偏好设置(界面模式、图标、输出文件名) 4. 自动检测项目文件和结构 5. 打包项目为单个EXE可执行文件 """ import os import sys import subprocess import shutil import glob import traceback im...
Python
e2f711c294930803c6/src/types.ts#L316">src/types.ts:316</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="event" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag">Optional</code><span>event</span><a href="#event" aria-label="Permalink" class="tsd-anchor-i...
HTML
国家经济发展的影响是什么? | | 销售 | 如何提高产品销售量? | | 市场研究 | 在进行市场研究时需要注意哪些方面? | | 网站优化 | 如何优化网站以提高搜索引擎排名? | | 社交媒体营销 | 如何通过社交媒体提高品牌知名度? | | 用户体验 | 如何改进产品的用户体验? | | 数据分析 | 如何从大量数据中获取有用信息? | | 内容创作 | 如何写出吸引人的文章或博客? | | 人力资源管理 | 如何招聘和保留优秀员工? | | 创业 | 创业前需要做哪些准备工作? | | 财务管理 | 如何控制公司的财务风险? | |电影推荐|你能否推荐一部情感真挚、画面精美的浪漫爱情电影?| |旅游攻略|请提供一份适合家庭...
Markdown
C4d7fA58ADb172f8c38 blobGasFeeCap: 1875810596," + " blobBaseFee: 1962046498 (supplied gas 1000000)'. revertReason=UNKNOWN errorData=null" private val insufficientMaxFeePerGasErrMsg = "org.web3j.tx.exceptions.ContractCallException:" + " Contract Call has been reverted by the EVM with the reason:" + " 'err...
Kotlin
b>Gebruik van het invoerveld</b></p><table border=\\\"1\\\"><tr><td>Enter </td><td>opdracht uitvoeren</td></tr><tr><td>Escape</td><td>Maak invoerveld leeg</td></tr><tr><td>&#8593;</td><td>vorige opdracht</td></tr><tr><td>&#8595;</td><td>volgende opdracht</td></tr><tr><td>F1</td><td>help voor huidig commando</td></tr></...
JavaScript
lapse-toggle-right-transform, 180deg); --_toggle-position-y: calc(var(--_js-toggle-count-this-side, 0) * calc(var(--_icon-size) + var(--_padding)) + var(--_icon-size, 1rem) / 2); --_toggle-position-x: calc(-2.5 * var(--_icon-size) - var(--bs-card-border-width, 1px)); --_mobile-max-height: var(--bslib-sidebar-mobi...
CSS
(window==top) { document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--> </SCRIPT> <NOSCRIPT> <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> </NOSCRIPT> </FONT></TD> </TR> <TR> <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY:&nbsp...
HTML
in owner_changed { let args = signal.args().unwrap(); if args.name() == well_known { // Meant for the this testcase. assert_eq!(*args.new_owner().as_ref().unwrap(), *unique_name); break; } } // `NameAcquired` is emitted...
Rust
ок, шт) за 10 дней: 0 шт нарастающим итогом.</li><li>Облигация Банк ВТБ (ПАО) Б-1-218, RU000A103489 в выборку не попадает из-за малых оборотов или доступно мало торговых дней.</li><li>Строка 1221 из 2225: Банк ВТБ (ПАО) Б-1-219 (RU000A103497): цена=91.7%, доходность=8.83%, дюрация=12.46 мес.</li><li>Поиск оборота. Ссыл...
HTML
uire('../helpers/performance'); const extension_manager = require('../extensions'); const { HOOK, STATUS } = require('../helpers/constants'); const logger = require('../utils/logger'); const TestResult = require('test-results-parser/src/models/TestResult'); const PerformanceTestResult = require('performance-results-pa...
JavaScript
ven operation k_star movem.l d0-d7,-(sp) freeze registers movem.l d0-d7,-(sp) and again move.l $44e,save_screen save screen show utility_screen cls printat 1,16,0,#null ink 1 line 16 col 0 movem.l (sp)+,d0-d7 reveal original regs bsr reveal_regs all home ink 13 sand print reveal_text home ink 11 r...
Assembly
62.0308 860.6 Q64.9272 864.515 64.9272 871.39 Q64.9272 874.255 64.3543 877.374 Q63.8132 880.461 62.6992 883.899 L56.6518 883.899 Q58.3387 880.652 59.198 877.501 Q60.0256 874.35 60.0256 871.263 Q60.0256 867.125 58.6251 864.897 Q57.1929 862.669 54.6147 862.669 Q52.2276 862.669 50.9545 864.293 Q49.6813 865.884 48.5037 87...
HTML
, subtitle: const Text("点击切换列表/网格样式"), onTap: () { displayController.turnDisplayList(); }, ); // 如果显示网格,则添加更多修改选项 if (!displayList) { yield SwitchListTile( title: const Text("列数自适应"), value: displayController.enableResponsiveGridColumnCnt.value, onCha...
Dart
} } out.write(bytearr, 0, utflen+2); return utflen + 2; } /** * Returns the current value of the counter <code>written</code>, * the number of bytes written to this data output stream so far. * If the counter overflows, it will be wrapped to Integer.MAX_VALUE. * ...
Java
h: 0; } .e-multi-select-wrapper .e-chips { align-items: center; display: inline-flex; float: left; margin: 2px 4px 2px 0; max-width: 100%; overflow: hidden; padding: 0; text-overflow: ellipsis; white-space: nowrap; } .e-bigger .e-multi-select-wrapper .e-chips { margin: 3px 4px 2px 0; } .e-multi-s...
CSS
agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and limitations under the License. */ 'use strict'; /** * Okta Admin M...
JavaScript
ty: Type) -> Inst { match ty { types::B1 | types::B8 | types::I8 => Inst::Store8 { rd: from_reg, mem }, types::B16 | types::I16 => Inst::Store16 { rd: from_reg, mem }, types::B32 | types::I32 => Inst::Store32 { rd: from_reg, mem }, types::B64 | types::I64 | types...
Rust
using System.Runtime.InteropServices; using Windows.Win32.Foundation; using Windows.Win32.Graphics.Dwm; using Windows.Win32.UI.WindowsAndMessaging; using AutoMapper; using Tenon.Infra.Windows.Win32.Extensions; using Tenon.Infra.Windows.Win32.Models; using CsWin32 = Windows.Win32; namespace Tenon.Infra.Windows.Win32; ...
C#
ing("||"); hasher << count; return hasher.GetHash(); } /// \brief Format a seed string by hashing several values. /// \param N A Bignum /// \param aux An auxiliary string /// \param securityLevel The security level in bits /// \param groupName A group description string /// \th...
C++
60914657556, -0.20335277310966912], [51.45671846560397, -0.20371357524755254]], {"bubblingMouseEvents": true, "color": "#ff0000", "dashArray": null, "dashOffset": null, "fill": true, "fillColor": "#ff0000", "fillOpacity": 0.4, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "noClip": fal...
HTML
="color:#2838a9">如果</a>你还想了解更多这方面的信息,记得收藏关注本站。 </p><div style="text-align:center;"><img style="max-width: 100%;" alt="奶猫身上的跳蚤会传染到人身上吗(小奶猫身上有跳蚤会传染人吗)" src="https://img2.baidu.com/it/u=2393567137,2520293681&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=666"></div><div><div style="color:#999;text-align:center;">(图片来源网络,侵删)</div>...
HTML
3::ZERO, Vec3::Y); camera.perspective_projection.near = 1.0; camera.perspective_projection.far = 10000.0; commands.spawn_bundle(camera); } fn limit_length(v: &mut DVec3, len: f64) { if v.length() > len { *v = v.normalize() * len; } } fn moving(time: Res<Time>, mut query: Query<(&mut Star, ...
Rust
isPerfect: Box<boolean>; weight: Box<number>; } declare function f1(b: Bacon): void; declare function f2(bb: Boxified<Bacon>): void; declare function f3(bb: BoxifiedBacon): void; //// [tests/cases/compiler/moduleAugmentationDisallowedExtensions.ts] //// //// [x0.ts] export let a = 1; //// [x.ts] namespace ...
JavaScript
--------- | 24 23 22 21 20 | 19 | 18 17 | 16 15 | 14 13 | 12 11 | 10 | 9 8 7 6 | 5 4 3 2 1 0 | |-------------------------------------------------------------------------------------------| | (unused) | sf | mx | v | cv |(unused)| lm | (unused) | opcode | ----------------------------...
C++
频增益段和高频增益段。通常把增益下降到中频增益的0.707倍(即`3dB`)处所对应的下限频率和上限频率,称为功率放大的带宽,如图1所示。 ![](附件/频率响应.png) <center>图-1 频率响应</center> ​ 音频设备的频率响应特性直接影响音色、音场等听觉效果。如果频率响应特性不平坦,有某段频率下陷的地方,则这一频段就会听不太清楚,而突出的频段则又会把较弱的频段遮盖掉,如图2所示。为了获取更好的听觉效果,需要改善音频设备的频响特性,进行频率响应补偿。图示均衡器使用模拟信号处理方法,对预先设置的 8 或 10 个频点进行提升或衰减,以获得所需的平坦频响。 ​ ![](附件/频率响应特性.png) <ce...
Markdown
: expected_certify_info_qualified_name .clone() .try_into() .expect("failed to convert qualified name to tss type"), } .try_into() .expect("Failed to convert TPMS_CERTIFY_INFO to CertifyInfo"), }; let (attest, expected_tpms_attest) = ...
Rust
phone = "(111) 123-4567"}, } comp:exec([=[ print("== CONTACTS ==") -- turn contacts back into a Lua table local JSON = require("dkjson"); local contable = JSON.decode(contacts); for _, person in ipairs(contable) do --print(person); print("== PERSON =="); for k,v in pairs(person) do print(k,v); end end ]=...
Lua
target_i = char_target_i.replace(self.blank, "") char_pred.append(char_pred_i) char_target.append(char_target_i) return char_pred, char_target def calculate_cer( self, char_pred: torch.Tensor, char_target: torch.Tensor ) -> float: """Calculate sentence-level CE...
Python
using ICSharpCode.AvalonEdit.Document; using ICSharpCode.AvalonEdit.Editing; using ICSharpCode.AvalonEdit.Rendering; using Rubberduck.UI.Services; using Rubberduck.UI.Services.Abstract; using Rubberduck.Unmanaged.Model; using System; using System.Linq; using System.Windows; using System.Windows.Input; using System.Win...
C#
c override fun invokeKt(): R = function(paramsArray[0] as P0, paramsArray[1] as P1, paramsArray[2] as P2, paramsArray[3] as P3, paramsArray[4] as P4, paramsArray[5] as P5, paramsArray[6] as P6, paramsArray[7] as P7, paramsArray[8] as P8) public operator fun invoke( p0: P0, p1: P1, p2: P2, p3: P...
Kotlin
, endDX: number, endDY: number ]; export type TParsedCubicCurveShortcutCommand = | TParsedAbsoluteCubicCurveShortcutCommand | TParsedRelativeCubicCurveShortcutCommand; export type TCubicCurveShortcutCommand = TCommand5<TParsedCubicCurveShortcutCommand>; export type TParsedAbsoluteQuadraticCurveCommand = [ ...
Typescript
en(Integer.MIN_VALUE, -1), positiveValue)); assertEquals("[has_child] requires positive 'min_children' field", e.getMessage()); e = expectThrows(IllegalArgumentException.class, () -> foo.minMaxChildren(positiveValue, randomIntBetween(Integer.MIN_VALUE, -1))); assertEquals("[has_child] requires ...
Java
c="/steaminputglyphs/xbox360_button_start.svg"], img[src="/steaminputglyphs/ps5_button_options.svg"], img[src="/steaminputglyphs/sd_button_menu.svg"] { content: url("/themes_custom/handheld-controller-glyphs/assets/gpd/win-mini/start.svg"); } /* Back Buttons */ img[src="/steaminputglyphs/xbox_p3.svg"], img[src="/s...
CSS
bug) { console.log(`jfetchs/src/index.ts:153${prefix} missing cache`) } this.flush(key) this.options .fetch(query, key) .then(data => { return this.options.store .save(key, data, this.options.expire) .then(() => data) ...
Typescript
> text: <ul> <li><code>%L</code> (<i>server IP address</i>) <li><code>%V</code> (<i>server fully-qualified domain name</i>) <li><code>%v</code> (<i><a href="#ServerName"><code>ServerName</code></a></i>) <li><code>%{version}</code> (<i>ProFTPD version</i>) </ul> For example: <pre> ServerIdent on "Welcome to %v...
HTML
blockpos$mutableblockpos.func_181079_c(l1, i3, k1); final int i4 = (world.getCombinedLight(blockpos$mutableblockpos, 0) * 3 + 15728880) / 4; final int j4 = i4 >> 16 & 65535; final int k4 = i4 & 655...
Java
idle: 94.3</span><br/><span class="error">E DC1-SVC3A:</span><br/><span class="error">E cpuInfo:</span><br/><span class="error">E - idle: expected value &gt;= 90</span><br/><span class="error">E + idle: 89.5</span><br/><span class="error">E DC1-SVC3B:</span><br/><...
HTML
ex.START || TransferrableMutation.END * Target.index, * ] */ export const enum ScrollIntoViewMutationIndex { Target = 1, End = 2, } // 配置界面 class SPConfigView { private configBox: Laya.Box; // 配置页面容器 private spotlightSize: Laya.TextInput; // 聚光灯半径输入框 private backgroundImg: Laya.TextInput; // 背景图输入框...
Typescript
ring dentro da função, bloqueando boolean, por exemplo // O IGUAL depois de string é o default da função, ou seja, se você usar useState(123) vai dar erro pq o default é string mas useState("olá") vai funcionar // S => State // T => Type // K => Key // V => Value // E => Element type numOrStr = number | string...
Typescript
ssign.IsAssignedIn(t_block, v0)); EXPECT_TRUE(def_assign.IsAssignedOut(t_block, v0)); EXPECT_FALSE(def_assign.IsAssignedIn(t_block, v1)); EXPECT_TRUE(def_assign.IsAssignedOut(t_block, v1)); // Since y is only assigned in the true block it should not be assigned on // entry to the false block EXPECT_TRUE(de...
C++
# Copyright 2018,2019,2020,2021 Sony Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
Python
<String, SnippextTemplate> = HashMap::new(); loop { let identifier = Text::new("Template identifier:") .with_validator(required!("This field is required")) // .with_validator(&|id| { // let now = chrono::Utc::now().naive_utc().date(); // // ...
Rust
currentColor"})]}))));Be.defaultProps={size:"medium",color:"inherit"};const We=Be,Ue=(0,o.w)(((e,t)=>(0,r.jsx)(i.A0,Object.assign({ref:t},e,{children:(0,r.jsx)("path",{d:"M14.3 12.18a.24.24 0 0 1 0-.35l9.257-9.274a1.49 1.49 0 0 0 0-2.121 1.509 1.509 0 0 0-2.12 0L12.18 9.699a.251.251 0 0 1-.36 0L2.562.435A1.51 1.51 0 0 ...
JavaScript
onMgr.h" #include <SketchPlugin_Offset.h> #include <ModelAPI_AttributeRefList.h> #include <ModelAPI_AttributeDouble.h> #include <Graphic3d_AspectLine3d.hxx> #include <Prs3d_Root.hxx> IMPLEMENT_STANDARD_RTTIEXT(SketcherPrs_Offset, SketcherPrs_SymbolPrs); static Handle(Image_AlienPixMap) MyPixMap; SketcherPrs_Offs...
C++
} } //func main() { cf1139E(os.Stdin, os.Stdout) } // Generated by copypasta/template/generator_test.go package main import ( "fmt" "github.com/EndlessCheng/codeforces-go/main/testutil" "io" "testing" ) // https://codeforces.com/problemset/problem/1198/B // https://codeforces.com/problemset/status/1198/problem/B...
Go
1_MULTIBLOCK_MAX_SEND_FRAGMENT followed by EVP_CIPHER_CTX_get_params() with a key of &quot;tls1multi_maxbufsz&quot; (<b>OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_MAX_BUFSIZE</b>).</p> </dd> <dt id="EVP_CTRL_TLS1_1_MULTIBLOCK_AAD">EVP_CTRL_TLS1_1_MULTIBLOCK_AAD</dt> <dd> <p>When used with a fetched <b>EVP_CIPHER</b>, EVP_CIPH...
HTML
g()) * .setFilter("filter-1274492040") * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .build(); * ApiFuture<Occurrence> future = * grafeasClient.listOccurrencesPagedCallable().futureCall(request); * // Do something. * for (Oc...
Java
// // VRTLightManager.h // React // // Created by Vik Advani on 1/8/16. // Copyright © 2016 Viro Media. 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 the Software witho...
C
string[] List of buftypes to exclude from buffer sticks (e.g., "terminal", "help", "quickfix") ---@field names? string[] List of buffer name patterns to exclude (supports lua patterns) ---@class BufferSticksConfig ---@field offset BufferSticksOffset Position offset for fine-tuning ---@field padding BufferSticksPadding...
Lua
ndne_f16 v5, vcc_hi // CHECK: [0x6b,0x8e,0x0a,0x7e] v_rndne_f16 v5, tba_lo // CHECK: [0x6c,0x8e,0x0a,0x7e] v_rndne_f16 v5, tba_hi // CHECK: [0x6d,0x8e,0x0a,0x7e] v_rndne_f16 v5, tma_lo // CHECK: [0x6e,0x8e,0x0a,0x7e] v_rndne_f16 v5, tma_hi // CHECK: [0x6f,0x8e,0x0a,0x7e] v_rndne_f16 v5, ttmp11 // CHECK: [0x7b,0x8e...
Assembly
None, } } } pub struct TableInCBuilder<'a: 'b, 'b> { fbb_: &'b mut flatbuffers::FlatBufferBuilder<'a>, start_: flatbuffers::WIPOffset<flatbuffers::TableUnfinishedWIPOffset>, } impl<'a: 'b, 'b> TableInCBuilder<'a, 'b> { #[inline] pub fn add_refer_to_a1(&mut self, refer_to_a1: flatbuffers::WIPOffset<super:...
Rust
from dotenv import load_dotenv from sqlalchemy.ext.asyncio import AsyncSession, create_async_engine from sqlalchemy.orm import sessionmaker, declarative_base from sqlalchemy import MetaData import os load_dotenv() SQLALCHAMY_DATABASE_URL = os.getenv("DATABASE_URL") print(SQLALCHAMY_DATABASE_URL) Base = declarative_b...
Python
r is", s_i, "The word number is", i, "and the word there is", this.sentences[s_i][i]); if (this.currentSentence !== s_i || this.currentIndex !== i) { this.editing = false; } this.currentSentence = s_i; this.currentIndex = i; } @HostListener('...
Typescript
lipse, .at-svg circle, .at-svg rect, .at-svg path { fill: inherit; } .at-svg-wrp { --at-ln-h: 0; line-height: var(--at-ln-h); } .at-svg-wrp svg { width: var(--at-w, inherit); height: var(--at-h, inherit); } .at-img { --at-max-w: 100%; max-width: var(--at-max-w); } .at-vid { --at-max-w: 100%; --at-w: 1...
CSS
age: url("../../img/u/v5_natars2.gif"); } img.u51, img.u52, img.u53, img.u54, img.u55, img.u56, img.u57, img.u58, img.u59, img.u60 { background-image: url("../../img/u/v6_monsters2.gif"); } img.uhab, img.ucata, img.ustock, img.uwall, img.ubarr, img.upal, img.ugeb, img.uhero, img.uunits, img.app { background-ima...
CSS
") .addBody("b", "{b}") .var("a", "foo") .var("b", "bar"); assertThat(request.body().encodeToString()).isEqualTo("{\"a\":\"foo\",\"b\":\"bar\"}"); request.var("a", "111"); request.var("b", req -> "222"); request.execute(); mockRe...
Java
X1e1F0Z+RPDwXzPOCzqeV0+0HtllisNk8qCmYfWYzkupVR+KLJVbr88tz8YOb7Ssdl9FqWhKLcy3lzpGB3aUyAO9bHqVWam9svn+zV1z1QxT9aexTFbjHhea2m4vvPYNNY8dN2eJ/ytevY9XumYLJrDsTtHbqxwjHbIxxt7ttVss8inpikH60TOGtpW1sycHPmJ4WNcMw539rx+uPP64YrHSlmY2eCWxYOdq8brs0hcVOmYHDOHY3/H+cgvvTrKl3+ZgTl/lsefn8crDYy1OJzV87p7n7HWe477NFNvSygPa7w+x6MUhTM6xWFwq6LMR...
CSS
"cpy_attr0": 0, "ipmap": { "attr0": 17213427712 }, "songname_suffix": "(国风版)", "musicpack_advance": 0, "display": 0, "display_rate": 0 }, ...
Dart
function DTAnalytics:userDelete(acId, dtId, properties) local ok, ret = pcall(upload, dtId, acId, "user", "#user_delete", properties, self.debug) if ok then return ret end end --- Report ordinary event ---@param acId string ---@param dtId string ---@param eventName string ---@param properties table...
Lua
= opt; id = id; #endif #if OS_TASK_DEL_EN > 0 ptcb->OSTCBDelReq = OS_NO_ERR; #endif ptcb->OSTCBY = (INT8U)(prio >> 3); /* Pre-compute X, Y, BitX and BitY */ ptcb->OSTCBBitY = OSMapTbl[ptcb->OSTCBY]; ptcb->OSTCBX ...
C
faults cli parameter to empty object", () => { const conf = npmConf(); expect(conf.sources.cli.data).toEqual({}); }); it("overwrites default with cli key", () => { const conf = npmConf({ registry: "https://npm.example.com" }); expect(conf.get("registry")).toBe("https://npm.example.com"); }); ...
Typescript
from .base import Randomize from typing import Dict, Any from ..tasks.task import BaseTask import numpy as np from omni.isaac.core.prims import XFormPrim from omni.isaac.core.utils.prims import get_prim_parent, get_prim_at_path @Randomize.register("RobotBaseRandom") class RobotBaseRandom(Randomize): def __init__(...
Python
m_Current = m_First; m_Pos = 0; m_BlockPos = 0; return 0; } if (offset == m_Pos) return m_Pos; if (!m_Current || (offset < m_Pos && offset < m_Pos - offset)) { x_SeekHEAD(0); return x_SeekCURR(offset); } return x_SeekCURR(offset - m_Pos); ...
C++
(0f64) as u32; let right = bbox.max().x.min(image_width as f64) as u32; let top = bbox.min().y.max(0f64) as u32; let bottom = bbox.max().y.min(image_height as f64) as u32; let mut feature_image: RgbImage = ImageBuffer::new(bbox.width().ceil() as u32, bbox.height().ceil() as u32); for x in ...
Rust
import torch import requests import os try: slack_url = os.environ["SLACK_URL"] except: slack_url = None def lr_iteration(optimizer,writer): def print_lr(engine): for i, pg in enumerate(optimizer.param_groups): writer.experiment.log_metric(f'train/lr{i}', engine.state.iteration - 1...
Python
// This file is part of YamlDotNet - A .NET library for YAML. // Copyright (c) Antoine Aubry and contributors // 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 without restriction, inc...
C#
84-3.06-2.6-3.06-1.74 0-2.58 1.52-2.58 3.06zm16.38-4.76c-.84-.18-1.66-.38-2.92-.38-2.1 0-4.04.98-4.04 3.2 0 3.72 4.66 2.34 4.66 4.36 0 1-1.08 1.26-1.76 1.26-.92 0-1.8-.26-2.64-.68l-.16 2.2c.98.26 2.02.44 3.04.44 2.18 0 4.32-.96 4.32-3.36 0-3.72-4.66-2.68-4.66-4.32 0-.88.86-1.14 1.58-1.14.98 0 1.58.16 2.4.44l.18-2.02zm3...
JavaScript
In preparation for the NFL lockout, I will be spending twice as much time analyzing my fantasy baseball team during company time. #PGP","truncated": false,"in_reply_to_user_id": null,"in_reply_to_status_id": null,"favorited": false,"source": "","in_reply_to_screen_name": null,"in_reply_to_status_id_str": null,"id_str":...
Go
> 一切应该受刑事处分的(包括管制在内),或者应该给予宽大处理的,都应有完备的法律手续。 </p> <p> (七)知识分子中的肃反工作,请注意周总理报告中有关这个问题的指示,并请参看定一同志和我在知识分子问题会议上的发言。 </p> <p> 关于第一个方面问题的意见就是如此。 </p> <p> 现在,我讲第二个方面的问题:应该又快又好地完成本年度的肃反运动中的工作。 </p> <p> 我想讲的主要是下面五个问题: </p> <p> 第一、关于一九五六年度的规划问题。一九五五年已经有四百六十多万人参加了运动,全国应该参加运动的还有一千四百多万人,我们应当进行全...
HTML
gOutputStream bOut = new BcpgOutputStream( digestOut, PacketTag.ModificationDetectionCode, 20); bOut.Flush(); digestOut.Flush(); // TODO byte[] dig = DigestUtilities.DoFinal(digestOut.WriteDigest()); cOut.Write(dig, 0, dig.Length); } cO...
C#
return null; } protected String composeDn(String... parts) { StringWriter resultDn = new StringWriter(); for (String s : parts) { String part = s; if (part == null || part.length() == 0) { continue; } if (part.endsWith(",")) { part = part.substring(part.length() - 2,...
Java
399; xT[20] = g144*g197*g410; xT[21] = g145*g197*g391; xT[22] = g146*g197*g422; xT[23] = g147*g197*g395; xT[24] = g148*g197*g408; xT[25] = g149*g197*g414; xT[26] = g150*g197*g415; xT[27] = g151*g197*g401; xT[28] = g152*g197*g420; xT[29] = g153*g197*g417; ...
C++
dler_func(1)) obj:on('testing.ns1', handler_func(2)) obj:on('testing.ns2', handler_func(3)) obj:on('testing.ns3', handler_func(4)) obj:fire('testing', 3, 5) assert(#t == 4) assert(t[1] == 1) assert(t[2] == 2) assert(t[3] == 3) assert(t[4] == 4) t = {} obj:off'.ns2' obj:fire('testing', 3, 5) assert(#t == 3) assert(t[1...
Lua
metadata = metadata; _mapMarkers.add(mapMarker); } void _addCircleMapMarker(GeoCoordinates geoCoordinates, String imageName) { int imageWidth = 100; int imageHeight = 100; // Note that you can optionally optimize by reusing the mapImage instance for other MapMarker instance. MapImage mapImage =...
Dart
GitHub Issues](https://github.com/readur/readur/issues) - [Documentation](https://docs.readur.app) - [Discord Community](https://discord.gg/readur) ## Next Steps ### Essential Reading 1. **[User Guide](../user-guide.md)** - Upload and manage documents - Configure OCR processing - Master search feature...
Markdown
טים", Style : "סגנון", FontFormat : "עיצוב", Font : "גופן", FontSize : "גודל", TextColor : "צבע טקסט", BGColor : "צבע רקע", Source : "מקור", Find : "חיפוש", Replace : "החלפה", SpellCheck : "בדיקת איות", UniversalKeyboard : "מקלדת אוניברסלית", PageBreakLbl : "שבירת דף", PageBreak : "הוסף שבי...
JavaScript
/*- * Copyright (c) 2003-2007 Tim Kientzle * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of c...
C
p://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permis...
Kotlin
nfig(); autoPushEfficiencyConfig.setEnableAutoPushEfficiency(true); autoPushEfficiencyConfig.setEnableDebouncingTime(true); autoPushEfficiencyConfig.setEnableMaxDebouncingTime(true); // 总推送数超过 10 笔就触发增加攒批时长 autoPushEfficiencyConfig.setPushCountThreshold(10); autoPushEfficiencyConfig.setWindowN...
Java
lejojn\xeb k\xebt\xeb nivel qasjeje. Nj\xeb pronar i hap\xebsir\xebs s\xeb pun\xebs mund ta ndryshoj\xeb k\xebt\xeb cil\xebsim te cil\xebsimet e GPT-ve t\xeb hap\xebsir\xebs s\xeb pun\xebs.","M4dZms":"Emri","MEl4hN":"\\"{cellContent}\\" qeliz\xeb","ManageCookiesModal.accept":"Pranoji t\xeb gjitha","ManageCookiesModal....
JavaScript
_start: beq x0, x0, reset_vector loop: beq x0, x0, loop fail: lui t0, 0x10000 lb t1, 5(t0) andi t1, t1, 0x20 beq t1, zero, fail addi a0, zero, 'F' sb a0, 0(t0) beq x0, x0, loop pass: lui t0, 0x10000 lb t1, 5(t0) andi t1, t1, 0x20 beq t1, zero, pass addi a0, zero, 'P' sb a0, 0(t0) beq x0, x0, loop nop nop nop reset...
Assembly
= this.x; const y = -this.y; // Flip axis, for SVG const p = Scalar.wrap(Math.atan2(y, x), 2 * PI); const r = Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)); return new PrPoint(p, r); } /** * Convert this point to an IR point. */ toIr(): IrPoint { return this.toPr().toIr(); } /** *...
Typescript