content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
GroupKeysDoc(spaceId)
docRef.update(
mapOf(
"doc_updated_at" to System.currentTimeMillis(),
"member_keys.$userId" to FieldValue.delete()
)
).await()
}
suspend fun updateSpace(space: ApiSpace) {
spaceRef.document(space.id).set(space... | Kotlin |
.post-discussion label:not(.radio-label), .post-reply label:not(.radio-label), .post-discussion .form-note, .post-reply .form-note {
font-size: smaller;
}*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Copyright 2011-2016 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)... | CSS |
ingBox = line.BoundingBox with
{
Width = boxWidth,
Height = boxHeight
}
};
}
protected MetricDetailData CreateMetricDetail(TextLayoutCharacterData characterData, MetricDetailType type,
MetricDetailLevel lev... | C# |
CONFIG_SYS_EEPROM_WREN)
/* Input: <dev_addr> I2C address of EEPROM device to enable.
* <state> -1: deliver current state
* 0: disable write
* 1: enable write
* Returns: -1: wrong device address
* 0: dis-/en- able done
* 0/1: current state i... | C |
.List;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TableItem;
import org.eclipse.swt.widgets.Text;
import org.pentaho.di.core.Const;
import org.pentaho.di.core.util.Utils;
import org.pentaho.di.core.exception.KettleException;
import org.pentaho.di.core.r... | Java |
using System;
using System.Globalization;
namespace Manatee.Json.Schema
{
/// <summary>
/// Handles `date-time` format validation by attempting to parse against several formats (ISO-8601 compatible).
/// </summary>
/// <remarks>
/// The expected formats are:
///
/// - `yyyy'-'MM'-'dd'T'HH':'mm':'ss'.'ffffff... | C# |
EXPECT_EQ(getAvailBufferSize(), m_buff_size_pkts - 1);
EXPECT_EQ(m_rateEst.getRate(), 0);
}
TEST_F(CSndRateEstFixture, CBRSending)
{
const size_t hdrBytes = srt::CPacket::HDR_SIZE;
// Generate CBR sending for 2.1 seconds to wrap the buffer around.
for (int i = 0; i < 2100; ++i)
{
const aut... | C++ |
dt in parsed_data_type]) \
or any([dt in found_data_type for dt in data_type]):
result.append(col_name)
return result
def name_col(col_names: str, append: str = None) -> str:
"""
Whenever you want to name and output use this function. This ensure that we use and Standard when n... | Python |
CTION_STANDING_INCREASED_REST_PART = "(+%.1f de bonus de descanso)";
FACTION_STANDING_LABEL1 = "Odiado";
FACTION_STANDING_LABEL1_FEMALE = "Odiada";
FACTION_STANDING_LABEL2 = "Hostil";
FACTION_STANDING_LABEL2_FEMALE = "Hostil";
FACTION_STANDING_LABEL3 = "Adverso";
FACTION_STANDING_LABEL3_FEMALE = "Adversa";
FACTION_STAN... | Lua |
floating point number appended with a unit such as "<code>14.5sp</code>".
Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size),
in (inches), mm (millimeters).
<p>This may also be a reference to a resource (in the form
"<code>@[<i>package</i>:]<i>type</i>:<i... | Java |
reference,
);
@jni$_.internal
@core$_.override
jni$_.JObjType get superType => const jni$_.JObjectNullableType();
@jni$_.internal
@core$_.override
jni$_.JObjType<Property$TEXT_TRANSFORM?> get nullableType => this;
@jni$_.internal
@core$_.override
final superCount = 1;
@core$_.over... | Dart |
oggle({ label = localize("mf_config_other_tags"), ref_table = mf_config, ref_value = "Other Tags" })
rightside_nodes[#rightside_nodes + 1] =
create_toggle({ label = localize("mf_config_other_packs"), ref_table = mf_config, ref_value = "Other Packs" })
rightside_nodes[#rightside_nodes + 1] =
... | Lua |
24149a8',
'info_dict': {
'id': '1032333',
'ext': 'flac',
'title': 'Shearer - Warmachine',
'artist': 'Shearer',
'track': 'Warmachine',
'timestamp': 1368089771,
'upload_date': '20130509',
... | Python |
220436f6e7374720016153300f4912b436f6e73747220696e64657820646964206e6f74206d6174636820616e7920747970652076617269616e740016300c002232533300b3370e9000000899191919191919191919299980c980e0010991924c64a66602e66e1d2000001132323232323253330213024002149854cc079241334c6973742f5475706c652f436f6e73747220636f6e7461696e73206d6f72652... | Java |
s_console should be a no-op
just_fix_windows_console()
self.assertIs(sys.stdout, orig_stdout)
self.assertIs(sys.stderr, orig_stderr)
else:
def fake_std():
# Emulate stdout=not a tty, stderr=tty
# to check that we handle both cases c... | Python |
try:
response = requests.get("http://127.0.0.1:8000/", timeout=5)
print(f"✅ Root endpoint works: {response.status_code}")
print(f"Response: {response.json()}")
except Exception as e:
print(f"❌ Root endpoint failed: {e}")
if __name__ == "__main__":
print("🔧 Login Endpoint Diag... | Python |
vapd %xmm4,nb134_qqMH(%esp)
movapd %xmm5,nb134_qqHH(%esp)
xorpd %xmm0,%xmm0
movl nb134_type(%ebp),%edx
movl (%edx,%ebx,4),%ecx
shll %ecx
movl %ecx,%edx
movl nb134_p_ntype(%ebp),%edi
imull (%edi),%ecx ## ecx = ntia = 2*ntype*type[ii0]
addl... | Assembly |
0641
expect abstract class ContentNode : Node
expect abstract class Block : ContentNode
expect class IndentedCodeBlock : Block
expect class FencedCodeBlock : Block
expect val FencedCodeBlock.openingMarker: CharSequence
expect val FencedCodeBlock.closingMarker: CharSequence
expect class BlockQuote : Block
expect val B... | Kotlin |
ostr_ << getN () << "\t! column dimension of matrix\n";
for (i = 0; i < getM (); i++) {
if (i != 0) ostr_ << "\t! matrix elements\n";
for (j = 0; j < getN (); j++) {
if (j != 0) ostr_ << '\t';
... | C++ |
"1${}${}",
// base64::encode(&self.salt).as_ref(),
base64::encode(&self.salt),
// base64::encode(&self.hash).as_ref(),
base64::encode(&self.hash),
);
as_str
}
}
/// Into() String implementation for V1Hash
impl Into<String> for V1Hash {
fn into(self) -> String {
self.to_string()
}
}
/// argon2id ... | Rust |
0 | his | NNP | 13 | 4 | 0.047757
3 | 2 | prevent | JJ | 6 | 4 | 0.047757
3 | 4 | . | . | 43 | 4 | 0.047757
...
</pre></li>
</ol>
<p><a class="anchor" id="background"></a></p><dl class="section user"><dt>Technical Background</dt><dd></d... | HTML |
coll_funcs);
}
}
// => Meta Contribution <= //
if (fworker->is_meta()) {
double** phi_xx = pworker->basis_value("PHI_XX")->pointer();
double** phi_xy = pworker->basis_value("PHI_XY")->pointer();
double** phi_xz = pworker->basis_value("PHI_XZ")->pointer();
double** ph... | C |
`U7` without bounds checking.
///
/// # Safety
/// Behavior is undefined if data > 127.
#[inline(always)]
pub unsafe fn from_unchecked(data: u8) -> U7 {
U7(data)
}
/// Create a `U7` from a `u8`. Only the 7 least significant bits of `note` are kept.
#[inline(always)]
pub con... | Rust |
#pragma once
#include "..\UsbDev\UsbDev.h"
#include "resource.h"
#include "ASIOSettings.h"
class ASIOSettingsDlg : public CPropertyPage
{
public:
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DLG_ASIO };
#endif
explicit ASIOSettingsDlg(UsbDevice &dev, ASIOSettings::Settings &info);
~ASIOSettingsDlg();
afx_msg v... | C |
FFFFFF";
context.fillRect(0, 0, width + PADDING, height);
};
/**
* Overlays a shadow from the wall on the left.
*/
this.addShadowLine = function() {
context.fillStyle = "#E1E7E7";
context.fillRect(0, 0, 12, height);
};
/**
* Overlays shadows cast by the surrounding machines.
*/
thi... | JavaScript |
(&ctx.http, format!("Voice stats measurement: {:?}", &om,))
.await,
);
},
Ok(None) => {
check_msg(
msg.channel_id
.say(
&ctx.http,
format!("I support the modes: {:?}", &OptInOutMode::LABEL_LIST),
)
.await,
);
},
Err(e) => {
check_msg(msg.channel_id.say(&ctx.htt... | Rust |
;#
;#
;# Gromacs 4.0 Copyright (c) 1991-2003
;# David van der Spoel, Erik Lindahl
;#
;# This program is free software; you can redistribute it and/or
;# modify it under the terms of the GNU General Public License
;# as published by the Free Software Foundation; either version 2
;# of the Licens... | Assembly |
": 1725388175,
// "iss": "Airbyte",
// "aud": "Airbyte!",
// "sub": "malik@airbyte.io",
// "exp": 1756328296731
// }
@Suppress("ktlint:standard:max-line-length")
private const val TEST_PAYLOAD_ENCODED =
"ewogICAgICAgICJsaWNlbnNlIjogInBybyIsCiAgICAgICAgIm1heE5vZGVzIjogNSwKICAgICAgICAibWF4RWRpdG9... | Kotlin |
,0x00]
v_cmpx_f_f16 0x3456, v2
// GFX10: encoding: [0xff,0x04,0xb0,0x7d,0x56,0x34,0x00,0x00]
v_cmpx_f_f16 v1, v255
// GFX10: encoding: [0x01,0xff,0xb1,0x7d]
v_cmpx_f_f16_e64 v1, v2
// GFX10: encoding: [0x7e,0x00,0xd8,0xd4,0x01,0x05,0x02,0x00]
v_cmpx_f_f16_e64 v255, v2
// GFX10: encoding: [0x7e,0x00,0xd8,0xd4,0xff,0... | Assembly |
<script src="/assets/mathjax/MathJax.js"> </script>
<script src="/assets/scripts/card.js" type="text/javascript"> </script>
</head>
<body class="::class::">
<div id="content">
::content::
</div>
</body>
</html>
"""
}
}
/*
* Copyright (c) 2024 Brayan Oliveira <br... | Kotlin |
\\1)[a-zA-Z]+\$")
return regExp.matches(textLower)
}
/**
* Funcion que detecta si una palabra es un isograma.
* Un isograma es una palabra en la que cada letra se repite exactamente el mismo numero de veces
* Una palabra en la que cada letra se repite una sola vez es a su vez un heterograma.
* Un palabra en la ... | Kotlin |
ublicKey) (m Bytes, err error)
//
// //Detached Signature
// func (b Bytes) SignDetached(key SignSecretKey) (sig Signature)
// func (b Bytes) SignVerifyDetached(sig Signature, key SignPublicKey) (err error)
//
//(Ed25519)
//
// //for multi-part messages that can't fit in memory
// func NewSignState() *Si... | Go |
[
Offset(-strokeOffset, -strokeOffset), Offset(strokeOffset, -strokeOffset),
Offset(strokeOffset, strokeOffset), Offset(-strokeOffset, strokeOffset),
Offset(0, -strokeOffset), Offset(0, strokeOffset),
Offset(-strokeOffset, 0), Offset(strokeOffset, 0),
... | Dart |
nsfer</td>
* <td><a href="https://xmpp.org/extensions/xep-0096.html">XEP-0096</a></td>
* <td></td>
* <td>Transfer files between two users over XMPP.</td>
* </tr>
* <tr>
* <td>URL Address Information</td>
* <td><a href="https://xmpp.org/extensions/xep-0103.html">XEP-0103</a></td>
* <td>org.jivesoftware.smackx.ur... | Java |
h")));
ticker.setVolume(BigDecimalUtil.safeGen(data.getString("vol24h")));
ticker.setQuoteVolume(BigDecimalUtil.safeGen(data.getString("volCcy24h")));
ticker.setBidPrice(BigDecimalUtil.safeGen(data.getString("bidPx")));
ticker.setBidQty(BigDecimalUtil.safeGen(data.getStr... | Java |
GitHub/spotio/skin/objects/_grid.scss */
html:not(.using-overlay-scroll-bars) .col-lg-offset-6 {
margin-left: 50%; }
/* line 1876, /Users/Devin/GitHub/spotio/skin/objects/_grid.scss */
html:not(.using-overlay-scroll-bars) .col-lg-offset-7 {
margin-left: 58.33333333%; }
/* line 1879, /Users/Devin/GitHub/... | CSS |
charges).
* SELFCHARGE value 0 sets current to max, 01,02,... (note the preceding 0)
* or more increments current by the value unless the max is reached.
*/
var doChangeCharges = function( args, selected, senderId ) {
if (!args) return;
if (!args[0] && args[1] && selected && selected.length) {
args... | JavaScript |
nt &doc) = 0;
virtual void scan(Document &doc) = 0;
};
struct MultiFunctionPrinter : IMachine { // OK
void print(Document &doc) override { //code
}
void fax(Document &doc) override { //code
}
void scan(Document &doc) override { //code
}
};
struct Scanner : IMachine { ... | Markdown |
3677.1700224365045]
,[2066.5759911280784,3842.7700224365044]
,[2165.875991128078,3677.1700224365045]
,[2066.5759911280784,3511.5700224365046]
,[2165.875991128078,3511.5700224365046]
,[2066.5759911280784,3677.1700224365045]
,[2165.875991128078,3842.7700224365044]
,[2265.175991128078,4008.3700224365043]
,[2364.4759911280... | Dart |
RgSF//dv9be+9trCwAI/vIE/26gXmviW5bqnb8yUK028qZjPfoPWEj4Ku5HBspgAz941IXZeze8N1bottSo8BTZviVWrEh546EO03EXpuJOdG63otJbjBKHkEp/Ml6yNYYzpuezWL4s5VMtT8acCMQcb5XL3eJE8VgBlR7BeMGW9Z4yT9y1CeyucuhdTGDxfftaBO7G4L+zg91UocxVmCiy51NpiP3n2treUPujL8xhOjYOzZYsQWANyRYlU4Y9Br6oHd5bDh0bCpSOixJiWx71YY09J5pM/WEbzFcDmHvwwBu2wnikg+lEj4mwBe5bC... | CSS |
M0NDOEJGNEZGNTcxMUUxODdBOEVCODg2RjdCQ0QwOSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozM0NDOEJGM0ZGNTcxMUUxODdBOEVCODg2RjdCQ0QwOSIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ1M1IE1hY2ludG9zaCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkZDN0YxMTc0MDcyMDY4MTE5NUZFRDc5MUM2MUUwNEREIiBzdFJlZjpkb2N1bWVudElEPSJ4... | HTML |
mt.Println(state.IsChanceNode())
fmt.Print(toString(state))
fmt.Println(state.Observation())
fmt.Println(state.ObservationPlayer(0))
fmt.Println(state.ObservationPlayer(1))
fmt.Println(state.InformationState())
fmt.Println(state.InformationStatePlayer(0))
fmt.Println(state.InformationStatePlayer(1))
fmt.Println... | Go |
pub const RCC_APB2LPENR_TIM10LPEN_Msk: u32 = 131072;
pub const RCC_APB2LPENR_TIM10LPEN: u32 = 131072;
pub const RCC_APB2LPENR_TIM11LPEN_Pos: u32 = 18;
pub const RCC_APB2LPENR_TIM11LPEN_Msk: u32 = 262144;
pub const RCC_APB2LPENR_TIM11LPEN: u32 = 262144;
pub const RCC_BDCR_LSEON_Pos: u32 = 0;
pub const RCC_BDCR_LSEON_Msk... | Rust |
0 0 3px 3px;-webkit-border-radius:0 0 3px 3px;border-radius:0 0 3px 3px}.cke_dialog_contents_body{overflow:auto;padding:17px 10px 5px 10px;margin-top:22px}.cke_dialog_footer{text-align:right;position:relative;border:0;outline:1px solid #bfbfbf;-moz-box-shadow:0 1px 0 #fff inset;-webkit-box-shadow:0 1px 0 #fff inset;box... | CSS |
: err.response.data.error_description
}
reject(payload)
})
})
}
export const verifyToken = (_req: Request, _res: Response, _next: NextFunction) => {
const token = _req.body.token || _req.query.token || _req.headers["x-access-token"]
if(!token) {
return _res.status(40... | Typescript |
class="poem">藤原妹红</div></td><td class="tt-zh" lang="zh"><div class="poem">这样的不幸我深有体会,<br>所以我更要看一看才甘心。</div></td></tr><tr class="tt-content" id="Stage_4-20" data-pos="["Stage 4",20]"><td id="上白泽慧音" class="tt-char" lang="zh"><div class="poem">上白泽慧音</div></td><td class="tt-zh" lang="zh"><div class="poem... | Markdown |
unListener()
}
override fun onRefresh(refreshLayout: RefreshLayout) {
mBinding.mineRefreshLayout.finishRefresh()
}
}package com.knight.kotlin.module_video.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.Re... | Kotlin |
g.studylog.application.dto.StudylogRequest;
import wooteco.prolog.studylog.application.dto.TagRequest;
public enum PostAcceptanceFixture {
POST1(
"[자바][옵셔널] 학습log 제출합니다.",
"옵셔널은 NPE를 배제하기 위해 만들어진 자바8에 추가된 라이브러리입니다. \n " +
"다양한 메소드를 호출하여 원하는 대로 활용할 수 있습니다",
1L,
TAG1,
... | Java |
) gid=1001(john) groups=1001(john)
$ groupmod -n john2 john
$ id john
uid=1001(john) gid=1001(john2) groups=1001(john2)
$ ls -ld ~john
drwx------. 3 john john2 4096 Feb 15 16:03 /home/john
```
## 参考链接
- [How to Add User to Group in Linux](https://linuxize.com/post/how-to-add-user-to-group-in-linux/), by Linuxize
# cp... | Markdown |
s at <a href="mailto:youremail@somewhere.com">youremail@somewhere.com</a>.
</p>
<hr>
<p>
<center><small>This communication is for the exclusive use of the addressee and may contain proprietary, confidential or privileged information. If you are not the intended recipient any use, copying, disclosure,... | HTML |
(--background-normal)}.tooltip.bottom-left .tooltip-arrow,.tooltip.top-left .tooltip-arrow{left:5px}.tooltip.bottom-right .tooltip-arrow,.tooltip.top-right .tooltip-arrow{right:5px}.tooltip.bottom-left .tooltip-arrow,.tooltip.bottom-right .tooltip-arrow{top:1px;border-width:0 5px 5px;border-bottom-color:#fff;border-bot... | CSS |
hasLocationPermission(): Boolean {
val context = this.context ?: return false
return ContextCompat.checkSelfPermission(
context,
android.Manifest.permission.ACCESS_FINE_LOCATION
) == PackageManager.PERMISSION_GRANTED
}
/**
* 检查位置服务是否开启
*/
private f... | Kotlin |
.entities.entities.Entity
import de.bixilon.minosoft.data.registries.blocks.factory.BlockFactory
import de.bixilon.minosoft.data.registries.blocks.handler.entity.EntityCollisionHandler
import de.bixilon.minosoft.data.registries.blocks.settings.BlockSettings
import de.bixilon.minosoft.data.registries.blocks.state.BlockS... | Kotlin |
coach3.setOnClickListener {
fragmentCommBinding.coach3.visibility = View.GONE
fragmentCommBinding.coach4.visibility = View.VISIBLE
fragmentCommBinding.coach4.isClickable = true
}
fragmentCommBinding.coach4.setOnClickListener {
fragmentCommBinding.coach4.vi... | Kotlin |
the y-axis (defined in the manipulator
/// base link's coordinate system)
IKP_TranslationZAxisAngleYNorm4D = 0x44000010, ///< end effector origin reaches desired 3D translation, manipulator
/// direction needs to be orthogonal to y-axis and be rotated at a
/// certain angle starting from the z-axis (defined i... | C++ |
SBAfF8E:hover {
background-color: #f0f3fa;
}
html.theme-dark .itemRow-1SBAfF8E:hover {
background-color: #2a2e39;
}
.itemRow-1SBAfF8E:hover .favoriteButton-1SBAfF8E {
opacity: 1;
}
}
.itemRow-1SBAfF8E.active-1SBAfF8E,
html.theme-dark .itemRow-1SBAfF8E.active-1SBAfF8E {
background-color: #2962ff;... | CSS |
),
CHEAT_CHOOSE_VALUE(1017),
CHEAT_VALUE(1018),
CHEAT_FROM(1019),
CHEAT_TO(1020),
CHEAT_NOTES(1021),
CHEAT_ADDCHEAT_ADD(1022),
CHEAT_ADDCHEAT_NEW(1023),
CHEAT_ADDCHEAT_CODEDES(1024),
CHEAT_ADDCHEAT_OPT(1025),
CHEAT_ADDCHEAT_OPTDES(1026),
//Edit Cheat
CHEAT_EDITCHEAT_WIND... | Java |
ransport!.send(response);
}
};
_transport!.onError = (error) {
logError('Transport error: $error');
};
_transport!.onClose = () {
logInfo('Transport closed');
if (!_isClosed) {
// トランスポートが閉じられた場合、サーバーも閉じる
close();
}
};
// トランスポートを開始
await _tra... | Dart |
290AA4 80 1D 00 B0 */ lwz r0, 0xb0(r29)
/* 80294E48 00290AA8 7C 7E 1B 78 */ mr r30, r3
/* 80294E4C 00290AAC 60 00 00 01 */ ori r0, r0, 1
/* 80294E50 00290AB0 90 1D 00 B0 */ stw r0, 0xb0(r29)
/* 80294E54 00290AB4 4B FD 99 09 */ bl OSDisableInterrupts
/* 80294E58 00290AB8 80 1D 00 B0 */ lwz r0, 0xb0(r29)
/* 80294E5... | Assembly |
星医药:公司主要从事<a href="http://www.to3158.cn/tags-y-p65e6e945839f9.html" target="_blank" class="relatedlink">药品</a>制造与研发。</p><p>中国疫苗十大排名 1<a href="http://www.to3158.cn/tags-s-h.html" target="_blank" class="relatedlink">上海</a>医药是由上海医药集团股份有限公司发行的一支<a href="http://www.to3158.cn/tags-g-p65e1cd813217a.html" target="_blank" class... | HTML |
1.125rem;
position: relative;
}
.gj-checkbox-md input[type="checkbox"] {
display: none;
margin-bottom: -0.75rem;
}
.gj-checkbox-md span {
position: relative;
display: inline-block;
box-sizing: border-box;
width: 1.125rem;
height: 1.125rem;
margin: 0;
cursor: pointer;
overfl... | CSS |
= this.groupEntityType;
return {
'groupClaim': groupClaim,
'groupEntityType': groupEntityType,
};
}
}
/// The claim in OIDC identity provider tokens that indicates a user's group
/// membership, and the entity type that you want to map it to. For example,
/// this object can map the contents of ... | Dart |
putAll(values);
return this;
}
private boolean hOGJFCLMMPC_ ;
/**
* <code>bool HOGJFCLMMPC = 12;</code>
* @return The hOGJFCLMMPC.
*/
@java.lang.Override
public boolean getHOGJFCLMMPC() {
return hOGJFCLMMPC_;
}
/**
* <code>bool HOGJF... | Java |
### 출력
<p><em>X</em>로부터 출발하여 도달할 수 있는 도시 중에서, 최단 거리가 <em>K</em>인 모든 도시의 번호를 한 줄에 하나씩 오름차순으로 출력한다.</p>
<p>이 때 도달할 수 있는 도시 중에서, 최단 거리가 <em>K</em>인 도시가 하나도 존재하지 않으면 -1을 출력한다.</p>
# [Silver I] RGB거리 - 1149
[문제 링크](https://www.acmicpc.net/problem/1149)
### 성능 요약
메모리: 31120 KB, 시간: 44 ms
### 분류
다이나믹 프로그래밍
### 제... | Markdown |
_UI_TextServices'*"]
pub const TF_DISABLE_SPEECH: u32 = 1u32;
#[repr(C)]
#[doc = "*Required features: 'Win32_UI_TextServices', 'Win32_Foundation'*"]
#[cfg(feature = "Win32_Foundation")]
pub struct TF_DISPLAYATTRIBUTE {
pub crText: TF_DA_COLOR,
pub crBk: TF_DA_COLOR,
pub lsStyle: TF_DA_LINESTYLE,
pub fBo... | Rust |
ed");
}
// From NonElementParentNode
Element? getElementById(String elementId) native;
// From ParentNode
@JSName('childElementCount')
int get _childElementCount native;
@JSName('firstElementChild')
Element? get _firstElementChild native;
@JSName('lastElementChild')
Element? get _lastElementCh... | Dart |
/*
* Start up graphics processing. Anything that needs to be assigned, set up,
* started-up, or otherwise initialized happens here. This is called only at
* the startup of the graphics driver.
*
* The external variables define the pixel limits of the graphics surface. The
* coordinate system used by the applic... | C |
/************************************************************************
Copyright (C) 1998,1999 NINTENDO CO,Ltd,
Copyright (C) 1998,1999 MONEGI CORPORATION,
All Rights Reserved
This program is a trade secret of NINTENDO CO,Ltd and MONEGI Corp.
and it is not to be reproduced, published, disclosed to others, copied... | Assembly |
3,0.171673889 6.24371163e-05,0.425928202 0,0.697816876 L0,1.59821386 Z" id="Fill-3" fill="url(#linearGradient-2)"></path> <path d="M4.57526789,0 L0,0 L8.10171278,22.6175146 C10.3784565,22.6742269 12.8139487,23 12.8139487,23 L4.57526789,0 Z" id="Fill-6" fill="#E50813"></path> </g> </g> </g> </g> </symbol><symbol id="che... | HTML |
null,
"grading_type": "points",
"group_category_id": null,
"id": 3484476,
"lock_at": null,
"peer_reviews": false,
"points_possible": 10,
"position": 31,
"unlock_at": null,
"course_id": 833052,
... | Kotlin |
// Copyright (c) 2020-2025 SharpCrafters s.r.o. and contributors.
// SharpCrafters s.r.o. licenses this file to you under either the MIT license or a proprietary license, depending on the repository from which it was obtained.
// Refer to LICENSE.md in the repository root for complete details.
using System;
using Syst... | C# |
b[wi[i]] = window_lb[wi[i+1]] - 1
window_ub[wi[11]] = 80 # last window has upper bound 80
prod = np.zeros((12,3)) # accumulate resources for stations
selection = x[12:].astype(numba.int32) # @njit requires numba types
for i, s in enumerate(selection):
ssize = sel_size[i] # start trying sele... | Python |
because we form a slice, a [*T,int] pair, not
/// a pointer to an LLVM array type.
pub const_globals: RefCell<HashMap<int, ValueRef>>,
/// Cache of emitted const values
pub const_values: RefCell<NodeMap<ValueRef>>,
/// Cache of external const values
pub extern_const_values: RefCell<DefIdMap<V... | Rust |
///
/// This is a workaround for being unable to do `&foo[start..end]` at compile time.
///
/// # Additional Errors
///
/// This method returns `Error::NotOnCharBoundary` if the range is not
/// on a character boundary.
///
/// Out of bounds range bounds are treated as being at `s.len()`... | Rust |
isters.add(reg));
ar.constantVariableRegex = "(^[0-9]+)|(^=)|#+|(LOC_+)|(loc_+)";
ar.memoryVariableRegex = "(\\[[\\s\\S]+\\])|(\\{[\\s\\S]+\\})";
// address operation operand1, operrand2; comments
ar.lineFormats = new ArrayList<>(Arrays.asList(new LineFormat(
"(?<OPT>[\\S]+)[\\s]+(?<OPN1>\\{*\\[*([^\\{\\... | Java |
-contrast: hsla(30, 100%, 55%, 1); // #FFAB19 Control Primary
$ui-orange-10percent: hsla(35, 90%, 55%, .1);
$ui-orange-25percent: hsla(35, 90%, 55%, .25);
$ui-orange-90percent: hsla(38, 100%, 55%, .9);
$ui-dark-orange: hsla(30, 100%, 55%, 1); // ##FF8C1A Variables Primary
$ui-red: hsla(20, 100%, 55%, 1); /* #FF661A *... | CSS |
ss from "./styles.css";
function Component() {
const i18n = useI18n();
const dispatch = useDispatch();
const recordType = RESOURCES.activity_logs;
const currentFilters = useMemoizedSelector(state => getAppliedFilters(state, recordType));
const defaultFilters = currentFilters;
const onTableChange = filte... | JavaScript |
"Permalink to this headline">¶</a></h3>
<ul class="simple">
<li><p id="change-0.4.8-3"><span class="target" id="change-7fee195a017ac2215e80b38b868365e9"><strong>[sql] </strong></span>column.in_(someselect) can now be used as
a columns-clause expression without the subquery
bleeding into the FROM clause<a class="changes... | HTML |
stance = s.previousInstanceName(server)
} else {
s.logger.Debug("resolved proxy instance", zap.String("server", server), zap.String("instance", instance))
grp.instance = instance
}
agg[key] = grp
}
}
func (s *mountScraper) previousInstanceName(server string) string {
return s.previous[server].instance
}... | Go |
namespace auto_Bot_50;
using ChessChallenge.API;
using System;
using System.Collections.Generic;
//****************************
// TLMChessBot by Möhrchen :)
//****************************
//Estimated Chess.com rating: 1250
//Link to doc: [https://seblague.github.io/chess-coding-challenge/documentation/]
public... | C# |
n:before {
display: block;
font-size: 1.6em;
margin: .2em auto;
}
.card span:after {
position: absolute;
top: 0;
left: .5em;
display: block;
width: 1em;
font-size: 1.6em;
}
.card.card-facedown {
background-color: #cccc99;
}
.card.card-facedown:before,
.card.card-facedown:after,
.card.card-facedown >... | CSS |
());
}
#[test]
fn enum_with_tuple_variants() {
#[derive(Serialize, TypescriptDefinition)]
enum Enum {
#[allow(unused)]
V1(i64, String),
#[allow(unused)]
V2(i64, bool),
#[allow(unused)]
V3(i64, u64),
}
assert_eq!(Enum___typescript_definition(), quote!{
... | Rust |
dings. */
enum InputBind_ {
BIND_FORWARD, BIND_BACK, BIND_LEFT, BIND_RIGHT,
BIND_JUMP, BIND_RESPAWN, BIND_SET_SPAWN, BIND_CHAT,
BIND_INVENTORY, BIND_FOG, BIND_SEND_CHAT, BIND_TABLIST,
BIND_SPEED, BIND_NOCLIP, BIND_FLY, BIND_FLY_UP, BIND_FLY_DOWN,
BIND_EXT_INPUT, BIND_HIDE_FPS, BIND_SCREENSHOT, BIND_FULLSCREEN,
BI... | C |
let body = offsets
.chain([exclusive_lim - 1].into_iter())
.tuple_windows()
.step_by(2)
.map(|(lower, upper)| InclRange::new(lower, upper));
head.chain(body)
.collect::<Vec<_>>()
.into()
}
}
impl<T, U> From<T> for RangeVec
w... | Rust |
olve
:returns: An instance of `Resource`, if it was found
"""
if self._resolved and refid in self._resolved:
return self._resolved[refid]
return self._owner.resolvedReference(refid) if self._owner is not None else None
def didResolveReference(self, refid, resolved):
... | Python |
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* Fluent Bit
* ==========
* Copyright (C) 2019-2021 The Fluent Bit Authors
* Copyright (C) 2015-2018 Treasure Data Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in co... | C |
6];
hk_real b[6];
hk_real A[6][6];
int idx, jdx;
for( idx = 0; idx < 3; idx++ ){
x[idx] = sx.top(idx);
b[idx] = sb.top(idx);
x[idx+3] = sx.bottom(idx);
b[idx+3] = sb.bottom(idx);
for( jdx = 0; jdx < 3; jdx++ ){
A[idx][jdx] = m_Block[0][0](idx,jdx);
A[idx+3][jdx] = m_Block[1][0](idx,... | C++ |
-flex{display:inline-flex!important}.d-print-none{display:none!important}}
/*# sourceMappingURL=bootstrap-utilities.min.css.map */@charset "UTF-8";/*!
* Bootstrap v5.1.3 (https://getbootstrap.com/)
* Copyright 2011-2021 The Bootstrap Authors
* Copyright 2011-2021 Twitter, Inc.
* Licensed under MIT (https://github.c... | CSS |
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Classifier trained on dialogue safety datasets: WikiToxicComments, Build it Break it Fix
it standard and adversarial ... | Python |
(
RegExp(r'[\\/:*?"<>|]+'),
'_',
) // basic invalid-file-char cleanup
.replaceAll(' ', '_');
safeTitle = safeTitle.isEmpty ? 'Untitled' : safeTitle;
final filePath = await FilePicker.platform.saveFile(
dialogTitle:
'Exporting ${prompt.title.isEmpty ? 'Prompt' ... | Dart |
goto Error;
} else {
if (!short_output && !quiet) {
fprintf(stderr, "Saving file '%s'\n", out_file);
}
}
if (keep_metadata == 0) {
picture.writer = MyWriter;
picture.custom_ptr = (void*)out;
} else {
picture.writer = WebPMemoryWrite;
picture.custom_ptr ... | C |
__s/*# if (crd) { */, __a2__ = F__f2__/*# } */; i != __a2__e; i += __a2__j/*# for (int i1 = 1; i1 < itc; i1++) { */, i__i1__ += __a2__j__i1__/*# }
if (crd) { */, __a2__++/*# } */)
{
//# if (pre) {
__preLineAct__(/*# if (crd) { */__a3__, __a2__/*# } */);
/... | C# |
r(var c in l)o.o(l,c)&&!o.o(s,c)&&Object.defineProperty(s,c,{enumerable:!0,get:l[c]})},o.o=(s,l)=>Object.prototype.hasOwnProperty.call(s,l),o.r=s=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})};var i={};return o.r(i)... | JavaScript |
者長靴",
[28547] = "元素能量提取器",
[28548] = "元素力量",
[28550] = "燃焰火炬",
[28551] = "惡魔劫奪者零件",
[28552] = "神秘的秘典",
[28553] = "驅魔者指環",
[28554] = "伐木機節能零件",
[28555] = "驅魔者之印",
[28556] = "迅捷的風火鑽石",
[28557] = "迅捷的星火鑽石",
[28558] = "鬼靈裂片",
[28559] = "驅魔者鎧甲頭盔",
[28560] = "驅魔者綴甲頭盔",
[28561] = "驅魔者皮革頭盔",
[28562] = "不屈戰爭號角",
[28563] = "末日裂爪... | Lua |
elative;line-height:22px;padding-left:30px;font-size:12px}.layim-menu-box li cite{padding-right:5px;font-size:14px}.layim-menu-box li i{display:none;position:absolute;left:8px;top:0;font-weight:700;color:#5FB878}.layim-menu-box .layim-this i{display:block}.layim-menu-box li:hover{background-color:#eee}.layui-layim-rema... | CSS |
contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF ME... | C++ |
accountDAO.selectById(
this._tokenData.accountId!,
);
if (!account.length) {
this._log.error('The account doesn´t exist');
throw new Error('The account doesn´t exist');
}
const personCreated = await this._personDAO.create({
name: this._payload.name,
lastname: this._payloa... | Typescript |
= spim::Spim::new(cx.device.SPIM0, pins, spim::Frequency::M1, spim::MODE_0, 0);
let neopixel = port0.p0_26.into_push_pull_output(Level::High).degrade();
let mut pwm = pwm::Pwm::new(cx.device.PWM0);
pwm.set_output_pin(pwm::Channel::C0, &neopixel);
pwm.set_period(800u32.hz());
// ... | Rust |
string watchlistID, string accountID = null)
{
if (watchlistID == null)
{
throw new ArgumentNullException("watchlistID");
}
if (watchlistID.Trim() == string.Empty)
{
throw new ArgumentException(string.Format(Errors.Cann... | C# |
all_logits.append(torch.flip(logits_vflip, dims=[2]))\\n\\n # 4. Horizontal + Vertical flip\\n # Apply both flips augmentation to image first\\n image_hvflip = A.Compose([A.HorizontalFlip(p=1.0), A.VerticalFlip(p=1.0)])(image=image)[\\"image\\"]\\n transformed_hvflip = va... | HTML |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.