content
stringlengths
2
6.21k
label
stringclasses
16 values
in 2 ways: through static usage of the Cache class and through cache objects returned by the Cache::forge(). This section covers static usage which will always work with the same driver as specified in the <a href="config.html">configuration</a>.</p> <p>Using cache objects and Cache::forge() is explained ...
HTML
-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -emit-pch -o %t %s // RUN: %clang_cc1 -DCK1 -fopenmp-simd -x c++ -triple i386-unknown-unknown -fopenmp-targets=i386-pc-linux-gnu -std=c++11 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY0 %s // SIMD-ONLY0-NOT: {{__kmpc|__tgt}} #ifdef C...
C++
f969180a8d182dffb356ebcc957e.html#a8549cc94fc141761af6932a4afca3cb3"> 956</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classcutlass_1_1TensorRef.html">TensorRef</a> = <a class="code" href="classcutlass_1_1TensorRef.html">TensorRef&lt;Element, Layout&gt;</a>;</div><div class="line"><a name...
HTML
import { FilterType } from '../layer/filter'; import { InternalType } from '../layer/internal'; import { ModifierType } from '../layer/modifier'; import { OperatorType } from '../layer/operator'; import { BaseLayerType } from '../layer/base-layer'; import { TargetType } from '../layer/target'; const layerNameTypes = ...
Typescript
div id="legend"></div> <script> init(1000/60,"legend",800,450,main); var backLayer, ctrlLayer, listView; function MyListChildView(i){ var self = this; base(self,LListChildView,[]); var rand = Math.random(); self.graphics.drawRect(1, "#000000", [0, 0, 100, 30],true,rand < 0.33?"#90EE90":(rand < 0.66 ? "#F4A460":"#E6...
HTML
规则,方法第一个参数是隐式的,代表该方法的接收者, 也即是this指向的对象,这个参数以前是放在参数列表中进行传递,现在提供了bindTo()方法来完成这件事情 */ return MethodHandles.lookup().findVirtual(receiver.getClass(), "println", mt).bindTo(receiver); } } ``` **MethodHandles.lookup 中 3 个方法对应的字节码指令:** - `findStatic()`:对应 invokestatic - `findVirtual()`:对应 invok...
Markdown
.proxyPublicKey, ServerPk: certInfo.ServerPk, SharedKey: certInfo.SharedKey, CryptoConstruction: certInfo.CryptoConstruction, HostName: stamp.ProviderName, Name: name, UDPAddr: udpaddr, TCPAddr: tcpaddr, RelayTCPAddrs: core.NewZeroVol...
Go
lete": tool_name = data.get("tool_name", "도구") duration = data.get("duration", 0) if "kb" in tool_name.lower() or "search" in tool_name.lower(): progress_callback("kb_search", f"KB 검색 완료 ({duration:.2f}초)") ...
Python
({ removeAll { it.isUpperCase() } }, { removeAll { it.isUpperCase() } }) testNoOperation({ removeAll(emptySet()) }, { removeAll(emptySet()) }) } } @Test fun emptySetToPersistentSet() { val empty = emptySet<Int>() val emptyPersistentSet = empty.toPersistentSet() asse...
Kotlin
A): List<ExhibitA> = TODO() companion object { fun bar(float: Float, byteArray: ByteArray) = Unit } } private class DeepGenerics { fun List<Set<Map<String, Int>>>.yolo() = Unit } private class DeepGenerics2<S> { fun List<Set<Map<String, S>>>.yolo() = Unit }package sift.core.entity import jav...
Kotlin
; } if (text[characterPosition] != value[i]) { return false; } } return true; } public static bool TryRemoveAttributeSuffix(ISymbol symbol, SyntaxContext context, [NotNullWhen(true)] out string? name) { var isAttribut...
C#
warn_if_precision_loss() return valid def _build(self) -> None: """If not already built, build the circuit.""" if self._is_built: return super()._build() num_qubits = self.num_qubits if num_qubits == 0: return circuit = QuantumCirc...
Python
rl if present', () => { win.document = {} const data = { assets: ['1', '2'], ortb: 'ortb', rendererUrl: 'renderer' }; const renderAd = sinon.stub().returns('markup'); loadScript.returns(Promise.resolve().then(() => { win.renderAd = renderAd; })); ...
JavaScript
n newDiv.css({\n 'position': 'relative',\n 'bottomleft': '0px',\n 'background-color': 'rgba(255, 255, 255, 0.7)',\n 'box-shadow': '0 0 2px #bbb',\n 'background-clip': 'padding-box',\n 'margin': '0',\n 'padding-left': '5px',\n 'color': '#333',\n 'font': '9px/1.5 \"Helve...
HTML
ption('Unknown LevelMode format.'); } return num; } int _calculateNumYLevels(int minX, int maxX, int minY, int maxY) { var num = 0; switch (_tileLevelMode) { case _oneLevel: num = 1; break; case _mipmapLevels: final w = (maxX - minX) + 1; final h = (max...
Dart
} public static GroupState GetGroupState(ObjectListView olv, int groupId, GroupState mask) { return (GroupState)NativeMethods.SendMessage(olv.Handle, LVM_GETGROUPSTATE, groupId, (int)mask); } public static int InsertGroup(ObjectListView olv, LVGROUP2 group) { retur...
C#
enum클래스와 Sealed클래스와 함께 사용할경우 진가를 발휘한다. - 5강 /* private static void handleCountry(JavaCountry country) { if (country == JavaCountry.KOREA) { // 로직 처리 } if (country == JavaCountry.AMERICA) { // 로직 처리 } } * */ fun handleCountry(country: Country) { when(country){ Country.KOREA -...
Kotlin
DAEMONS_OFF_FLEX: { ClassAd replyAd; if (!d.startCommand(my_cmd, &sock, 0, &errstack)) { fprintf(stderr, "ERROR\n%s\n", errstack.getFullText(true).c_str()); } if (!putClassAd(&sock, cmdAd) || !sock.end_of_message()) { fprintf(stderr, "Can't send %s command to %s\n", cmdToStr(my_cmd), d.idStr()...
C++
.6</span> 순환 모듈 레코드</a><ol class="toc"><li><span class="item-toggle">+</span><a href="ecmascript-language-scripts-and-modules.html#sec-cyclic-module-record-module-record-methods" title="Module Record 추상 메서드 구현"><span class="secnum">16.2.1.6.1</span> Module Record 추상 메서드 구현</a><ol class="toc"><li><span class="item-toggl...
HTML
html#document's-character-encoding">文書の文字エンコーディング</a>を使うことで、フォーム提出およびURLエンコーディングで予期しない結果を招くかもしれない。</p> <p>XHTMLにおいて、必要ならば、XML宣言はインライン文字エンコーディング情報に対して使用されるべきである。</p> <div class="example"> <p>HTMLにおいて、文字エンコーディングがUTF-8であることを宣言するために、著者は(<code><a href="#the-head-element">head</a></code>要素内で)文書のトップの近くに以下のマークアップを含むか...
HTML
class StatBuilder { StatBuilder(this.fbBuilder); final fb.Builder fbBuilder; void begin() { fbBuilder.startTable(3); } int addIdOffset(int? offset) { fbBuilder.addOffset(0, offset); return fbBuilder.offset; } int addVal(int? val) { fbBuilder.addInt64(1, val); return fbBuilder.offse...
Dart
(b.c,S6b,0);for(d=0;d<f.length;++d){e=dUb(f[d],u1b,0);_Tb(e[0],W3b)?(b.d=e[1]):_Tb(e[0],X3b)?(b.i=e[1]):_Tb(e[0],F4b)?(b.f=e[1]):_Tb(e[0],G4b)?(b.a=e[1]):_Tb(e[0],'z-index')&&(b.j=e[1])}}g=b.Nb.style;b.j!=null?(g[i7b]=b.j,undefined):(g[i7b]=o1b,undefined);g[X3b]=b.i;g[W3b]=b.d;g[F4b]=b.f;g[G4b]=b.a;cX((MW(),!LW&&(LW=ne...
HTML
# Copyright (c) 2023 Gengshan Yang, Carnegie Mellon University. from collections import defaultdict import torch import torch.nn.functional as F def sample_cam_rays(hxy, Kinv, near_far, n_depth=64, depth=None, perturb=False): """Sample NeRF rays in camera space Args: hxy: (M,N,3) Homogeneous pixel c...
Python
using System; using WampSharp.Core.Listener; using WampSharp.Core.Message; using WampSharp.Core.Proxy; using WampSharp.V1.Core.Contracts; namespace WampSharp.V1.Core.Listener.ClientBuilder { /// <summary> /// An implementation of <see cref="IWampClientBuilder{TMessage,TClient}"/> /// that is specific to WA...
C#
rtcut("dp")] [ArgDescription("Decimal places to calculate")] public int DecimalPlaces {get; set;} [ArgDefaultValue("/pi.txt")] [ArgShortcut("o")] [ArgDescription("Output path for file mode")] public string OutputPath { get; set; } } }
C#
w.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M624 672c0 26.5 21.5 48 48 48s48-21.5 48-48-21.5-48-48-48h-48v48zM720 352c0-26.5-21.5-48-48-48s-48 21.5-48 48v48h48c26.5 0 48-21.5 48-48z" p-id="7960"></path><path d="M928 64H96c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32...
HTML
r[item.serializationIdentifier] = item; }); } } serialiserByTraitIdenfier: object = {}; serialize<T>(obj: ISerializable): string { const convertedObject = this.serializeCore(obj); const serializedObject = JSON.stringify(convertedObject); return serializedObject; } seria...
Typescript
idth: 640px; max-width: auto; } @media (min-width: 960px) { grid-template-columns: repeat(3, [content-start] 1fr) [content-end]; margin: 0 30px; min-width: 960px; max-width: auto; } @media (min-width: 1260px) { grid-template-columns: repeat(4, [content-start] 1fr) [content-end]; mi...
CSS
409029], [-78.683952, 10.976511], [-78.3786, 9.440869], [-80.60387, 8.879444], [-80.918457, 10.409029]]], "type": "Polygon"}, "id": "842", "properties": {"Dates": 149, "Frame ID": 32226, "orbit_pass": "ASCENDING"}, "type": "Feature"}, {"bbox": [-83.969527, 23.552687, -81.233286, 25.614311], "geometry": {"coordinates": ...
HTML
); #ifdef MFX_ENABLE_QVBR m_caps.ddi_caps.QVBRBRCSupport = !!(AV(VAConfigAttribRateControl) & VA_RC_QVBR); #endif #if VA_CHECK_VERSION(1,3,0) m_caps.AVBRSupport = !!(AV(VAConfigAttribRateControl) & VA_RC_AVBR); #endif #if VA_CHECK_VERSION(1, 10, 0) m_caps.ddi_caps.TCBRCSupport = !!(AV(VAConfigAttribRateCont...
C++
// SPDX-License-Identifier: GPL-3.0-only /* * Prism Launcher - Minecraft Launcher * Copyright (c) 2022 Jamie Mansfield <jmansfield@cadixdev.org> * Copyright (C) 2022 Sefa Eyeoglu <contact@scrumplex.net> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU G...
C
Y, ABSOLUTE), .op_code = 204, .size = 3, .cycles = 4, .input_regs = REGF_Y | REGF_M, .output_regs = REGF_NZ | REGF_C, .flags = ASMF_IDEMPOTENT, }, // DEC { OP(DEC, ZERO_PAGE), .op_code = 198, .size = 2, .cycles = 5, .in...
C++
SignalSemaphores = signals[i].data(); } VkQueue queue; switch (type) { default: case CommandBuffer::Type::Generic: queue = graphics_queue; break; case CommandBuffer::Type::AsyncCompute: queue = compute_queue; break; case CommandBuffer::Type::AsyncTransfer: queue = transfer_queue; break; } if (qu...
C++
#include <stdlib.h> #include "Item.h" #include "QUEUE.h" // leaving code for linked-list implementation commented out in case I // need it later. //typedef struct QUEUEnode *link; //struct QUEUEnode { // Item item; // link next; //}; struct queue { Item *item; int head; int tail; int N; //link head; //link tai...
C
2: raise NotImplemented else: raise TypeError('Iterable type is unknown') else: raise ValueError(f'Iterable of type {type(self.iterable)} no supported in for.') @property def index(self): return None class Range(): def __init__(se...
Python
using System.Collections.Generic; using CADPadDB.Maths; namespace CADPadDB.CADEntity { public class Circle : CADEntity.Entity { public override string ClassName { get { return "Circle"; } } private CADPoint _center = new CADPoint(0, 0); public CADPoint c...
C#
<td> 8.5.4 </td> <td> <strong>1 X, 17 D</strong> </td> <td> Partially implemented </td> </tr> <tr> <td> <a> Parasoft C/C++test </a> </td> <td> 2022.1 </td> <td> <strong>CERT_C-DCL40-a</strong> <strong>CERT_C-DCL40-b</strong> </td> <td> All declarations of an object or function shall have compatible types If objects or...
Markdown
Emoji( '😴', 'खर्राटे | गुड नाईट | चेहरा | झपकी | थकान | नींद | नींद आ रही है | नींद भरा चेहरा | रात | शुभरात्रि | सो रहा हूँ | सो रही हूँ | सोता हुआ चेहरा | सोया | सोया हुआ चेहरा', ), Emoji( '😷', 'चिकित्सा मास्क | चिकित्सा मास्क वाला चेहरा | चेहरा | ठंड | डॉक्टर | नकाब | मास्क वाला चेह...
Dart
rderStyle.DashLargeGap: pen.DashPattern = new double[] { 3, 3 }; break; case BorderStyle.DashSmallGap: pen.DashPattern = new double[] { 5, 1 }; break; case BorderStyle.Dot: pen.DashStyle = XDashStyle.Dot; break; case BorderStyle.Sing...
C#
16.2_PRO_x64.tar.gz</a> - Linux x64</li> <li><a href="./gor_0.16.2_PRO_mac.tar.gz">gor_v0.16.2_PRO_mac.tar.gz</a> - Mac OS</li> </ul> <h3>v0.16.1</h3> <ul> <li><a href="./gor_0.16.1_PRO_x64.tar.gz">gor_v0.16.1_PRO_x64.tar.gz</a> - Linux x64</li> <li><a href="./gor_0.16.1_PRO_mac.ta...
HTML
facestrange_1_1extensions_1_1pool_1_1api_1_1_i_pool.html#a2883441f5785470a7d1359c99c7adf41">overflowBehavior</a><code> [get, set]</code></td></tr> <tr class="memdesc:a2883441f5785470a7d1359c99c7adf41"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets or sets the overflow behavior of this pool. <a href="#a28...
HTML
_unix_signals (); #endif } return NULL; /* worst GCC warning message ever... */ } GMainContext * g_get_worker_context (void) { static gsize initialised; if (g_once_init_enter (&initialised)) { /* mask all signals in the worker thread */ #ifdef G_OS_UNIX sigset_t prev_mask; sigset_t al...
C
override fun data() = bookmark_tags } /** * name : *少女前线 * count : 1 */ @Serializable class BookmarkTagsBean( val name: String, val count: Int = 0 )/* * MIT License * * Copyright (c) 2019 Perol_Notsfsssf * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this softwa...
Kotlin
01TI16/2012_H5N1|KP662579.1|2012-01-18", "frac_divergence": 0.09, "retained": false}, {"name": "A/chicken/Bhutan/01TR12/2012_H5N1|KP662567.1|2012-01-02", "frac_divergence": 0.088, "retained": false}, {"name": "A/chicken/Bhutan/01TR338/2013_H5N1|KP336298.1|2013-01-29", "frac_divergence": 0.093, "retained": false}, {"nam...
HTML
imeline, StateMachineContext, StateFunctionContext, bool> condition) { functions[id] = condition; return true; } public virtual void RegisterOrOverrideCondition(Type id, Func<IConditionVariables, StateTimeline, StateMachineContext, StateFunctionContext, bool> condition) ...
C#
onceNotify sync.Once } // Notify 通知事件发生 func (c *contextNotifier) Notify() { c.onceNotify.Do(func() { c.cancel() }) } // valueContext ValueContext的实现类 type valueContext struct { // 当前地域信息 currentLocation atomic.Value // 用于查看location是否initialized locationInitializedNotify contextNotifier // 用于查看location是否re...
Go
.Va-sup{vertical-align:super}#Stencil .Va-t{vertical-align:top}#Stencil .Va-tt{vertical-align:text-top}#Stencil .Va-m{vertical-align:middle}#Stencil .Va-bl{vertical-align:baseline}#Stencil .Va-b{vertical-align:bottom}#Stencil .Va-tb{vertical-align:text-bottom}#Stencil .Va-sub{vertical-align:sub}#Stencil .V-v{visibility...
CSS
.junit.Rule import org.junit.Test import org.junit.contrib.java.lang.system.SystemOutRule class NetworkProfileDescribeTest { @get:Rule val systemOutRule: SystemOutRule = SystemOutRule().enableLog().muteForSuccessfulTests() @Before fun setup() { mockkStatic("ftl.api.NetworkProfileKt") } ...
Kotlin
material2048[6] = new THREE.MeshBasicMaterial({ color: 0xCC33FF, map: dynamicTexture[7].texture }); material2048[7] = new THREE.MeshBasicMaterial({ color: 0xCC0099, map: dynamicTexture[8].texture }); material2048[8] = new THREE.MeshBasicMaterial({ color: 0xFFFF66, map: dyna...
HTML
#endif void CoreWrapper::imuAsyncCallback(const sensor_msgs::msg::Imu::SharedPtr msg) { if(!paused_) { if(msg->orientation.x == 0 && msg->orientation.y == 0 && msg->orientation.z == 0 && msg->orientation.w == 0) { UERROR("IMU received doesn't have orientation set, it is ignored."); } else { UScopeMut...
C++
-- 2862 Hillcrest Avenue -- High end house 4: -676.127 588.612 145.1698 exports('GetGTAOHouseHi4Object', function() return GTAOHouseHi4 end) GTAOHouseHi4 = { interiorId = 208129, Strip = { A = "Apart_Hi_Strip_A", B = "Apart_Hi_Strip_B", C = "Apart_Hi_Strip_C", Enable = fun...
Lua
@field options grug.far.Options ---@field replacementInterpreter? grug.far.ReplacementInterpreter ---@field report_progress fun(update: { type: "update_total" | "update_count", count: integer } | {type: "message", message: string}) ---@field on_finish fun(status: grug.far.Status, errorMessage: string?, customActionMess...
Lua
-orange-theme .md-action { color: #ff6e40; } md-toolbar.md-deep-orange-theme { background-color: #ff5722; color: white; } md-tooltip.md-deep-orange-theme { color: #ffffff; } md-tooltip.md-deep-orange-theme .md-background { background-color: rgba(0, 0, 0, 0.52); } /*! * Angular Material Design * http...
CSS
, 2), /// ("1-1", 2), /// ("0-0-0", 3), /// ("0-1-0", 3), /// ("0-1-1", 3), /// ] /// ); /// ``` #[inline] #[must_use] pub fn breadth_first_traverse(&self) -> BreadthFirstTraverse<'a, Id, T> { BreadthFirstTraverse::with_toplevel(self) ...
Rust
count = 1, ), NavRailItemData( label = "Steam", route = Route.Page(id = "steam"), iconType = NavRailListItemIconType.Image(ref = Asset.Channel.STEAM) ), NavRailItemData( label = "The Critical Drinker", ...
Kotlin
必须还得让以前的马车依旧兼容,所以当有人发明出来汽车引擎,或者火车,飞机,这就意味着和马车不兼容,因此比特币为了兼容性不会采取这种新技术,又或者比特币是一种报纸,当信息时代来临,他们还是继续坚守实体的纸张,因为网页新闻和移动手机新闻和过去的技术不兼容.回到本文,所以,比特币对其自身所做的每个更改,其作用范围都非常有限. 这又多么讽刺,他们正是因为自己过去的不足而希望改变,而又坚持不愿意改变现在的自己,这就让一切变得毫无意义. 但门罗币的进化可不是这样,常规操作也是脱胎换骨级别的,类似于破茧成蝶,鱼跃龙门的改进,结果也通常可以将协议层和隐私性提高几个数量级.</p>\n\n<p>上述的概念,在这篇讲述 <a target=\"_bla...
Dart
) // dir1 // |-> nested // | |-> 你好.txt // |-> other // | |-> tmp.txt // myImageData.bmp // superTinyFile.bin // When decompressing, folders are not nested; all filepaths are fully // written out in the keys. For example, the return value may be: // { 'nested/directory/a2.txt': Uint8Array(2) [97, 97] }) const deco...
Markdown
RegistrationPolicyBucket<T extends RegistrationPolicyForRegistrationPolicyUtils>( registrationPolicy: T, key: string, bucket: Omit<T['buckets'][0], 'key'>, ): T { if (getRegistrationPolicyBucket(registrationPolicy, key)) { throw new Error(`Bucket with key ${key} already exists in registration policy`); } ...
Typescript
DATA_FILE = 'warehouse.json' BACKUP_FOLDER = 'backups'
Python
m_head true </source> # Filter plugins <filter kubernetes.**> @type kubernetes_metadata @id filter_kube_metadata kubernetes_url "#{ENV['FLUENT_FILTER_KUBERNETES_URL'] || 'https://' + ENV['KUBERNETES_SERVICE_HOST'] + ':' + ENV['KUBERNETES_SERVICE_PORT'] + '/api'}" verify_ssl "#{ENV['...
Markdown
a vector summed with another vector | | [Vector Vector Modulo](../../programming_examples/basic/vector_vector_modulo/) | i32 | Returns vector % vector | | [Vector Vector Multiply](../../programming_examples/basic/vector_vector_mul/) | i32 | Returns a vector multiplied by a vector | | [Vector Reduce Add](../../programm...
Markdown
QBConfig = {} QBConfig.MaxPlayers = GetConvarInt('sv_maxclients', 48) -- Gets max players from config file, default 48 QBConfig.DefaultSpawn = vector4(-1035.71, -2731.87, 12.86, 0.0) QBConfig.UpdateInterval = 5 -- how often to update player data in minutes QBConfig.StatusInterval = 5000 -- how often to check hunger/th...
Lua
--Royal Temple of the Kings --Scripted by The Razgriz local s,id=GetID() function s.initial_effect(c) aux.AddFieldSkillProcedure(c,2,false) --Activate local e0=Effect.CreateEffect(c) e0:SetType(EFFECT_TYPE_ACTIVATE) e0:SetCode(EVENT_FREE_CHAIN) c:RegisterEffect(e0) --"Royal Temple of the Kings" is unaffected by ...
Lua
| |:-----------------:|:-----------------:|:---------------:|:------------------:|:-----------------------------------------------------:|:--------------------------------------------------------------------------------------------------------------------------:|:-----------:| | amt_focalnet.yaml | 0.305 ...
Markdown
Link](https://www.xomnia.com/) | [View LinkedIn](https://www.linkedin.com/company/xomnia) | Amsterdam, NL | 2013 | [92](https://www.linkedin.com/company/xomnia/people/) | 8784 | - | IT Services and IT Consulting | ### Amsterdam - 💰 Business | Name | Website | LinkedIn URL | Headquarters | Founded | Employees | Follow...
Markdown
.$.root), renderHierarchy.root, this); tf.graph.scene.addGraphClickListener(this.$.svg, this); tf.graph.scene.node.traceInputs(renderHierarchy); }.bind(this)); // Update the minimap again when the graph is done animating. setTimeout(function() { this.minimap.update(); }.bind(this), tf....
HTML
System.out.println("Initializing"); } public void paint(Graphics g) { Image im = ( sr == null) ? null : (Image)( sr.get()); if (im == null) { System.out.println( "Fetching image"); im = getImage(getCodeB...
HTML
-variant-outlinedColor:#FD8028;--variant-outlinedBorder:rgba(253, 128, 40, 0.5);--variant-containedColor:rgba(0, 0, 0, 0.87);--variant-containedBg:#FD8028;font-weight:700;}.css-128s58s:hover{-webkit-text-decoration:none;text-decoration:none;}.css-128s58s.Mui-disabled{color:rgba(255, 255, 255, 0.3);}.css-128s58s:hover{b...
HTML
enum DIBColorTable { DIB_RGB_COLORS = 0, /* color table in RGBs */ DIB_PAL_COLORS /* color table in palette indices */ } public enum WindowLongParam { GWL_WNDPROC = -4, GWL_HINSTANCE = -6, GWL_HWNDPARENT = -8, GWL_ID = -12, GWL_STYLE...
C#
{ lines[i] = fragments[i].id + " " + fragments[i].begin + " " + fragments[i].end + ' "' + fragments[i].lines.join(" ") + '"'; }; return lines.join("\n"); } function downloadVTT() { var lines = []; var j = 0; lines[j++] = "WEBVTT\n" for (var i = 0; i < fragments.length; ++i) { li...
HTML
i> <li><code><a title="lib.server.mqttprotocol.MqttStateMachine.state_open" href="#lib.server.mqttprotocol.MqttStateMachine.state_open">state_open</a></code></li> <li><code><a title="lib.server.mqttprotocol.MqttStateMachine.state_receive" href="#lib.server.mqttprotocol.MqttStateMachine.state_receive">state_receive</a><...
HTML
> <a href="{{ post.url | prepend: site.baseurl }}"><h2 class="post-title"> {{ post.title }}</h2></a> {% if post.subtitle %} <h4 class="post-subtitle">{{ post.subtitle }}</h4> {% endif %} <p class="post-meta" style="margin-top: 5px;margin-bottom:5px; font-size: 0.8em">Posted by {{ post.author }} on {{ post.d...
HTML
maxLength) { pdk::pint64 readSoFar = 0; do { char dummy[4096]; const pdk::pint64 readBytes = std::min<pdk::pint64>(maxLength, sizeof(dummy)); const pdk::pint64 readResult = read(dummy, readBytes); // Do not try again, if we got less data. if (readResult != readBytes) { ...
C++
: growingRadius, bottomLeft: growingRadius); // Inner is half of outer, but offset a little so it looks nicer final RRect innerRRect = RRect.fromRectAndCorners( Rect.fromLTWH(100 * i.toDouble() + 5, 5, 40, 40), bottomRight: someFixedRadius / 2, topRight: growingRadiu...
Dart
quot;the development of AI in a direction that is human centric, safe, and trustworthy,&quot;&nbsp;according to a copy of the letter obtained <a href="https://www.wsj.com/articles/chatgpt-and-advanced-ai-face-new-regulatory-push-in-europe-16e3282c">by </a>The Wall Street Journal.&nbsp;</p>&#13;<br>&#13;<br><p>The Europ...
HTML
D Z E".split(" "); let btree: BTree<string> = new BTree(2); for (let k of A) { btree.insert(k); btree.diagnose(); } console.log("Final configuration"); console.log(btree.show()); } function problem_18_3_1() { let leaves = [ "A C", "J K", "N O", "Q R S", "U V", "Y Z", ]....
Typescript
= r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !(0x01 << 2)) | (((value as u32) & 0x01) << 2); self.w } } #[doc = "Fast IRC Regulator Enable\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum FIRCREGOFF_A...
Rust
12, 3), (12, 4), (12, 5), (12, 6), (12, 7), (12, 8), (12, 9), (12, 10), (12, 11), (13, 2), (13, 3), (13, 4), (13, 5), (13, 6), (13, 7), (13, 8), (13, 9), (13, 10), (13, 11), (14, 2), (14, 3), (14, 4), (14, 5), (14, 6), (14, 7), (14, 8), (14, 9), (14, 10), (14, 11), (15, 2), (15, 3), (15, 4), (15, 5), (15, 6...
Rust
netIADSSAMSearchRadar, self.searchRadars, unitData) if #self.searchRadars > 0 then local harmDetection = dataType['harm_detection_chance'] self:setHARMDetectionChance(harmDetection) if unitData[unitType]['name'] then local natoName = unitData[unitType]['name']['NATO'] self:buildNatoName(n...
Lua
hen return "Exec Restatement Reason: Business Unit Risk Event (246)" end if value == 257 then return "Exec Restatement Reason: Initial Cleanup (257)" end if value == 292 then return "Exec Restatement Reason: Dividend Payment (292)" end if value == 294 then return "Exec Restatement Reason: La...
Lua
Vector3f L_i = hit_to_sample.m->lightIntensity; Vector3f brdf1 = mat->GetDiffuseBRDF(wi, sampleRayDir, N)* hitKd; float cos_theta1 = clamp(0.0, 1.0, dotProduct(N, sampleRayDir)); float cos_theta2 = clamp(0.0, 1.0, dotProduct(hit_to_sample.hitN, sampleRayDir * -1)); //cout << cos_theta1 << "|"; if (pd...
C++
* @see #getOwnedDeployments() * @generated * @ordered */ protected EList<AbstractDeploymentLink> ownedDeployments; /** * The cached value of the '{@link #getOwnedLogicalArchitectureRealizations() <em>Owned Logical Architecture Realizations</em>}' containment reference list. * <!-- begin-user-d...
Java
{ // is the switch connected if (log.isDebugEnabled()) { log.debug("Sending 1 new entries to {}", dpid.toString()); } ofswitch.write(message); } } /** * Writes an OFFlowMod to a switch. It checks to make sure the switch * exists before it sends * @param dpid The data to write the flow mod to ...
Java
.4s sub v16.4s, v16.4s, v17.4s .endm .macro idct_4 r0, r1, r2, r3 mul_mla v6, \r1, \r3, v0.s[3], v0.s[2] mul_mla v2, \r0, \r2, v0.s[0], v0.s[0] mul_mls v4, \r1, \r3, v0.s[2], v0.s[3] mul_mls v3, \r0, \r2, v0.s[0], v0.s[0] ...
Assembly
bottom: 20px; opacity:1; } } .panel-bottom { flex: 1; height: 100%; overflow-y: auto; opacity:0; animation: smooth-appear 1s ease forwards; } .context { width: 100%; display: flex; justify-content: space-between; gap: 64px; } .context-column { flex: 1; } .context...
CSS
<time title="修改时间:2020-12-13 16:44:06" itemprop="dateModified" datetime="2020-12-13T16:44:06+08:00">2020-12-13</time> </span> </div> </div> </header> <div class="post-body" itemprop="articleBody"> <h2 id="序言"><a href="#序言" class="headerlink" title="序言"></a>序言</h2><...
HTML
r22)))+(IKabs(((((-1.0)*x4358*x4361))+x4361)))); if( IKabs(j4eval[0]) < 0.0000010000000000 ) { { IkReal j4eval[1]; IkReal x4363=((-1.0)*r21); CheckValue<IkReal> x4366 = IKatan2WithCheck(IkReal(x4363),IkReal(((-1.0)*r20)),IKFAST_ATAN2_MAGTHRESH); if(!x4366.valid){ continue; } IkReal x4364=((1.0)*(x4366.value)); IkReal ...
C++
new data provider settings that you specify in the call, for /// settings with different names. /// </li> /// </ul> /// /// Parameter [settings] : /// The settings in JSON format for a data provider. Future<ModifyDataProviderResponse> modifyDataProvider({ required String dataProviderIdentifier, S...
Dart
: { ColorPickerType.primary: translate("Primary Color"), ColorPickerType.wheel: translate("HSV Color"), }, actionButtons: ColorPickerActionButtons( dialogOkButtonLabel: translate("OK"), dialogCancelButtonLabel: translate("Cancel")), showC...
Dart
f(struct dvb_frontend_ops)); state->initialised = 0; /* check if the demod is there */ if (sp8870_readreg(state, 0x0200) < 0) goto error; /* create dvb_frontend */ state->frontend.ops = &state->ops; state->frontend.demodulator_priv = state; return &state->frontend; error: if (state) kfree(state); return NUL...
C
ve type. } func (g intGenerator) EmitNodeTypeAssertions(w io.Writer) { emitNodeTypeAssertions_typical(w, g.AdjCfg, g) } func (g intGenerator) EmitNodeMethodAsInt(w io.Writer) { emitNodeMethodAsKind_scalar(w, g.AdjCfg, g) } func (g intGenerator) EmitNodeMethodPrototype(w io.Writer) { emitNodeMethodPrototype_typical(w...
Go
Default_Handler .weak OTG_HS_EP1_OUT_IRQHandler .thumb_set OTG_HS_EP1_OUT_IRQHandler,Default_Handler .weak OTG_HS_EP1_IN_IRQHandler .thumb_set OTG_HS_EP1_IN_IRQHandler,Default_Handler .weak OTG_HS_WKUP_IRQHandler...
Assembly
= take_while1(|c: char| c != '>'); let (mut input, (_, _, fields, _, _)) = tuple((ignored, char('>'), parse_field_list, space0, line_ending))(input)?; let type_with_payload = match is_vec { true => { if fields.len() == 1 && FieldType::is_common_type(fields.first().unwrap().name) {...
Rust
a href="http://msdn2.microsoft.com/en-us/library/e5kfa45b" target="_blank">Object</a>.)</td></tr><tr data="public;inherited;notNetfw;"><td><img src="../icons/pubmethod.gif" title="Public method" /></td><td><a href="http://msdn2.microsoft.com/en-us/library/49kcee3b" target="_blank">GetBaseException</a></td><td><div clas...
HTML
"&&r>=1&&r<=31;if(!l)throw new Error("Solar day outside range 1 - 31");i={year:e,month:t,day:r},a=n||{}}var u=qx[i.year-qx[0]],c=i.year<<9|i.month<<5|i.day;a.year=c>=u?i.year:i.year-1,u=qx[a.year-qx[0]];var f=u>>9&4095,h=u>>5&15,d=u&31,v,x=new Date(f,h-1,d),b=new Date(i.year,i.month-1,i.day);v=Math.round((b-x)/(24*3600...
JavaScript
er.maximumWindowMetrics w = m.bounds.width() h = m.bounds.height() } else { val dm = DisplayMetrics() windowManager.defaultDisplay.getRealMetrics(dm) w = dm.widthPixels h = dm.heightPixels } return Pair(w, h) } fun translate(input: String): String { Log....
Kotlin
<table class="orders-table"> <thead> <tr> <th>订单号</th> <th>车次</th> <th>出发日期时间</th> <th>行程</th> <th>座位</th> ...
HTML
distances[n][k] = p.second; } } } @Override public List<IntFloatPair> searchKNN(T query, int K) { // Fix for when the user asks for too many points. K = Math.min(K, pnts.size()); final BoundedPriorityQueue<IntFloatPair> queue = new BoundedPriorityQueue<IntFloatPair>(K, IntFloatPair.SECOND_ITEM_ASCE...
Java
ext.AnsiColor.YELLOW import com.hexagontk.core.text.AnsiColor.BLUE import com.hexagontk.core.text.AnsiColor.BRIGHT_BLACK import com.hexagontk.core.text.AnsiColor.CYAN import com.hexagontk.core.text.AnsiColor.MAGENTA import com.hexagontk.core.text.AnsiColor.RED import com.hexagontk.core.text.AnsiEffect.BOLD import com.h...
Kotlin
%2216%22%20viewBox%3D%220%200%2016%2016%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%0A%20%20%20%20%3Ccircle%20fill%3D%22#000%22%20cx%3D%228%22%20cy%3D%228%22%20r%3D%222%22%3E%3C%2Fcircle%3E%0A%3C%2Fsvg%3E" // $internal-form-checkbox-image: "data:image/svg+xmlcharset=UTF-8,%3Csvg%20width%3D%2214%22%20heig...
CSS