content
stringlengths
2
6.21k
label
stringclasses
16 values
-is-up" space offset.applyQuaternion( quat ); // angle from z-axis around y-axis spherical.setFromVector3( offset ); if ( scope.autoRotate && state === STATE.NONE ) { rotateLeft( getAutoRotationAngle() ); } if ( scope.enableDamping ) { spherical.theta += spheric...
Typescript
2, 3]; for i in 0..nums.len() { println!("{}", nums[i]); } ``` This is strictly worse than using an actual iterator. You can iterate over vectors directly, so write this: ```rust let nums = vec![1, 2, 3]; for num in &nums { println!("{}", num); } ``` There are two reasons for this. First, this more direct...
Markdown
0"; pub const k_pch_SteamVR_StartDashboardFromAppLaunch_Bool: &'static [u8; 28usize] = b"startDashboardFromAppLaunch\0"; pub const k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool: &'static [u8; 30usize] = b"startOverlayAppsFromDashboard\0"; pub const k_pch_SteamVR_EnableHomeApp: &'static [u8; 14usize] = b"enab...
Rust
m="input-group-lg"),v=r.verticalbuttons?'<div class="input-group '+m+' bootstrap-touchspin bootstrap-touchspin-injected"><span class="input-group-addon input-group-prepend bootstrap-touchspin-prefix"><span class="input-group-text">'+r.prefix+'</span></span><span class="input-group-addon bootstrap-touchspin-postfix inpu...
JavaScript
ontacts: ContactUserProfileType, fullName: string lookingForAJob: boolean lookingForAJobDescription: string photos: PhotoUserProfileType userId: number } export type ProfilePageType = { postData: Array<PostDataType> newPostText:string profile: UserProfileType newMyPost: string } type...
Typescript
integrationtests/run_container.bash ``` ## Server Setup ### Installation See setup [script/log](https://github.com/PX4/containers/tree/master/scripts/jenkins) for details on how Jenkins got installed and maintained. ### Configuration - Jenkins security enabled - Installed plugins - github - github pull re...
Markdown
rg.jnario.spec/src-gen/org/jnario/spec/parser/antlr/internal/InternalSpec.g:5354:1: (lv_extension_0_0= 'extension' ) // ../org.jnario.spec/src-gen/org/jnario/spec/parser/antlr/internal/InternalSpec.g:5355:3: lv_extension_0_0= 'extension' { lv_extension_0_0=(To...
Java
гатели, мы, вероятно, можем использовать эссенцию из местных призраков магии.$B$BИх можно найти почти возле каждой светящейся канавы в северной части острова. За исключением Зоны 52, конечно.", ["O"] = "Соберите 7 единиц эссенции призрака магии и доставьте главному инженеру Трепу в Зону 52 в Пустоверти.", ["T"]...
Lua
SmemLayoutAtomB_, class SmemCopyAtomB_, class TransformB_> struct CollectiveMma< MainloopSm70TwoStageUnpredicated, TileShape_, ElementA_, StrideA_, ElementB_, StrideB_, TiledMma_, GmemTiledCopyA_, SmemLayoutAtomA_, SmemCopyAtomA_, TransformA_, GmemTiledCopyB_, Sm...
C++
ctCardContext(getCardContext()) vNode.bindWholeData(data) // 绑定全局数据 vNode.bindScopeData(scopeData) // for节点需要先从parent中解析出list数据,才能作为自己的域数据 vNode.scanTemplate() val value = vNode.getValue(viewModel.mFor!!) //获取新的数据 // 遍历创建 listItem 节点,并添加到 for 节点中 value.listValue()?.forE...
Kotlin
&& testMatrixMultiply(); } TestLLVMKernels::TestLLVMKernels() { name = "TestLLVMKernels"; description = "A unit test for the LLVM executive runtime."; description += " Test Points: 1) Execute a kernel with a loop. "; description += "2) Execute a matrix multiply kernel."; _loopingKernel = 0; _matri...
C++
[33775] = {"被杀死的铁矮人",nil}, [33776] = {"古德利亚",nil}, [33778] = {"锦标赛角鹰兽",nil}, [33779] = {"Ulduar Shield Bunny",nil}, [33780] = {"银色警卫",nil}, [33782] = {"银色战马",nil}, [33783] = {"死亡战马",nil}, [33785] = {"黑骑士",nil}, [33787] = {"Tournament Druid Spell Target",nil}, [33788] = {"菲尔隆·暗歌","塞纳里奥议会"}, [33790] = {"兽栏中的埃索达雷象",nil}, ...
Lua
-cyprus.Ymacs-line-numbers .Ymacs_Frame-active .Ymacs-frame-content:before{box-shadow:3px 0 7px -3px #0004} /*# sourceMappingURL=ef-cyprus.css.map */ .Ymacs-Theme-ef-maris-dark{--ymacs-cursor-bg:#8fdfff;--ymacs-cursor-fg:#131c2b;--ymacs-modeline-in-bg:#2a3644;--ymacs-modeline-ac-bg:#2f527b;color:#eaedef;background-colo...
CSS
using System; using System.Collections; using System.Collections.Generic; using Cysharp.Threading.Tasks; using Launcher; using UnityFramework; using UnityEngine; using YooAsset; using ProcedureOwner = UnityFramework.IFsm<UnityFramework.IProcedureModule>; namespace Procedure { /// <summary> /// 预加载流程 /// <...
C#
const t19 = C2*t18; const t20 = RIN*RT2; const t21 = R1*RT2; const t22 = RIN + RT2; const t23 = t15 + t19; const t24 = C1*t18; const t25 = RB + RT2; const t26 = C1*t25; const t27 = RB + t8; const t28 = RM*t18; const t29 = C2*RB; const denYIm = 0; const denXRe = t6*(...
JavaScript
ed %u", layer->buffer[0].dma_addr, align); return 0; } reg[cmd_cnt + 0].offset = BASE_REG_OFFSET(base, offsets, 0); reg[cmd_cnt + 0].value = layer->buffer[0].dma_addr; reg[cmd_cnt + 1].offset = BASE_REG_OFFSET(base, offsets, 1); reg[cmd_cnt + 1].value = reg[cmd_cnt + 0].value + get_sbwc_payload_y_siz...
C
2432_1084073454953513_3741587307966287593_n/" data-orig-file="https://i0.wp.com/digitalnomadlifestyle.com/wp-content/uploads/2023/04/11752432_1084073454953513_3741587307966287593_n.jpg?fit=536%2C625&amp;ssl=1" data-orig-size="536,625" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;c...
Kotlin
.com/a/19709846/1465919 */ public static isAbsoluteUrl(url: string) { const isProtokoll = new RegExp('^(?:[a-z]+:)?//', 'i'); const isAbsolute = isProtokoll.test(url) || url.startsWith('mailto:') || url.startsWith('tel:') || url.startsWith('fax:'); return isAbsolute; } public static isExternalUrl ...
Typescript
IMIZE hybrid overead, while trying to stay within tarokTargetMaxPauseTime, * The overhead logic here will map a low avg pgc time (ie, under targetPauseTimeMs), to a low overhead value (aka, a "better"/more desirable value) * Ex. Suppose tarokTargetMaxPauseTime == 100ms. 20ms -> 5% (good/desirable), 100ms -> 5% (s...
C++
file-status-message { color: #f74a5e; } .dx-invalid-message > .dx-overlay-content { border-radius: 2px; } .dx-editor-underlined .dx-invalid-message > .dx-overlay-content { border-radius: 0; } .dx-timeview { height: auto; width: auto; } .dx-timeview-clock { min-height: 199px; min-width: 199px; background...
CSS
its hem.", ["O"] = "Return the Monogrammed Sash to its owner.", ["T"] = "The Monogrammed Sash", }, [621] = { ["D"] = "流亡者贊吉爾和他的追隨者們住在藏寶海灣東北方的朱布瓦爾廢墟和阿博拉茲廢墟裡,這個傢伙已經被他的部族放逐了。為什麼?這個……$B$B據說是因為贊吉爾掌握了可以屈服其他人的心志的方法,而他所屬部族的領袖因此非常害怕他。他讓他的追隨者們喝下了一種從叢林的植物中萃取出來的液體,用它來壓抑他們的自我意識並加強他們的力量。$B$B這種藥劑對那些試圖控制別人的傢伙來說有非常大的價值...
Lua
mpManager(); static void SetInstanceForTesting(MemoryDumpManager* instance); // Lazily initializes dump_thread_ and returns its TaskRunner. scoped_refptr<base::SequencedTaskRunner> GetOrCreateBgTaskRunnerLocked(); // Calls InvokeOnMemoryDump() for the each MDP that belongs to the current // task runner and...
C
if(score < 0) // if(조건){본문} throw IllegalArgumentException("${score} 는 0보다 작을 수 없습니다.") } //Expression은 Statment에 포함 //java에서 if-else는 Statement이지만 (프로그램의 문장, 하나의 값으로 도출되지 않는다.) // Kotlin에서는 Expression이다.(하나의값으로 도출되는 문장.) 즉 if문을 이용 리런할 수 있음 자바의 3항연산자 처럼 fun getPassOrFail(score: Int): String{ if(score >= ...
Kotlin
= Number(trimPrefix(imgClass, 'adventureDifficulty')); if (!isNaN(level)) { adventures.push({ el, level: level }); } }); return adventures; } } import { FetchUsersJob } from './jobs/fetch-users'; import { AppContainer } from '../container'; export interface...
Typescript
# pylint: disable=E0611 # Drakkar-Software OctoBot-Trading # Copyright (c) Drakkar-Software, All rights reserved. # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version ...
Python
row), [100, 7 * 500 / 8, 500 / 8], ); }); test('occupy no space if none available', () { final gridSize = sizeEmptyGrid( columnSizes: [fixed(800), flex(1)], rowSizes: [fixed(100)], constraints: testConstraints, ); expect( gridSize.baseSizesForTyp...
Dart
evron-left --> <svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true"> <path fill-rule="evenodd" d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-ru...
JavaScript
s-left>h2{flex-basis:100%}.profile-php .rwmb-tabs-left .rwmb-tab-nav,.user-edit-php .rwmb-tabs-left .rwmb-tab-nav,.term-php .rwmb-tabs-left .rwmb-tab-nav,.edit-tags-php .rwmb-tabs-left .rwmb-tab-nav,.rwmb-settings-no-boxes .rwmb-tabs-left .rwmb-tab-nav{border:1px solid #ccd0d4}.profile-php .rwmb-tabs-left .rwmb-tab-pan...
CSS
using System; using System.IO; using Aspose.Cells; using System.Drawing; namespace Aspose.Cells.Examples.CSharp.Charts { public class AddingLabelControlInChart { //Source directory static string sourceDir = RunExamples.Get_SourceDirectory(); //Output directory static string ou...
C#
ex/main/Images/Android/Screenshots/Filters.jpeg"), new Uri("https://raw.githubusercontent.com/ErickSilva2605/xamarinforms-pokedex/main/Images/Android/Screenshots/Details_About.jpeg"), new Uri("https://raw.githubusercontent.com/ErickSilva2605/xamarinforms-pokedex/main/Images/Android/Screenshots/Details_S...
C#
"uwp"))] pub fn link(original: &Path, link: &Path) -> io::Result<()> { let original = maybe_verbatim(original)?; let link = maybe_verbatim(link)?; cvt(unsafe { c::CreateHardLinkW(link.as_ptr(), original.as_ptr(), ptr::null_mut()) })?; Ok(()) } #[cfg(target_vendor = "uwp")] pub fn link(_original: &Path...
Rust
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # (c) B.Kerler 2019-2023 under GPLv3 license # If you use my code, make sure you refer to my name # # !!!!! If you use this code in commercial products, your product is automatically # GPLv3 and has to be open sourced under GPLv3 as well. !!!!! # TXT to EDL Loader (c) B.Ke...
Python
max12 >= 65)) { m_clef = "*clefGv2"; } else if (average < 60.0) { m_clef = "*clefF2"; } else { m_clef = "*clefG2"; } } ////////////////////////////// // // Tool_esac2hum::generateHumdrumNotes -- // void Tool_esac2hum::Score::generateHumdrumNotes(void) { vector<Tool_esac2hum::Note*> notelist; getNoteList(...
C++
pixel groups (4 pixels/group) */ pixel_groups = avctx->width / 4 - 1; while (pixel_groups--) { cur_byte = buf[stream_ptr++]; u_pred += u_table[(cur_byte & 0xF0) >> 4]; u_plane[u_ptr++] = u_pred; y_pred += y_table[cur_byte & 0x0F]; y_plane[y_pt...
C
| test3.indexOf((UChar32)0xdc02) != 3) { errln("error: UnicodeString::indexOf(UChar32 surrogate) finds a partial supplementary code point"); } if( UnicodeString(test3, 0, 17).lastIndexOf((UChar)0xd841, 0) != 4 || UnicodeString(test3, 0, 17).lastIndexOf((UChar32)0xd841, 2) != 4 || test3.l...
C++
ong.com'}, {'42922', 'farmz.cn', 'farmz.cn'}, {'42923', '-09.info', '-09.info'}, {'42924', 'bitscn.comgzwglm.com', 'bitscn.comgzwglm.com'}, {'42925', 'wglm.netgzwglm.com', 'wglm.netgzwglm.com'}, {'42926', 'bbs.bitscn.comgzwglm.com', 'bbs.bitscn.comgzwglm.com'}, {'42927', 'shwglm.comgzwglm.com', 'shwglm.comgzwglm.com'},...
Lua
, ...); ``` 描述:定义一个类。宏参数描述如下: - `type` 这是类的类型名,也就是类名称。 - `constructor` 这是类的构造函数。这个构造函数第一个参数必须是一个`void *`参数,这个参数实际上是这个类的对象指针。但由于编译时编译器处理顺序和函数以及结构体定义顺序问题,这里无法直接使用`type`指定的类型。构造函数的剩余参数以及返回值类型都是开发者自定义的。构造函数的返回值会被忽略。 - `destructor` 这是类的析构函数。与`constructor`一样,第一个参数必须是一个void *参数,其余参数都是开发者自定义的,且返回值会被忽略。 - `...` 这是类中的成员定义,也就是以...
Markdown
nt.bold = True ppt_file_path = f"Miniproject/{topic}_presentation.pptx" prs.save(ppt_file_path) return ppt_file_path def get_ppt_download_link(ppt_file_path): with open(ppt_file_path, "rb") as file: ppt_contents = file.read() b64_ppt = base64.b64encode(ppt_contents).decode() file_name...
Python
.with(TextSystem, "text", &[]) .with(UseSystem, "use", &[]) .with_bundle(ArcBallControlBundle::<StringBindings>::new().with_sensitivity(0.1, 0.1))? .with_bundle(TransformBundle::new().with_dep(&["arc_ball_rotation"]))? .with_bundle( InputBundle::<StringBindings>::new(...
Rust
tion:"\u5C06\u6807\u9898\u524D\u7684\u7A7A\u683C\u5220\u9664\uFF0C\u4F7F\u6807\u9898\u80FD\u88AB\u6B63\u786E\u8BC6\u522B"},"insert-yaml-attributes":{name:"\u63D2\u5165 YAML \u5C5E\u6027",description:"\u628A\u6307\u5B9A\u7684 YAML \u952E\u63D2\u5165\u5230 YAML Front-matter \u4E2D\u3002\u6BCF\u4E2A\u952E\u5360\u4E00\u884...
JavaScript
Foo<u8> { fn default() -> Self { Self { private: 0, public: 0, public_option: Some(Arc::new(0)), } } } pub fn main() { let mut foo = Foo::<u8>::default(); foo.set_private(&mut 1); (*foo.private_mut()) += 1; assert_eq!(*foo.private(), 2); ...
Rust
: translate3d(0, 0, 0) scale3d(1.03, 1.03, 1.03); } 100% { -webkit-animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); -webkit-transform: translate3d(0, 0, 0) scale3d(1, 1, 1); transform: translate3d(0, 0, 0) scale3d(1, 1,...
CSS
} return instance as T; } public register( classSpec: | ObjectType<unknown> | { someClass: ObjectType<unknown>; token: string }, ...constructorArgs: Array<ObjectType<unknown> | string> ) { const dependencies = constructorArgs.map(token => this.get(token)); if ("token" in classS...
Typescript
visibility_timeout: Duration, ) -> Result<Self, WorkflowError> { let client = redis::Client::open(redis_url) .map_err(|e| WorkflowError::TaskQueueError(format!("无法连接到Redis: {}", e)))?; let cfg = deadpool_redis::Config::from_url(redis_url); ...
Markdown
, param1 = 50, param1comment = "Production Bonus", PlaceObj('Effect_UnlockUpgrade', { Upgrade = "MetalsExtractor_MagneticExtraction", }), PlaceObj('Effect_UnlockUpgrade', { Upgrade = "PreciousMetalsExtractor_MagneticExtraction", }), PlaceObj('Effect_UnlockUpgrade', { Upgrade = "RegolithExtractor_MagneticEx...
Lua
tmp2, X add tmp2, tmp1 st X+, tmp2 lpm tmp1, Z+ ld tmp2, X adc tmp2, tmp1 st X+, tmp2 lpm tmp1, Z+ ld tmp2, X adc tmp2, tmp1 st X+, tmp2 lpm tmp1, Z+ ld tmp2, X adc tmp2, tmp1 st X+, tmp2 dec LoopC brne 1b ; write result back to buffer movw XL, W1 ; destination movw ZL, TS1 ; sou...
Assembly
CX, INCX, ZBASE_SHIFT bge $r0, INCX, .L999 LD a1, X, 0 * SIZE addi.d N, N, -1 LD a2, X, 1 * SIZE add.d X, X, INCX FABS t1, a1 FABS t2, a2 ADD s1, t1, t2 bge $r0, N, .L999 NOP ADD s2, t1, t2 srai.d I, N, 2 ADD s3, t1, t2 ADD s4, t1, t2 bge $r0, ...
Assembly
m_connectivity[idx] = idx; } m_sizes[fragmentOffset] = static_cast<ConnectivityType>(numFaces); m_offsets[fragmentOffset] = connOffset; } // Save fields. m_original_zones[fragmentOffset] = zoneIndex; if(m_makePlane) { m_norm_x[fragmentOffset] = planeNormal[...
C++
.594-5.24-7.38-10.578-14.928-16-22.594zm19.969 28.188a7888.219 7888.219 0 0 0 15.156 21.219c-4.74-6.621-9.9-13.826-15.156-21.219zm51.594 68.062c.458.384.918.735 1.375 1.094-.458-.36-.916-.71-1.375-1.094z'/><path fill='%23eee' d='M1164.44 1225.91c-2.767 23.498 10.496 50.004 15.438 68.781 22.974 70.563 41.031 90.281 41.0...
CSS
lay { meta_tx: transfer_msg.into(), signature: signature.into(), public_key: sender_pub_key.into(), }; let res = execute(deps.as_mut(), env.clone(), info, relay_msg).unwrap(); assert_eq!(0, res.messages.len()); // Check balance of sender (ACCOUNT_4) let query_msg = QueryMsg:...
Rust
"d": 0 }, "adProofsId": "86eaa41f328bee598e33e52c9e515952ad3b7874102f762847f17318a776a7ae", "transactionsId": "ac80245714f25aa2fafe5494ad02a26d46e7955b8f5709f3659f1b9440797b3e", "parentId": "6481752bace5fa5acba5d5ef7124d48826664742d46c974c98a2d60ace229a34" }"...
Rust
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云 - 监控平台 (BlueKing - Monitor) available. Copyright (C) 2017-2025 Tencent. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain ...
Python
) -> Self::Builder; } /// Builder for when a component has no properties pub struct EmptyBuilder; impl Properties for () { type Builder = EmptyBuilder; fn builder() -> Self::Builder { EmptyBuilder } } impl EmptyBuilder { /// Build empty properties pub fn build(self) {} } /// Link to com...
Rust
16], #0x8 mov x20, #0x8 ldr d12, [x26], #0x8 ldr d16, [x25], #0x8 tbz x8, #0, label_77 ld1 { v8.s }[2], [x16] ld1 { v12.s }[2], [x26] ld1 { v16.s }[2], [x25] b label_77 KAI_ASM_LABEL(label_76) // Height 3: Partial accumulate: partial_1_0 ldr s8, [x16, #0x0] mov x20, #0x0 ldr...
Assembly
) noSuchMethod ) /*space=Object?(noSuchMethod: dynamic Function(Invocation))*/ => noSuchMethod, }; } nonExhaustiveRestrictedValue(Typedef o) { return /* checkingOrder={Object?,Object,Null}, error=non-exhaustive:Object(hashCode: int())/Object(), fields={hashCode:int}, subtypes={Object,Null}, ...
Dart
split('_'), weekdays : 'Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta'.split('_'), weekdaysShort : 'Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá'.split('_'), weekdaysMin : 'Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb'.split('_'), longDateFormat : { LT : 'h:mm A', LTS : 'h:mm:ss A', L : 'DD/MM...
JavaScript
@override String toString() { return 'StadiumData{name: $name, area: $area, type: $type, info: $info, contentId: $contentId}'; } factory StadiumData.fromHtml(dom.Element element) { var tableItems = element .querySelector('td[valign=top]:not([align])')! .querySelectorAll('tr'); String?...
Dart
); // Uint24 return { header_size, flags }; } async function ReadRecordTrailer(reader: Reader): Promise<{ trailer_size: number }> { let trailer = Buffer.from(await reader.readBytes(RECORD_TRAILER_SIZEOF)); if(trailer[0] !== 0x78) { console.warn('Unknown trailer flags'); } let trailer_size = trailer.readUIntL...
Typescript
v3.v < 0) { res[TEXT_STROKE_WIDTH$5] = { u: INHERIT$3 }; } else { if ([NUMBER$4, DEG$3, PERCENT$7].indexOf(_v3.u) > -1) { _v3.u = PX$8; } res[TEXT_STROKE_WIDTH$5] = _v3; } } } temp = style.textStrokeOver; if (...
JavaScript
6] = "Wurfwaffen", [92699] = "Lederverarbeitung", [92700] = "Schneiderei", [92703] = "Bank", [93192] = "Herzholz", [94039] = "Schrein von Gelihast", [94040] = "Altar der Tiefen", [94183] = "Freudenfeuer", [94184] = "Freudenfeuer", [94185] = "Freudenfeuer", [94186] = "Freudenfeuer", [94187] = "Freudenfeuer", [94188] = "...
Lua
packed B0_next4k add v21.4s,v7.4s,v21.4s add v23.4s,v7.4s,v23.4s add v25.4s,v7.4s,v25.4s add v27.4s,v7.4s,v27.4s add v29.4s,v7.4s,v29.4s add v31.4s,v7.4s,v31.4s .LGemmU8X8.M8.ComputeBlockLoop: sub x3,x3,#1 ld1 {v3.16b},[x1]...
Assembly
et; set; } IWampAuthorizer Authorizer { get; } HelloDetails HelloDetails { get; set; } WelcomeDetails WelcomeDetails { get; set; } } /// <summary> /// Contains additional properties of a <see cref="IWampClientProxy{TMessage}"/> proxy. /// </summary> public interface IWamp...
C#
B ; 230 MPYU *AR7+0%, A ; 231 MPYU *AR7+0%, B ; 232 MPYU *AR7(031F4h), A ; 233 MPYU *AR7(031F5h), B ; 234 MPYU *+AR7(031F6h), A ; 235 MPYU *+AR7(031F7h), B ; 236 MPYU *+AR7(031F8h)%, A ; 237 MPYU *+AR7(031F9h)%, B ; 238 MPYU *(031FAh), A ; 239 MPYU *(031FBh), B ; 240 ; MPY_I : MPY ...
Assembly
ield2819 = new String(new byte[]{49, 50, 55, 46, 48, 46, 48, 46, 49}); this.Field2830 = new String(new byte[]{49, 50, 55, 46, 48, 46, 48, 46, 49}); this.Field2829 = false; this.Field2835 = 10000; this.Method3708(); this.Method3699(); EventManager.register(this); } public void ...
Java
double; let mut avg: [c_double; 3] = [0.0; 3]; let loads: i32 = unsafe { getloadavg(avg.as_mut_ptr(), 3) }; if loads == -1 { println!(); } else { print!("load average: "); for n in 0..loads { print!( "{:.2}{}", avg[n as usize], ...
Rust
pturing</i> groups * that do not capture text and do not count towards the group total, or * <i>named-capturing</i> group. * * <h3> Unicode support </h3> * * <p> This class is in conformance with Level 1 of <a * href="http://www.unicode.org/reports/tr18/"><i>Unicode Technical * Standard #18: Unicode Regular Exp...
Java
} } private suspend fun getContributors(): List<Contributor> { println("@@@basics05 (2) " + Thread.currentThread().name) return githubService.contributors("square", "retrofit") } @Composable private fun ShowContent() { Text( text = "Hello Coroutine 05!", fontSize = 25.sp, modifier = Modifier ...
Kotlin
---@class cuddlefish.types.overlay ---@field __index cuddlefish.types.overlay ---@field value cuddlefish.types.hlgroups.OL local overlay = {} overlay.__index = overlay function overlay:new(hlgroups) return setmetatable({ value = hlgroups }, overlay) end function overlay:get() return self.value end ---@return cud...
Lua
// 检查是否是刚刚设置的内容(防循环) if (isRecentlySetContent(uriHash)) { Log.d(TAG, "检测到刚刚设置的内容,跳过处理: 图片") return } if (uriHash == lastContentHash) return ...
Kotlin
RWMutex.RUnlock() } // RLocker returns a Locker interface that implements // the Lock and Unlock methods by calling rw.RLock and rw.RUnlock. func (rw *RWMutex) RLocker() sync.Locker { return (*rlocker)(rw) } type rlocker RWMutex func (r *rlocker) Lock() { (*RWMutex)(r).RLock() } func (r *rlocker) Unlock() { (*RWM...
Go
otki 5. Паттерны интеграции микросервисов https://www.enterpriseintegrationpatterns.com/patterns/messaging/ # Apache Kafka https://www.youtube.com/watch?v=-AZOi3kP9Js Основы кафки https://www.youtube.com/watch?v=c_mkpVg5rlg Обзор брокеров сообщений https://www.youtube.com/watch?v=Y1eSeEJDses вебинар по обзору некот...
Markdown
" from the dropdown ## Requirements - WordPress 5.6 or higher - WooCommerce 5.0 or higher - PHP 7.4 or higher ## ETR-Compliant Receipts The plugin automatically calculates VAT at 16% of the item price as required by KRA regulations. For example, if an item costs 100 shillings, the tax amount will be 16 shillings. T...
Markdown
ount_sentences(text_content) # Comptage ponctuations punctuation_list = [ch for ch in text_content if ch in ',.!?;:'] stats['punctuation_counts'].update(punctuation_list) # --- 3) Analyser les fichiers audio (wav + mp3) --- # On ne traite que si "audio" est dans le ...
Python
Z*tSpeed; } else if (!WD.opq(aWorld, aX+tAddX*2, aY, aZ+tAddZ*2, F, F) && !WD.hasCollide(aWorld, aX+tAddX*2, aY+1, aZ+tAddZ*2)) { aEntity.motionX = +tAddX*tSpeed; aEntity.motionZ = +tAddZ*tSpeed; } else if (!WD.opq(aWorld, aX-tAddX*2, aY, aZ-tAddZ*2, F, F) && !WD.hasCollide(aWorld, aX-tAddX*2, aY+1, a...
Java
t calls to get a better idea of the average and variance of the rate. subtract_latency: A value, in seconds, to subtract from the end-to-end duration in order to determine repetition rate. Useful if you would like to remove network latency or other round-trip...
Python
{ navigator.webkitPersistentStorage.queryUsageAndQuota(success, max); } else if (window.webkitStorageInfo) { window.webkitStorageInfo.queryUsageAndQuota(1, success, max); } else { // Hmm... promise.resolve(-...
JavaScript
t; set; } /// <summary> /// The Specified Protection Policies of the Specific Configuration. see [how to use it](https://www.alibabacloud.com/help/en/security-center/developer-reference/api-sas-2018-12-03-createbackuppolicy). /// </summary> [Input("policy")] public Input<string>...
C#
#ifndef CHATAREA_H #define CHATAREA_H #include <QWidget> #include <QSharedPointer> #include <QDateTime> #include "ChatListView.h" #include "ChatListModel.h" #include "ChatItemDelegate.h" #include "ChatMessage.h" #include "NewMessageNotifier.h" #include "FloatingInputBar.h" class ChatArea : public QWidget { Q_OBJ...
C
任何额外的安全性控制。 -- -- 1: 返回lightuserdata。 ---- 只能判断是否相等,无法比较大小,并且不能隐式转换为整数。这和jass内的行为保持一致。 ---- 但支持tostring,可以用于debug。 -- -- 2: 返回userdata。 ---- lua持有handle时会增加handle的引用计数,并在__gc元方法中释放handle。 ---- 0不再能被隐式转换为nil,对应jass里的null请使用nil。 -- runtime.handle_level = 2 -- 开启此项(默认开启),调用jass.xxx/japi.xxx发生崩溃时,会生产一个lua错误,并忽略这个崩溃。 -- 你可...
Lua
IE1UQQ== bml0 aWF6ZXA= IHF1YXJhbnRpbmU= IHNsaWRlc2hvdw== IGNlbnRpbWV0ZXJz IHN5bm9wc2lz IHNwYXRl dGhpcnN0 IG5vbWluYXRpbmc= IE1lbHZpbg== UHJldmlldw== IHRocm9i IGdlbmVyYXRpb25hbA== IFJhZGl1cw== cmVzdGxpbmc= cHV0YWJsZQ== YXdhcg== TkVDVA== IHVubGF3ZnVsbHk= IFJldmVsYXRpb25z V2lraXBlZGlh c3Vydg== IGV5ZWluZw== aWpu IEZX IGJyd...
JavaScript
sub.l a3,d7 bra .end_calcslope .not_edge1: cmp.l d1,d5 bne.s .not_edge2 move.l d4,d6 sub.l d0,d6 addq.w #1,d6 move.l a5,d7 sub.l a3,d7 bra.s .end_calcslope .not_edge2: cmp.l d3,d5 bne.s .not_edge3 move.l d4,d6 sub.l d2,d6 addq.w #1,d6 move.l a5,d7 sub.l a4,d7 bra.s .end_calcslope .not_edge3: * x_inter...
Assembly
, 1.0 );\n}",fragmentShader:"uniform sampler2D mapLeft;\nuniform sampler2D mapRight;\nvarying vec2 vUv;\nvoid main() {\nvec4 colorL, colorR;\nvec2 uv = vUv;\ncolorL = texture2D( mapLeft, uv );\ncolorR = texture2D( mapRight, uv );\ngl_FragColor = vec4( colorL.g * 0.7 + colorL.b * 0.3, colorR.g, colorR.b, colorL.a + colo...
JavaScript
, src_aoi_org[1], src_aoi_org[0] + mapimg.tile_size[0], src_aoi_org[1] + mapimg.tile_size[1] ) character = mapimg.img.crop(src_aoi) lutimg.img.paste(character, lutimg.get_aoi_origin([u,v])) # overlay relevant pixels for x in range( 0 , lutimg.tile_size[0] ): pixel_col = (192) if (u & (1 << (lutimg...
Python
// Modified by Princeton University on June 9th, 2015 /* * ========== Copyright Header Begin ========================================== * * OpenSPARC T1 Processor File: pio_rnd_basic4_spv_mode_rand_1.s * Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES. * * Th...
Assembly
�丷口儿", ["涛"] = "氵寸", ["涜"] = "氵士冖儿", ["涝"] = "氵艹冖力", ["涞"] = "氵未丷", ["涟"] = "氵车辶", ["涠"] = "氵囗韦", ["涡"] = "氵口冂人", ["涢"] = "氵口贝", ["涣"] = "氵⺈大", ["涤"] = "氵夂木", ["涥"] = "氵了", ["润"] = "氵门王", ["涧"] = "氵门日", ["涨"] = "氵弓长", ["涩"] = "氵刀丶止", ["涪"] = "氵立口", ...
Lua
display: none; } .mbsc-ax .mbsc-sc-whl-multi .mbsc-sc-itm { padding: 0 1.818181em; } .mbsc-ax.mbsc-sel-multi .mbsc-sc-itm { color: #333333; } .mbsc-ax .mbsc-sc-whl-multi .mbsc-sc-itm-sel { color: #198cff; } .mbsc-ax .mbsc-sc-whl-multi .mbsc-sc-itm-sel:before { font-size: 1.2rem; } .mbsc-ax .mbsc-sc-whl-gr-3d .m...
CSS
32, fds: /*Ignored*/Vec<PollFD>) -> (i32, i32) { // unsafe { TODO: call ffi:g_main_context_query() } //} #[doc(alias = "g_main_context_release")] pub fn release(&self) { unsafe { ffi::g_main_context_release(self.to_glib_none().0); } } //#[doc(alias = "g_main_cont...
Rust
rates = [ 'DB(CBN,DEM,10,MIDYLD)', 'DB(CBN,ITL,10,MIDYLD)', 'DB(CBN,USD,10,MIDYLD)' ] uncertainty = [ #'DB(QA,.VIX,PRICE,CLOSE)', 'DB(COV,VOLSWAPTION,EUR,05Y,06M,PAYER,PREM)', 'sum(DB(NEO-US, eur/vol/index/swaption/3mx2y/daily))' ] politics = [] govt_finances = [ 'DB(JPMAQS,ITL_GGNDGDPRA...
Python
_catalog schName, // table_schema tblName, // table_name col.Name, // column_name ordinalPos, // ordinal_position columnDefault, // column_default nullable, // is_nullable dataType, // data_type charMaxLen, // character_maximum_length ch...
Go
response to an application calling the <b>CloseHandle</b> Microsoft Win32 function. The driver can handle the notification by registering the <b>IFileCallbackCleanup</b> interface. A driver registers the <b>IFileCallbackCleanup</b> interface when it calls the <a href="/windows-hardware/drivers/ddi/wudfddi/nf-wudfddi-...
Markdown
rrors.ErrorModelInvalidType } return res, nil } func (svc *Service) GetTaskQueueItemById(id primitive.ObjectID) (res *models2.TaskQueueItem, err error) { d, err := svc.GetBaseService(interfaces.ModelIdTaskQueue).GetById(id) return convertTypeTaskQueueItem(d, err) } func (svc *Service) GetTaskQueueItem(query bson....
Go
full_gen_ms": full_ms}) ``` استخدم هيكل قياس متسق عبر النماذج للمقارنات العادلة. --- **إخلاء المسؤولية**: تم ترجمة هذا المستند باستخدام خدمة الترجمة بالذكاء الاصطناعي [Co-op Translator](https://github.com/Azure/co-op-translator). بينما نسعى لتحقيق الدقة، يرجى العلم أن الترجمات الآلية قد تحتوي على أخطاء أو عدم دقة....
Markdown
*="mobile only"].row:not(.computer),.ui.ui.ui[class*="mobile only"].grid:not(.computer){display:none!important}.ui.ui.ui.grid>.row>[class*="tablet only"].column:not(.computer),.ui.ui.ui.grid>[class*="tablet only"].column:not(.computer),.ui.ui.ui.grid>[class*="tablet only"].row:not(.computer),.ui.ui.ui[class*="tablet on...
CSS
{ refinementCount_ = neighbourInfo.refinementCount(); count_ = neighbourInfo.count(); return true; } } // Update face with coupled face information template<class TrackingData> inline bool Foam::refinementData::updateFace ( const polyMesh&, const label thisFacei, const refinem...
C
using GW2EIEvtcParser.ParsedData; using static GW2EIEvtcParser.EIData.DamageModifiersUtils; using static GW2EIEvtcParser.ParserHelper; namespace GW2EIEvtcParser.EIData; internal class BuffOnActorDamageModifier : DamageModifierDescriptor { internal delegate double DamageGainAdjuster(HealthDamageEvent dl, ParsedEv...
C#
import pytest from xdsl.builder import ImplicitBuilder from xdsl.dialects.builtin import i1 from xdsl.dialects.test import TestOp from xdsl.ir import Block, Region from xdsl.ir.region_utils import used_values_defined_above def test_used_values_defined_above(): r = Region(Block()) r0 = Region(Block()) r1 ...
Python
() => 'IS NOT DISTINCT FROM', ExpressionLessThan() => '<', ExpressionLessThanOrEqual() => '<=', ExpressionGreaterThan() => '>', ExpressionGreaterThanOrEqual() => '>=', ExpressionNumAdd<num>() => '+', ExpressionNumSubtract<num>() => '-', ExpressionNumMultiply<num>(...
Dart
趋势和季节性 读者会发现本章讨论的数学概念是开发时间序列预测模型的基本构建块。 ![](img/fe2d2fac-8557-48b1-891e-5582332c61c5.png) 图 2.1:时间序列分析的通用方法 # 时间序列数据的高级处理和可视化 在许多情况下,原始时间序列需要转换为汇总统计信息。 例如,原始时间序列中的观测值可能每秒记录一次。 但是,为了执行任何有意义的分析,必须每分钟汇总一次数据。 这将需要在比原始数据中的细化时间索引更长的时间段内对观察值进行重采样。 对于每个较长的时间段,都会计算汇总统计信息,例如均值,中位数和方差。 时间序列数据预处理的另一个示例是计算数据中相似段上的聚合。 考虑由 X 公司...
Markdown
{ return (double.maxFinite, double.maxFinite); } (num, num) closestPoint = (double.maxFinite, double.maxFinite); var minDistance = double.infinity; for (int i = 0; i < path.length - 1; i++) { final p = closestPointOnLine(path[i], path[i + 1], point); final dist = distance(p, point); if (dist < ...
Dart
import math, urllib2, json, re def download(): graph = {} page = urllib2.urlopen("http://fx.priceonomics.com/v1/rates/?q=1") jsrates = json.loads(page.read()) pattern = re.compile("([A-Z]{3})_([A-Z]{3})") for key in jsrates: matches = pattern.match(key) conversion_rate = -math.log(float(jsrates[key])) fro...
Python