content
stringlengths
2
6.21k
label
stringclasses
16 values
} public getVersion(){ return this.version; } public setVersion(version:number){ this.version = version; } } //HERENCIA CLASE HIJA class EditorVideo extends Programa{ private timeline:number; public getTimeline(){ return this.timeline; } public se...
Typescript
= CryptoCurrency.ltc ? (String txt) => BitcoinAddressUtils.validateAddress( address: txt, network: type == CryptoCurrency.btc ? isTestnet ? BitcoinNetwork.testnet : BitcoinNe...
Dart
Join(dir, ".dvc", "config"), []byte("\n"), 0644)) // clean up temporary folder defer os.RemoveAll(dir) // ensure DVC will seem *not* installed exec.LookPath = func(file string) (string, error) { return "", fmt.Errorf("dvc not on path or something") } exec.CommandOutput = exec.DefaultCommandOutput project ...
Go
�的能力。 2. **将类上移或下移** – 不允许这样做,因为流中的数据显示顺序错误。 3. **将非静态字段更改为静态或将非瞬态字段更改为瞬态** – 当依赖默认序列化时,此更改等效于从类中删除字段。 该版本的类不会将该数据写入流,因此该类的早期版本将无法读取该数据。 与删除字段时一样,早期版本的字段将被初始化为默认值,这可能导致类以意外方式失败。 4. **更改原始字段的声明类型** – 该类的每个版本都使用其声明类型写入数据。 尝试读取该字段的早期版本的类将失败,因为流中的数据类型与该字段的类型不匹配。 5. **更改`writeObject`或`readObject`方法,使其不再写入或读取默认字段数据**,或对其...
Markdown
clazz->nestHost = *nestHostFound; result = J9_VISIBILITY_ALLOWED; goto done; } } else { if (NULL == nestHostName) { nestHostName = J9ROMCLASS_CLASSNAME(curClazz->romClass); } } } /* If no nest host is named, class is own nest host */ if (NULL == nestHostName) { nestHost = curC...
C
le" ng-repeat="column in $ctrl.columns track by $index" ng-bind="column.text""></th>\n <th class="form-table-column-title form-table-action-column-title" ng-if="$ctrl.hasButtons()">操作</th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="(rowIndex, row) in (($ctrl.ngModel || []) ...
JavaScript
server.crt \ --tls-key /path/to/server.key \ --root-ca-path /path/to/ca.crt \ --jwt-key /path/to/jwt.key \ --resource-proxy-cert-path /path/to/proxy.crt \ --resource-proxy-key-path /path/to/proxy.key \ --resource-proxy-ca-path /path/to/ca.crt ``` ## Security Considerations ### Production Recommendations ...
Markdown
} /** * フレーム毎に更新をかけます。 */ public update() { this._counter+=0.5; let angle = this._counter * Math.PI / 180; // テクスチャを上下させる this._texture.offset.y = 0.1 + 0.2 * Math.sin(angle*3); // テクスチャを回転させる this._texture.offset.x = angle; } } } /// <reference path="...
Typescript
, 'detection_mAP.json'), } local DATASET = os.getenv('DATASET') or 'VOC2007' local NUM_EPOCHS = tonumber(os.getenv('NUM_EPOCHS')) or 30 local SUBSET = os.getenv('SUBSET') or 'trainval' local BASE_MODEL = 'VGGF' opts = { ROI_FACTOR = 1.8, SEED = 1, NMS_OVERLAP_THRESHOLD = 0.4, NMS_SCORE_THRESHOLD = 1e-4, IMAG...
Lua
.rs use crate::world::Location; use bracket_lib::prelude::*; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, Serialize, Deserialize, PartialEq, Eq, Hash, Default)] pub struct Position { pub x: usize, pub y: usize, } impl Position { pub const fn new(x: usize, y: usize) -> Self { Self { ...
Rust
ing.playerPositions do local creature = Tile(setting.playerPositions[i]):getTopCreature() if not creature or not creature:isPlayer() then player:sendCancelMessage("You need 4 players to fight with The Ravager.") return true end storePlayers[#storePlayers + 1] = creature end for i = 1, #setting....
Lua
j[i]) > Math.abs(LUcolj[p])) { p = i; } } if (p !== j) { for (k = 0; k < columns; k++) { t = lu.get(p, k); lu.set(p, k, lu.get(j, k)); lu.set(j, k, t); } v = pivotVector[p]; pivotVector[p] = pivotVector[j]; pivotVector...
JavaScript
", failure_tests=True ) self.assertTrue(success) def testEnableWarnDiags(self): import pprint def filtered_vars(var_dict): dunders = [nm for nm in var_dict if nm.startswith("__")] return { k: v for k, v in var_dict.items() ...
Python
sw $t9, ($t6) /* B8064C 801094AC 8FB80120 */ lw $t8, 0x120($sp) /* B80650 801094B0 3C19FF2D */ lui $t9, (0xFF2DFEFF >> 16) # lui $t9, 0xff2d /* B80654 801094B4 3C0FFCFF */ lui $t7, (0xFCFF97FF >> 16) # lui $t7, 0xfcff /* B80658 801094B8 270E0008 */ addiu $t6, $t8, 8 /* B8065C 801094BC AFAE0120 */ sw $...
Assembly
ore/result.rs.html#524\">Source</a></span><a href=\"#impl-StructuralPartialEq-for-Result%3CT,+E%3E\" class=\"anchor\">§</a><h3 class=\"code-header\">impl&lt;T, E&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.84.0/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">...
JavaScript
et3 { margin-left: 28.45303867403315%; *margin-left: 28.346655695309746%; } .row-fluid .offset3:first-child { margin-left: 25.69060773480663%; *margin-left: 25.584224756083227%; } .row-fluid .offset2 { margin-left: 19.88950276243094%; *margin-left: 19.783119783707537%; } .row-fluid ....
CSS
n-1)%e.length,l=$.extend(!0,{},e[o]),i=void 0;if("星期日"==e[e.length-1].m)i=7+r*n;else{var s=e[e.length-1].m,c=s.substr(s.length-1,1);i=this.ChineseToNumber(c)+r*n}i<0&&(i=7*Math.ceil(Math.abs(i)/7)+i);var u=i%7;0==u?(l.m="星期日",l.v="星期日"):1==u?(l.m="星期一",l.v="星期一"):2==u?(l.m="星期二",l.v="星期二"):3==u?(l.m="星期三",l.v="星期三"):4=...
JavaScript
const DATE = new Date(); const TIMESTAMP = new Date(); const RECORDING_ID = '1234'; const state: fromRecordings.State = { activeRecordings: { [ASSET_NAME]: { id: RECORDING_ID, assetName: ASSET_NAME, date: DATE, measurements: {} } }, ...
Typescript
usivityOnlyForFluid = false; try { zHeatDiffusivityOnlyForFluid = Boolean.parseBoolean(t[1]); } catch (NumberFormatException e) { showException(ci, e); return; } s2d.model.setZHeatDiffusivityOnlyForFluid(zHeatDiffusivityOnlyForFluid); } else if (t[0].equalsIgnoreCase("gravitati...
Java
helper.PageHelper; import org.mochou.mymall.db.dao.MymallGrouponMapper; import org.mochou.mymall.db.domain.MymallGroupon; import org.mochou.mymall.db.domain.MymallGrouponExample; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.time.LocalDateTime; import java.util.List; @Se...
Java
using HyoutaPluginBase; using HyoutaUtils; using HyoutaUtils.Streams; using SenLib; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SenPatcherCli { internal class TblFileInfo { public string Filename; public EndianUtil...
C#
74460,922761015 .long 7960953,1577082462 .long 1907997,1191200583 .long 5395026,2483066004 .long 15461355,4194368250 .long 15987699,4227923196 .long 7171437,1526750043 .long 6184542,2533398423 .long 16514043,4261478142 .long 6908265,1509972570 .long 11711154,2885725356 .long 15790320,1006648380 .long 3223857,1275087948...
Assembly
obal_config.histogram_log_path) > 0) { char *path_copy = strdup(global_config.histogram_log_path); if (path_copy) { char *dir = dirname(path_copy); struct stat st = {0}; if (stat(dir, &st) == -1) { if ((mkdir(dir, 0755) != 0) && errno != EEXIST) { ...
C
[], "fullpath": "test/test-clone.js", "metadata": Object { "path": "test/test-clone.js", "someMeta": 18, }, "parent": [Circular], "type": "blob", }, Object { "b...
JavaScript
: !$EV trig_pc_d(3,expr(@VA(.MAIN.T3_hwint_1186), 16, 16)) -> intp(3, 0, 3c) .word 0xb3a5c940 ! 8941: FMULd fmuld %f54, %f0, %f56 .word 0xba0c0000 ! 8943: AND_R and %r16, %r0, %r29 T3_hwint_1187: !$EV trig_pc_d(3,expr(@VA(.MAIN.T3_hwint_1187), 16, 16)) -> intp(3, 0, 39) T3_hwint_1188: !$EV trig_pc_d(3,expr(@VA(.MA...
Assembly
blic final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private EntityAbilityInvokeEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocol...
Java
] pub type W = crate::W<u32, super::CRSR_IMG>; #[doc = "Register CRSR_IMG[%s] `reset()`'s with value 0"] impl crate::ResetValue for super::CRSR_IMG { type Type = u32; #[inline(always)] fn reset_value() -> Self::Type { 0 } } #[doc = "Reader of field `CRSR_IMG`"] pub type CRSR_IMG_R = crate::R<u32...
Rust
default uk-modal-close" type="button">${i.labels.cancel}</button>\n <button class="uk-button uk-button-primary" autofocus>${i.labels.ok}</button>\n </div>\n </form>\n `,i);let c=!1;Object(n.on)(r.$el,"submit","form",t=>{t.preventDefault(),s(),c=!0,r.hi...
JavaScript
ary/notify/j/g:a (Ljava/io/Closeable;)V // 34: aload 5 // 36: astore_0 // 37: iload_2 // 38: ifeq +18 -> 56 // 41: new 39 java/lang/String // 44: dup // 45: aload 4 // 47: invokevirtual 43 java/io/ByteArrayOutputStream:toByteArray ()[B // 50: ldc 45 // 52: inv...
Java
:left;margin:0 30px 0 0}.hfields .form-group dt label{display:inline-block;margin:5px 0 0;color:#586069}.hfields .form-group dt img{position:relative;top:-2px}.hfields .btn{float:left;margin:28px 25px 0 -20px}.hfields .form-select{margin-top:5px}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0...
CSS
buckets: [ {left: 1, right: 2, count: 2}, {left: 2, right: 3, count: 1}, {left: 3, right: 4, count: 1}, ], }); }); }); describe('intermediateToD3', () => { it('generates empty bins when input is empty', () => { const results = intermediateToD3( ...
Typescript
daemonSetService sync.Map kubectlService sync.Map injectionService sync.Map crdService sync.Map eventResource sync.Map localCron *cron.Cron //goroutine pool goroutinePool *ants.Pool queue workqueue.RateLimitingInterface } // NewClientset returns the clien...
Go
glDirect3DDevice7_SetLight(This->device, This->index, &This->light); glDirect3DDevice7_LightEnable(This->device, This->index, TRUE); } else glDirect3DDevice7_LightEnable(This->device, This->index, FALSE); } TRACE_EXIT(23,D3D_OK); return D3D_OK; } void glDirect3DLight_SetDevice(glDirect3DLight *This, glDirect...
C++
tes split into five sectors. numSectors = 5 elseif 0x10 == result.sak then -- NXP MIFARE Plus 2k numSectors = 32 elseif 0x01 == result.sak then -- NXP MIFARE TNP3xxx 1K numSectors = 16 else print("I don't know how many sectors there are on this type of card, defaulting to 1...
Lua
using System; using MinerWars.AppCode.App; using MinerWars.AppCode.Game.Effects; using MinerWars.AppCode.Game.Utils.VertexFormats; using MinerWars.AppCode.Game.Managers; using SharpDX; using SharpDX.Direct3D9; using SharpDX.Toolkit; using SharpDX.Toolkit.Graphics; namespace MinerWars.AppCode.Game.Utils { using ...
C#
using System.Text; using college_management.Dados.Modelos; using college_management.Utilitarios; using college_management.Views.Interfaces; namespace college_management.Views; public class RelatorioView<T> : View, IPaginavel where T : Modelo { private readonly List<T> _modelos; public RelatorioView(string titulo...
C#
import time from unittest.mock import Mock, patch import numpy as np import pytest from providers.unitree_camera_vlm_provider import ( UnitreeCameraVideoStream, UnitreeCameraVLMProvider, ) @pytest.fixture def mock_video_client(): with patch("providers.unitree_camera_vlm_provider.VideoClient") as mock: ...
Python
boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } UniExpression<?> that = (UniExpression<?>) o; return operand.equals(that.operand); } @Override public String ...
Java
i giá tham chiếu ban đầu this.data[i].perChange = differencePrice * 100 / this.data[i].referPrice; // Check trạng thái của bản ghi thay đổi theo chiều tăng, giảm hoặc không if (differencePrice < 0) { this.data[i].statusUp = -1; } else if (differencePrice > 0) { this.data[i].stat...
Typescript
et(labels))) nb_instances = len(labels) data = np.zeros(shape=(nb_instances, 1)) for i in range(0, nb_instances): current_label = labels[i] idx = unique_labels.index(current_label) data[i] = idx return DataFrame(data=data, index=index, columns=columns...
Python
理解的过程。眼睛看着阅读材料上某个预选的部分,以期获得对所读材料的整体性理解。 ## 3. 提高注意力,增强理解力 讨论阅读中的主要问题及如何克服这些问题。这些问题包括注意力不集中、理解力差、默读,以及像诵读困难和注意力存在缺陷等学习障碍。 克服**复读和回跳**:首先,你必须强迫自己不去重读那些你认为已经遗漏的部分;第二,你必须逐渐提高阅读速度并努力使眼睛以平均的节奏运动。速度和节奏能帮助你克服复读和回跳的习惯,同时还能增强阅读理解能力。 注意力是一匹烈马,以自己的方式朝着它喜欢的方向全速疾驰,你的任务就是驾驭它,让它沿着目标的方向驰骋。 注意力难以集中的原因和解决办法: 1. **注意休息**:每 30~60 mi...
Markdown
_y = 0.0; for (const neighbor of neighbors) { if (id === neighbor) { continue; } let [headingX, headingY] = this.bp.get_heading(neighbor); // working_space.add(heading); working_space_x += headingX; working_space_y += headingY; } // working_s...
JavaScript
namespace RTCV.UI.Components.EngineConfig.EngineControls { using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using R...
C#
out(*v*) 是出度(即从节点发出的边的数量) + deg(*v*) 是节点的总度数,它是其入度和出度的总和,因此 deg(*v*) = in(*v*) + out(*v*) + add(*v*) 是添加的快捷路径数 + ED(*v*) 是合并节点 *v* 后的边差,它由 ED(*v*) = add(*v*) – deg(*v*) 给出 下两个图显示了边差是如何计算并用于在合并边节点如 *A*(图 4.26)和中心节点如 *E*(图 4.27)之间进行选择的。 ![](img/CH04_F26_Khamis.png) 图 4.26 边节点 *A* 情况下的边差 ![](i...
Markdown
// // AppDelegate.h // TwoBrowser // // Created by Chris J. Davis on 1/3/14. // Copyright (c) 2014 ___LEAGUEOFBEARDS___. All rights reserved. // #import <Cocoa/Cocoa.h> #import <WebKit/WebKit.h> #import "InAppStoreWindow.h" #import "NSSplitView+Animation.h" #import "ITProgressBar.h" @class WebView, SplitView; @i...
C
imbIndex = iObjLOD1LimbIndex; pObject->iLOD2LimbIndex = iObjLOD2LimbIndex; if ( pObject->iLOD0LimbIndex==-1 ) pObject->iLOD0LimbIndex = iFirstFrameWithMesh; if ( pObject->iLOD1LimbIndex==-1 ) pObject->iLOD1LimbIndex = iFirstFrameWithMesh; if ( pObject->iLOD2LimbIndex==-1 ) pObject->iLOD2LimbIndex = iFirstFrameWithM...
C++
F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, // F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, // F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, // F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F ]; } // Frequently used char...
Dart
params: [] }; itemDef(env, item, "testFoo"); env.sb.toString().should.equal("let testFoo: (() => void) | null | undefined") }); it('should allow using custom code for some definitions', () => { let item = { type: "interface" }; const code = 'export type DOMOutputSpec = string | Node' env = emp...
Typescript
} } @keyframes euiLoadingKibanaBounceLarge { 50% { transform: translateY(-$euiSizeM); } } @keyframes euiLoadingKibanaBounceXLarge { 50% { transform: translateY(-$euiSize); } } @keyframes euiLoadingKibanaPulsateAndFade { 0% { opacity: 0; } 50% { transform: scale(0.5); opacity: 0.1;...
CSS
style: context.txtBodySmallN60, ), const SizedBox(height: 12), SendAssetTextField( asset: asset, focusNode: model.addressFocus, textEditingCon...
Dart
?.author), themeColor: Option.from(site?.siteMetadata?.themeColor), msTileColor: Option.from(site?.siteMetadata?.msTileColor), }), [site] ); } import { ShapeCharacter } from "./Shape"; export interface FontCharacter { name: string; isItalic: boolean; isBold: boolean; glyphs: FontGlyph[]; ...
Typescript
Key: { 'address': address } }; return await this.doc.get(params).promise().then((data) => { if (data && data.Item) { return data.Item as Email; } else { console.log("Promise Failed"); return ...
Typescript
ersionB: string, isLoose = false): number { // 1) get common precision for both versions, for example for "10.0" and "9" it should be 2 const versionAPrecision = getVersionPrecision(versionA) const versionBPrecision = getVersionPrecision(versionB) let precision = Math.max(versionAPrecision, versionBPrecision) ...
Typescript
Changes the process group. pub fn set_process_group(&mut self, pg: Weak<SpinLock<ProcessGroup>>) { self.process_group = pg; } /// The current process group. pub fn process_group(&self) -> Arc<SpinLock<ProcessGroup>> { self.process_group.upgrade().unwrap() } /// The current pro...
Rust
/******************************************************************************* * * Copyright (c) 1993 Intel Corporation * * Intel hereby grants you permission to copy, modify, and distribute this * software and its documentation. Intel grants this permission provided * that the above copyright notice appears...
Assembly
for(auto const &it : elemidx) { l->elemidx.push_back(it); } l->n = n; } void Clear() { for(auto &it : elemidx) { elemstore[it].Clear(); // elemstore[it].~T(); // clear below calls the destructors } freelist.clear(); elemidx.c...
C
ddFolder) whenever(cloudContentRepository.create(testDir3)).thenReturn(testDir3) whenever(cloudContentRepository.write(eq(testDir3DirFile), any(), any(), eq(false), any())).thenReturn(testDir3DirFile) val header = Mockito.mock(FileHeader::class.java) whenever(fileHeaderCryptor.create()).thenReturn(header) w...
Kotlin
using OctoAwesome.Basics.Noise; using OctoAwesome.Location; namespace OctoAwesome.Basics.Biomes { /// <summary> /// Interface for biomes used for biome generation. /// </summary> public interface IBiome { /// <summary> /// Gets the planet the biome is generated for. /// </s...
C#
// Enable SatMac traces Config::SetDefault("ns3::SatPhy::EnableStatisticsTags", BooleanValue(true)); Config::SetDefault("ns3::SatNetDevice::EnableStatisticsTags", BooleanValue(true)); /// Set simulation output details Config::SetDefault("ns3::SatEnvVariables::EnableSimulationOutputOverwrite", Boo...
C++
ise(gen1_setup_sex + "1 early() { ch = sim.chromosomes; ch.setMutationRate(c(0.0, -0.001), c(1000, 100000)); stop(); }", "must be >= 0", __LINE__); SLiMAssertScriptStop(gen1_setup_sex + "1 early() { ch = sim.chromosomes; ch.setMutationRate(c(0.0, 0.1), c(1000, 99999), '*'); stop(); }", __LINE__); SLiMAssertScriptSt...
C++
le: ( "primary-subtle": var(--#{$prefix}primary-border-subtle), "secondary-subtle": var(--#{$prefix}secondary-border-subtle), "success-subtle": var(--#{$prefix}success-border-subtle), "info-subtle": var(--#{$prefix}info-border-subtle), "warning-subtle": var(--#{$prefix}warning-border-subtle), "danger-subtle...
CSS
l XUD_GetSetupData_Select.nstackwords .globl XUD_GetSetupData_Select.maxchanends .globl XUD_GetSetupData_Select.maxtimers .globl XUD_GetSetupData_Select.maxcores .set XUD_GetSetupData_Select.nstackwords, 4 .set XUD_GetSetupData_Select.maxchanends, 0 .set XUD_GetSetupData_Select.maxtimers, 0 .set XUD_GetSetupData_Select...
Assembly
h$$RJ, h$$RK, h$$RL, h$$RM, h$$RN, h$$RO, h$$RP, h$$RQ, h$$RR, h$$RS, h$$RT, h$$RU, h$$RV, h$$RW, h$$RX, h$$RY, h$$RZ, h$$R0, h$$R1, h$$R2, h$$R3, h$$R4, h$$R5, h$$R6, h$$R7, h$$R8, h$$R9, h$$Sa, h$$Sb, h$$Sc, h$$Sd, h$$Se, h$$Sf, h$$Sg, h$$Sh, h$$Si, h$$Sj, h$$Sk, h$$Sl, h$$Sm, h$$Sn, h$$So, h$$Sp, h$$Sq, h$$Sr, h$$S...
JavaScript
ot_empty(&self) { let string = self.value.clone().into(); if string.is_empty() { panic!("Expected {} to not be empty, but it is.", self.name) } } fn has_length(&self, expected_length: usize) { let string = self.value.clone().into(); let len = string.len(); ...
Rust
" + METHOD_NAME_INTER[i]); log.complain("debuger FAILURE 6> Exception: " + e); testFailed = true; continue; } totalMethodsByName = listOfMethods.size(); if (totalMethodsByName != 1) { log.comp...
Java
com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/common/hexutil" "github.com/ethereum/go-ethereum/common/math" "github.com/ethereum/go-ethereum/core/types" "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/crypto/secp256k1" "github.com/ethereum/go-ethereum/ethclient" "git...
Go
in some cases.\n\t\t\t// Adding a temporary attribute to the document before the selection works\n\t\t\t// around the issue.\n\t\t\t// Interestingly, IE 10 & older don't seem to have the issue.\n\t\t\tinput = document.createElement( \"input\" );\n\t\t\tinput.setAttribute( \"name\", \"\" );\n\t\t\tel.appendChild( input...
JavaScript
)から始めることをお勧めします。 `学習コースは翻訳されていません。` インタラクティブなクイズによる学習コースでは、Next.js を使うために必要なすべての知識を習得できます。 Next.js に関連事項する質問がある場合は、[GitHub Discussions](https://github.com/vercel/next.js/discussions) のコミュニティーでなんでも質問してください。 #### システム要件 - [Node.js 12.22.0](https://nodejs.org/) または、それ以降 - MacOS, Windows (WSL を含む)、そして Linux をサポート ## ...
Markdown
IB1_4_NV = 0x8671; // public const int GL_MAP2_VERTEX_ATTRIB2_4_NV = 0x8672; // public const int GL_MAP2_VERTEX_ATTRIB3_4_NV = 0x8673; // public const int GL_MAP2_VERTEX_ATTRIB4_4_NV = 0x8674; // public const int GL_MAP2_VERTEX_ATTRIB5_4_NV = 0x8675; // public const int GL_MAP2_VERTEX...
C#
inherit;--mdb-link-color: #3b71ca;--mdb-link-color-rgb: 59, 113, 202;--mdb-link-decoration: none;--mdb-link-hover-color: #386bc0;--mdb-link-hover-color-rgb: 56, 107, 192;--mdb-link-hover-decoration: none;--mdb-code-color: #e91e63;--mdb-highlight-color: #4f4f4f;--mdb-highlight-bg: #fff9c4;--mdb-border-width: 1px;--mdb-...
CSS
tJdbcConnectionException("mock fail11111")); try { externalConfigInfoGrayPersistService.findConfigInfo4Gray(dataId, group, tenant, grayName); assertTrue(false); } catch (Exception exception) { assertEquals("mock fail11111", exception.getMessage()); } ...
Java
;------------------------------------------------------------------------------- ; ; GBT Player v2.1.3 ; ; SPDX-License-Identifier: MIT ; ; Copyright (c) 2009-2020, Antonio Niño Díaz <antonio_nd@outlook.com> ; ;------------------------------------------------------------------------------- .NR10 = 0xFF10 .NR11 = 0xF...
Assembly
Visible.CurrentValue) { CloseMenu(); } else { OpenMenu(); } } public void OpenMenu(Unit unit) => OpenMenu(); public void OpenMenu() { IsMainMenuVisible.Value = true; IsEditableTitlebarVisible.Value = false; ...
C#
, c1, c0, 1 bx lr @--------------------------------------------- .code 32 clear_dcache: mov r0, #0 mcr p15, 0, r0, c7, c10, 0 @ Clean
Assembly
, 5.0f); default: break; } /* set main loop delay depending on data rate to minimize CPU overhead */ _main_loop_delay = (MAIN_LOOP_DELAY * 1000) / _datarate; /* hard limit to 500 Hz at max */ if (_main_loop_delay < 2000) { _main_loop_delay = 2000; } /* now the instance is fully initialized and we can bum...
C++
") // printing the execution time startTime := time.Now() defer utils.LogElapsedTime(startTime, "gotator") // Show progress utils.ShowProgress() // Prepare the command arguments cmdArgs := []string{ "-sub", sublist, "-perm", permlist, "-depth", fmt.Sprint(depth), "-numbers", fmt.Sprint(numbers), "-t...
Go
MLBRMD", // Compound available in CurrenciesData35 "COS" to "WRHGTZZ0H", // Cats Of Sol available in CurrenciesData42 "COVAL" to "SM9PJ8SVS", // CircuitsOfValue available in CurrenciesData38 "CPC" to "35ZTMBQJX", // CryptoPerformance Coin available in CurrenciesData4 "CPR" to "1NK7DHVQN"...
Kotlin
= &de_mp_clk.common.hw, [CLK_TCON0_CH0] = &tcon0_ch0_clk.common.hw, [CLK_TCON1_CH0] = &tcon1_ch0_clk.common.hw, [CLK_CSI_SCLK] = &csi_sclk_clk.common.hw, [CLK_TVD_SCLK2] = &tvd_sclk2_sun7i_clk.common.hw, [CLK_TVD] = &tvd_sclk1_sun7i_clk.common.hw, [CLK_TCON0_CH1_SCLK2] = &tcon0_ch1_sclk2_clk.common.h...
C
"}}, [8922] = {"초자연적 장치", {"안시온 하몬... 아니 좀더 정확하게 말해서 그의 영혼과 대화할 수 있는 방법을 찾아야만 합니다!","제가 초자연적 현상에 별난 흥미를 가지고 있는 기술자를 한 명 알고 있습니다. 그는 죽은 자와 얘기할 수 있는 기계를 만들 수 있다고 주장하고 있습니다!","당신이 모은 피는 그에게 가져다 주기 위한 것이랍니다. 가젯잔으로 가서 그의 도움을 받는 대가로 그 피를 건네주십시오!"}, {"봉인된 혈액 용기를 타나리스 사막의 가젯잔에 있는 먹스 마나스크램블러에게 가져가야 합니다."}}, [8923] = {"초자연적 장치",...
Lua
.offset,opc.u24,file.strings[code[++i]]) break case Op.JMP_L: case Op.JE_L: case Op.JNE_L:{ const lbl = labels.get(opc.u24) const op = jumpMap.get(opc.op) if(typeof op == "undefined") throw new Error() if(typeof lbl == "undefined"){ lookback.push(this.offset) this....
Typescript
!(data1, data); assert_eq!(data2, data); assert_eq!(data4, data); assert_eq!(data8, data); } #[test] fn declare_byte_can_get_set() { let mut db = Instruction::with_declare_byte_16(0x77, 0xA9, 0xCE, 0x9D, 0x55, 0x05, 0x42, 0x6C, 0x86, 0x32, 0xFE, 0x4F, 0x34, 0x27, 0xAA, 0x08); db.set_declare_byte_value(0, 0xE2); ...
Rust
consumeStuff(STUFF_COAL, COAL_USED_BY_MILL); else consumeStuff(STUFF_LOVOLT, COAL_USED_BY_MILL * MILL_POWER_PER_COAL); consumeStuff(STUFF_FOOD, FOOD_USED_BY_MILL); consumeStuff(STUFF_LABOR, MILL_LABOR); produceStuff(STUFF_GOODS, GOODS_MADE_BY_MILL); ++wor...
C++
}; const docMouseUp = () => { $(document).off('mouseup'); $(document).off('mousemove'); $(document).on('mousedown', docMouseDown); }; $(document).on('mousedown', docMouseDown); } export function getNum(str: string): string { return str.split('(')[1].split(')')[0]; } export function fillColor(d:...
Typescript
.set_prev_node(current_node.get_prev_node()) ``` ``` // Java kod public void delete_form_list_by_data(int data){ // Burada, current, tapılan node-u, data-ya əsasən silirik. Node current_node = head; boolean found = false; // current_node None olsa dayan, found True ols...
Markdown
REVOKE`) 사용자 계정을 생성한 후에는 해당 사용자에게 필요한 권한을 부여하고, 불필요한 권한은 회수해야 합니다. * **`GRANT`**: 사용자에게 특정 권한을 부여합니다. **기본 문법:** ```sql GRANT [권한 종류] ON [객체 종류] [객체 이름] TO 'username'@'hostname'; ``` * **권한 종류:** `SELECT`, `INSERT`, `UPDATE`, `DELETE`, `CREATE`, `DROP`, `EXECUTE`(프로시저 실행), `ALL PRIVILEGES`(모...
Markdown
rce_project / trade_config 11. 【推荐】库名与应用名称尽量一致。 11. 【推荐】如果修改字段含义或对字段表示的状态追加时,需要及时更新字段注释。 11. 【推荐】字段允许适当冗余,以提高查询性能,但必须考虑数据一致。冗余字段应遵循: 1)不是频繁修改的字段。 2)不是varchar超长字段,更不能是text字段。 正例:商品类目名称使用频率高,字段长度短,名称基本一成不变,可在相关联的表中冗余存储类目名称,避免关联查询。 14. 【推荐】单表行数超过500万行或者单表容量超过2GB,才推荐进行分库分表。 说明:如果预计三年后的数据量根本达不到这个级别,请不要...
Markdown
day: number ) { const key = STORAGE_VALUES.DAY(year, day); record.end = record.end + addMinutes * 60 * 1000; this._setRecordsToStorage(year, day, this.records.get(key)); } public getLeftDay(): [number, number] { if (!this.selectedYear || !this.selectedDay) { return null; } // The ...
Typescript
pmiaowu 迪哥讲事 2024-05-01 22:30 # 0x00 前言 文章中的项目地址统一修改为: a.test.com 保护厂商也保护自己 # 0x01 OAuth2.0 经常出现的地方 1:网站登录处 ![](https://mmbiz.qpic.cn/mmbiz_png/YmmVSe19Qj4ELGpia2CaEeFlX7z8foQZcU5aVTAiaFkDKn9dgM1t9dgeue3WkiaSCdgGdpG7QOMR0vxrJoEs2LK5g/640?wx_fmt=png&from=appmsg "") 2:社交帐号绑定处 ...
Markdown
x1c] cmp r0, #0 beq _08023A82 cmp r7, #0 beq _08023A82 ldrh r0, [r5, #0x12] adds r0, #0xa strh r0, [r7, #0x10] ldrh r0, [r5, #0x14] strh r0, [r7, #0x12] adds r0, r7, #0 bl UpdateSpriteAnimation adds r0, r7, #0 bl DisplaySprite _08023A82: pop {r4, r5, r6, r7} pop {r0} bx r0 thumb_func_start sub_8023A88...
Assembly
E4BDC 000E083C 38 80 1C 52 */ li r4, 0x1c52 /* 800E4BE0 000E0840 38 A0 00 1A */ li r5, 0x1a /* 800E4BE4 000E0844 4B FF FA C1 */ bl func_800E46A4 /* 800E4BE8 000E0848 38 7D 00 60 */ addi r3, r29, 0x60 /* 800E4BEC 000E084C 38 80 1C 4D */ li r4, 0x1c4d /* 800E4BF0 000E0850 38 A0 00 1C */ li r5, 0x1c /* 800E4BF4 000E...
Assembly
import 'package:flutter/material.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:example/main.dart'; void main() { testWidgets('Counter increments smoke test', (WidgetTester tester) async { // Build our app and trigger a frame. await tester.pumpWidget(MyApp()); // Verify that ...
Dart
Runner import org.jetbrains.r.console.jobs.RJobTask import org.jetbrains.r.console.jobs.RJobsToolWindowFactory import org.jetbrains.r.rinterop.RInterop import org.jetbrains.r.rinterop.RObject import org.jetbrains.r.rinterop.rstudioapi.RStudioApiUtils.findFileByPathAtHostHelper import org.jetbrains.r.rinterop.rstudioapi...
Kotlin
hash = tcp_app_hashkey(cp->vport); rcu_read_lock(); list_for_each_entry_rcu(inc, &ipvs->tcp_apps[hash], p_list) { if (inc->port == cp->vport) { if (unlikely(!ip_vs_app_inc_get(inc))) break; rcu_read_unlock(); IP_VS_DBG_BUF(9, "%s(): Binding conn %s:%u->" "%s:%u to app %s on port %u\n", ...
C
patcher_main_exec_async$f` import java.lang.foreign.Arena import java.lang.foreign.MemorySegment import java.util.concurrent.ConcurrentLinkedQueue import java.util.concurrent.CountDownLatch import kotlin.concurrent.Volatile public object GrandCentralDispatch : AutoCloseable { @Volatile private var isClosed = f...
Kotlin
he first 20 bytes of given hash, probably L1 block hash from the current canonical L1 chain. func (b *SpanBatch) CheckOriginHash(hash common.Hash) bool { return bytes.Equal(b.L1OriginCheck[:], hash.Bytes()[:20]) } // CheckParentHash checks if the parentCheck matches the first 20 bytes of given hash, probably the curr...
Go
having 可以。因为执行WHERE代码时,可能尚未确定列值。 where 不可以使用合计函数。一般需用合计函数才会用 having SQL标准要求HAVING必须引用GROUP BY子句中的列或用于合计函数中的列。 f. ORDER BY 子句,排序子句 order by 排序字段/别名 排序方式 [,排序字段/别名 排序方式]... 升序:ASC,降序:DESC 支持多个字段的排序。 g. LIMIT 子句,限制结果数量子句 仅对处理好的结果进行数量限制。将处理好的结果的看作是一个集合,按照记录出现的顺序,索引从0开始。 limit 起始位置, 获取条数 省略第一...
Markdown
"content": "Глупые люди скажут: «Что заставило их отвернуться от киблы, к которой они поворачивались лицом прежде?». Скажи: «Восток и запад принадлежат Аллаху. Он наставляет, кого пожелает, на прямой путь»" }, { "surah_number": 2, "verse_number": 143, "content": "Мы сделали вас общин...
Dart
artToWriteNewDraftArticle.Command( authorId = UserId(user.entityId.value), ) // when val info = sut.handle(command) // then info shouldNotBe null info.articleId shouldNotBe null // 상태 검증 // 영속성 컨텍스트 초기화 em.clear() // ...
Kotlin
the UART error interrupt is\n asserted"] ENABLE, } impl From<DMAONERR_A> for bool { #[inline(always)] fn from(variant: DMAONERR_A) -> Self { match variant { DMAONERR_A::DISABLE => false, DMAONERR_A::ENABLE => true, } } } #[doc = "Reader of...
Rust
c_method("java/util/Locale$FilteringMode\0", "valueOf\0", "(Ljava/lang/String;)Ljava/util/Locale$FilteringMode;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Non-public method // /// [FilteringMode]...
Rust