content
stringlengths
2
6.21k
label
stringclasses
16 values
, h=gfx_vars.h } end if xpos and ypos then xpos, ypos = $tonumber(xpos), $tonumber(ypos) xpos, ypos = $toint(xpos), $toint(ypos) global_state.pos_x, global_state.pos_y = xpos, ypos state.want_pos = { x=global_state.pos_x, y=global_state.pos_y } end return 1 end local function drawLine(draw...
Lua
.size test_ld, .-test_ld .p2align 4,,15 .globl get_gd .type get_gd, @function get_gd: subq $8, %rsp leaq gd@TLSDESC(%rip), %rax call *gd@TLSCALL(%rax) addq $8, %rsp addq %fs:0, %rax ret .size get_gd, .-get_gd .p2align 4,,15 .globl set_gd .type set_gd, @function set_gd: subq $8, %rsp leaq gd@TLSDESC(%ri...
Assembly
21, attrVal.Int()) attrVal, ok = dp.Attributes().Get("nginx.zone.name") assert.True(t, ok) assert.Equal(t, "nginx.zone.name-val", attrVal.Str()) case "nginx.ssl.certificate.verify_failures": assert.False(t, validatedMetrics["nginx.ssl.certificate.verify_failures"], "Found a duplicate in the metr...
Go
// Copyright (c) Jeremy W. Kuhne. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using Microsoft.Win32.SafeHandles; using Tests.Support; using WInterop.Errors; using WInterop.Storage; using WInterop.ProcessAndThreads; using WInterop.Support; ...
C#
f"Population Summary for {card_name} ({set_name}):\n" f"Total Graded: {total_graded}\n" f"Gem Mint: {gem_mint}\n" f"PSA 10: {pop_data['PSA']['10']}\n" f"BGS 9.5+: {pop_data['BGS']['10'] + pop_data['BGS']['9.5']}\n" f"CGC 9.5+: {pop_data['CGC']['10'] + pop_...
Python
"timestamp_": "absolute", "message_type": null}, "recipient": "all", "channel": null}, "parent": "7879de94-23a9-4954-aa4a-b4231a333c79", "children": ["00d40c33-f113-4117-bb32-424697b0b9d8"]}, "00d40c33-f113-4117-bb32-424697b0b9d8": {"id": "00d40c33-f113-4117-bb32-424697b0b9d8", "message": {"id": "00d40c33-f113-4117-bb...
HTML
n): Promise<void> { this.enabled = isEnabled; } /** * https://firebase.google.com/docs/reference/js/firebase.analytics.Analytics#set-current-screen */ async setCurrentScreen(screenName?: string, screenClassOverride?: string): Promise<void> { if (screenName && screenName.length > 100) { throw ...
Typescript
e Alumnos</h1> <div style="display: flex; justify-content: center; gap: 10px; margin-bottom: 20px;"> <button id="btn-accepted" onclick="showAccepted()" class="custom-button">Documentación Aceptada</button> <button id="btn-rejected" onclick="showRejected()" class="custom-button">Documentación Rechazada</button>...
HTML
% chance to strike for $s1% additional Nature damage. gale_force = { id = 451582, duration = 10.0, max_stack = 1, }, hidden_masters_forbidden_touch = { id = 213114, duration = 5, max_stack = 1 }, hit_combo = { id = 196741, duration = 10...
Lua
#include <xc.inc> PSECT ram,global,space=1,class=BANK0 ; put your variables here DABS 1, 0x70, 1, W_TEMP DABS 1, 0x71, 1, S_TEMP DABS 1, 0x72, 1, temp1 DABS 1, 0x73, 1, temp2 PSECT resetVec,global,class=CODE,delta=2 start: goto init PSECT intVec,global,class=CODE,delta=2 goto interrupt PSECT mainProgram,globa...
Assembly
std::fmt; const NUM_HEROS: usize = 31; lazy_static! { pub static ref HEROPOOL: HashSet<Hero> = Hero::into_enum_iter().collect(); } #[derive(Debug, Fail)] #[fail(display = "could not parse hero from '{}'", _0)] pub struct ParseHeroError(String); #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord, ...
Rust
) { box.SelectedIndex = -1; virtualPos = Vector2.zero; } void Update() { Color col = IsColored ? Color.gray : color; col.a = 0.15f; image.color = col; } } void Start() { canvas = GetComponentInParent<Canvas>(); rect = GetComponent<RectTransform>(); SelectedIndex = -1; // ...
C#
#pragma once #include "../SDK.h" // Name: Arise, Version: 1.0.0 #ifdef _MSC_VER #pragma pack(push, 0x8) #endif namespace SDK { //--------------------------------------------------------------------------- // Parameters //--------------------------------------------------------------------------- // Function TO14_...
C
LEFT) && defined(TRANSA)) || \ (!defined(LEFT) && !defined(TRANSA)) sub TEMP, K, KK #ifdef LEFT addi TEMP, TEMP, -8 #else addi TEMP, TEMP, -2 #endif slwi r0, TEMP, 3 + BASE_SHIFT slwi TEMP, TEMP, 1 + BASE_SHIFT add AO, AO, r0 add BO, BO, TEMP #endif #ifdef LEFT addi KK, KK, 8 #endif #endif addic. I, I...
Assembly
}.ie-2-BNrQbP .cell-hIDC3uV- .inner--hn7i_PK{width:100%}.cell-hIDC3uV-.first-2n3flLMC{display:flex;min-width:0;align-items:center}.ie-2-BNrQbP .cell-hIDC3uV-.first-2n3flLMC{-ms-grid-column:1}.cell-hIDC3uV-.first-2n3flLMC .inner--hn7i_PK{display:block;padding-left:20px;text-transform:capitalize;min-width:0;word-wrap:bre...
CSS
size WaitSCDFinish, .-WaitSCDFinish .align 2 .global PrintScdVtrlReg .type PrintScdVtrlReg, %function PrintScdVtrlReg: UNWIND(.fnstart) @ args = 0, pretend = 0, frame = 8 @ frame_needed = 1, uses_anonymous_args = 0 UNWIND(.movsp ip) mov ip, sp stmfd sp!, {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr, pc} UNWIND(.p...
Assembly
criptionNoOtherWorkspaces":"Saiu com sucesso da \xe1rea de trabalho {workspaceName}. A sua \xe1rea de trabalho pessoal ser\xe1 criada automaticamente.","leaveWorkspaceModal.leftWorkspaceTitle":"Saiu com sucesso da \xe1rea de trabalho {workspaceName}","leaveWorkspaceModal.memberCount":"{memberCount, plural, one {1 membr...
JavaScript
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ package jme3test.material; import com.jme3.app.SimpleApplication; import com.jme3.material.Material; import com.jme3.math....
Java
rver_name = Server.get_server_name() or 'CommandHandler' Discord.send_notification( { title = "Game unpaused from backend", description = player.name .. ' has triggered to unpause the game from the backend!', color = "success", fields = { { title = "Server", description = serv...
Lua
e)}finally{delete o[p.$$timeoutId]}d||e.$apply()}),s,"$timeout"),p.$$timeoutId=c,o[c]=f,p}return a.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw ni("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!o.hasOwnProperty(e.$$timeoutId))return!1;va...
HTML
or compressed files encoded into multiple sparse runs inside one compression unit.</li> <li>NTFS: reading of Bitmap is now included into progress.</li> <li>NTFS and exFAT: improved (20x) bitmap reading speed.</li> </ul> </li> <li>ZIP plugin: <ul> <li>Improved long path handling.</li> <li>Improved support fo...
HTML
fication( final String sql, final String value1, final String value2, final DateTimeFormatter dateTimeFormatter, final String removePattern, final String appendPattern) throws Exception { testBuilder() .sqlQuery(sql) .ordered() .baselineColumns("fiel...
Java
801A0BF4 8E2A0000 */ lw $t2, ($s1) /* 146C68 801A0BF8 93A9002E */ lbu $t1, 0x2e($sp) /* 146C6C 801A0BFC 3C01800F */ lui $at, 0x800f /* 146C70 801A0C00 8D480000 */ lw $t0, ($t2) /* 146C74 801A0C04 93AC002F */ lbu $t4, 0x2f($sp) /* 146C78 801A0C08 00085880 */ sll $t3, $t0, 2 /* 146C7C 801A0C0C 002B082...
Assembly
UnixTime) } if user.LastLoginUnixTime > 0 { fmt.Printf("[LastLoginAt] %s (%d)\n", utils.FormatUnixTimeToLongDateTimeInServerTimezone(user.LastLoginUnixTime), user.LastLoginUnixTime) } } func printTokenInfo(token *models.TokenRecord) { fmt.Printf("[CreatedAt] %s (%d)\n", utils.FormatUnixTimeToLongDateTimeInServe...
Go
rsaKeyPair) AuthorizedKey() string { return string(ssh.MarshalAuthorizedKey(k.PublicKey())) } package scp_test import ( "bytes" "crypto/rand" "io" "os" "path/filepath" "strings" "time" "code.cloudfoundry.org/diego-ssh/scp" "code.cloudfoundry.org/diego-ssh/scp/atime" "code.cloudfoundry.org/diego-ssh/test_he...
Go
280\x04\xFF": (250, 144, 174, "K Non-Keypad Model"), # b"P0280\x05\xFF": (250, 136, 162, "K2 Non-Keypad Model"), # # Range expanded for ham bands. Orig: 146, 174 # b"P0280\xFF\xFF": (250, 144, 174, "K3 Keypad Model"), # b"P0280\xFF\xFF": (250, 136, 162, "K4 Keypad Model"), # ...
Python
ct.getState().currentTestName}" cycle ${cycle}` ); await DataStore.clear(); log( `after clear: "${expect.getState().currentTestName}" cycle ${cycle}` ); } // expect no errors // TODO: upgrade jest and assert no pending timers! } log(`ENDING: "${expect.getState().currentTestNam...
Typescript
(string == null) { return ""; } if (string.length() > length) { return string.substring(0, length) + ELLIPSES; } return string; } /** * Formats a multi-line plain-text comment string into a HTML string where the text has been * wrapped at MAX_LINE_LENGTH. * * @param string plain-text string ...
Java
strb wzr, [x19, 3694] b .L264 .size Mp4_Syntax_Vol, .-Mp4_Syntax_Vol .align 3 .LC34: .xword s_pstVfmwChan .align 3 .LC35: .xword vfmw_Osal_Func_Ptr_S .align 3 .LC37: .xword .LC36 .align 3 .LC38: .xword g_event_report .align 3 .LC39: .xword g_VdmCharacter .align 3 .LC41: .xword .LC40 .align 3 .LC43: .xwo...
Assembly
User_Ptr = NULL; # ifdef PARTICLE Par_Init_ByFunction_Ptr = Par_Init_ByFunction_ParticleTest; # endif # ifdef SUPPORT_HDF5 Output_HDF5_InputTest_Ptr = LoadInputTestProb; # endif # endif // #if ( MODEL == HYDRO ) if ( MPI_Rank == 0 ) Aux_Message( stdout, "%s ... done\n", __F...
C++
| relógio temporizador | timer ', ), Emoji( '🕰️', 'relógio | relógio antigo | relógio de mesa ', ), Emoji( '🌡️', 'clima | temperatura | tempo | termômetro ', ), Emoji( '⛱️', 'chuva | clima | guarda-sol | praia | sol | sombra | sombrinha ', ), Emoji(...
Dart
检查是否为同一实例 if (ReferenceEquals(this, obj)) return true; // 检查是否为Edge类型 if (!(obj is Edge edge)) return false; // 比较两个端点(考虑正向和反向) return (p1.Equals(edge.p1) && p2.Equals(edge.p2)) || (p1.Equals(edge.p2) && p2....
C#
y), new_pixel) return image image = Image.open('image.jpg') display(grayscale_conversion(image)) ``` ![png](GrayScale_Brightness_files/GrayScale_Brightness_20_0.png) ## Another way to convert to grayscale is by taking a weighted sum of the red, green, and blue values. To our eyes green looks about te...
Markdown
idendStr:string= arr[1]; let divisor:number = parseFloat(divisorStr); let dividend:number = parseFloat(dividendStr); if(Math.floor(divisor)==divisor && Math.floor(dividend)==dividend){ //整数被除数>除数,整数除法取余数 if(divisor > dividend){ console.log("整数除法") ...
Typescript
?? colliderB.id); } } /** * Match contact awake state, except if body's are Fixed */ public matchAwake(): void { const bodyA = this.colliderA.owner.get(BodyComponent); const bodyB = this.colliderB.owner.get(BodyComponent); if (bodyA && bodyB) { if (bodyA.sleeping !== bodyB.sleeping) ...
Typescript
/* Copyright (c) 2018-2022 Advanced Micro Devices, Inc. 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...
C
_021FF530 ldr r2, [sp, #0x18] ldr r1, [sp, #0xc] sub r1, r2, r1 lsl r2, r1, #0xc ldr r1, [sp, #0xb8] add sp, #0xa4 str r2, [r1] pop {r4, r5, r6, r7, pc} _021FF530: ldr r2, [sp, #0x14] ldr r1, [sp, #0xc] add r1, r2, r1 lsl r2, r1, #0xc ldr r1, [sp, #0xb8] add sp, #0xa4 str r2, [r1] pop {r4, r5, r6, r7, p...
Assembly
', Sein.BSPSphereComponent, { radius: source2.audio.spaceOption.maxDistance, material: new Sein.PBRMaterial({baseColor: new Sein.Color(0, 0, 1, 1), wireframe: true}) }); // 添加一个监听器来让声音可以输出,你可以添加多个监听器,并用`listener.enable`来切换他们。 const listener = world.addActor('audioListener', Sein.Audio.ListenerA...
Typescript
ult> matchingResults) { Index = index; Property = property; MatchingResults = matchingResults; } public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendLine($"{Index}: {Property.propertyPath}"); ...
C#
compareTo(b.keys.first)); setState(() { _currentImageKey = _images.first.keys.first; }); } @override Widget build(BuildContext context) { return Column( children: [ GCWDropDown<String>( value: _currentImageKey, items: _images.map((image) { return G...
Dart
Since their implementations are // straightforward, and they are rarely used, we'll just rely on the // users to tell us when they are broken. GTEST_TEST(AlternativeNameTest, Works) { // GTEST_TEST is the same as TEST. GTEST_SUCCEED() << "OK"; // GTEST_SUCCEED is the same as SUCCEED. // GTEST_FAIL is the same as...
C++
</em></td> <td>CALL <em>rel16</em></td> <td>M</td> <td>N.S.</td> <td>Valid</td> <td>Call near, relative, displacement relative to next instruction.</td></tr> <tr> <td>E8 <em>cd</em></td> <td>CALL <em>rel32</em></td> <td>M</td> <td>Valid</td> <td>Valid</td> <td>Call near, relative, displacement relative to next instruct...
HTML
dart'; import 'package:tencent_im_plugin/entity/friend_add_application_entity.dart'; import 'package:tencent_im_plugin/entity/friend_application_result_entity.dart'; import 'package:tencent_im_plugin/entity/friend_check_result_entity.dart'; import 'package:tencent_im_plugin/entity/friend_group_entity.dart'; import 'pac...
Dart
80B59D38 10600008 */ beq $v1, $zero, .L80B59D5C /* 0698C 80B59D3C E60603E8 */ swc1 $f6, 0x03E8($s0) ## 000003E8 /* 06990 80B59D40 1061000A */ beq $v1, $at, .L80B59D6C /* 06994 80B59D44 02002025 */ or $a0, $s0, $zero ## $a0 = 00000000 /* 06998 80B59D48 24010003 */ ad...
Assembly
(registry_id, execute_gas, check_data, upkeep_id, positioning_constant, last_run_block_height) VALUES ( :registry_id, :execute_gas, :check_data, :upkeep_id, :positioning_constant, :last_run_block_height ) ON CONFLICT (registry_id, upkeep_id) DO UPDATE SET execute_gas = :execute_gas, check_data = :check_data, positio...
Go
Message_ConnectionType::NOT_CONNECTED } } impl ::protobuf::reflect::ProtobufValue for Message_ConnectionType { fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef<'_> { ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor()) } } static file_descriptor_proto_data: &'static [u8]...
Rust
#616161"></path> <path fill-rule="evenodd" clip-rule="evenodd" d="M8 1.79999C8.18409 1.79999 8.33333 1.94923 8.33333 2.13332V3.46665C8.33333 3.65075 8.18409 3.79999 8 3.79999C7.8159 3.79999 7.66667 3.65075 7.66667 3.46665V2.13332C7.66667 1.94923 7.8159 1.79999 8 1.79999Z" fill="#616161"></path> </svg> <span class="wprm...
HTML
You can also build specific executables in a similar manner by specifying the target name. ## Build Options The bindings support two main build configurations: ### Dynamic Linking (Default) ```bash cabal build sdl3 # Build library only cabal build --flag examples # Build with examples ``` ...
Markdown
pef05964d63)><use xlink:href=#C0_0_a160036d0d x=301.110894 y=17.061702 style="fill: #f0f1f2; stroke: #f0f1f2"/></g><g clip-path=url(#pef05964d63)><use xlink:href=#C0_0_a160036d0d x=301.110894 y=-17.588298 style="fill: #f0f1f2; stroke: #f0f1f2"/></g><g clip-path=url(#pef05964d63)><use xlink:href=#C0_0_a160036d0d x=301.1...
HTML
exception is T, "Expected ${T::class.simpleName} exception to be thrown, but exception ${exception::class.simpleName} (${exception.message}) was thrown." ) } } fun <T> runTestOnDefaultDispatcher(block: suspend CoroutineScope.() -> T): TestResult = runTestOnDefaultDispatcher(block, shouldRetry =...
Kotlin
BY3z\u002fWh8b60FjfP1kfGutDY90\u002fAAAAAAAA4D\u002f70FgfGuvjPxW8nIKXU+A\u002fAAAAAAAA4D85BS+n4OXkP3g5BS+n4OU\u002fjfWhsT405j9jfWisD43lPxCN9aGxPuQ\u002faKwPjfWh4T8\u002fNNaHxvrgP2isD431oeE\u002ffWisD4314T+n4OUUvJziPz801ofG+uA\u002ffWisD4314T\u002fRWB8a60PjPw=="},"type":"scatter"},{"legendgroup":"('llama3.3_70b', 'citie...
HTML
et .75s step-end infinite; width: 60%; /* Ensures it takes the full width available */ max-width: 60%; /* Constrain width on smaller screens */ display: inline-block; } /* Media query for smaller screens */ @media (max-width: 768px) { .typewriter h1 { font-size: 1.3rem !important; /* Smaller fo...
CSS
/* Definitions of C specific functions for TILEPro. Copyright (C) 2011-2017 Free Software Foundation, Inc. Contributed by Walter Lee (walt@tilera.com) This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published ...
C
), ls.values()); plain_vector LAMBDA(1, lambda), MU(1, mu); getfem::generic_assembly assem("lambda=data$1(1); mu=data$2(1);" "t=comp(Base(#2).NonLin$2(#3).vGrad(#1).NonLin$1(#3));" "M(#2, #1)+= t(:,i,:,i,j,j).mu(1)" "+t(:,i,:,j,i,j).mu(1)"); assem.push_mi(mim); asse...
C++
bottom:5px}#ss-preview-inplace-item-form .column-value-body .link-fields{width:100%}#ss-preview-inplace-item-form .column-value-body .link-label{width:30%}#ss-preview-inplace-item-form .column-value-body .link-url{width:50%}#ss-preview-inplace-item-form .column-value-files{-js-display:flex;display:-webkit-flex;display:...
CSS
r: #99cc99; } .cm-s-cp-dark span.cm-variable-2 { color: #6699cc; } .cm-s-cp-dark span.cm-def { color: #f99157; } .cm-s-cp-dark span.cm-tag { color: #c86267; } .cm-s-cp-dark span.cm-bracket { color: #95bcb7; } .cm-s-cp-dark span.cm-link { color: #a16a94; } .cm-s-cp-dark span.cm-error { background: #f2777a; color: #6A6A6...
CSS
position:-151px -65px; margin:10px 0 6px } .zm-noti7-popup-tab-item.thanks.current .icon { background-position:-151px -87px; opacity:1; -ms-filter:"alpha(Opacity=100)" } .zm-noti7-content-item .zg-follow,.zm-noti7-content-item .zg-unfollow { display:none } html.no-touchevents .zm-noti7-content-item:...
CSS
["previous"] = f.opt.ServiceAccountFile if err = f.changeServiceAccountFile(ctx, serviceAccountFile); err != nil { return out, err } f.m.Set("service_account_file", serviceAccountFile) serviceAccountMap["current"] = f.opt.ServiceAccountFile out["service_account_file"] = serviceAccountMap } if chu...
Go
ifiable, VarState}; use hir::{ expr::{ Bound, Element, ElementKind, Expr, Field, Literal, PlaceExpr, Range, Record, RecordWithSplat, Tag, }, statement::Statement, }; use std::{collections::HashMap, iter::once}; mod ty; pub use crate::ty::{ cons::{Cons, Keyed}, MutType, Type, TypeEr...
Rust
r Gas Visual Trigger", [22359] = "고룡교단 지원자", [22360] = "카리나쿠 탈것", [22361] = "검은군주 하마라크", [22362] = "죽음의 그림자 임프", [22363] = "죽음의 그림자 흑마법사", [22364] = "정찰병 나브린", [22365] = "에단", [22366] = "찾아온 악마", [22367] = "[DND]Ripe Moonshine Keg Credit", [22368] = "[DND]Fermented Seed Beer Keg Credit", [22369] =...
Lua
":"镁硬石膏", "Watkin":"n. (Watkin)人名;(英)沃特金", "watkins":"n. 沃特金斯", "Watkins' operation":"[医] 沃特金斯氏手术(一种子宫下垂手术)", "Watkinson":"n. (Watkinson)人名;(英)沃特金森", "watkinsville":" [地名] [美国] 沃特金斯维尔", "watkiss":" [人名] [英格兰人、苏格兰人姓氏] 沃基斯取自父名,来源于Watt,含义是“瓦特之子”(son of Watt)", "Watling":"n. (Watling)人名;(英)沃特林", "watlington":" [人名] 沃特林顿; [...
Typescript
(), backtrace: GenerateBacktrace::generate(), source: Box::new(FtdiContextError::None)}, ffi::LIBUSB_ERROR_BUSY => FtdiContextError::UsbInit{ code: -6, message: "resource busy".to_string(), backtrace: GenerateBacktrace::generate(), source: Box::new(Ft...
Rust
ch" triggerPropName="checked" rules={[{ type: 'boolean', true: true, message: 'must be true' }]} > <Switch /> </FormItem> <FormItem label="Radio" field="radio" rules={[ { validator: (value, callback) => { ...
Markdown
r3, [ip, #8] cmp r0, r1 add r3, r3, r6 add ip, ip, #12 bne .L126 ldr r3, [fp, #-136] add ip, r4, #388 mov r0, #0 mla r6, r1, r6, r3 add r3, r1, lr str r3, [r4, #1252] ldr r3, [fp, #-108] add r3, r6, r3 .L128: add r0, r0, #1 str r3, [ip, #4]! cmp r0, r1 add r3, r3, #32 bne .L128 .L139: ldr lr, [r4, #10...
Assembly
ngth, nodes.maxOf { it.node.sourceKey.orEmpty().length }) val valuePadded = max(Titles.Value.length, obfuscated.maxOf { (it.node as StringNode).value.length }) val rows = obfuscated.map { listOfNotNull( it.node.path.flatten().padEnd(keyPadded, ' '), (it.node.pos.source() ?: "").padEnd(sou...
Kotlin
nnelTitle!(index); } if (getCustomChannelTitle != null) { image = getCustomChannelWidget!(index); } } else { // 获取自预设channel信息 title = BrnIntl.of(context).localizedResource.shareChannels[shareChannels[index]]; image = BrunoTools.getAssetImage( ...
Dart
Sources**: Your computer's files, databases, and services that MCP servers can securely access * **Remote Services**: External systems available over the internet (e.g., through APIs) that MCP servers can connect to ## Get started Choose the path that best fits your needs: #### Quick Starts <CardGroup cols={2}> ...
Markdown
ler. */ void i915_gem_shrinker_init(struct drm_i915_private *dev_priv) { dev_priv->mm.shrinker.scan_objects = i915_gem_shrinker_scan; dev_priv->mm.shrinker.count_objects = i915_gem_shrinker_count; dev_priv->mm.shrinker.seeks = DEFAULT_SEEKS; WARN_ON(register_shrinker(&dev_priv->mm.shrinker)); dev_priv->mm.oom_no...
C
"dojox/mvc/getStateful", "dojox/mvc/ModelRefController", "dojox/mvc/tests/test_templatedWidget/myMvcTemplated", "dojo/domReady!" ], function(doh, parser, when, registry, getStateful, ModelRefController, myMvcTemplated){ ctrl = new ModelRefController({model: getStateful([ { First: "Anne", ...
HTML
�顿时一脸的无辜,赶紧打圆场,“好了好了,林子琪脑子经常秀逗不差这一次了……大家都在看着呢,注意一下。” 张允幂擦干眼泪,埋头开始做卷子,嘴上说着:“林子琪,你可以不学,我们是朋友,可我们没有义务替你去学。”,说罢,便做起题来。 林子琪可怜巴巴地看看张允幂,又求助似的看了看梁子豪,叹了口气:“我学……都别生气了,生气也回不去……我学……”,说罢,看着演算纸上梁子豪写的解算步骤,对着卷子开始尝试自己解题。 “这是第一题,看明白了我再给你说第二题。”梁子豪苦笑着,也开始做题。 “不用了,我再自己做一遍吧……”林子琪声音小的几乎听不见。 梁子豪不知道该说什么,看着面前的卷子,和自己的年龄相比完全超纲的卷子,竟然也有了一种撕了卷子...
Markdown
/*************************************************************************** Poly-Play (c) 1985 by VEB Polytechnik Karl-Marx-Stadt video hardware driver written by Martin Buchholz (buchholz@mail.uni-greifswald.de) ***************************************************************************/ #include "driver...
C
电子装置和部件 (十一)遥测设备及其技术 (十二)遥测或遥控的地面设备 (十三)满足如下条件的模拟和数字计算装置: 1.连续工作时的环境温度范围为-45摄氏度至+55摄氏度;或 2.进行了加固和抗辐射加固的 (十四)具有以下特性之一的模/数转换器: 1.能在-54摄氏度至+125摄氏度的温度范围内连续工作,并且 2.能设计成符合加固设备的军用技术规范;或 3.能设计或改进成军用,或设计成抗辐射的,并具有如下特性之一: (1)在额定精度下转换速率大于每秒200000次完整的转换 (2)在规定的工作温度范围内精度超过全量程的1/10000以上 (3)品质因数为1×108以上(每秒转换次数除以精度) (4)内含的...
Markdown
button" class="btn btn-primary" (click)="ok()" [disabled]="nameCtrl.invalid || !model.sql || sqlInvalid">_#(OK) </button> <button type="button" class="btn btn-secondary" data-dismiss="modal" (click)="cancel()">_#(Cancel) </button> </div> <!-- ~ This file is part of StyleBI. ~ Copyright (C) 2024 Ine...
HTML
Several platform-specific entry point functions have been removed as unnecessary. If for some reason you explicitly need them, here are easy replacements: ```c #define SDL_UIKitRunApp(ARGC, ARGV, MAIN_FUNC) SDL_RunApp(ARGC, ARGV, MAIN_FUNC, NULL) #define SDL_GDKRunApp(MAIN_FUNC, RESERVED) SDL_RunApp(0, NULL, MAIN_F...
Markdown
st(2L, 3L, 2L, 3L, 3L), Seq.of(1, 2, 4, 2, 3).window(naturalOrder(), -1, 1).map(Window::count).toList()); assertEquals(asList(0L, 1L, 3L, 2L, 3L), Seq.of(1, 2, 4, 2, 3).window(naturalOrder(), -3, -1).map(Window::count).toList()); assertEquals(asList(1L, 1L, 3L, 2L, 2L), Seq.of(1, 2, 4, 2, 3).wi...
Java
from instance. ``` ## 结构体与类的比较 如果您熟悉其他面向对象的语言,那么结构体可能听起来很像类,它们有一些相似之处,但也有一些重要的区别。最终,Mojo还将支持类以匹配Python类的行为。 让我们比较一下Mojo结构体和Python类。它们都支持方法、字段、运算符重载、用于元编程的装饰器等等,但它们的关键区别如下: - Python类是动态的:它们支持动态分派、猴子补丁(或“swizzling”)和在运行时动态绑定实例字段。 - Mojo结构体是静态的:它们在编译时绑定(无法在运行时添加方法)。结构体允许您在性能上进行灵活性和安全性之间的权衡,同时易于使用。 - Mojo结构体不支持继承(“子...
Markdown
T> implements D<T> { F(void Function(T) f) : super(f); } class NoSuchMethod<inout T> implements B<T> { noSuchMethod(_) => 3; } main() { A<int, num, String> a = new A(); expect(null, a.field); a.method(3, (num) {}, "test"); a.method2(3); a.x = 3; Map<num, Contravariant<String>> mapContra = a.mapContra;...
Dart
RUCTFIELD" >txsubchans</CODE ></TD ><TD >With this field applications can determine how audio sub-carriers shall be modulated. It contains a set of flags as defined in <A HREF="r11430.htm#MODULATOR-TXSUBCHANS" >Table 2</A >. Note the tuner <CODE CLASS="STRUCTFIELD" >rxsubchans</CODE > flags are reused, but the semantic...
HTML
_posY = posY; } public double PosX { get => _posX; set => _posX = value; } public double PosY { get => _posY; set => _posY = value; } public override string ToString() { return "Position X : " + PosX + "\n" + "Position Y : " + PosY; ...
C#
-- Lua script to perform bayes learning (multi-class) -- This script accepts the following parameters: -- key1 - prefix for bayes tokens (e.g. for per-user classification) -- key2 - class label string (e.g. "S", "H", "T") -- key3 - string symbol -- key4 - boolean is_unlearn -- key5 - set of tokens encoded in messagepac...
Lua
HMLMG_1 = 1 if HMLMG_2_HOLOSIGHT == true then scope_2_HMLMG_1 = 1.2 end if HMLMG_2_X8_SCOPE == true then scope_2_HMLMG_2 = 7 end if HMLMG_2_X16_SCOPE == true then scope_2_HMLMG_3 = 13.5 end if HMLMG_2_HANDMADESIGHT == true then scope_2_HMLMG_4 = 0.8 end if HMLMG_2_SILENCER == true then barrel_2_HMLMG_1 = 1 end scope_2...
Lua
Value(Storage.CultsOfTibia.MotA.AccessDoorGareth, 1) --------------------------------------- FALHAS ---------------------------------------------------------- -- Se ainda não tiver visto a pintura falsa elseif MsgContains(message, "mission") and player:getStorageValue(Storage.CultsOfTibia.MotA.Mission) == 8 then ...
Lua
*p-y)/a,(-1*d-v)/s],S=tu(b,w);if(Ql(b,w)<=-1&&(S=$l),Ql(b,w)>=1&&(S=0),S<0){var M=Math.round(S/$l*1e6)/1e6;S=2*$l+M%2*$l}h.addData(u,m,x,a,s,_,S,c,o)}var nu=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,iu=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var ru=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n...
JavaScript
{ /* invent "random" values */ printk(KERN_ERR "SAL/PAL failed to obtain frequency info---inventing reasonable values\n"); platform_base_freq = 100000000; platform_base_drift = -1; /* no drift info */ itc_ratio.num = 3; itc_ratio.den = 1; } if (platform_base_freq < 40000000) { printk(KERN_ERR "...
C
reward as u64, )); let total_prize_after = total_prize.checked_sub(token_holder_fee_reward)?; let loterra_human = deps .api .addr_humanize(&state.loterra_staking_contract_address)?; let msg_update_global_index = QueryMsg::UpdateGlobalIndex {}; let res_update_global_index = WasmMsg...
Rust
"AST based diffs", setting = structopt::clap::AppSettings::ColoredHelp )] pub struct Args { /// Print debug output /// /// This will print debug output #[structopt(short, long)] pub debug: bool, /// Run a subcommand that doesn't perform a diff. Valid options are: "list", /// "dump_defau...
Rust
other long enough to get the job done.\n<br><br>(Source: WEBTOONS)", "bannerImage": "https://s4.anilist.co/file/anilistcdn/media/manga/banner/106929-jYmT1n3Z0m46.jpg", "coverImage": { "large": "https://s4.anilist.co/file/anilistcdn/media/manga/cover/medium/b...
Dart
Bucket(bucketName) } } @Test fun `测试上传对象到不存在的存储桶_自动创建存储桶`() = runBlocking { val service = createObjectStorageService() val bucketName = "test-autocreate-bucket-${System.currentTimeMillis()}" val objectName = "test-object.txt" val content = "Hello, auto-created bucket!" ...
Kotlin
18.8855 17.3073Z" fill="currentColor" /> <path d="M5.09528 17.3072L4.0345 18.368C3.92972 18.4723 3.84655 18.5963 3.78974 18.7328C3.73294 18.8693 3.70362 19.0156 3.70346 19.1635C3.7033 19.3114 3.7323 19.4578 3.78881 19.5944C3.84532 19.7311 3.92822 19.8552 4.03277 19.9598C4.13732 20.0643 4.26147 20.1472 4.398...
HTML
func: AlertDialogHelper.() -> Unit = { defaultDialogButton() }): AlertDialog { val title = if (titleResource == 0) null else getString(titleResource) val message = if (messageResource == 0) null else getString(messageResource) val alertDialog = AlertDialogHelper(context!!, title, message).apply { ...
Kotlin
input, null, options) ?: error("Decoding Bitmap from InputStream failed") val rotatedBitmap = decodedBitmap.rotateToExifMetadataOrientation(orientation) if (resizeMode is ResizeMode.Strict) { rotatedBitmap.resizeToMax(resizeMode.maxWidth, resizeMode.maxHeight) ...
Kotlin
<p> LAL<br> Warn me? No, Admiral. He told me<br> to answer your questions.</p> <p> PICARD<br> The admiral is concerned that you<br> need more guidance than your<br> father can provide here on the<br> Enterprise.</p> <p> ADMIRAL HAFTEL<br> Do not misunderstand. I have<br> great resp...
HTML
tr><th scope="row" class="text-center">112</th><td><a href="https://watctf.org/teams/48">im_dragon</a></td><td>500</td></tr><tr><th scope="row" class="text-center">113</th><td><a href="https://watctf.org/teams/251">kur0x1412</a></td><td>500</td></tr><tr><th scope="row" class="text-center">114</th><td><a href="https://w...
HTML
using System; using System.Threading; using Jaeger.Metrics; using Jaeger.Propagation; using Jaeger.Reporters; using Jaeger.Samplers; using NSubstitute; using OpenTracing; using OpenTracing.Propagation; using OpenTracing.Tag; using Xunit; namespace Jaeger.Core.Tests { public class TracerTests { private ...
C#
} return stringBuilder.toString(); } } private static final String LARGE_INPUT_FILE_PATH1 = Constants.FILES_PATH + Constants.SURNAMES_CSV_FILE; private static final String LARGE_INPUT_FILE_PATH2 = Constants.FILES_PATH + Constants.SDSS_CSV_FILE; private void doExperimen...
Java
signed_field_names: "card_type,card_number,card_expiry_date", locale: "en", transaction_uuid: UUID.UUID(), signed_date_time: this.getUTCDate(), //"2017-02-28T14:38:33Z", transaction_type: "authorization", reference_number: Math.floor((Math.random() * 10000) + 1).toString(), amount: "...
Typescript
tManager.getInstance().getModelFile(worldFilename).exists()) { // Search the world file with ".json" ext if not found. worldFilename = EngineAssetManager.WORLD_FILENAME + ".json"; if (!EngineAssetManager.getInstance().getModelFile(worldFilename).exists()) { EngineLogger.error("ERROR LOADING WORLD: world ...
Java
from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.orm import Session from datetime import datetime import uuid from dateutil.parser import parse import pytz import logging from .. import models, schemas, database router = APIRouter() # Set up logging logger = logging.getLogger(__name__) logger.set...
Python
ddress MysteryEventScript_MysticTicket lock faceplayer vgoto_if_set FLAG_RECEIVED_MYSTIC_TICKET, MysticTicket_Obtained vgoto_if_set FLAG_FOUGHT_LUGIA, MysticTicket_Obtained vgoto_if_set FLAG_FOUGHT_HO_OH, MysticTicket_Obtained checkitem ITEM_MYSTIC_TICKET, 1 vgoto_if_eq VAR_RESULT, TRUE, MysticTicket_Obtained v...
Assembly
.setZ(115.0); mpoint.setPoint(0, pt3); pt3 = mpoint.getPoint(0); assertTrue(pt3.getX() == 0 && pt3.getY() == 0/* && pt3.getZ() == 115 */); // assertTrue(mpoint->HasAttribute(VertexDescription::Semantics::Z)); // CompareGeometryContent(mpoint, &pt, 1); } {// move 3d MultiPoint mpoint = new MultiPo...
Java