content
stringlengths
2
6.21k
label
stringclasses
16 values
expect(vals.map((e) => e.toInt()).toList(), [1, 3]); }); test('too many initial values throws', () async { try { await setupAndDumpFifo([1, 2, 3, 4, 5]); fail('Did not throw'); } on Exception catch (_) { // pass } }); test('initial values is empty, not fu...
Dart
exist_table(&conn, "book") { conn.execute(INIT_BOOK_TABLE, [])?; } if !chk_exist_table(&conn, "word") { conn.execute(INIT_WORD_TABLE ,[])?; } Ok(0) } #[cfg(test)] mod tests { use rusqlite; use rusqlite::{Connection}; #[test] fn test_init() -> rusqlite::Result<()> ...
Rust
#[inline(always)] pub fn usbsusp_msk(&mut self) -> USBSUSPMSK_W { USBSUSPMSK_W { w: self } } #[doc = "Bit 12 - USB Reset Mask"] #[inline(always)] pub fn usbrst_msk(&mut self) -> USBRSTMSK_W { USBRSTMSK_W { w: self } } #[doc = "Bit 13 - Enumeration Done Mask"] #[inlin...
Rust
pub const SIO_GPIO_HI_OUT_OFFSET: u32 = 48; pub const SIO_GPIO_HI_OUT_BITS: u32 = 63; pub const SIO_GPIO_HI_OUT_RESET: u32 = 0; pub const SIO_GPIO_HI_OUT_MSB: u32 = 5; pub const SIO_GPIO_HI_OUT_LSB: u32 = 0; pub const SIO_GPIO_HI_OUT_ACCESS: &'static [u8; 3usize] = b"RW\0"; pub const SIO_GPIO_HI_OUT_SET_OFFSET: u32 = ...
Rust
E27 add r1, r2, r1 bl SpriteManager_UnloadCellObjById ldr r2, [r5, #4] ldr r1, _0225D874 ; =0x00000195 add r0, r4, #0 ldrb r2, [r2, r1] ldr r1, _0225D880 ; =0x00004E27 add r1, r2, r1 bl SpriteManager_UnloadAnimObjById mov r0, #2 strb r0, [r5, #0xa] pop {r3, r4, r5, r6, r7, pc} _0225D85A: ldrb r1, [r5, #9] ...
Assembly
b46dc2f71aHR0cDovLzE5Mi4xNjguNTYuNi93cC1jb250ZW50L3VwbG9hZHMvYXJ0aWN1bGF0ZV91cGxvYWRzL3BvYzQvc2hlbGwucGhw) 就可以看到反弹的 shell,还不是 TTY,接下来就想办法变成 TTY 吧 ![](https://image.3001.net/images/20210122/1611302765_600a876d1e377c41b7fd3.png!small) ![](https://image.3001.net/images/20210122/1611302765_600a876db7c6ca7c9de17.png!small...
Markdown
scalar y = parseNASCoord(line.substr(56, 16)); is.getLine(line); if (line[0] != '*') { FatalErrorIn ( "fileFormats::NASsurfaceFormat::read(const fileName&)" ) << "Expected continuati...
C
g/license.shtml. // // This program is distributed in the hope that it will be useful, but WITHOUT // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS // FOR A PARTICULAR PURPOSE. See the license for more details. using System; using System.Collections.Generic; using System.Linq; using ...
C#
。这个套接字发送时也需要匹配主题。 ``` with zmq.Context() as context:     socket = context.socket(zmq.SUB)     socket.connect("tcp://127.0.0.1:5555")     socket.setsockopt(zmq.SUBSCRIBE, topic)     i = 0     ... ``` #### 接收消息 启动一个无限循环,等待接收发送到 `SUB` 套接字的新消息。这个循环会在你按下 `Ctrl+C` 组合键或者内部发生错误时终止: ```     try:         while True:     ...
Markdown
the log file is written is used.</li>\n<li><code>plugins</code>: Allows extending the GUILibrary with external Python classes.</li>\n<li><code>event_firing_webdriver</code>: Class for wrapping Selenium with <a href=\"https://seleniumhq.github.io/selenium/docs/api/py/webdriver_support/selenium.webdriver.support.event_f...
HTML
[]; for (int i = 0; i < displayCanvases.length; i++) { rasterizeFutures.add(rasterizeToCanvas(displayCanvases[i], pictures[i])); } recorder?.recordRasterStart(); await Future.wait<void>(rasterizeFutures); recorder?.recordRasterFinish(); } } // Copyright 2013 The Flutter Authors. All rights r...
Dart
51 2c1.093 0 2.146.422 2.936 1.202a4.085 4.085 0 0 1 0 5.822"></path></symbol><symbol id="livephoto_slash" viewBox="0 0 20 20"><path fill="#fff" d="M10.012 15.608q-1.169 0-2.185-.436a5.6 5.6 0 0 1-1.778-1.19 5.7 5.7 0 0 1-1.197-1.777 5.6 5.6 0 0 1-.429-2.186q0-.705.166-1.363a5.5 5.5 0 0 1 .491-1.238l.512.519a4.7 4.7 0 ...
HTML
buserrv,A0 move.l SP,A1 lea return(PC),A2 move.l A2,buserrv bset #7,$FFFF8E01 return: move.l A1,SP move.l A0,buserrv move.l D0,-(SP) move.w #super,-(SP) trap #gemdos ...
Assembly
// bounds for full trace, a little bit larger for epsilons for ( i = 0; i < 3; i++ ) { if ( tw.start[i] < tw.end[i] ) { tw.bounds[0][i] = tw.start[i] + tw.size[0][i] - CM_BOX_EPSILON; tw.bounds[1][i] = tw.end[i] + tw.size[1][i] + CM_BOX_EPSILON; } else { tw.bounds[0][i] = tw.end[i] + tw.size[0][i] - CM_BO...
C++
var GK=uA[((GL)>>2)];var Gy=BN;var Gx=((Gy+4*GK)&4294967295);var Gw=uA[((Gx)>>2)];var Gv=(Gw)==0;if(Gv){Ba=6;break $bb5$$bb$2}var Gu=J5;var Gt=((Gu+4)&4294967295);var Gs=uA[((Gt)>>2)];var Gr=BN;var Gp=((Gr+4*Gs)&4294967295);var Go=uA[((Gp)>>2)];var Gd=pt(Go,((iH)&4294967295));var Gc=(((Gd))|0)==0;var Gb=J5;var Ga=((Gb+...
JavaScript
dAt, int? deletedAt) { Id = id; SteamId = steamId?.ToString(); Ip = ip; Name = name; Duration = duration; BanType = banType; Reason = reason; ServerId = serverId; AdminId = adminId; UnbannedBy = unbannedBy; CreatedAt = createdA...
C#
if (handler.BlockSigInfos[handler.BlockIndex].EndsInRet) break; } if (hi >= hhashes.Count || ci >= chashes.Count) return false; var hhash = hhashes[hi++]; var chash = chashes[ci++]; if (chash != hhash) return false; } handler.HashIndex = hi; composite.HashIndex = ci;...
C#
> paypal.Buttons({ createOrder: function(data, actions) { let price = parseFloat('{{ selected_price }}'); return actions.order.create({ purchase_units: [{ amount: { value: price.toFixed(2), currency_code: 'USD' } }] }); }, ...
HTML
se maps. // // Since there is no good way for a user of delve to specify the value of // MaxMapBuckets, this field is not actually exposed through the API. // Instead (*EvalScope).LocalVariables and (*EvalScope).FunctionArguments // set this field automatically to MaxArrayValues * maxMapBucketsFactor. // Every o...
Go
</h3> <div class="member-signature"><span class="modifiers">public static</span>&nbsp;<span class="return-type">boolean</span>&nbsp;<span class="element-name">fileExtensionMatch</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class...
HTML
setState(1050); ((NumFnContext)_localctx).castAsBigint = castAsBigint(); ((NumFnContext)_localctx).exp = ((NumFnContext)_localctx).castAsBigint.exp; } break; case 4: enterOuterAlt(_localctx, 4); { setState(1053); ((NumFnContext)_localctx).castAsFloat = castAsFloat(); ((Nu...
Java
Boolean = DEFAULT_SHOULD_SHOW_MODEL, val shouldShowResolutionsPx: Boolean = DEFAULT_SHOULD_SHOW_RESOLUTION_PX, val shouldShowResolutionsDp: Boolean = DEFAULT_SHOULD_SHOW_RESOLUTION_DP, val shouldShowDensity: Boolean = DEFAULT_SHOULD_SHOW_DENSITY, val shouldShowAndroidVersion: Boolean = DEFAULT_SHOULD_S...
Kotlin
" + translateVulkanResult(err)); } depthStencilViewCreateInfo.image(depthStencilImage); LongBuffer pDepthStencilView = memAllocLong(1); err = vkCreateImageView(device, depthStencilViewCreateInfo, null, pDepthStencilView); long depthStencilView = pDepthStencilView.get(0); ...
Java
때문에 사람들은 높은 수수료를 지불할 유인이 없습니다.</p>\n\n<p>2017년 암호화폐 붐이 한창일 때 비트코인은 거래가 넘쳐났고 다음 블록이나 가까운 미래의 블록에 포함되기를 원하는 사람들의 수수료가 급등했습니다. 높은 수수료를 지불하고 싶지 않은 사람들은 거래가 몇 시간, 며칠 동안 지연되거나 심지어 대기열에서 완전히 제외되는 것을 보았습니다.</p>\n\n<p>이것은 \'대량 채택\'에 대해 자주 이야기되는 비트코인이 어떻게 될지에 대한 끔찍한 통찰이었습니다. 비트코인이 대중에 의해 사용된다면 상황은 2017년보다 더 나빠질 것이며, 단순히 고정된 블록 크...
Dart
valorp = float(input("Digite o valor do salário atual: ")) aumento = int(25) total1 = (valorp*aumento)/100 total2 = valorp + total1 print("O funcionario recebeu o aumento de 25%, aumentando o salario atual para: ", total2)
Python
经营性建设用地使用权,依照双方签订的书面合同办理,法律、行政法规另有规定的除外。 ## 第六章 监督检查 第六十七条 县级以上人民政府自然资源主管部门对违反土地管理法律、法规的行为进行监督检查。 县级以上人民政府农业农村主管部门对违反农村宅基地管理法律、法规的行为进行监督检查的,适用本法关于自然资源主管部门监督检查的规定。 土地管理监督检查人员应当熟悉土地管理法律、法规,忠于职守、秉公执法。 第六十八条 县级以上人民政府自然资源主管部门履行监督检查职责时,有权采取下列措施: (一)要求被检查的单位或者个人提供有关土地权利的文件和资料,进行查阅或者予以复制; (二)要求被检查的单位或者个人就有关土地权利的问题作出说明;...
Markdown
TCC/WDDM | Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 ...
Markdown
x = 366.40432967537,y = -174.31716687468}, }}, [4] = {x = 413.70985095405,y = -151.16470945567,sublevel=1}, [5] = {x = 318.46859727909,y = -243.97174987979,sublevel=1,patrolFacing=0,patrolFacing2=(26/32)*pi,patrol={ [1] = {x = 318.46859727909,y = -243.97174987979}, [2] = {x = 318.24836313656,y = -...
Lua
1<<r.maxZoom)*r.extent),2),s=[],l=e.id;if(r.promoteId?l=e.properties[r.promoteId]:r.generateId&&(l=n||0),"Point"===a)nt(i,s);else if("MultiPoint"===a)for(var u=0;u<i.length;u++)nt(i[u],s);else if("LineString"===a)it(i,s,o,!1);else if("MultiLineString"===a){if(r.lineMetrics){for(u=0;u<i.length;u++)s=[],it(i[u],s,o,!1),t...
JavaScript
, ok := ret.Get(0).(func(string) (*sarama.Broker, error)); ok { return rf(transactionID) } if rf, ok := ret.Get(0).(func(string) *sarama.Broker); ok { r0 = rf(transactionID) } else { if ret.Get(0) != nil { r0 = ret.Get(0).(*sarama.Broker) } } if rf, ok := ret.Get(1).(func(string) error); ok { r1 = rf...
Go
with gravity vector. We pick the face with lower height (y-value). # The parallel to face 0 is 1, face 2 is 3, and face 4 is 5. parallel_face_id = ground_plane_id + 1 parallel_face = FACES[parallel_face_id] parallel_face_center = get_face_center(parallel_face) parallel_face_normal = get_face_normal(...
Python
{}", e), /// }; /// /// println!("byte size: {}", info.size); /// # } /// ``` #[deriving(Hash)] pub struct FileStat { /// The size of the file, in bytes pub size: u64, /// The kind of file this path points to (directory, file, pipe, etc.) pub kind: FileType, /// The file permissions currently on th...
Rust
createEReference(documentRootEClass, DOCUMENT_ROOT__BPMN_EDGE); createEReference(documentRootEClass, DOCUMENT_ROOT__BPMN_LABEL); createEReference(documentRootEClass, DOCUMENT_ROOT__BPMN_LABEL_STYLE); createEReference(documentRootEClass, DOCUMENT_ROOT__BPMN_PLANE); createEReference(d...
Java
&utm_medium=api-v2&utm_source=Application%3A+nextauth+%28ID%3A+151633%29) **标语**:优质的Squarespace模板 **介绍**:完整的 Squarespace 模板构建和使用系统。该工具使设计师能够轻松创建自定义的 Squarespace 模板。即时安装和无代码自定义功能使用户能够在几分钟内启动专业网站。 **产品网站**: [立即访问](https://www.producthunt.com/r/3N2WEHOI677SXA?utm_campaign=producthunt-api&utm_medium=api-v2&utm_source=Appli...
Markdown
vec!["1".to_string()]); manager.screen_create_handler(Screen::default()); manager.screen_create_handler(Screen::default()); manager.focus_tag(&"1".to_owned()); let actual = manager.focused_workspace().unwrap(); let expected = Some(0); assert_eq!(actual.id, expected); ...
Rust
the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * Libgcrypt is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or ...
Rust
#ifndef COSTFUNCTIONFACTORY_H #define COSTFUNCTIONFACTORY_H #include <boost/shared_ptr.hpp> #include <opencv2/core/core.hpp> #include "camodocal/camera_models/Camera.h" namespace ceres { class CostFunction; } namespace camodocal { enum { CAMERA_INTRINSICS = 1 << 0, CAMERA_POSE = 1...
C
} err := val.RegisterValidation("nil", fn, true) Equal(t, err, nil) errs := val.Struct(ts) Equal(t, errs, nil) str := "string" ts.Test = &str errs = val.Struct(ts) NotEqual(t, errs, nil) } func TestRequiredWithoutPointers(t *testing.T) { type Lookup struct { FieldA *bool `json:"fieldA,omitempty" validat...
Go
* B00B08 80089968 000ECC00 */ sll $t9, $t6, 0x10 /* B00B0C 8008996C 958E024A */ lhu $t6, 0x24a($t4) /* B00B10 80089970 01F9C025 */ or $t8, $t7, $t9 /* B00B14 80089974 31CF00FF */ andi $t7, $t6, 0xff /* B00B18 80089978 030FC825 */ or $t9, $t8, $t7 /* B00B1C 8008997C 1000002B */ b .L80089A2C /* B00B2...
Assembly
= errors.New("evm: execution reverted") errMaxCodeSizeExceeded = errors.New("evm: max code size exceeded") ) func opAdd(pc *uint64, evm *EVM, contract *Contract, memory *Memory, stack *Stack) ([]byte, error) { x, y := stack.pop(), stack.peek() math.U256(y.Add(x, y)) evm.interpreter.intPool.put(x) return nil,...
Go
row new ArgumentNullException("cameraNode"); return OnGetIntensity(fogNode, cameraNode, targetPosition); } /// <summary> /// Called to compute the fog intensity for <see cref="GetIntensity"/>. /// </summary> /// <param name="fogNode">The fog node. (Is never <see langword="null"/>.)</param> ...
C#
void 0===w?{}:w;w.target=w.target||"YouTube";w.width=w.width||"600";w.height=w.height||"600";var y=w;y||(y={});w=window;var z=r instanceof Vd?r:g.Yd("undefined"!=typeof r.href?r.href:String(r));var B=void 0!==self.crossOriginIsolated, D="strict-origin-when-cross-origin";window.Request&&(D=(new Request("/")).referrerPol...
JavaScript
JvdHNURnMsIGNhcnJvdHNSTkEsIGNhcnJvdHNJR3MsIGN1a2VzKVxuZ2dwbG90KHZlZ0xlbmd0aHMsIGFlcyhsb2coZXhwcmVzc2lvbiksIGZpbGwgPSB0eXBlKSkgKyBnZW9tX2RlbnNpdHkoYWxwaGEgPSAwLjUpXG5nZ3NhdmUoXCJzcGVjaWFsZ3JvdXBzX3ZzX2FsbF9nbG9iYWxleHByZXNzaW9uXzEweF93aXRoMHMucGRmXCIsIHBsb3QgPSBsYXN0X3Bsb3QoKSwgZGV2aWNlID0gXCJwZGZcIiwgcGF0aCA9IE5VTEwsXG...
HTML
s="type" href="type.Elf64_Xword.html" title="type libc::Elf64_Xword">Elf64_Xword</a>, pub p_align: <a class="type" href="type.Elf64_Xword.html" title="type libc::Elf64_Xword">Elf64_Xword</a>, }</code></pre><h2 id="fields" class="fields section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="struc...
HTML
Imgproc.cvtColor(img, gray, Imgproc.COLOR_BGRA2GRAY) } else if (img.channels() == 3) { Imgproc.cvtColor(img, gray, Imgproc.COLOR_BGR2GRAY) } else { img.copyTo(gray) } val imgFloat = Mat() gray.convertTo(imgFloat, CvType.CV_32F) Core.add(imgFloat, Scalar(1.0), imgFloat) ...
Kotlin
} }, data: { app: '', pc: '', notify: '' } }, v2ex: { cookie: 'CookieV2ex', name: 'V2EX', provider: { check: { url: `https://www.v2e...
JavaScript
librated()); ImGui.sameLine(); needResetStatusText.renderText("Needs Reset: %b ".formatted(needsReset()), needsReset()); String errorString = getErrorString(state.getErrorCode()); if (!errorString.isEmpty()) { ImGui.sameLine(); sakeErrorStatusText.renderText("Error: %s"....
Java
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. #include <mono/metadata/assembly.h> #include <mono/metadata/object.h> #include <mono/metadata/loader.h> void mono_wasm_load_runtime (int debug_level); int mono_wasm_add_assembly (co...
C
-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.3); text-shadow: 0 1px rgba(0, 0, 0, 0.2); icon-shadow: 0 1px rgba(0, 0, 0, 0.2); padding: 12px; } .events-button:focus { color: #eeeeec; text-shadow: 0 1px rgba(0, 0, 0, 0.2); icon-shadow: 0 1px rgba(0, 0, 0, 0.2); box-shadow: inset 0 0 0 2px rgba(150, 42, 1...
CSS
<T> _mergeWithEntity(T entity) { final index = indexWhere((element) => element.id == entity.id); if (index >= 0 && index < length) { replaceRange(index, index + 1, [entity]); return this; } add(entity); return this; } //TODO cover the updating of the puppy with a unit test List...
Dart
setProfile("profile"). setHeadings(Arrays.asList(0.)). setPathDetails(Collections.singletonList("edge_key")); req.putHint(Parameters.Routing.PASS_THROUGH, true); GHResponse response = router.route(req); assertFalse(response.hasErrors()); assertArrayE...
Java
continue; } // Ensure new file doesn't exist. if fs::metadata(&new_filename).is_ok() { if !matches.is_present("force") { if matches.is_present("no-trim") { error!("already exists: ...
Rust
d after ").concat(c,"ms")),clearInterval(o),"function"!=typeof l||a||(l(),a=!0)}),c))}},152:function(e,t){window.modulousQueue=function(){var e=[],t=!1;function n(e){setTimeout((function(){try{e()}catch(e){}}),0)}return{add:function(o){t?n(o):e.push(o)},runAll:function(){t=!0,e.forEach(n),e=[]}}}(),setTimeout(window.mo...
HTML
CompilePath() { return compilePath; } public boolean isTrimDirectiveLine() { return trimDirectiveLine; } public boolean isTrimDirectiveComments() { return trimDirectiveComments; } public String getTrimDirectiveCommentsPrefix() { return trimDirectiveCommentsPref...
Java
overflow: hidden; text-align: center; } .mob_design_land .slide_mob h1 { font-size: 28px; font-weight: 500; color: #FFFFFF; } .mob_design_land .slide_mob img { display: block; margin: auto; } .mob_design_land .slide_mob p { font-family: 'Arial', sans-serif; } .mob_design_land .slide_mob .img-site { m...
CSS
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "qemu_test_harness.h" #include "../include/exp_rs.h" test_result_t test_batch_param_order(void) { qemu_printf("\n=== Testing Batch Parameter Order ===\n"); // Simple expressions that reveal parameter values const char* expressions[] = {...
C
/* * * Copyright (c) 2016 Cisco Systems, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * Redistributions of source code must retain the above copyright * notice, this l...
C
map<std::string, Param> &params) { std::map<const std::string, std::string> attributeMapper; attributeMapper["color0"] = "inputA"; attributeMapper["color1"] = "inputB"; attributeMapper["op"] = "operation"; MString materialName = MString(FIRE_RENDER_NODE_PREFIX) + "Arithmetic"; return createShadingNode(materialN...
C++
N_SKULL.skull(), "Fragmented Obsidian Skull") addBlock(ModBlocks.FADING_OBSIDIAN_SKULL.skull(), "Fading Obsidian Skull") addBlock(ModBlocks.AUREALIC_OBSIDIAN_SKULL.skull(), "Aurealic Obsidian Skull") addBlock(ModBlocks.ETERNAL_OBSIDIAN_SKULL.skull(), "Eternal Obsidian Skull") addBlock(Mo...
Kotlin
/* * Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Computer, Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, modification or redistribution of this Apple software constitutes acceptance of these terms. If you do not agree wit...
C
)| { let cache = cache::Cache::with_capacity(1_000_000_000); let arc_cache = Arc::new(Mutex::new(cache)); let ddml = Arc::new(ddml::DDML::open(pool, arc_cache.clone())); let (idml, label_reader) = idml::IDML::open(ddml, arc_cache, ...
Rust
inese', '=Pekingese'], ['Peking', 'ペキン(北京)(中華人民共和国の首都)'], ['Peking man', '北京原人'], ['Pekingese', '〈C〉北京人 / 〈U〉北京官話 / 〈C〉ペキニーズ(中国原産の愛玩用小型犬でチンに似ている) / 北京の'], ['pekoe', '《しばしばP-》ペコー(スリランカ・インド・ジャワ産の高級紅茶)'], ['pelage', '(哺乳動物の)毛,毛皮'], ['pelagic', '遠洋の,外洋に住む(で行う)'], ['pelf', '《通例軽べつして》金銭(money),(不正で得た)富(wealth)'...
Typescript
*/ public com.thejeffcooper.hassmic.proto.WyomingEvent.Info.AsrProgramOrBuilder getAsrOrBuilder( int index) { return asr_.get(index); } private void ensureAsrIsMutable() { com.google.protobuf.Internal.ProtobufList<com.thejeffcooper.hassmic.proto.WyomingEvent.Info.AsrProgram> tmp = ...
Java
rap", ["Landing"] = "Landing", ["Talk"] = "Prate", ["Name"] = "Navn", ["Training"] = "Trening", ["Programmers"] = "Programmererer", ["Respawn"] = "Gjenoppstå", ["Ghost"] = "Spøkelse", ["Network Options"] = "Nettverksinnstillinger", ["Click"] = "Klikk", ["Finger"] = "Finger", ...
Lua
ow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12); } @media screen and (-ms-high-contrast: active) { md-whiteframe { border: 1px solid #fff; } } /*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.0.5-mas...
CSS
clone_corner, .htContextMenu .ht_clone_debug { display: none; } .htContextMenu .htCore { background-color: #fff; padding: 8px 0; -webkit-box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23); } .htContextMen...
CSS
):quality(85)/www.infobae.com/new-resizer/d8v_ksBWZmYWq8lvmGiwE2to-yE=/cloudfront-us-east-1.images.arcpublishing.com/infobae/XMBW2T4LAVBUBDMNR7BOQ56WFA.jpg 1200w,https://www.infobae.com/new-resizer/OzHXgoh68tSrLgF_KPuTwKK7hVI=/1440x810/filters:format(webp):quality(85)/www.infobae.com/new-resizer/d8v_ksBWZmYWq8lvmGiwE2t...
HTML
px;font-weight:400;line-height:1.5;-webkit-text-size-adjust:100%;background:#fff;color:#666}.gsl-scope body{margin:0}.gsl-scope .gsl-link,.gsl-scope a{color:#1e87f0;text-decoration:none;cursor:pointer}.gsl-scope .gsl-link-toggle:hover .gsl-link,.gsl-scope .gsl-link:hover,.gsl-scope a:hover{color:#0f6ecd;text-decoration...
CSS
const_cast<model_t*>(modelinfo->GetModel( modelIndex )); // Ask the model info about what we need to know modelinfo->GetModelMaterialColorAndLighting( pModel, pCollide->GetCollisionOrigin(), pCollide->GetCollisionAngles(), trace, diffuseColor, baseColor ); } //Get final light value color->x = pow( diffuseC...
C++
ible { opacity: 0; } .gradio-container-4-13-0 .cropper-bg { background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAA...
CSS
in java.lang">String</a>[]&nbsp;args)</code> <div class="block">Pretty Printer for an SPDX Document</div> </td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods_inherited_from_class_java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.lang.<a href="http://docs.oracl...
HTML
.Test class ReflectUtilTest { @Test fun isNativeType() { val stock = 700 val boxing: Int? = stock val native: Int = stock // assertTrue(native !== boxing) println("boxing=${boxing!!::class.java}") println("native=${native::class.java}") val native1: Int...
Kotlin
float distance = ( _particles[i].Position - _particles[neighbourIndex].Position ).magnitude; if (distance > 0.0f) { var direction = ( _particles[i].Position - _particles[neighbourIndex].Position ) / distance; // 7. Compute pressure gradient f...
C#
的引用 [InstanceRef]. * @return 完整的字符串值。如果对象已过期且无法检索到完整字符串,则抛出 [IllegalStateException]。 * @throws RPCError 如果 VM 服务调用失败。 * @throws IllegalStateException 如果对象已过期且无法检索到完整字符串。 */ suspend fun VmService.retrieveFullStringValue( isolateId: String, stringRef: InstanceRef ): String? { // 1. 检查字符串是否被截断 if (!str...
Kotlin
.2493 13.3755 30.5377 16.15 30.94L18 34.05L19.89 30.9C22.6514 30.4919 25.2082 29.2059 27.182 27.232C29.1559 25.2582 30.4419 22.7014 30.85 19.94ZM23.65 18.68C23.4322 19.9266 22.8353 21.0756 21.9404 21.9704C21.0456 22.8652 19.8966 23.4622 18.65 23.68L11 25L12.35 17.32C12.5678 16.0734 13.1647 14.9244 14.0596 14.0295C14.95...
CSS
ivacy/us/yahoo/relevantads.html\" target=\"_blank\" data-ylk=\"cpos:3;bpos:1;cat:LISTID%3A8d64a97a-a34e-4ab8-bac1-f8a95616142a;t1:a3;t2:strm;t3:ct;ad:1;elmt:info;g:32474069017;ct:1;pkgt:4;rspns:nav;elm:itm;itc:0;r:false;ccode:false;\"&gt;AdChoices&lt;i class=\"C-f Icon\"&gt;&amp;#xe05a;&lt;/i&gt;&lt;/a&gt;\n ...
HTML
halt 617bf: 00 halt 617c0: 6a 00 00 cvtdl $0x0 [d-float],$0x0 617c3: 00 halt 617c4: 00 halt 617c5: 00 halt 617c6: 00 halt 617c7: 00 halt 617c8: f8 ff ff ff ashp *7117cd <_end+0x6a1da5>,$0x0,$0x0,(r10),$0x0,$0x0 617cc: 6a 00 00 0...
Assembly
conn.send(&mut out).expect("initial send failed"); println!("6/ CONN.SEND {} bytes", write); while let Err(e) = socket.send(&out[..write]) { if e.kind() == std::io::ErrorKind::WouldBlock { println!("EE 6/ send() would block"); continue; } panic!("EE-PANIC 6/ sen...
Rust
Document.getElementById('id36').contentDocument;}catch(e){} try{o579=document.documentElement;}catch(e){} try{tmp.id = 'id421'}catch(e){} try{o619=document.getElementById('id421').contentDocument;}catch(e){} try{o622=window.document.getElementById('id421').contentWindow.document;}catch(e){} try{o875.setAttributeNS(null...
HTML
TOC.-0b@ha addi 2,2,.TOC.-0b@l .localentry ML_(do_syscall_for_client_WRK), .-ML_(do_syscall_for_client_WRK) #else .section ".opd","aw" .align 3 ML_(do_syscall_for_client_WRK): .quad .ML_(do_syscall_for_client_WRK),.TOC.@tocbase,0 .previous #endif #if _CALL_ELF == 2 0: addis 2,12,....
Assembly
4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29) #define NLOHMANN_JSON_PASTE31(func, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21, v22, v23, v24, v25, v26, v27, v28, v29, v30) NLOHMANN_JSON_PASTE2...
C++
} /** * <p>There is no CloudWatch Logs log group with the specified ARN.</p> */ export interface NoSuchCloudWatchLogsLogGroup extends __SmithyException, $MetadataBearer { name: "NoSuchCloudWatchLogsLogGroup"; $fault: "client"; message?: string; } export namespace NoSuchCloudWatchLogsLogGroup { /** * @int...
Typescript
// 0x0700FA30 - 0x0700FA50 static Movtex sl_movtex_snowman_water_data[] = { MOV_TEX_INIT_LOAD( 1), MOV_TEX_ROT_SPEED( 8), MOV_TEX_ROT_SCALE( 10), MOV_TEX_4_BOX_TRIS(-6194, -409), MOV_TEX_4_BOX_TRIS(-6194, 4198), MOV_TEX_4_BOX_TRIS( 154, 4198), MOV_TEX_4_BOX_TRIS( 154, -409), ...
C
** (cinderscapes-1.2.3+build.37-1.16.3.jar) - **Croptopia** (Croptopia-1.0.2-1.16.3-FABRIC.jar) - **Direbats** (direbats-1.0.0+1.16.3-fabric.jar) - **Geckolib** (fabric-1.16.1-geckolib-2.0.0.jar) - **Fabric Language Scala** (fabric-language-scala-0.3.2.12-fat (1).jar) - **Flamingo, oh, oh, oh...** (Flamingo-oh-oh-oh-1....
Markdown
�及定义如下所示: ![image-20230522152113978](./image/developer_guide/image-20230522152113978.png) - 接口形式:ros service + topic 调用service开启手势识别算法,请求中algo_enable传入参数ALGO_BODY和ALGO_GESTURE。通过topic获取手势识别结果,其中topic person中body_info.infos[i].gesture为手势识别的结果。 - 接口名称/服务文件/文件位置:统一见目标跟踪。 ### 人体检测 - 具体功能:检测场景中所有人体,给出每个人体的位置及置信度信息。 -...
Markdown
nOpts) if err != nil { return nil, fmt.Errorf("generating jwt: %w", err) } // Add default policies to the enforcer if err := uc.enforcer.AddPolicies(&authz.SubjectAPIToken{ID: token.ID.String()}, uc.DefaultAuthzPolicies...); err != nil { return nil, fmt.Errorf("adding default policies: %w", err) } // Dispa...
Go
dataStore.HUDs.avatarEditorVisible.Set(false, true); Assert.IsTrue(userProfile.avatar.wearables.Contains("urn:decentraland:off-chain:base-avatars:m_sweater_02")); Assert.IsTrue(userProfile.avatar.wearables.Contains("urn:decentraland:off-chain:base-avatars:soccer_pants")); Assert.IsT...
C#
nic] fn test_set_panics_overflow() { set_bit(0, 8); } #[test] fn test_reset() { let register = 0b1100_0010u8; assert_eq!(0b1100_0010u8, reset_bit(register, 0)); assert_eq!(0b0100_0010u8, reset_bit(register, 7)); assert_eq!(0b1000_0010u8, reset_bit(register, 6)); assert_eq!(0b1100_0010u8, reset...
Rust
4, 1.20536903482, 0.190286794412,-0.662370894973, -1.00700480494, -0.404707073677, 0.800482325044, 0.743500089861, 1.01090520172, 0.741527555207, 0.277841675195, 0.400833448236,-0.2085993586, -0.172842103641, -0.134316096293, 0.0259303398477,0.490105989562, 0.549391221511, 0.9047198589 } ...
Lua
*******************************************************/ int2e_entry = &(idt_entries[NT_SYSTEM_SERVICE_INT]); __asm{ cli; lea eax,MyKiSystemService; mov ebx, int2e_entry; mov [ebx],ax; shr eax,16 mov [ebx+6],ax; lidt idt_info; sti; } return 0; } /* ________________________________________________...
C
/** * Marlin 3D Printer Firmware * Copyright (c) 2021 MarlinFirmware [https://github.com/MarlinFirmware/Marlin] * * Based on Sprinter and grbl. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General...
C
one_type[2] / 3 show = map_show * 0.8 + img_ori * 0.2 show = show.astype(np.uint8) map_show = map_show.astype(np.uint8) cv2.imshow(f"all_{SHOW_NAME[idx]}", show) cv2.imwrite('./cam_results/head_cont'+str(idx)+SHOW_NAME[...
Python
using System; using System.Threading.Tasks; using Microsoft.Extensions.Logging; using NServiceBus; using Shared; #region timeoutSaga2 namespace EndpointVersion2; public class MyTimeoutSagaVersion2(ILogger<MyTimeoutSagaVersion2> logger) : Saga<MyTimeoutSagaVersion2.SagaData>, IAmStartedByMessages<StartTimeout...
C#
AIS_TYPE = common.AIS_TYPE_TANKER_UNKNOWN AIS_TYPE_OTHER AIS_TYPE = common.AIS_TYPE_OTHER AIS_TYPE_OTHER_HAZARDOUS_A AIS_TYPE = common.AIS_TYPE_OTHER_HAZARDOUS_A AIS_TYPE_OTHER_HAZARDOUS_B AIS_TYPE = common.AIS_TYPE_OTHER_HAZARDOUS_B AIS_TYPE_OTHER_HAZARDOUS_C AIS_TYPE = common.A...
Go
type_: lex::Type, pub data_arr: Vec<Data>, } #[derive(Debug, Clone)] pub enum Data { StringLiteral(String), BoolValue(bool), Identifier(Identifier), IntNum(i64), // FloatNum(f64), } #[derive(Debug, Clone, Eq, Ord, PartialEq, PartialOrd, Hash)] pub struct Identifier(pub String); use position:...
Rust
模型,特別是基於Transformer架構的模型,展示了卓越的文本生成和理解能力。這些模型能夠從大量的數據中學習語言的結構和語義,並能生成高質量的自然語言文本。GPT模型的成功表明,預訓練和微調的策略在處理複雜的自然語言任務中至關重要。 #### 2. 數學在模型中的關鍵角色 我們強調了數學在語言模型中的核心地位,包括代數、機率論、訊息理論和優化方法等。這些數學工具不僅為模型的設計和訓練提供了理論基礎,還幫助我們理解模型的行為和性能。 #### 3. 技術挑戰與未來發展 儘管語言模型取得了顯著進展,但仍然存在許多挑戰。這些挑戰包括: - **準確性與偏見**:如何確保模型生成內容的準確性和客觀性,並消除潛在的偏見。 - **...
Markdown
RegistryPallet::get_required_collateral_for_wrapped(DEFAULT_VAULT_ISSUED).unwrap(); CoreVaultData::force_to( VAULT, CoreVaultData { backing_collateral: required_collateral, ..CoreVaultData::vault(VAULT) }, ); let redeem_id = set...
Rust
: usize = 31; #[cfg(target_arch = "aix")] pub const HEAP_ADDRESS_BITS: usize = 60; // maxAlloc is the maximum size of an allocation. On 64-bit, // it's theoretically possible to allocate 1<<heapAddrBits bytes. On // 32-bit, however, this is one less than 1<<32 because the // number of bytes in the address space doesn...
Rust
let phash = st.read::<String>(0)?; return Ok(bcrypt::verify(p_word,&phash)?); } Ok(false) } pub fn pay(&self,u_from:&str,u_to:&str,amount:i64)->Result<(),UBaseErr>{ let conn = sqlite::open(&self.fname)?; let mut st = conn.prepare(r#"insert into transacti...
Rust
* 表情 */ @Serializable public data class FaceSegment( // 表情ID val id: Int, // 是否为大图 val large: Boolean ) : MessageSegment /** * 文件 */ @Serializable public data class FileSegment( // 文件名 val filename: String, // 文件哈希值 val fileHash: String, // 文件ID val fileId: String, // 文...
Kotlin