content
stringlengths
2
6.21k
label
stringclasses
16 values
--------------------- /// Helper for static interface //---------------------------------------------------------------------------------------- class ObservableStaticInterface { MAXON_INTERFACE_NONVIRTUAL(ObservableStaticInterface, MAXON_REFERENCE_NONE, "net.maxon.interface.observablestatic"); public: static MAXON_M...
C
gId!: string; @OneToOne((type) => Wedding, (wedding) => wedding.eventId) wedding!: Wedding; } import { Rol } from '../enums/rol'; import firebase from 'firebase/app'; import { clienteEstado } from '../enums/clienteEstados'; import { Registro } from './registro'; export class User { uid?: string; email: string...
Typescript
encodeURIComponent(key), "=", options.raw ? value : encodeURIComponent(value), options.expires ? "; expires=" + expires.toUTCString() : "", // use expires attribute, max-age is not supported by IE "; path=" + (options.path || cookiePrefix)...
Typescript
using System.Windows.Input; using static RapidXaml.EventToCommand; namespace RapidXaml; public partial class EventToCommand : BindableObject { public static ICommand GetUnloaded(BindableObject obj) => (ICommand)obj.GetValue(UnloadedProperty); public static void SetUnloaded(BindableObject obj, ICommand value) ...
C#
<p class="question"><code>\large{<var>DIVIDEND</var> \div <var>DIVISOR</var> = {?}}</code></p> <div class="solution" data-type="number"><var>QUOTIENT</var></div> </div> </div> <div class="hints"> <div> <p>We prefer to divide by a whole numb...
HTML
対象物を共有する媒体・方法・文脈に照らして、いかなる合理的な方法でも満たすことができます。例えば、必要とされる情報を含むリソースのURIやハイパーリンクを付すことで条件を満たすことが合理的な場合があります。</li> <li id="s3a3">許諾者からリクエストされれば、あなたは<a href="#s3a1A">第3条(a)(1)(A)</a>に掲げるいかなる情報も合理的に実施可能な範囲で削除しなければなりません。</li> </ol> </li> <li id...
HTML
{ final String sql = "select *\n" + "from table(topn(table orders partition by productid, 3))"; sql(sql).ok(); } @Test void testTableFunctionWithMultiplePartitionKeys() { final String sql = "select *\n" + "from table(topn(table orders partition by (orderId, productid), 3))"; sql(sq...
Java
istSize]; double timeLabel = 0; for (int i = 0; i < listSize; i++) { newList[i] = new BigDecimal (timeLabel); newList[i] = newList[i].setScale (3, BigDecimal.ROUND_HALF_UP); timeLabel += MAJOR_INCREMENT_IN_TIME[zoomLevel]; } scaleLabelList = newList; } ...
Java
NullValueOptEnclosed bool } // Restore for FieldsClause func (n *FieldsClause) Restore(ctx *format.RestoreCtx) error { if n.Terminated == nil && n.Enclosed == nil && n.Escaped == nil && n.DefinedNullBy == nil { return nil } ctx.WriteKeyWord(" FIELDS") if n.Terminated != nil { ctx.WriteKeyWord(" TERMINATED BY ...
Go
loopE:; vzeroupper movq 0(%rsp), %rbx; movq 8(%rsp), %rbp; movq 16(%rsp), %r12; movq 24(%rsp), %r13; movq 32(%rsp), %r14; movq 40(%rsp), %r15; addq $STACKSIZE, %rsp; ret EPILOGUE
Assembly
2: movq 0(<bp=%rsi),>pos64=%r8 movq 0(%rsi),%r8 # qhasm: v >>= 64 # asm 1: psrldq $8,<v=int6464#1 # asm 2: psrldq $8,<v=%xmm0 psrldq $8,%xmm0 # qhasm: f64 ^= f60 # asm 1: pxor <f60=int6464#3,<f64=int6464#5 # asm 2: pxor <f60=%xmm2,<f64=%xmm4 pxor %xmm2,%xmm4 # qhasm: f63 ^= v # asm 1: pxor <v=int6464#1,<f63=...
Assembly
for some exercise, to its vibrant restaurant and bar scene, to the exciting array of major and global sporting events such as the AFL, Australian Open Tennis and Formula One Grand Prix. I love spending time with family and friends.</p> <p>I’m looking forward to working with our customers and partners on their project...
HTML
ame="TSweepHitHandler">Type of the callbacks executed when a sweep impacts an object in the scene.</typeparam> /// <param name="shape">Shape to sweep.</param> /// <param name="pose">Starting pose of the sweep.</param> /// <param name="velocity">Velocity of the swept shape.</param> /// <p...
C#
下路过。这样我就知道信箱中的情报已经被你获取了。 以上这些,就是对咱们俩要执行秘密任务的代码实现。其中的条件变量的用法需要你特别注意。 再强调一下,只要条件不满足,我就会通过调用`sendCond`变量的`Wait`方法,去等待你的通知,只有在收到通知之后我才会再次检查信箱。 另外,当我需要通知你的时候,我会调用`recvCond`变量的`Signal`方法。你使用这两个条件变量的方式正好与我相反。你可能也看出来了,利用条件变量可以实现单向的通知,而双向的通知则需要两个条件变量。这也是条件变量的基本使用规则。 你可以打开demo61.go文件,看到上述例子的全部实现代码。 ## 总结 我们这两期的文章会围绕条件变量的内容...
Markdown
OldAddressFromPKH(pubkey, param.PubKeyHashAddrID)) ri++ } } reply.CoinTypes = cts reply.WitAddresses = was reply.LegacyAddresses = las return nil } //func oldAddressPubKeyHash(pkHash []byte, netID byte) (string, error) { // // Check for a valid pubkey hash length. // if len(pkHash) != ripemd160.Size { //...
Go
UrlFragment }]; } if (oAuthTypes !== null) { if (hasMultipleAuthTypes(oAuthTypes) && !ACG_RESTRICTED_APIS.includes(name)) { oAuthTypes.forEach(type => { const isCCGType = OAUTHTYPES[type] === CLIENT_CREDENTIALS_GRANT; tags = [...tags, { showLock: isCCGType, tagName: OAUTHTYPES[type] as st...
Typescript
using DataUtils; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace WebJob.Office365ActivityImporter.Engine.Graph.User.UserApps { /// <summary> /// Base loader & saver. Retries failed loads /// </summary> public abstract class AbstractUserAppLoad...
C#
ker" id="ref-for-dfn-service-worker⑥④">Service workers</a> and <a href="#extensibility">extensions</a> that <a href="#extension-to-service-worker-global-scope">define event handlers</a> <em>may</em> define their own behaviors, allowing the <a data-link-type="dfn" href="#extendableevent-extend-lifetime-promises" id="ref...
HTML
import os from dotenv import load_dotenv from modules.database import DatabaseManager load_dotenv() db_manager = DatabaseManager() result = db_manager.execute_query("SELECT project_id FROM test_cases WHERE id = 2") if result: project_id = result[0]['project_id'] print(f'Project ID for test_case 2: {project_id...
Python
* AX */ mov dx, 12(bx) / register unsigned n; /* DX */ / mov di, 8(bx) / { register char *cp = src; /* DI */ mov cx, dx / register cnt = n; /* CX */ / jcxz 0f / for (; cnt != 0; --cnt) cld / if (*cp++ == c) repne / break; scasb / jne 0f / if (cp[-1] == c) sub dx, cx / { n -= ...
Assembly
sh = new byte[20]; peer_id = new byte[20]; is.read( hash ); is.read( peer_id ); downloaded = is.readLong(); left = is.readLong(); uploaded = is.readLong(); event = is.readInt(); ip_address = is.readInt(); num_want = is.readInt(); port = is.readShort(); } public byte[] getHash() { retu...
Java
_STATE_VERSION_V1"></a> <pre><code><b>const</b> <a href="../sui_system/sui_system_state_inner.md#sui_system_sui_system_state_inner_SYSTEM_STATE_VERSION_V1">SYSTEM_STATE_VERSION_V1</a>: u64 = 1; </code></pre> <a name="sui_system_sui_system_state_inner_EXTRA_FIELD_EXECUTION_TIME_ESTIMATES_KEY"></a> <pre><code><b...
Markdown
okia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[p,/_/g," "],[f,"Nokia"],[b,O]],[/(pixel c)\b/i],[p,[f,x],[b,g]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[p,[f,x],[b,O]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[p,[f,D],[b,O]],[/sony tablet [ps...
JavaScript
) 00000100 <.LBE141>: 100: 4462 lw s0,24(sp) 102: 40f2 lw ra,28(sp) 104: 4942 lw s2,16(sp) 106: 49b2 lw s3,12(sp) 108: 4a92 lw s5,4(sp) 10a: 85a6 mv a1,s1 10c: 000a0513 mv a0,s4 10c: R_RISCV_LO12_I vif_m...
Assembly
/* * Generated by asn1c-0.9.29 (http://lionet.info/asn1c) * From ASN.1 module "ITS-Container" * found in "asn1/TS102894-2v131-CDD.asn" * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -R` */ #ifndef _SteeringWheelAngleValue_H_ #define _SteeringWheelAngleValue_H_ #include "asn_application.h" /* Inc...
C
es ) lags = lagged_sequence_values( self.lags_seq, past_target_scaled[:, : -self.context_length, ...], past_target_scaled[:, -self.context_length :, ...], dim=-1, ) # add loc and scale to past_target_patches as additional features ...
Python
/* * Copyright (c) 1991, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyr...
C
) => parseInt(byte, 2)); } static binToStr(bin: string): string { return this.bytesToStr(this.binToBytes(bin)); } static binToHex(bin: string): string { return this.bytesToHex(this.binToBytes(bin)); } static hexToBytes(hex: string): number[] { return ((hex.length % 2 ? '0' + hex : hex) .match(/.{1,2}/...
Typescript
stop_service": { print( "stop_service by kotlin, isStart:${gFFI.serverModel.isStart}"); if (gFFI.serverModel.isStart) { gFFI.serverModel.stopService(); } break; } } } catch (e) { debugPrintStack(label: "Met...
Dart
oplevel); window.set_title("Panel"); window.set_default_size(640, 32); window.set_decorated(false); use protos::gtkclient::lsr::{Anchor, RequestsTrait}; let layer_surface = gtkclient::get_layer_surface(&mut model.layer_shell, &mut window, gtkclient::lsh::Layer::Top); laye...
Rust
c-0.553,0-1-0.448-1-1v-13c0-0.552,0.447-1,1-1s1,0.448,1,1v13C5.5,19.052,5.053,19.5,4.5,19.5z"/> </g> <g> <path d="M7.5,23.5c-0.553,0-1-0.448-1-1v-21c0-0.552,0.447-1,1-1s1,0.448,1,1v21C8.5,23.052,8.053,23.5,7.5,23.5z"/> </g> <g> <path d="M10.5,22.5c-0.553,0-1-0.448-1-1v-19c0-0.552,0.447-1,1-1s1,0.448,1,1v19C11.5,22.052,...
HTML
&quot;:&quot;HEADING&quot;,&quot;label&quot;:null}" aria-labelledby="tooltip-6f18fb9d-34ee-43e4-9783-15540e3e13a1" type="button" data-view-component="true" class="Button Button--iconOnly Button--invisible Button--medium" tabindex="0" style=""> <svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width...
HTML
e box confirms no space. pub sctps_pdrpdizrw: u32, /// Packet drop, data did not match TSN. pub sctps_pdrpbadd: u32, /// Packet drop, TNS's marked for Fast Retran. pub sctps_pdrpmark: u32, /// Number of iterator timers that fired. pub sctps_timoiterator: u32, /// Number of T3 data time o...
Rust
); return scanInstance; } @Override public String toString() { return "Scan ID " + scanInstance.getScanId(); } } /******************************************************************************* * Copyright (c) 2011 Subgraph. * All rights reserved. This program and the accompanying materials * are made avai...
Java
能聊天机器人? | | 强化学习 | 如何使用 Q-learning 算法训练一个玩 Atari 游戏的 AI? | | 数据库管理 | 如何通过 SQL 查询获取两个表之间的差集? | | 深度学习 | 如何在 TensorFlow 中实现一个多层感知机(MLP)模型? | | 生物学 | 解释细胞膜是什么,它的功能和组成成分是什么? | | 金融投资 | 如何计算股票收益率,你能提供一个实际的案例吗? | | 文学创作 | 分析《红楼梦》中林黛玉与贾宝玉之间的关系,你认为她们的命运有何异同? | | 历史事件 | 描述第二次世界大战期间纳粹德国对犹太人的迫害行为,这对当时的欧洲带来了什么影响? | | 化学实验 | 如何制备高浓...
Markdown
pattpos:DC.W $00 dmacon: DC.W $00 samplestarts: DS.L $1F voice1: DS.W 10 DC.W $01 DS.W 3 voice2: DS.W 10 DC.W $02 DS.W 3 voice3: DS.W 10 DC.W $04 DS.W 3 voice4: DS.W 10 DC.W $08 DS.W 3 Section data data: ifne system incbin d:\sndtrack\modules\tcn\new_tec7.mod incbin d:\sndtrack\modules\tcn\grafik.mod ...
Assembly
MODULE_0__.memo((param)=>{\n let { forcedTheme: e, storageKey: a, attribute: n, enableSystem: g, enableColorScheme: m, defaultTheme: c, value: o, attrs: y, nonce: h } = param;\n let k = c === \"system\", w = n === \"class\" ? \"var d=document.documentElement,c=d.classList;\".concat(\"c.remove(\".concat(y.map((u)=...
JavaScript
Text = "Tornado"; this.buttonTornado.UseVisualStyleBackColor = true; this.buttonTornado.Click += new System.EventHandler(this.buttonTornado_Click); // // buttonMeltdown // this.buttonMeltdown.Location = new System.Drawing.Point(3, 61); ...
C#
}); test("getWorkflowErrors() when on.push has a trailing comma", (t) => { const errors = actionsutil.getWorkflowErrors( yaml.safeLoad(` name: "CodeQL" on: push: branches: [master, ] pull_request: # The branches below must be a subset of the branches above branches: [master] `) ); t.deepEqu...
Typescript
fra" }, { "th-TH", "th" }, }; private string appId = ""; private string appSecret = ""; private string apiUrl = "https://fanyi-api.baidu.com/api/trans/vip/translate"; public string AppId { get => appId; set { ...
C#
name][org.jetbrains.kotlinx.dataframe.DataColumn.name]` }.`[dropLast][ColumnSet.dropLast]`(5) }` * * `df.`[select][org.jetbrains.kotlinx.dataframe.DataFrame.select]` { `[dropLast][ColumnsSelectionDsl.dropLast]`(1) }` * * `df.`[select][org.jetbrains.kotlinx.dataframe.DataFrame.select]` { myColumnGrou...
Kotlin
skID string, st *wf.TaskState) error { if st.Name == l.taskName && st.Finished && st.Error != "" { l.callback(st.Error) } l.Listener.TaskStateChanged(id, taskID, st) return nil } package integratedatastructurewithhandler import ( "strings" "github.com/golangast/gentil/utility/ff" "github.com/golangast/switch...
Go
么这里使用到的机制和龙舟比赛开赛时差不多:每个船上的舵手都举起手来,以表示他们还没有准备好。只要有舵手的手是举着的,那么裁判就不能让比赛开始。当所有舵手的手都放下后,比赛才能开始;在比赛还未开始或感觉自己船队的情况有变时,舵手可以再次举手。 当线程想要删除一个对象,那么它就必须检查系统中其他线程是否持有风险指针。当没有风险指针的时候,那么它就可以安全删除对象。否则,它就必须等待风险指针的消失了。这样,线程就得周期性的检查其想要删除的对象是否能安全删除。 看起来很简单,在`C++`中应该怎么做呢? 首先,需要一个地点能存储指向访问对象的指针,这个地点就是风险指针。这个地点必须能让所有线程看到,需要其中一些线程可以对数据结构进行访...
Markdown
v4(); db1.apply(Operation::Create { uuid }).unwrap(); test_server.set_snapshot_urgency(SnapshotUrgency::Low); sync(&mut server, db1.storage.txn()?.as_mut(), true).unwrap(); // assert that a snapshot was not added, because we indicated // we wanted to avoid snapshots and it was ...
Rust
tartup to see if enabling the GODEBUG would result in a // different default GOMAXPROCS. If so, we increment runtime/metrics // /godebug/non-default-behavior/cgroupgomaxprocs:events. procs := getCPUCount() cgroupProcs := adjustCgroupGOMAXPROCS(procs, c) if procs != cgroupProcs { containermaxprocsNonDefault = tru...
Go
unshuffle {x.shape}') # x = pixel_shuffle(x) # print(f'x afters unshuffle {x.shape}') # ------------------------------------------------ # x = rearrange(x, '(b n) c h w -> b n c h w', n=4).contiguous() # x = rearrange(x, 'b (nh nw) c h w -> b c h nh w nw', nh=2, nw=2).contiguou...
Python
e, sizeof(value)) == S_OK) { Logger::log(L"{}: {} ", dwmAttributesReadable[attr], value); } else { Logger::log(L"Failed to get {}", dwmAttributesReadable[attr]); } } void LogDwmRect(HWND window, DWMWINDOWATTRIBUTE attr, RECT& value) { if (DwmGetWindowAttribute(window, attr, &val...
C++
rrect(dpi(15)), color = active_color, background_color = active_background_color, widget = wibox.widget.progressbar, } awesome.connect_signal("signals::volume", function(volume, muted) local bg_color if muted then fill_color = muted_color bg_color = muted_background_color else ...
Lua
</h1> <h2>Description</h2> <div id="description"> <p>The <code>checkbox</code> plugin makes multiselection possible using three-state checkboxes.</p> </div> <h2 id="configuration">Configuration</h2> <div class="panel configuration"> <h3>override_ui</h3> <p class="meta">A boolean. Default is <code>false</code>.</p> <p...
HTML
#ifndef VARYING_DENSITY_VOLUME_H #define VARYING_DENSITY_VOLUME_H #include "volume.h" /* * Base for volumes that have a varying density but have constant scattering, * absorption, etc. Provides overloads of absoprtion, scattering, etc. that * multiply the value with the volume density at the point */ class Varyin...
C
return function.hashCode() } } class ItemConstraintInfo( val group: ItemNumberContraintGroup, val amountAddedByItem: Int ) /* * This file is part of LiquidBounce (https://github.com/CCBlueX/LiquidBounce) * * Copyright (c) 2015 - 2025 CCBlueX * * LiquidBounce is free software: you can redistribute it ...
Kotlin
KCW' 'NsaWVudF9pZBgGIAEoDVIIY2xpZW50SWQ='); @$core.Deprecated('Use poeStatsDescriptor instead') const PoeStats$json = { '1': 'PoeStats', '2': [ {'1': 'poe_state', '3': 1, '4': 1, '5': 14, '6': '.SpaceX.API.Device.PoeState', '10': 'poeState'}, {'1': 'poe_power', '3': 2, '4': 1, '5': 2, '10': 'poePower'}...
Dart
} // when the player moves the selected gem, we need to swap the position of the selected gem with the gem currently in that position tempShiftedGem = getGem(cursorGemPosX, cursorGemPosY); if (tempShiftedGem === selectedGem) ...
Typescript
BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by protoc-gen-go_gapic. DO NOT EDIT. // [START tpu_v1_generated_Tpu_ListNodes_sync] package main import ( "c...
Go
d="m22.61 18.99-9.08-9.08c.93-2.34.45-5.1-1.44-7C9.79.61 6.21.4 3.66 2.26L7.5 6.11 6.08 7.52 2.25 3.69C.39 6.23.6 9.82 2.9 12.11c1.86 1.86 4.57 2.35 6.89 1.48l9.11 9.11c.39.39 1.02.39 1.41 0l2.3-2.3c.4-.38.4-1.01 0-1.41zm-3 1.6-9.46-9.46c-.61.45-1.29.72-2 .82-1.36.2-2.79-.21-3.83-1.25C3.37 9.76 2.93 8.5 3 7.26l3.09 ...
HTML
worse_case_SCA, packing, framing, cis_cnt, (struct ble_hci_le_cis_params_test *)cis_params)) != HCI_SUCCESS) { BTM_TRACE_ERROR("iso set cig params test, cmd err=0x%x", err); status = BTM_HCI_ERROR | err; } return status; } void btm_ble_create_cis_cmd_status(tBTM_BLE_ISO_CB_PAR...
C
() { List<CSSRule> rules = parseRules('.foo h6{color: red}'); expect(rules.length, 1); expect((rules[0] as CSSStyleRule).selectorGroup.selectorText, '.foo h6'); expect((rules[0] as CSSStyleRule).declaration.getPropertyValue('color'), 'red'); }); test('8', () { List<CSSRule> rules ...
Dart
{ * const classes = useStyles(); * * return ( * <AppBar {...props}> * <Typography * variant="h6" * color="inherit" * className={classes.title} * id="react-admin-title" * /> * <Search> * ...
Typescript
2.DescribeLoadBalancersInput{ PageSize: aws.Int64(20), } for { lbOutput, err := albClient.DescribeLoadBalancers(req) if err != nil { return nil, err } loadBalancers = append(loadBalancers, lbOutput.LoadBalancers...) if aws.StringValue(req.Marker) == "" { break } req.SetMarker(aws.StringValue(req...
Go
pose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp public fun createMediumThinOutlineArrowDownCircleImageVector(): ImageVector = ImageVector.Builder( name = "icon_arrow-down-circle_medium_thin_outline", defaultWidth = 24.0.dp, defaultHeight = 24.0.dp, viewportWidth = 24.0f, viewport...
Kotlin
egra" L["Black Dragonscale Boots"] = "Botas de Dragontina Negra" L["Black Dragonscale Breastplate"] = "Coraza de Dragontina Negra" L["Black Dragonscale Leggings"] = "Leotardos de Dragontina Negra" L["Black Dragonscale Shoulders"] = "Sobrehombros de Dragontina Negra" L["Black Grasp of the Destroyer"]...
Lua
_e64 v5, v255, v2 // CHECK: [0x05,0x00,0x2f,0xd1,0xff,0x05,0x02,0x00] v_max_u16_e64 v5, s1, v2 // CHECK: [0x05,0x00,0x2f,0xd1,0x01,0x04,0x02,0x00] v_max_u16_e64 v5, s101, v2 // CHECK: [0x05,0x00,0x2f,0xd1,0x65,0x04,0x02,0x00] v_max_u16_e64 v5, flat_scratch_lo, v2 // CHECK: [0x05,0x00,0x2f,0xd1,0x66,0x04,0x02,0x00] ...
Assembly
_cacheLocker.ExitWriteLock(); } } internal void SetToCache<T>(string name, T val) { _cacheLocker.EnterWriteLock(); try { _cache.Set(name, val, DateTime.Now.AddMinutes(1)); } finally { _cacheLocker.ExitWriteLock(...
C#
y->u.counter.value; case METRICS_TYPE_GAUGE: return entry->u.gauge.value; case METRICS_TYPE_HISTOGRAM: tor_assert_unreached(); return 0; } // LCOV_EXCL_START tor_assert_unreached(); // LCOV_EXCL_STOP } /** Return store entry value for the specified bucket. * * Note: entry **must** be a histo...
C
- which channels used for testing _________________________________________________________________________ [Matlab code]( https://github.com/spm/spm/blob/main/spm_eeg_inv_prep_modes_xval.m ) Copyright (C) 1995-2025 Functional Imaging Laboratory, Department of Imaging Neuroscience, UCL ...
HTML
sKeyValue_messageType{} type fastReflection_GenesisKeyValue_messageType struct{} func (x fastReflection_GenesisKeyValue_messageType) Zero() protoreflect.Message { return (*fastReflection_GenesisKeyValue)(nil) } func (x fastReflection_GenesisKeyValue_messageType) New() protoreflect.Message { return new(fastReflectio...
Go
setTimeout( handler: () -> Unit, timeout: Int ): Any = NSTimer( fireDate = NSDate(NSDate().timeIntervalSince1970 + (timeout.toDouble() / 1000)), interval = 0.0, repeats = false ) { handler() }.also { NSRunLoop.currentRunLoop().addTimer(it, NSRunLoopCommonModes) } /** * clears the previous timeout...
Kotlin
those models which are toggled on are included.<br /> <code class="s">(modelPaths:Array) <span class="op">reference.</span>GetCreatureModelPaths <span class="op">creature:ref</span></code></p> <h3><a id="Combat_Style">Combat Style</a></h3> <p>Combat styles are used by NPCs and creatures to determine behavior in comb...
HTML
hieuwu.groceriesstore.data.repository.OrderRepository import com.hieuwu.groceriesstore.domain.models.OrderModel import com.hieuwu.groceriesstore.domain.usecases.GetProductDetailUseCase import com.hieuwu.groceriesstore.utilities.OrderStatus import java.util.* import kotlinx.coroutines.flow.MutableStateFlow import kotlin...
Kotlin
eral: { web: { Website: 'https://docs.google.com/document/d/1G5JcyxmywcTdNeaSGxUNycl9mtCdGkF4MYPVxEBH4SY/mobilebasic?urp=gmail_link', }, email: ['celesteperilla@gmail.com'], }, }, loc: LOCATIONS.USA.MD_BALTIMORE, }, { contentTitle: 'BENZIE COUNTY COVID...
Typescript
docker run -ti --name emacs -v /tmp/.X11-unix:/tmp/.X11-unix:ro\ -e DISPLAY="unix$DISPLAY"\ -e UNAME="emacser"\ -e GNAME="emacsers"\ -e UID="1000"\ -e GID="1000"\ -v <path_to_your_.emacs.d>:/home/emacs/.emacs.d\ -v <path_to_your_workspace>:/mnt/workspace\ jare/emacs emacs ``` That's it! Now you should see Emac...
Markdown
= esp->regs + MAC_ESP_PDMA_IO_OFFSET; mep->pdma_regs = NULL; break; case MAC_SCSI_QUADRA2: esp->cfreq = 25000000; esp->regs = (void __iomem *)(MAC_ESP_REGS_QUADRA2 + dev->id * MAC_ESP_REGS_SPACING); mep->pdma_io = esp->regs + MAC_ESP_PDMA_IO_OFFSET; mep->pdma_regs = (void __iomem *)(MAC_ES...
C
ree(priv->trts); kfree(priv->arts); free_priv: kfree(priv); return result; } static int int3400_thermal_remove(struct platform_device *pdev) { struct int3400_thermal_priv *priv = platform_get_drvdata(pdev); acpi_remove_notify_handler( priv->adev->handle, ACPI_DEVICE_NOTIFY, int3400_notify); cleanup_odvp(...
C
.append(attributeCriteria.getAttributeCode()); cnt++; } if (criteria.getLanguage() != null && !criteria.getLanguage().equals("_all")) { qs.append(" and povd.language.code=:lang"); } } /**/ if(criteria.getOrigin().equals(ProductCriteria.ORIGIN_SHOP) && CollectionUtils.isNotEmpty(criteria...
Java
d openidconnect ([#5124](https://github.com/juspay/hyperswitch/pull/5124)) ([`ce7d0d4`](https://github.com/juspay/hyperswitch/commit/ce7d0d427d817eb4199f2f6ea8ea86a04bd98a26)) - Add endpoint for terminate auth select ([#5135](https://github.com/juspay/hyperswitch/pull/5135)) ([`eb6afd6`](https://github.com/juspay/hyp...
Markdown
p { margin-top: 0; padding-top: 0; } .notice a { color: #bdc1c4; } .notice a:hover { color: #717476; } .notice code { background-color: #fcfcfc; } .notice ul:last-child { margin-bottom: 0; } /* Primary notice */ .notice--primary { margin: 2em 0 !important; padding: 1em; font-...
CSS
Match one of several values</dt> <dd>You can separate several values by '|', and this will match <strong>any</strong> of those values. For example, <code>Spain|France|England</code> would match any of those three countries. Note that to require that <strong>all</strong> of those values m...
HTML
, "u_": 236, "vo": 237, "\xce": 238, "_V": 239, "_nu": 240, "_se": 241, "c": 242, "dik": 243, "dö": 244, "enava": 245, "en\xc3": 246, "fü": 247, "ie": 248, "jäf": 249, "k:": 250, "k:_": 251...
Go
``` 「`GameObject` のコンテキスト」とはどういうことかというと、Debug.Log() 系のエラー出力メソッドには `GameObject` を渡すオーバーロードが存在している。 ```c# public static void Log(object message); public static void Log(object message, Object context); ``` コンテキストとして `GameObject` を渡した場合、**Console** に表示されたエラーメッセージをクリックすると、**Hierarchy** 内でそのオブジェクトがハイライト表示されるようになる。 #### ...
Markdown
'99930002', '1', '', '', '', '', 'AddBuff', '2601', '', '8060,8214', '', '', '', '赫拉使用二技能治疗时,额外附加赫拉生命上限1%的护盾值'}, {'315002', '', '99930002', '1', '', '', '', '', 'AddBuff', '2602', '', '8060,8214', '', '', '', '赫拉使用二技能治疗时,额外附加赫拉生命上限2%的护盾值'}, {'315003', '', '99930002', '1', '', '', '', '', 'AddBuff', '2603', '', '8060,82...
Lua
this.chkNoGoto.AutoSize = true; this.chkNoGoto.Location = new System.Drawing.Point(11, 14); this.chkNoGoto.Name = "chkNoGoto"; this.chkNoGoto.Size = new System.Drawing.Size(138, 17); this.chkNoGoto.TabIndex = 12; this.chkNoGoto.Text = "Don\'t write goto at 0x0...
C#
uff0c\u9996\u5148\u8981\u7167\u987e\u5c71\u5934\u3002", "type": "paragraph"}, {"text": "\u8c22\u526f\u603b\u7406\uff1a\u8bb2\u5f97\u5f88\u597d\u561b\uff01", "type": "paragraph"}, {"text": "\u519c\u673a\uff1a\u8042\u5143\u6893\u540c\u5fd7\uff0c\u515a\u548c\u6bdb\u4e3b\u5e2d\u4fe1\u4efb\u4f60\uff0c\u7ed9\u4f60\u5f88\u9ad...
HTML
= "ExpanderLabel", text = "►" }; _expanderLabel.AddToClassList("expander"); _groupImage = new Image { name = "TestImage", image = GetIconByStatus() }; _groupImage.AddToClassList("group-image"); _groupLabel = new L...
C#
region: &metapb::Region, ) -> Result<Option<Vec<u8>>> { let cf = rocksdb_util::get_cf_handle(db, cfname)?; let start = keys::enc_start_key(region); let end = keys::enc_end_key(region); let range = Range::new(&start, &end); let collection = db.get_properties_of_tables_in_range(cf, &[range])?; ...
Rust
hover { border: 1px solid rgb(89, 91, 94); background: rgba(255, 255, 255, 0.15); } html.dark .dt-container .dt-paging .dt-paging-button.disabled, html.dark .dt-container .dt-paging .dt-paging-button.disabled:hover, html.dark .dt-container .dt-paging .dt-paging-button.disabled:active { color: #666 !important; } h...
CSS
(6)孙茜玲的“‘放’还是‘收’”出笼。 </p> <p> 6.5 </p> <p> (1)院内围攻“胜利”,“院党委是革命的”的大字报到处皆是。 </p> <p> (2)李世琳口授指示抛出揭发沈元、王俊奎的大字报。 </p> <p> (3)下午的党委扩大会上,程九柯传达了国防科委领导的批评。路扬、罗舜初再三强调航院在北京前市委领导下已经受了黑线影响,要引火烧身。并给院党委打气要他们“不要怕”,“要争取主动”。 </p> <p> (4)周天行受意方复之写了一批有关前市委的大字报,请示赵如璋后抛出。企图转移革命师生的斗争锋芒。 </p> <p> (5)...
HTML
#!/usr/bin/python3 import pathlib import pygubu PROJECT_PATH = pathlib.Path(__file__).parent PROJECT_UI = PROJECT_PATH / "demo1.ui" class Demo1App: def __init__(self, master=None): self.builder = builder = pygubu.Builder() builder.add_resource_path(PROJECT_PATH) builder.add_from_file(PROJ...
Python
0x1, 0x1, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0xF, 0x0, 0xF}; } v16i8 delta_values; if (default_or_url) { delta_values = v16i8{int8_t(0xBF), int8_t(0xE0), int8_t(0xB9), int8_t(0x13), int8_t(0x04), int8_t(0xBF), int8_t(0xBF), int8_t(0xB9), int8_t(0xB9)...
C++
.372-.769-3.372-1.1 1.147-1.1 3.372-1.1zm0 8.373c-2.225 0-3.372-.769-3.372-1.1v-1.473a8.464 8.464 0 0 0 6.744 0v1.476c0 .328-1.147 1.1-3.372 1.1zm0-3.091c-2.225 0-3.372-.769-3.372-1.1v-1.473a8.465 8.465 0 0 0 6.744 0v1.475c0 .328-1.147 1.1-3.372 1.1z" transform="translate(292.021 744.673)"></path></g></g></symbol><symb...
HTML
#ifdef __aarch64__ #include "MNNAsmGlobal.h" .text .align 5 .macro SET_0 s0, s1, s2, s3 movi \s0\().4s, #0 movi \s1\().4s, #0 movi \s2\().4s, #0 movi \s3\().4s, #0 .endm .macro Int32_To_Float32 s0, s1, s2, s3 scvtf \s0\().4s, \s0\().4s scvtf \s1\().4s, \s1\().4s scvtf \s2\().4s, \s2\().4s...
Assembly
ontentEquals( Base64.encodeBase64("Kotlin is awesome".encodeToByteArray()), "S290bGluIGlzIGF3ZXNvbWU=".encodeToByteArray() ) assertEquals( "Kotlin is awesome", String(Base64.decodeBase64("S290bGluIGlzIGF3ZXNvbWU="), Charsets.US_ASCII) ) } ...
Kotlin
8f5536; @purple: #aa759f; @orange: #d28445; @cyan: #75b5aa; @pink: #ff00cc; @grey: #7f7f7f; // Red @medium-red: @red; @light-red: lighten(@red, @adjust-tone); @dark-red: darken(@red, @adjust-tone); // Green @medium-green: @green; @light-green: lighten(@green, @adjust-tone); @dark-green: darken(@green,...
CSS
="",Ca="",H=Ca+"ui-state-default",ia=Ca+"css_right ui-icon ui-icon-",Xb=Ca+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";h.extend(m.ext.oJUIClasses, m.ext.classes,{sPageButton:"fg-button ui-button "+H,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginat...
JavaScript
; modified by rockyone 19/03/2017 ; ; ; Routine de dcompactage d'images Spectrum (*.SPC) DEPACSPC.S ; ;SPC : ; +0 W 'SP' ; +2 W $0 ; +4 LW taille de l'image compress ; +8 LW taille des palettes compress ; +12 LW dbut des data images compres ; ; Call Depac(L Source, L Ecran, L Palettes, Couleur_15) ...
Assembly
case PathIterator.SEG_LINETO: count = intersectLine(cx, cy, cx = coords[0], cy = coords[1], rx1, ry1, rx2, ry2); break; case PathIterator.SEG_QUADTO: count = intersectQuad(cx, cy, coords[0], coords[1], cx = coords[2], cy = coords[3], rx1, ry1, rx2,...
Java
* @param operation - name of the operation that failed * @param result - optional value to return as the observable result */ private handleError<T> (operation = 'operation', result?: T) { return (error: any): Observable<T> => { // TODO: send the error to remote logging infrastructure console....
Typescript
.wp-block-kadence-column{justify-content:start;}#kt-layout-id_0fb94f-b0 > .kt-row-column-wrap{column-gap:var(--global-kb-gap-md, 2rem);row-gap:var(--global-kb-gap-md, 2rem);padding-top:var( --global-kb-row-default-top, 25px );padding-bottom:var( --global-kb-row-default-bottom, 25px );padding-top:0px;padding-bottom:0px;...
HTML
"TBD" } const VIKING_ID_5 = { "id": 5, "firstName": "Tuffnut", "lastName": "Thorston", "tribe": "Hooligan", "gender": "Male", "height": "5'9\"", "eyes": "Blue", "hair": "Blonde", "weapon": "Spear", "location": "TBD", "image": "TBD" } const VIKING_ID_6 = { "id": 6, ...
Typescript
encrypt --include=".*" --exclude="config/config.py,__init__" ``` - 加密执行目录下的所有python文件,并删除python和c源文件(注意:只有python包(具有__init__.py)下的文件会被加密) ``` abt encrypt --clear=True ``` ## 注意事项 - 只有符合python模块规范的模块下的文件(具有__init__.py)会被正确加密 - 使用AB框架模板,默认使用自动加密 # 滚动日志 ## 打印日志 日志要求统一使用logger,使用方法如下: ```python from ab.utils import ...
Markdown
6cd35"> 2496</a></span>&#160; <a class="code" href="classcutlass_1_1gemm_1_1warp_1_1MmaTensorOpAccumulatorTileIterator_3_01Shape___00_01Element___00027dabdc144edd6276f664ca74088510.html#ada9807d73db23e2388054d3a89e6cd35">MmaTensorOpAccumulatorTileIterator</a>(</div><div class="line"><a name="l02497"></a><span class="l...
HTML