content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
touch: three finter swipe
//
// This is a drop-in replacement for (most) TrackballControls used in examples.
// That is, include this js file and wherever you see:
// controls = new THREE.TrackballControls( camera );
// controls.target.z = 150;
// Simple substitute "OrbitControls" and the control should work ... | JavaScript |
holderTextureLayered", "get_size", 3690982128)
internal val setLayersPtr: VoidPtr =
TypeManager.getMethodBindPtr("PlaceholderTextureLayered", "set_layers", 1286410249)
}
}
// THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantMo... | Kotlin |
e, 0x31, 0x33, 0x34, 0x2e, 0x31, 0x30, 0x30,
}
)
type mpeg4Video struct {
RTPMaxPayloadSize int
Format *format.MPEG4Video
GenerateRTPPackets bool
Parent logger.Writer
encoder *rtpfragmented.Encoder
decoder *rtpfragmented.Decoder
randomStart uint32
}
func (t *mpeg4Video) initi... | Go |
"},o),y.createElement("path",{d:"M18.3626 41.293C17.5103 41.4285 16.7096 40.8474 16.5742 39.9952C16.4387 39.143 17.0198 38.3423 17.872 38.2068C18.2902 38.1403 18.6988 38.0456 19.0958 37.9246C21.9368 37.059 24.1957 34.8468 25.1254 32.0335C25.2671 31.6049 25.378 31.1621 25.4555 30.7076C25.6005 29.857 26.4076 29.2849 27.2... | JavaScript |
class="fa fa-check"></i><b>6.2</b> Implementation</a></li>
<li class="chapter" data-level="6.3" data-path="widgets-realistic.html"><a href="widgets-realistic.html#widgets-realistic-html-element"><i class="fa fa-check"></i><b>6.3</b> HTML Element</a></li>
</ul></li>
<li class="chapter" data-level="7" data-path="widgets-... | HTML |
ck void1)
void funcionVoid(void Function() void1) {
void1();
}
/// Tipos de datos que vamos a retornar
/// String -> el valor que puede retornar la funcion
/// (int) -> el tipo de dato del argumento
void funcionDatos(String Function(int, int) funcion) {
final valor = funcion.call(1,2);
print("El valor es: $valo... | Dart |
�ს."],"Your Receipt":[null,"ქვითარი"],"pending confirmation":[null,"ტრანზაქცია არ დადასტურებულა"],"Your coins were sent to:":[null,"ქოინები გაიგზავნა მისამართზე:"],"This machine does not handle the currency you requested.":[null,"თქვენ მიერ მოთხოვნილი ვალუტა არაა მხარდაჭერილი."],"Please cash out at a machine that handl... | JavaScript |
orever.
*/
lcdc_writel(sinfo, ATMEL_LCDC_IDR, ~0U);
sinfo->saved_lcdcon = lcdc_readl(sinfo, ATMEL_LCDC_CONTRAST_CTR);
lcdc_writel(sinfo, ATMEL_LCDC_CONTRAST_CTR, 0);
atmel_lcdfb_power_control(sinfo, 0);
atmel_lcdfb_stop(sinfo);
atmel_lcdfb_stop_clock(sinfo);
return 0;
}
static int atmel_lcdfb_resume(struct ... | C |
// Copyright (c) 2008-2023 the Urho3D project
// Copyright (c) the Dviglo project
// License: MIT
#pragma once
#include "constraint_2d.h"
namespace dviglo
{
/// 2D mouse constraint component.
class DV_API ConstraintMouse2D : public Constraint2D
{
DV_OBJECT(ConstraintMouse2D);
public:
/// Construct.
exp... | C |
creativecommons.org/licenses/by-nc-sa/4.0/)
分类在大量语境下都非常重要。例如,如果我们打算自动化一些决策过程,我们可以利用分类。在我们需要研究诈骗的情况下,有大量的事务,人去检查它们是不实际的。所以,我们可以使用分类都自动化这种决策。
## 4.1 使用决策树实现基本的分类
这个秘籍中,我们使用决策树执行基本的分类。它们是非常不错的模型,因为它们很易于理解,并且一旦训练完成,评估就很容易。通常可以使用 SQL 语句,这意味着结果可以由许多人使用。
## 准备
这个秘籍中,我们会看一看决策树。我喜欢将决策树看做基类,大量的模型从中派生。它是个非常简单的想法,但是适用于大量的情况。
... | Markdown |
<pre class="example">
typedef enum bfd_reloc_status
{
/* No errors detected. */
bfd_reloc_ok,
/* The relocation was performed, but there was an overflow. */
bfd_reloc_overflow,
/* The address to relocate was not within the section supplied. */
bf... | HTML |
/*
* Copyright 2011, 2012, DFKI GmbH Robotics Innovation Center
*
* This file is part of the MARS simulation framework.
*
* MARS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation, either versio... | C |
%s]: "%s", was invalid, expected %s', index, input_args[index], value.type))
GamePrint(string.format('Argument [%s]: "%s", was invalid, expected %s', index, input_args[index], value.type))
current_input_text = ""
command_locked_in = false
return false
end
end
... | Lua |
false;
_animator.bodyPosition = _animator.rootPosition;
_animationTimer = 0f; // Reset and start the timer
}
private void OnDestroy()
{
if (_vxmOverlay != null)
{
_vxmOverlay.OnRecognitionStateBe... | C# |
fxSelectKnob);
} else if (fxSelectKnob == 3 && Jockey3ME.fxSelectKnobPushIterator[(currentDeck - 1) + 8]) {
Jockey3ME.effectSelectParamLinkChose(currentDeck,value,control,status,fxSelectKnob);
}
}
Jockey3ME.effectSelectParamLinkChose = function (currentDeck,value,control,status,fxSelectKnob) {
if (Jockey3ME.fxSel... | JavaScript |
_args();
let mut config = ZkSyncConfig::from_env();
let key_without_prefix = opt
.operator_private_key
.strip_prefix("0x")
.unwrap_or_else(|| opt.operator_private_key.as_str());
config.eth_sender.sender.operator_private_key =
H256::from_str(key_without_prefix).expect("Canno... | Rust |
go,255,170,0,255);
else
CSAPI.SetImgColor(go,112,112,112,255);
end
end
lvStr="<color=#FFC432>"..curLv.."</color>/"..#cfgs;
else
LogError("不存在类型为:"..eSkillCfg.group.."的装备技能类型!");
end
... | Lua |
rtifacts, error) {
res, err := d.devopsClient.GetBranchArtifacts(projectName, pipelineName, branchName, runId, convertToHttpParameters(req))
if err != nil {
klog.Error(err)
return nil, err
}
return res, err
}
func (d devopsOperator) GetBranchRunLog(projectName, pipelineName, branchName, runId string, req *ht... | Go |
length != domain.length &&
PublicSuffixDatabase.get().getEffectiveTldPlusOne(domain) == null) {
return null
}
// If the path is absent or didn't start with '/', use the default path. It's a string like
// '/foo/bar' for a URL like 'http://example.com/foo/bar/baz'. It always starts w... | Kotlin |
20it\x20might\x20contain\x20\"care\x20of\"\x20informatio\
n.\n\n\r\n\x05\x04\0\x02\t\x04\x12\x04\x81\x01\x02\n\n\r\n\x05\x04\0\x02\
\t\x05\x12\x04\x81\x01\x0b\x11\n\r\n\x05\x04\0\x02\t\x01\x12\x04\x81\x01\
\x12\x1c\n\r\n\x05\x04\0\x02\t\x03\x12\x04\x81\x01\x1f!\nF\n\x04\x04\0\
\x02\n\x12\x04\x84\x01\x02... | Rust |
width glyphs (flush)
at the end of each line
if it does not otherwise fit prior to justification;
otherwise set the punctuation with full-width glyphs.
<dt><dfn class="css dfn-paneled" data-dfn-for="text-spacing" data-dfn-type="value" data-export id="valdef-text-spacing-space-end">space-end</dfn>
... | HTML |
= newIntentCreator?.invoke(intent) ?: return false
emit(event)
return true
}
}package ru.surfstudio.android.network.sample.interactor.product.network.response
import com.google.gson.annotations.SerializedName
import ru.surfstudio.android.network.Transformable
import ru.surfstudio.android.network.s... | Kotlin |
}
c.Run(nil)
output := done(t).All()
if !strings.Contains(output, "Interrupt received") {
t.Errorf("output didn't produce the right output:\n\n%s", output)
}
if provider.ResourceCount() > 0 {
// we asked for a nice stop in this one, so it should still have tidied everything up.
t.Errorf("should have del... | Go |
Test
import org.junit.Test
class ResourceUriFetcherTest {
private val fetcherFactory = ResourceUriFetcher.Factory()
@Test
fun rasterDrawable() = runTest {
val uri = "$SCHEME_ANDROID_RESOURCE://${context.packageName}/${R.drawable.normal}".toUri()
val options = Options(context, size = Size(... | Kotlin |
� 된다.
```python
class 클래스_이름(상속할 클래스_이름)
# class 자식_클래스_이름(부모_클래스_이름)
```
<br>
> `a^b`를 계산하는 MoreFourCal 클래스를 만들어보자.
```python
# fourCalClassTest.py
from FourCal import FourCal
class MoreFourCal(FourCal):
pass
a=MoreFourCal(4,2)
print(a.add()) # 6
```
<br>
## 4.3 기능 추가(메서드 확장)
> 위 코드에서 **부모 클래스의 기능에 새로운 메서... | Markdown |
sEvent.EventID, err.Error())
return
}
}
startStopStruct := &api_model.StartStopStruct{
TenantID: tenantID,
ServiceID: serviceID,
EventID: sEvent.EventID,
TaskType: "start",
}
if err := handler.GetServiceManager().StartStopService(startStopStruct); err != nil {
httputil.ReturnError(r, w, 500, "g... | Go |
</p>
<h3>[method:Integer ceilPowerOfTwo]( [param:Number n] )</h3>
<p>返回大于等于 [page:Number n] 的2的最小次幂。</p>
<h3>[method:Integer floorPowerOfTwo]( [param:Number n] )</h3>
<p>返回小于等于 [page:Number n] 的2的最大幂。</p>
<h3>[method:Float radToDeg]( [param:Float radians] )</h3>
<p>将弧度转换为角度。</p>
<h3>[method:Float r... | HTML |
g f24, f1
.L_802EA020:
/* 802EA020 002E6F60 7F E3 FB 78 */ mr r3, r31
/* 802EA024 002E6F64 81 9F 00 00 */ lwz r12, 0(r31)
/* 802EA028 002E6F68 81 8C 00 64 */ lwz r12, 0x64(r12)
/* 802EA02C 002E6F6C 7D 89 03 A6 */ mtctr r12
/* 802EA030 002E6F70 4E 80 04 21 */ bctrl
/* 802EA034 002E6F74 EC 38 08 2A */ fadds f1, f2... | Assembly |
38 9E 00 E4 */ addi r4, r30, 0xe4
/* 8036E810 0036A470 4B FF 44 65 */ bl Erase__Q44nw4r2ut6detail12LinkListImplFPQ34nw4r2ut12LinkListNode
/* 8036E814 0036A474 2C 1E 00 00 */ cmpwi r30, 0
/* 8036E818 0036A478 41 82 00 10 */ beq lbl_8036E828
/* 8036E81C 0036A47C 7F A3 EB 78 */ mr r3, r29
/* 8036E820 0036A480 7F C4 F... | Assembly |
it("load from file", () => {
let data = fs.readFileSync(__dirname + "/data/minimal.xml", { encoding: "utf-8" });
let scenario = MilitaryScenario.createFromString(data.toString());
expect(scenario.units).toBeInstanceOf(Array);
expect(scenario.units.length).toBe(0);
expect(scenario.equipment).toB... | Typescript |
ds State<MyHomePage> {
int _currentIndex = 0;
final List<Widget> _tabs = [
TtsScreen(),
InfoScreen(),
IsolateTtsView(),
];
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(widget.title),
),
body: _tabs[_currentIndex],
b... | Dart |
},M=e=>{let{className:t}=e;return(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:t,children:[(0,i.jsx)("path",{d:"M8.78158 8.60266L9.8188 5.49098C10.037 4.83634 10.963 4.83634 11.1812 5.49098L12.2184 8.60266C12.7187 10.1035 13.8965 11.2813 15.3973 11... | JavaScript |
month`, `day`, `hour`, `minute`, `second`, '
'and `millisecond` fields.',
),
_localDateTimeNotUtcExplanation,
_localDateTimeToTimetableExplanation,
];
static final _dateExplanation = [
ErrorDescription(
'A valid date for timetable must be a valid `DateTime` for timetable '
'and be ... | Dart |
命组织提出这样的口号,叫做“文攻武卫”,这个口号是对的。(热烈鼓掌)我们坚持毛主席提出的文斗,坚决反对武斗,做深入的群众工作,这是第一条,同志们要向群众深入地宣传这一条,做比较艰苦的群众工作,要广大的群众识破一小撮人的阴谋,是要做一些工作的。但是,还要有第二条,不能天真烂漫。当他们不放下武器,拿着枪枝、长矛、大刀对着你们,你们就放下武器,这是不对的。你们要吃亏的,革命小将你们要吃亏的。现在在武汉就有这个情况。当然,武汉的革命小将也在采取自卫手段。同志们,当我们听到“百万雄师”以及他们的幕后一小撮操纵者拿着那样的武器对手无寸铁的革命群众行凶,甚至绑架、殴打我们的谢富治同志、王力同志,我们能允许吗!(群众高呼口号)
</p>
<... | HTML |
kvc KeyValueChan, size int) SigChan {
sigChan := make(SigChan)
go func() {
ctr := 0
for {
<-sigChan
ctr++
if ctr == size {
close(kvc)
return
}
}
}()
return sigChan
}
// Perform the reducing.
func performReducing(mapEmitChan KeyValueChan, reduceFunc ReduceFunc, reduceSize int, reduce... | Go |
used:%v", e.Sub(b))
}
i := 0
for r := NewRetry(RetryAttemptMax(1), RetryDurationMin(time.Millisecond*10), RetryDurationMax(time.Millisecond*50)); r.Valid(); r.Next() {
i++
}
if i != 1 {
t.Fatalf("expect retry 1, current i:%d", i)
}
i = 0
for r := NewRetry(RetryAttemptMax(3), RetryDurationMin(time.Millis... | Go |
if (this.audioContext == null) {
this.audioContext = new AudioContext();
const decodePromises = this.samples.map((sample) => sample.decode(this.audioContext));
await Promise.all(decodePromises);
}
}
async onPlayButtonClick() {
await this.initializeContext();
const sample = this.getCurrentSam... | Typescript |
# set the status bit and store status
orr r3, r3, r1
str r3, [r2]
# mask this interrupt
str r1, [r4, #AIC_IDCR]
# Mark the End of Interrupt on the AIC
str r0, [r4, #AIC_EOICR]
.ifndef KERNEL_SQUAWK
ldmfd sp!, {r0-r4, r12, pc}^
.else
# That marks the end of th... | Assembly |
field_pic_order_in_frame_present_flag == 1 && !currSlice->field_pic_flag) {
READ_SE(p_bitctx, &currSlice->delta_pic_order_cnt[1]);
} else {
currSlice->delta_pic_order_cnt[1] = 0; //!< set to zero if not in stream
}
} else {
... | C |
/***********************************************************************
GLEXTFramebufferBlit - OpenGL extension class for the
GL_EXT_framebuffer_blit extension.
Copyright (c) 2010-2014 Oliver Kreylos
This file is part of the OpenGL Support Library (GLSupport).
The OpenGL Support Library is free software; you can red... | C |
development workflow.
{% endraw %}
---
layout: none
title: Memory Fragment
---
{% raw %}
# MySQL GUI and Reset
**SYSTEM**:
**USER**: Hey there - so i'm still having issues with mysql
Is there a GUI I can use to manage my databases instead of terminal commands? Also how do I reset all databases and pretty much ju... | Markdown |
ЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृนั้ढूँ]","comparisonAlwaysTrue":"[0TOLo][นั้Çøñðïtïøñ wïll ælwæÿs ëvælµætë tø Trµë sïñçë thë tÿpës \\"{lëftTÿpë}\\" æñð \\"{rïghtTÿpë}\\" hævë ñø øvërlæpẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृまẤğ倪İЂҰक्र्तिृนั้ढूँ]","comprehensionInDict":"[Orm2O][นั้Çømprëhëñsïøñ çæññøt þë µsëð wïth øthër ðïçtïø... | JavaScript |
i = 0; i < n; i++)
{
let X = arr[i];
for(let j = i; j < n; j++)
{
X &= arr[j];
// Find the overall minimum
ans = Math.min(ans, Math.abs(k - X));
}
}
return ans;
}
// Driver code
let arr = [4, 7, 10 ];
let n = arr.length;
let k = 2;
docu... | Markdown |
ber
/** Intensity of erosion */
erosion: "vlow" | "low" | "med" | "high" | "vhigh"
/** Level of submersion for 2-year event */
submersion2Y: "min" | "moy" | "max"
/** Level of submersion for 20-year event */
submersion20Y: "min" | "moy" | "max"
/** Level of submersion for 100-year event */
submersio... | Typescript |
olverDns01Digitalocean
.listFromJson(
entry.value,
growable: growable,
);
}
}
return map;
}
/// The list of required keys that must be present in a JSON.
static const requiredKeys = <String>{
'tokenSecretRef',
};
}
//
// AUTO-GENERATED FILE, DO NOT MODI... | Dart |
/*
* Copyright (c) 2017-2018 The DragonFly Project. All rights reserved.
*
* This code is derived from software contributed to The DragonFly Project
* by Matthew Dillon <dillon@dragonflybsd.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that th... | C |
WARN("init datum row failed", K(ret), K(request_cnt));
} else if (OB_UNLIKELY(current_row_.get_column_count() != request_cnt)) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("unexpected err", K(ret), K(request_cnt), "datum_row_cnt", current_row_.get_column_count());
} else if (cur_row_pos_ >= executor->get_total_cente... | C++ |
<td><img src="img-apple-64/1f1f0-1f1ff.png" width="20" height="20" /></td>
<td><img src="img-google-64/1f1f0-1f1ff.png" width="20" height="20" /></td>
<td><img src="img-twitter-64/1f1f0-1f1ff.png" width="20" height="20" /></td>
<td><img src="img-facebook-64/1f1f0-1f1ff.png" width="20" height="20" /></td>
<td... | HTML |
4,] -0.01291739 0.47355948
## [5,] -0.17745114 -0.45087778
## [6,] -0.36745659 0.04891272</code></pre>
<pre><code>## [1] Type 1 Type 1 Type 1 Type 1 Type 1 Type 1
## Levels: Type 1 Type 2</code></pre>
<p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABUAAAAPACAYAAAD0ZtPZAAAEGWlDQ1BrQ0dDb2xvclNwYWNlR2VuZXJpY1... | HTML |
Version.Group + "/" + testGroupVersion.Version + "/watch/foo/bar", http.StatusNotFound},
"proxy object": {"GET", "/" + prefix + "/" + testGroupVersion.Group + "/" + testGroupVersion.Version + "/proxy/foo/bar", http.StatusNotFound},
}
handler := handle(map[string]rest.Storage{
"foo": UnimplementedRESTStorage{},
... | Go |
ttps://mmbiz.qpic.cn/mmbiz_png/awCdqJkJFEQW4Ric0cHPQseVlBPiamw57ibvT2oM6s0FfNnWXoHF7jtQKmgOP0oQS6cV0aUyp8be7g5oBiapZoibibCQ/640?wx_fmt=png&from=appmsg "")
查看导出的解析结果:
, rclone will replace the fullwidth `:` with the
halfwidth `:` and store the file as `Test:... | Markdown |
"se\"9\362\206\0315\n%\n\004POST\022\027/mlflow/runs/log-metri" +
"c\032\004\010\002\020\000\020\001*\nLog Metric\022t\n\010logParam\022\020.mlfl" +
"ow.LogParam\032\031.mlflow.LogParam.Response\";" +
"\362\206\0317\n(\n\004POST\022\032/mlflow/runs/log-parameter" +
"\032\004\010\002\020\00... | Java |
,526 L518,445 Q493,457 469,463 Q445,470 425,470 Q404,470 395,463 Q386,456 386,445 Q386,436 393,429 Q401,422 417,413 Q433,405 461,392 Q490,380 509,365 Q529,351 539,331 Q549,311 549,281 Z" /></symbol><symbol id="OBSERVED/MORX-29/3.C" overflow="visible"><path d="M151,-28 Q30,-28 30,94 L30,620 Q30,742 151,742 L678,742 Q800... | HTML |
import numpy as np
from PuzzleLib.Cuda.GPUArray import extendGPUArray, arithmTest
from PuzzleLib.Hip import Driver as HipDriver
from PuzzleLib.Hip.SourceModule import HipEltwiseKernel, HipEltHalf2Kernel, HipReductionKernel
HipGPUArray = extendGPUArray(HipDriver, HipEltwiseKernel, HipEltHalf2Kernel, HipReductionKern... | Python |
td>
<td><a href="https://www.nationsonline.org/oneworld/country_code_list.htm">Long URL - Hover to view or click to launch</a></td>
<td>MetaOSINT</td>
<td>2</td>
</tr>
<tr>
<td>E-Commerce & Cryptocurrency</td>
<td>Banking & Banking Identifiers (BINs)</td>
<td>... | HTML |
olish
+ "ps" + "pus" // Pushto
+ "pt" + "por" // Portuguese
+ "qu" + "que" // Quechua
+ "rm" + "roh" // Raeto-Romance
+ "rn" + "run" // Rundi
+ "ro" + "ron" // Romanian
+ "ru" + "rus" // Russian
+ "rw" + "kin" // Kinyarwanda
+ "sa" + "san" ... | Java |
general, we follow this priority list for addressing concerns about prompting and other eval details:
1. If there is widespread agreement among people who train LLMs, use the agreed upon procedure.
2. If there is a clear and unambiguous official implementation, use that procedure.
3. If there is widespread agreement a... | Markdown |
-dns_body .label-item .label-item_key span[data-v-5cf1870c]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.actioner-dns .actioner-dns_body .label-item .label-item_key span[data-v-5cf1870c]:before{content:"*";color:#f56c6c;margin-right:4px}.actioner-dns .actioner-dns_body .label-item .label-item_value[data-v... | CSS |
lor = {
RED: 1,
GREEN: 2,
BLUE: 3
};
Object.freeze(Color);
```
在 Scala 3 中,您可以使用枚举做很多事情。
您可以创建该代码的等效代码:
```scala
enum Color:
case Red, Green, Blue
```
你可以创建带参数的枚举:
```scala
enum Color(val rgb: Int):
case Red extends Color(0xFF0000)
case Green extends Color(0x00FF00)
case Blue extends Color(0x0000FF... | Markdown |
e --warmup-init-lr 1e-7 --warmup-updates 10000 \
--lr-shrink 1 --lr 0.001 --min-lr 1e-7 --warmup-init-lr 1e-07 \
--t-mult 1 --lr-period-updates 20000 \
--arch lightconv_wmt_en_de_big --save-dir $SAVE \
--dropout 0.3 --attention-dropout 0.1 --weight-dropout 0.1 \
--encoder-glu 1 --decoder-glu 1
# Ev... | Markdown |
le, Stranglethorn Vale."},nil,{nil,nil,{{19716}},{270,3000}},nil,nil,nil,nil,nil,nil,19,nil,nil,nil,nil,nil,8,nil,nil,{{270,350}}},
[8063] = {"Paragons of Power: The Madcap's Bracers",{{14905}},{{14905}},58,60,0,8,{"Bring Falthir the Sightless a Primal Hakkari Armsplint. You must also have a reputation equal to or grea... | Lua |
, ncurve, tmp);
tmp.swap(vpos);
}
const int nc = vpos.size();
cpa.resize(nc);
cout << "Segment " << iv1 << " vpos = " << vpos << endl;
if (shapeFlag == Bump) {
// use plain bump with offset
for (int i=0; i<nc; ++i) {
// bump coordinate
Real fs(fwdScale), rs(rearScale), dz(0.0);
... | C++ |
["igItemHoverable"][1] = {}
defs["igItemHoverable"][1]["args"] = "(const ImRect bb,ImGuiID id)"
defs["igItemHoverable"][1]["argsT"] = {}
defs["igItemHoverable"][1]["argsT"][1] = {}
defs["igItemHoverable"][1]["argsT"][1]["name"] = "bb"
defs["igItemHoverable"][1]["argsT"][1]["type"] = "const ImRect"
defs["igItemHoverable... | Lua |
# 缓存不安全 设计上保留血缘关系
# checkPoint 设计上不保留血缘关系
from pyspark import SparkContext,SparkConf
from time import time
start = time()
if __name__=='__main__':
conf = SparkConf().setMaster("local[*]").setAppName("WordCountHellowWorld")
# 通过conf 构建 SparkContext
sc = SparkContext(conf=conf)
# 设置checkPoint保存路径
... | Python |
= self._match_id(url)
webpage = self._download_webpage(url, video_id)
video_info = self._search_nextjs_data(webpage, video_id)['props']['pageProps']['data']
# Two types of metadata JSON
if not video_info.get('formattedIdMedia'):
video_info = traverse_obj(
vi... | Python |
canvas");
}
}
public Vector2 Origin { get; }
private async ValueTask DrawPowerPills(CanvasWrapper session)
{
EnsureLevelStats();
foreach (var p in _powerPillPositions)
{
if (_levelStats.GetCellContent(p) == '*')
{
_powerPill.Posi... | C# |
404 18 487 61 14 8 37 14 50 14 13 0 33 7 44 15 10 8 26 15 35 15 14 0 179 80 237 115 232 139 435 342 579 580 6 11 31 59 55 107 24 48 49 88 56 88 9 0 12 621 12 3070 0 2918 -1 3070 -17 3069 -10 -1 -27 -3 -38 -6z"/> </g> </svg>');
mask: url('data:image/svg+xml;utf8,<svg version="1.0" xmlns="http://www.w3.org/2000/svg" v... | CSS |
mov r0, r6, lsl #0x10
mov r5, r0, lsr #0x10
mov r0, r5
bl DseSe_GetById
cmp r0, #0
bne _0206ECBC
mov r1, r5
mvn r0, #0x43
mov r2, #0
bl Dse_SetError
mvn r0, #0x43
ldmia sp!, {r4, r5, r6, pc}
_0206ECBC:
ldr r2, [r0, #0x14]
cmp r2, #0
bne _0206ECE0
mov r1, r5
mvn r0, #0x4d
mov r2, #0
bl Dse_SetError
m... | Assembly |
NewPopulatedAllMapsOrdered(r randyTheproto3, easy bool) *AllMapsOrdered {
this := &AllMapsOrdered{}
if r.Intn(10) != 0 {
v37 := r.Intn(10)
this.StringToDoubleMap = make(map[string]float64)
for i := 0; i < v37; i++ {
v38 := randStringTheproto3(r)
this.StringToDoubleMap[v38] = float64(r.Float64())
if r.... | Go |
tSpider",
"WebFetcher ",
"CydralSpider",
"LinkScan",
"w@pSpider",
"webvac",
"Robozilla",
"Deweb",
"OntoSpider",
"libwww-perl-5.41",
"AURESYS",
"",
"JBot",
"webs@recruit.co.jp",
"UCSD-Crawler",
"Occam",
"UdmSearch",
"HTMLgobble",
"w3mir",
"Shai'... | C++ |
9|0.614|0.69|0.7|0.779| | | |
|LoraQKAtt|0.506|0.756|0.57|0.654|0.67|0.756| | | |
|LoraAtt|0.536|0.765|0.601|0.675|0.69|0.765| | | |
|LoraMLP|0.558|0.776|0.618|0.684|0.71|0.776| | | |
|FullLora-distill|0.644|0.729|0.731|0.759|0.7|0.729| | | |
|LoraQKAtt-distill|0.63|0.726|0.719|0.763|0.69|0.726| | | |
|LoraAtt-distill|... | Markdown |
0;
if (prev) {
var angleIp = Object(__WEBPACK_IMPORTED_MODULE_18__util_DataUtils__.f)(prev.endAngle - prev.startAngle, entry.endAngle - entry.startAngle), latest = _extends({}, entry, {
startAngle: curAngle + paddingAngle,
... | Go |
if success {
uart.claim(t, |user_uart, _t| {
uart_putstr(user_uart, "SUCCESS!\r\n");
});
break;
} else {
// The pin is incorrect
msleep(r.IDLE_MS_COUNTER, 5000); // Deliberately exploitable timing attack
r.PUZZLES... | Rust |
s = OlmSAS()
return olmSas!!
}
// To override finalize(), all you need to do is simply declare it, without using the override keyword:
protected fun finalize() {
releaseSAS()
}
private fun releaseSAS() {
// finalization logic
olmSas?.releaseSas()
olmSas = nu... | Kotlin |
templateFile);
[DllImport("kernel32.dll", SetLastError = true)]
private static extern bool SetStdHandle(int nStdHandle, nint hConsoleOutput);
public static void Apply()
{
if (PlatformHelper.Is(Platform.Windows))
{
var errorFile = CreateFile(Path.Combine(Paths.BepInExRootP... | C# |
a'], '艳': ['yan'], '泰': ['tai'], '秦': ['qin'], '珠': ['zhu'], '班': ['ban'], '素': ['su'], '匿': ['ni'], '蚕': ['can'], '顽': ['wan'], '盏': ['zhan'], '匪': ['fei'], '捞': ['lao'], '栽': ['zai'], '捕': ['bu'], '埂': ['geng'], '捂': ['wu'], '振': ['zhen'], '载': ['zai', 'zai'], '赶': ['gan'], '起': ['qi'], '盐': ['yan'], '捎': ['shao', 's... | Python |
-----------//
// Negative tests for instructions that are incompatible with movprfx
movprfx z0.d, p0/z, z7.d
frsqrts z0.d, z1.d, z31.d
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a movprfx, suggest replacing movprfx with mov
// CHECK-NEXT: frsqrts z0.d, z1.d, z31.d
// CHECK-NOT... | Assembly |
ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// </copyright>
//-----------------------------------------------------------------------
namespace GoogleARCoreInternal
{
using System.Diagnostics.CodeAnalysis;
[Su... | C# |
| The diluted share count has decreased by ~0.7% annually over three years. A more conservative -0.5% net reduction reflects ongoing buybacks being partially offset by SBC issuance, which is a more realistic balance. |
**D) Free Cash Flow Construction**
The Free Cash Flow to the Firm (FCFF) is calculated using the st... | Markdown |
Device: v1.DiskDevice{CDRom: &v1.CDRomTarget{ReadOnly: isReadOnly}}}
}
getContainerDiskVolume := func() v1.Volume {
return v1.Volume{Name: volumeAndDiskName, VolumeSource: v1.VolumeSource{ContainerDisk: &v1.ContainerDiskSource{}}}
}
DescribeTable("using", func(disk v1.Disk, volume v1.Volume, migration... | Go |
асам таксама называецца \"перагрузка\".';
@override
String get puzzleThemeDiscoveredAttack => 'Ўскрыты напад';
@override
String get puzzleThemeDiscoveredAttackDescription => 'Ход фігурай (напрыклад канём), якая раней блакавала фігуру далёкага дзеяння (напрыклад ладдзю), з лініі нападу гэтай фігуры.';
@over... | Dart |
PollInterval = 15 * time.Second
)
// Snapshot group version resource for dynamic kubernetes client
var SnapshotGvr = schema.GroupVersionResource{Group: "snapshot.storage.k8s.io", Version: "v1", Resource: "volumesnapshots"}
type Deorbiter interface {
DeleteSnapshots() ([]*unstructured.Unstructured, error)
DeletePe... | Go |
return screen0:TextInput(utf8, ...)
end
function widget:ViewResize(vsx, vsy)
screen0:Resize(vsx, vsy)
end
widget.TweakIsAbove = widget.IsAbove
widget.TweakMousePress = widget.MousePress
widget.TweakMouseRelease = widget.MouseRelease
wid | Lua |
ary>职位描述</summary>
1、负责字节跳动服务器产品硬件架构设计,投入和芯片研发、定制的联合设计,确保通算类产品的竞争力,确保跨产品、跨代次硬件架构的一致性、系统性;
2、主导服务器技术选型,负责制定和更新服务器设备级架构路标,确保满足业务需求和技术先进性,对产品架构的领先性、关键技术准备节奏、可实施性负责;
3、研究和跟进服务器行业的最新技术,和业务团队、操作系统团队紧密配合,实现硬件方案创新,提升性能、降低成本,并确保系统的高可用性和高效运行;
4、与硬件研发、网络、IDC规划团队紧密协作,确定硬件架构总体设计方案,确保服务器硬件系统在TCO、性能、易部署、易运维方向竞争力领先。
</details>
<d... | Markdown |
7)<br />开发者实现转换用户的本地相册图片,可通过三个步骤实现:<br />第一步:使用 [my.chooseImage](https://opendocs.alipay.com/mini/api/media/image/my.chooseimage) 拍照或从本地相册中选择图片。<br />第二步:使用 [CanvasContext.drawImage](https://opendocs.alipay.com/mini/api/pzmtqk) 将上一步获取到的图片绘制图像到画布,图像保持原始尺寸。<br />第三步:[CanvasContext.toDataURL](https://opendocs.alipay.com/m... | Markdown |
# Code generated by Lark OpenAPI.
from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
class ExportJob(object):
_types = {
"file_extension": str,
"token": str,
"type": str,
"file_name": str,
"file_token": st... | Python |
: number) {
let n = num
while (n > 0) {
if (num % (n % 10) !== 0) return false
n = ~~(n / 10)
}
return true
}
/// api call here
interface IHTTPRequest {
}
interface IAPI {
http: IHTTPRequest
}
export default ({http} : IAPI) => {
return class SampleAPI {
/**
* class
*/
construc... | Typescript |
C80.9973 137.038 80.8217 136.91 80.6798 136.736C80.5299 136.563 80.4361 136.357 80.3984 136.117C80.362 135.886 80.388 135.661 80.4764 135.442C80.5568 135.225 80.6835 135.041 80.8563 134.892C81.0304 134.75 81.2372 134.66 81.4768 134.622Z" fill="white"/>
</svg>
<svg class="arrowicon" wi... | HTML |
ndleBackPress returns correct result`() = runTest {
val base64Handle = "1234"
val newChildHandle = 1234L
val newParentNodeName = "New Parent"
val oldParentNode = mock<TypedFolderNode>()
val newParentNode = mock<TypedFolderNode>()
val oldChildNode = mock<TypedFileNode>()
... | Kotlin |
// 删除2张手牌
playerSetInfo.getSelfHandcards().removeCards(operDetail.target, 2);
// 刷新手牌
deskView.getHandCardsView().show(uid);
// 刷新明牌
deskView.getCardGroupsView().show(uid);
return;
... | Typescript |
/*
* Copyright (C) 2012 Daniel Himmelein
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ... | C |
git",
"jenkins.result": "success",
"git.commit.sha": "6eecc513e6435d2c654c94f9c86f76250f53402e",
"_dd.origin": "ciapp-pipeline",
"ci.stage.url": "http://192.168.47.4:8080/job/test-ci/job/master/5/execution/node/32/",
"ci.stage.name": "build... | Go |
System.Array/InternalEnumerator`1<UnityEngine.LowLevel.PlayerLoopSystem>::Dispose()
inline void InternalEnumerator_1_Dispose_mF0907816912E0BCADC0D96F355B4C0299CEC610A (InternalEnumerator_1_tFAA3414E8C711AAEE665E32DC112113CA408B5F0 * __this, const RuntimeMethod* method)
{
(( void (*) (InternalEnumerator_1_tFAA3414E8C... | C++ |
个索赔的一批作业需要多长时间。当输入队列中有若干个同等重要的作业被启动时,调度程序应使用最短优先作业算法

如上图 a 所示,这里有 4 个作业 A、B、C、D ,运行时间分别为 8、4、4、4 分钟。若按图中的次序运行,则 A 的周转时间为 8 分钟,B 为 12 分钟,C 为 16 分钟,D 为 20 分钟,平均时间内为 14 分钟。
现在考虑使用最短作业优先算法运行 4 个作业,如上图 b 所示,目前的周转时间分别为 4、8、12、20... | Markdown |
== nil {
return nil
}
return t.(INumeric_constantContext)
}
func (s *List_constant_elementContext) Word_constant_less_the_quotes() IWord_constant_less_the_quotesContext {
var t = s.GetTypedRuleContext(reflect.TypeOf((*IWord_constant_less_the_quotesContext)(nil)).Elem(), 0)
if t == nil {
return nil
}
retur... | Go |
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 MERCHANTABILITY AND FITNESS FOR ... | Dart |
d the <a
/// href="https://docs.aws.amazon.com/cloudhsm/latest/APIReference/">AWS
/// CloudHSM API Reference</a>.
///
/// Adds or overwrites one or more tags for the specified AWS CloudHSM
/// resource.
///
/// Each tag consists of a key and a value. Tag keys must be unique to each
/// resource.
///
... | Dart |
4800;
}
/* ///////////////////////////////////////////////////
HARDCOVER
Table of Contents
1. container
2. background & color
3. opening cover, back cover and pages
4. position, transform y transition
5. events
6. Bonus
- Cover design
- Ribbon
- Figcaption
7. mini-reset
/////////////////////////////////... | CSS |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.