content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
t(): BitmapFont {
if (debugBmpFontOrNull == null) {
//debugBmpFontOrNull = debugBmpFont(DEBUG_FONT_BYTES.openAsync().readBitmap(ImageDecodingProps(preferKotlinDecoder = true)).slice())
debugBmpFontOrNull = debugBmpFont(DEBUG_FONT_BYTES.openAsync().readBitmap(ImageDecodingProps(preferKotlinDecoder = ... | Kotlin |
1>
</header>
<section id="section-intro">
<p>Main execution script used for experimentation</p>
<details class="source">
<summary>
<span>Expand source code</span>
</summary>
<pre><code class="python">"""Main execution script used for experimentation"""
import os
import logging
import structlog
... | HTML |
// if (itemFromMap != null) {
// setPrintedToKitchen(originalTicketItem);
// }
// }
//
// return newticketItems;
// }
private static void setPrintedToKitchen(TicketItem ticketItem) {
ticketItem.setPrintedToKitchen(true);
List<TicketItemModifier> ticketItemModifiers = ticketItem.getTicketItemModifie... | Java |
i2c port to be ready */
usleep_range(5000, 6000);
}
/* Check Revision ID */
ret = regmap_read(max98927->regmap, MAX98927_R01FF_REV_ID, ®);
if (ret < 0) {
dev_err(&i2c->dev,
"Failed to read: 0x%02X\n", MAX98927_R01FF_REV_ID);
return ret;
}
dev_info(&i2c->dev, "MAX98927 revisionID: 0x%02X\n", reg);
... | C |
heck
*/
hasAuthorityOver(entity: Entity): boolean {
return (
!entity.distributed ||
!entity.stateLocked ||
this.clusterService.isMajorityLeader()
);
}
/**
* Applies configured entity behavior proxies to a given entity.
*
* @param entity - Entity to customize
*/
private ... | Typescript |
eed to in writing, software
* distributed under the License is distributed on an "AS IS" 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.
* =======================================... | Typescript |
%;
+
+ -webkit-border-radius: 2px;
+}
+
+#notification.success {
+ background-color: #CCFF99;
+ border: 1px solid #99CC66;
+}
+
+#notification.fail {
+ background-color: #ff9999;
+ border: 1px solid #cc6666;
+}
\ No newline at end of file
diff --git a/diff/__others/v1/dragtest.html b/diff/__others/v1/dragtest.html
new ... | HTML |
.assertEquals(bValueArray.getRefValue(0), 80L);
Assert.assertEquals(bValueArray.getRefValue(1), 2.2);
bValueArray = (BArray) returns.get(2);
Assert.assertEquals(bValueArray.getRefValue(0), 80L);
Assert.assertEquals(bValueArray.getRefValue(1), 44.4);
bValueArray = (BArray) retur... | Java |
,
};
assert_eq!(pb.tract().unwrap(), pb.reference());
Ok(())
}
#[test]
fn group_11() -> anyhow::Result<()> {
let pb = ConvProblem {
shape_in: DataFormat::HWC.from_n_c_hw(1, 2, &[1])?,
shape_out: DataFormat::HWC.from_n_c_hw(1, 8, &[1])?,
kernel_format: KernelFormat::OIHW,
... | Rust |
achar que um arquivista não tem muito o que fazer em uma expedição como essa, mas está muito enganado com essa suposição! Além de muitos dos meus outros talentos, como tradução ou minha habilidade analítica, muitos dos lugares onde o SI:7 é enviado estão repletos de uma história enriquecedora. Isso é especialmente verd... | Lua |
e
end,
}
my_down_state:on{
event = events.down,
jump = finish,
execute = function (self, res)
self.down = true
end,
}
initial(my_up_state)
end):instanciate(ctx)
state_machine:update(upbuf:pos("begin"), "up", nil)
-- When
state_machine:update(downbuf:pos("begin"), "down", nil)
-- The... | Lua |
GUARDS</td>
</tr>
<tr>
<td width="50%"> </td>
<td width="50%">ROMULAN TECHNICIAN</td>
</tr>
<tr>
<td width="50%">N.D. NURSE</td>
<td width="50%"> </td>
</tr>
<tr>
<td width="50%"> </td>
<td width="50%"> </td>
</tr>
<tr>
<... | HTML |
schemaDescription:i.description,schemaTitle:i.title,deprecated:i.deprecated}),i}function vr(e,t,n){var r,a,i;const o=Array.isArray(e.examples)?e.examples[0]:null!==(r=null===(a=Object.values(e.examples||{})[0])||void 0===a?void 0:a.value)&&void 0!==r?r:e.example;if(n&&"string"==typeof o)return"";if(void 0!==o)return o;... | JavaScript |
on::extract<Gaffer::BoolPlug *>( f() );
}
}
catch( const boost::python::error_already_set & )
{
IECorePython::ExceptionAlgo::translatePythonException();
}
}
return WrappedType::enabledPlug();
}
const Gaffer::BoolPlug *enabledPlug() const override
{
// Better to make an ugly cas... | C |
application/json, text/plain, */*",
"accept-language": "zh,zh-CN;q=0.9,en;q=0.8",
"agw-js-conv": "str",
"content-type": "application/json",
"cookie": "i18next=zh-CN; s_v_web_id=verify_ls2xm6n9_P0LX0KTB_t48g_4fFE_9jQb_YBbMaQkkY9qG; passport_csrf_token=5a4b4d804818a5396dd9f074bf2cfdcb; passport_csrf_token_default... | JavaScript |
onModel...)
}
_, err = o.customerStaffRepo.BatchUpsert(csRelationModels)
if err != nil {
return err
}
// 客户-员工外部ID hash
signatures := make([]string, 0)
for _, relation := range csRelationModels {
signatures = append(signatures, relation.Signature)
}
idSigns, err := o.customerStaffRepo.QueryIDs(signatures... | Go |
IS_TYPE': 0,
'CLASSIFICATION_TYPE': 'U',
'NORAD_CAT_ID': 45548,
'ELEMENT_SET_NO': 999,
'REV_AT_EPOCH': 989,
'BSTAR': 0.00211,
'MEAN_MOTION_DOT': 0.00030542,
'MEAN_MOTION_DDOT': 0,
'SEMIMAJOR_AXIS': 6927.951,
'PERIOD': 95.646,
'APOAPSIS': 550.759,
'PERIAP... | Dart |
////////////////////////////
#include <glm/glm.hpp>
int test_int_size()
{
return
sizeof(glm::int_t) != sizeof(glm::lowp_int) &&
sizeof(glm::int_t) != sizeof(glm::mediump_int) &&
sizeof(glm::int_t) != sizeof(glm::highp_int);
}
int test_uint_size()
{
return
sizeof(glm::uint_t) != sizeof(glm::lowp_uint) &&
... | C++ |
}
}
return foreach(TextView.class, (ViewIterator<TextView>) (view) -> view.setHint(String.format(format + "", args)));
}
@Override
public T html(String format, Object... args) {
if (args.length == 0) {
foreach(WebView.class, (ViewIterator<WebView>) (view) -> view.loadD... | Java |
ервативности. Перефразируя приведенные в качестве эпиграфа слова А.Азимова, можно сказать, что "Опасно не наличие сетей, а их отсутствие".</p>
<p>Конечно, компьютерные сети, как любое технологическое новшество, создают и новые возможности для вандализма. Сетевые вирусы или точнее репликаторы являются примером исполь... | HTML |
StoreTarget::Gpr(GPR_B),
), // mov b,[di]
0x46 => Instruction::Mov(
LoadSource::SprIndirect(SPR_DESTINATION_INDEX),
StoreTarget::Gpr(GPR_C),
), // mov c,[di]
0x47 => Instruction::Mov(
LoadSource::SprIndirect(SPR_DESTINATION_INDEX),
... | Rust |
jsonMappingsWithFieldMappings({});
});
it("object transformation with undefined field mappings", () => {
jsonMappingsWithFieldMappings(undefined);
});
it("idempotent transformation", () => {
let transformedResult = transformObject(
{ date: "2018-10-04T00:00:00+0200"... | Typescript |
class Solution:
def subarraysDivByK(self, nums: List[int], k: int) -> int:
pre = 0
pre_dict ={0 : 1}
count = 0
for n in nums:
pre += n
pre_mod = pre % k
if pre_mod in pre_dict:
count += pre_dict[pre_mod]
... | Python |
"Precision": precision,
"Recall": recall
}
best_thresholds_results = [
{
"Label": self._lab2cname[label],
"Threshold": best_thresholds[label]["Threshold"],
"Precision": best_thresholds[... | Python |
😰|face,nervous,sweat|
|😯|face,woo,shh|
|😦|face,aw,what|
|😧|face,stunned,nervous|
|😢|face,tears,sad,depressed,upset,:'(|
|😥|face,phew,sweat,nervous|
|🤤|face|
|😪|face,tired,rest,nap|
|😓|face,hot,sad,tired,exercise|
|🥵|face,feverish,heat,red,sweating|
|🥶|face,blue,freezing,frozen,frostbite,icicles|
|😭|face,cry... | Markdown |
)
{
var encoded = subspace.Bytes(key).ToSlice();
Log($"> Append({key:K}) => {encoded}");
var expected = subspace.Metadata.Prefix + key;
Assert.That(encoded, Is.EqualTo(expected), $"Key '{key}' does not match expected encoding in tenant subspace {subspace.Name}");
var decoded = subspace.ExtractK... | C# |
major, minor
end)
if not rawget(instance, 'error') then
rawset(instance, 'error', error)
end
if not rawget(instance, 'assert') then
rawset(instance, 'assert', assert)
end
if not rawget(instance, 'argCheck') then
rawset(instance, 'argCheck', argCheck)
end
if not rawget(instance, 'pcall') then
rawset(inst... | Lua |
height']) == 256
assert int(reader['width']) == 512
# test resolution
path = os.path.join(output_dir, 'test_array_to_video_resolution.mp4')
array_to_video(img_arr, output_path=path, resolution=(128, 256))
reader = VideoInfoReader(path)
assert int(reader['height']) == 128
assert int(reader['w... | Python |
or i, v := range s {
result[i] = string(v)
}
return result
}
// For ease of reading, the test cases use strings that are converted to byte
// slices before invoking the functions.
var abcd = "abcd"
var faces = "☺☻☹"
var commas = "1,2,3,4"
var dots = "1....2....3....4"
type BinOpTest struct {
a string
b string
... | Go |
stp lr, x10, [sp, #CTX_LR]
.cfi_rel_offset lr, CTX_LR
.cfi_rel_offset sp, CTX_SP
.endm
.macro load_ctx el
msr daifset, #2
.if \el == 0
load_pcpu x10
ldr x10, [x10, #PCPU_CURTHREAD]
ldr x10, [x10, #TD_UCTX]
mov sp, x10
.endif
l... | Assembly |
s[k2 + 1].RD_Q10 < RDmin_Q10) {
RDmin_Q10 = sampleStates[k2 + 1].RD_Q10;
RDmin_ind = k;
}
}
/* Replace a state if best from second set outperforms worst in first set */
if (RDmin_Q10 < RDmax_Q10) {
psDelDec[RDmax_ind].PartialCopyFrom(psDelDec[RDmin_ind], i);
... | Java |
only for preview purposes
float scale = 0.8;
cv::resize(frame, frame, cv::Size(frame.cols*scale, frame.rows*scale));
cv::imshow("Inference", frame);
cv::waitKey(-1);
}
}
#include "clevel.h"
#include "clevel_filter.h"
#include "clevel_single_filter.h"
#include "generator.h"
#include ... | C++ |
LE_BITS;
struct smvt_control control_var[C448_SCALAR_BITS /
(C448_WNAF_VAR_TABLE_BITS + 1) + 3];
struct smvt_control control_pre[C448_SCALAR_BITS /
(C448_WNAF_FIXED_TABLE_BITS + 1) + 3];
int ncb_pre = recode_wnaf(control_pre, scalar1, t... | C |
= pocl_level0_link_program;
Ops->free_program = pocl_level0_free_program;
Ops->setup_metadata = pocl_level0_setup_metadata;
Ops->supports_binary = pocl_level0_supports_binary;
Ops->build_poclbinary = pocl_level0_build_poclbinary;
Ops->build_builtin = pocl_level0_build_builtin;
Ops->compile_kernel = nullptr;... | C++ |
攻击者加强Root技术使用</strong></p>
<p>2016年Root型恶意代码家族变种数量增长迅速,新增Root型恶意代码变种为73个,是2015年的3倍多。2016年Root型恶意代码样本数量Q1、Q2季度增长缓慢,Q3、Q4季度迅猛增长,仅Q3季度总量就超过了2015年全年Root型恶意代码样本数量的5倍,可见Root型恶意代码在2016年进入了一个爆发期。</p>
<p><a href="http://www.aqniu.com/wp-content/uploads/2017/03/2015年-2016年Root型恶意代码样本增长趋势-800.jpg"><img class="aligncenter size-ful... | HTML |
', shouldShow);
}
} else {
// Desktop: cart is always visible — only adjust grid
grid?.classList.toggle('lg:grid-cols-6', itemCount === 0);
grid?.classList.toggle('lg:grid-cols-5', itemCount > 0);
}
}
function setupCartToggles() {
const cart = document.getElementById('car... | HTML |
relatedlink">大家</a>分享。</p><h2 id='关于宠物的<a href="http://www.to3158.cn/tags-z-y659f958a37cc5.html" target="_blank" class="relatedlink">赠与</a>协议书'>关于宠物的赠与协议书</h2> <p>宠物领养协议书1 甲方(<a href="http://www.to3158.cn/tags-j-y65a625f5d1913.html" target="_blank" class="relatedlink">寄养</a>人或领养负责人):___ 乙方(领养人):___ 为了确保从___领养出去的猫(特别是<a... | HTML |
: @main
// LAMBDA: call void [[OUTER_LAMBDA:@.+]](
[&]() {
// LAMBDA: define{{.*}} internal{{.*}} void [[OUTER_LAMBDA]](
// LAMBDA: call void {{.+}} @__kmpc_fork_call({{.+}}, i32 1, {{.+}}* [[OMP_REGION:@.+]] to {{.+}})
#pragma omp parallel
#pragma omp sections firstprivate(g, sivar)
{
// LAMBDA: define{{.*}}... | C++ |
WriteLineColor ($"\n{(mode == UpdateMode.Add ? "Adding/Replacing" : "Removing")} succeeded.", c_colorSuccess);
Exit (true);
}
foreach (var error in replacerResult.Error)
WriteLineColor ($"\nAn error of type '{error.Type}' occurred: '{error.Description}'", c_colorError);
Exit (false);... | C# |
p_i46052_5_);
}
public void render(int p_render_1_, int p_render_2_, float p_render_3_)
{
this.proxy.drawScreen(p_render_1_, p_render_2_, p_render_3_);
}
public int width()
{
return this.proxy.func_178044_e();
}
public int ym()
{
return this.proxy.func_178... | Java |
%3A22222%2Fopenid4vc%2FcredentialOffer%3Fid%3D8030eb87-fa89-4820-ad36-8e89cc9ccdfe",
)
fun prepareOid4vciRequestDefaultExample(): ValueExampleDescriptorConfig<PrepareOID4VCIRequest>.() -> Unit = {
value = prepareOid4vciRequestDefaultExample
}
private val prepareOid4vciResponseW3CVCExample = Pr... | Kotlin |
.l sommarhack_nonmasked_4
dc.l sommarhack_nonmasked_5
dc.l sommarhack_nonmasked_6
dc.l sommarhack_nonmasked_7
dc.l sommarhack_nonmasked_8
dc.l sommarhack_nonmasked_9
dc.l sommarhack_nonmasked_10
dc.l sommarhack_nonmasked_11
dc.l sommarhack_nonmasked_12
dc.l sommarhack_nonmasked_13
dc.l sommarhack_nonmasked_14... | Assembly |
ulers(): Maybe<T> {
return this.applyIOWorkSchedulers(schedulerProvider)
}
/**
*
*/
protected fun Completable.withAppropriateSchedulers(): Completable {
return this.applyIOWorkSchedulers(schedulerProvider)
}
}
/*
* Copyright 2018 Arthur Ivanets, arthur.ivanets.work@gmail.com... | Kotlin |
25693;310100025694","poiid":"BV10029743","lg":"5","sp":"LuJiaZui"},{"rs":"1744.5 1204.5|1744.5 1204.5|1744.5 1204.5","udpx":"0 NaN;0 NaN","su":"1","udsu":"1;1","n":"\u5357\u4eac\u4e1c\u8def","sid":"310100025693011","p":"1744.5 1204.5","r":"310100025693|310100027703|310100027704|900000086378","udsi":"310100025693011;310... | JavaScript |
1.67 2.594-2.189 1.063-0.544 2.211-0.82 3.412-0.82s2.35 0.276 3.412 0.82c1.013 0.518 1.91 1.275 2.594 2.189 0.166 0.221 0.121 0.534-0.1 0.7-0.090 0.067-0.195 0.1-0.299 0.1z" fill="#424242"></path><path d="M18.243 8.671c-0.145 0-0.288-0.063-0.387-0.183-1.814-2.217-4.495-3.488-7.356-3.488s-5.542 1.271-7.356 3.488c-0.175 ... | HTML |
ckAll(
Arb.string(1..32, Codepoint.alphanumeric()).filter { it !in setOf("uint8", "uint16", "optionalUInt", "uint24") },
) {
struct3[it].shouldBeNull()
}
}
}
}
})
package de.traderjoe.ulid.internal
import arrow.core.raise.Raise
import de.traderjoe.ulid.error.ULIDError.In... | Kotlin |
Legendary,
}
export const RarityString = {
[Rarity.Common]: "common",
[Rarity.Uncommon]: "uncommon",
[Rarity.Rare]: "rare",
[Rarity.Epic]: "epic",
[Rarity.Legendary]: "legendary",
};
export const RarityFromString: { [key: string]: Rarity } = {
common: Rarity.Common,
uncommon: Rarity.Uncommon,
rare: ... | Typescript |
നൽകുക",RATE_YOUR_DRIVER:"റേറ്റ് ചെയ്യുക",MY_RIDES:"എന്റെ റൈഡുകൾ",RIDE_DETAILS:"റൈഡിന്റെ വിശദാംശങ്ങൾ",RIDE_ID:"റൈഡ് ഐഡി",SELECT_A_RIDE:"ഒരു സവാരി തിരഞ്ഞെടുക്കുക",CONFIRM_RIDE_:"സവാരി സ്ഥിരീകരിക്കുക",YOU_CAN_CANCEL_RIDE:"ഡ്രൈവർമാരിൽ നിന്ന് ഓഫർ ലഭിച്ചുകഴിഞ്ഞാൽ നിങ്ങൾക്ക് റദ്ദാക്കാം",ESTIMATES_CHANGED:"നിങ്ങളുടെ റൈഡിന്റെ ... | JavaScript |
python_enabled = TRUE;
#endif // ENABLE_PYTHON
}
void
parasite_python_run(const char *command,
ParasitePythonLogger stdout_logger,
ParasitePythonLogger stderr_logger,
gpointer user_data)
{
#ifdef ENABLE_PYTHON
PyGILState_STATE gstate;
PyObject *module... | C |
ld_mi = cont_bin_mi(loss_diff, -1, 1, masks, kde_s, f_kl)
bound_square = np.sqrt(2 * ld_mi) + Lt
# use both L0 and L1 to reduce variance
single_mi = cont_bin_mi(np.concatenate([L0, L1]), 0, 1, np.concatenate([masks, 1-masks]), kde_s, f_kl)
bound_fast = optimize_fast(single_mi, Lt)
# approximat... | Python |
�到漏洞披露程序中的类似报告时,研究人员无法重现该问题。这进一步强化了我们关于问题源自第三方服务器的假定,他们可能已经修复该问题。</p>
<h3 id="cloudflare-"><strong>Cloudflare 是否遭到破坏?</strong></h3>
<p>当我们运行如上所述的软件版本时,多亏了我们迅速应对并采用纵深防御方法,我们认为 Cloudflare 没有遭到破坏。我们投入了大量精力来验证这一点,并将继续开展这一工作,直至弄清楚该漏洞的全部细节。下面简单介绍一下这部分工作。</p>
<p>随着我们努力评估和隔离可能在运行有漏洞软件的所有场景并加以修复,我们也开始了一个单独的工作流,以分析其中是否有任何情况已被... | HTML |
, // n0x08c0 c0x0000 (---------------) + I vv
0x00207a02, // n0x08c1 c0x0000 (---------------) + I co
0x00201603, // n0x08c2 c0x0000 (---------------) + I net
0x0021f5c3, // n0x08c3 c0x0000 (---------------) + I org
0x00222603, // n0x08c4 c0x0000 (---------------) + I com
0x0027a643, // n0x08c5 c0x0000 (-----... | Go |
hographicSize - value) > MathUtil.ZeroTolerance, () => Service.SetOrthographicSize(orthographicSize = value)); } }
public float NearPlane { get { return nearPlane; } set { SetValue(Math.Abs(NearPlane - value) > MathUtil.ZeroTolerance, () => Service.SetNearPlane(nearPlane = value)); } }
public float Fa... | C# |
NEXT: [3] - JFPA
# CHECK-NEXT: [4] - JFPM
# CHECK-NEXT: [5] - JFPU0
# CHECK-NEXT: [6] - JFPU1
# CHECK-NEXT: [7] - JLAGU
# CHECK-NEXT: [8] - JMul
# CHECK-NEXT: [9] - JSAGU
# CHECK-NEXT: [10] - JSTC
# CHECK-NEXT: [11] - JVALU0
# CHECK-NEXT: [12] - JVALU1
# CHECK-NEXT: [13] - JVIMUL
# CHECK: Resour... | Assembly |
Containers[bindata.ContainerIDDaemon].Image = image
// Non root enabler
templateSpec.InitContainers[bindata.InitContainerIDNonRootenabler].Image = image
// SPOD Name
for envid := range templateSpec.Containers[bindata.ContainerIDDaemon].Env {
env := &templateSpec.Containers[bindata.ContainerIDDaemon].Env[envid]
... | Go |
e`, 覆盖原有指令并返回 `true`.
*
*
* 注意: [内建指令][BuiltInCommands] 也可以被覆盖.
*/
public fun registerCommand(command: Command, override: Boolean = false): Boolean
/**
* 查找并返回重名的指令. 返回重名指令.
*/
public fun findDuplicateCommand(command: Command): Command?
/**
* 取消注册这个指令.
*
* ... | Kotlin |
mitter} calls into {@code MCExpr} to
* apply the correct decode function for the variant kind.
* see: {@link EmitMCInstExpanderCppFilePass}, {@link EmitMCCodeEmitterCppFilePass}
*/
private List<DecodeMapping> decodeMappings(GenerateLinkerComponentsPass.Output output,
... | Java |
",
CultureInfo.InvariantCulture,
ref value
),
Is.EqualTo( "-1000-01-01T00:00:00Z" )
);
}
[Test]
public void TestToStringCore_Year10000_LowerO()
{
var value =
new Timestamp.Value(
10000,
10,
10,
10,
10,
10,
123456789
);
Assert.That(
Times... | C# |
_$B0) * h, e._$Yr._$z0 = _._$z0 + (a._$z0 - _._$z0) * h, e._$Yr._$qT = _._$qT + (a._$qT - _._$qT) * h
} else if (2 == o) {
var _ = this._$Y0[n[0]],
a = this._$Y0[n[1]],
l = this._$Y0[n[2]],
$ = this._$Y0[n[3]],
h = s[0],
u = s[1],
p = _._$fL + (a._$fL - _._$fL) * h,
... | JavaScript |
;
if ( $Plot % 2 == 1 )
$Plots[] = $Value2;
else
$Plots[] = $Value2+$i;
}
imagefilledpolygon($this->Picture,$Plots,(count($Plots)+1)/2,$C_GraphLo);
$Index = count($Plots);
$ColorFactor = -20 + ($SpliceHeight - $i) * $ColorRatio;
... | Java |
egistry: "docker.io",
ImageTag: "v3*",
},
},
},
Vulnerabilities: []string{"CVE-2023-42366", "CVE-2022-28391"},
Severities: []string{"high"},
},
{
Metadata: Metadata{
Name: "exclude-allowed-hostPath-control",
},
Kind: "VulnerabilitiesIgnorePolicy",
... | Go |
{
if let Some(x) = self.x.intersect(&other.x) {
if let Some(y) = self.y.intersect(&other.y) {
if let Some(z) = self.z.intersect(&other.z) {
return Some(Cuboid {
on: true,
x,
y,
... | Rust |
系统、中断等一系列通用的核心概念。现在,我们将从理论走向实践,深入了解当今嵌入式领域最具代表性的两大操作系统。
它们分别是:
* 以轻量、高效、硬实时著称的 **FreeRTOS**。它如同一个为特定任务精心打造的精密工具箱,专注于在资源极其有限的微控制器(MCU)上,提供高度确定和可预测的多任务调度。学习它,是掌握嵌入式实时控制与底层资源调度的绝佳起点。
* 功能强大、生态丰富、运行于各类高性能处理器(MPU)之上的 **嵌入式Linux**。它更像一个功能完备的“瑞士军刀”,将桌面级Linux系统的强大能力带入嵌入式设备,使其能够轻松处理复杂的网络通信、华丽的图形界面以及海量的第三方应用程序。探索它,意味着学会如何驾驭一个... | Markdown |
?,
val comics: List<ComicItem>,
val sortOrder: SortOrder,
) : MviViewState {
companion object {
fun initial(): ViewState {
return ViewState(
isLoading = true,
error = null,
comics = emptyList(),
sortOrder = SortOrder.ComicTitleAsc
)
}
... | Kotlin |
onst.");
}
void EditScans::setupScans(const QString &header) {
const auto inner = _content.data();
inner->move(0, 0);
if (!_error.isEmpty()) {
_commonError = inner->add(
object_ptr<Ui::SlideWrap<Ui::FlatLabel>>(
inner,
object_ptr<Ui::FlatLabel>(
inner,
_error,
st::passportVerifyErrorLab... | C++ |
intStrLen / 4);
let strEndIdx = intStrLen;
const unitsArray = this.moderateUnitsArray;
const unitsArrayLen = unitsArray.length;
for (let i = 0; i < loopLen; i++) {
// 後ろから切り出して結合させていく
const processCharLen = 4;
// マイナス値にならないよう調整
const strBeginIdx = (strEndIdx > pr... | Typescript |
count-o,.btn,.btn .label,#count{display:-moz-inline-stack;display:inline-block;vertical-align:top;zoom:1;*display:inline;}.right #widget{text-align:right;}.left #widget{text-align:left;}.btn-o{max-width:100%;}.btn{position:relative;background-color:#f8f8f8;background-image:-webkit-gradient(linear,left top,left bottom,f... | HTML |
) {
std::cerr << "\nERROR! Previous Kf does not exist yet (epipolar2d2d()).\n";
exit(-1);
}
// Get cur. Frame nb kps
size_t nbkps = pcurframe_->nbkps_;// 当前帧的特征点数量
if( nbkps < 8 ) {
if( pslamstate_->debug_ )
std::cout << "\nNot enough kps to compute Essential Matrix... | C++ |
ount& result, Json::Value const& jvSource);
// IOUAmount and ZXCAmount define toSTAmount, defining this
// trivial conversion here makes writing generic code easier
inline STAmount const&
toSTAmount(STAmount const& a)
{
return a;
}
//------------------------------------------------------------------------------
/... | C |
P/4.3.10-22 mod_perl/1.29</td><td>25</td></tr>
<tr class="r2"><td>4966</td><td>Apache/1.3.33 (Unix) mod_throttle/3.1.2 PHP/4.4.5</td><td>25</td></tr>
<tr class="r1"><td>4967</td><td>nginx/0.5.22</td><td>25</td></tr>
<tr class="r2"><td>4968</td><td>WebSitePro/2.3.18</td><td>25</td></tr>
<tr class="r1"><td>4969</td><td>... | HTML |
.template.TemplateManager;
public class StructureComponentVillageField2 extends StructureComponentVillage {
private int averageGroundLevel = -1;
private Block cropTypeA;
private Block cropTypeB;
private Block cropTypeC;
private Block cropTypeD;
public StructureComponentVillageField2() {
}
public StructureCo... | Java |
is inspired from its renown painting [The Persistence of Memory](https://en.wikipedia.org/wiki/The_Persistence_of_Memory).
## Features
- **Pressure resolution:** DFSPH and IISPH.
- **Viscosity:** DFSPH viscosity, Artificial viscosity, and XSPH viscosity.
- **Surface tension:** WCSPH surface tension, and methods from ... | Rust |
oveTask
private static int RemoveTask()
{
if (!IsAdministrator())
throw new Exception("Admin rights required");
using var ts = new TaskService();
if (ts.GetTask(TASKNAME) != null)
{
ts.RootFolder.DeleteTask(TASKNAME);
Console.WriteLine($"Deleted existing task '{TASKNAME}'.");
... | C# |
private float Field872;
private float Field873;
protected float Field874;
private float Field875;
private float Field876;
public Class111() {
this(3.0F, 0.75F, 0.0F);
}
public Class111(float a, float a, float a) {
this.Field873 = 0.0F;
this.Field874 = 5.0F;
this.Field874 =... | Java |
>
<img src="./24/jockey-proprietary.png" alt="jockey-proprietary.png"></img>
<br>jockey-proprietary.png
</td>
<td>
<img src="./32/jockey-proprietary.png" alt="jockey-proprietary.png"></img>
<br>jockey-proprietary.png
</td>
<td>
<img src="./48/jockey-proprietary.png" alt="jockey-proprietary.png"><... | HTML |
let sleep_impl = conf.sleep_impl.clone();
let mut builder = aws_smithy_client::Builder::dyn_https()
.middleware(crate::middleware::DefaultMiddleware::new());
builder.set_retry_config(retry_config.into());
builder.set_timeout_config(timeout_config);
// the builder main... | Rust |
/* file: shellsort.c
*
* Copyright (C) 1993 by
* Digital Equipment Corporation, Maynard, Massachusetts.
* All rights reserved.
*
* This software is furnished under a license and may be used and copied
* only in accordance of the terms of such license and with the
* inclusion of the above copyright noti... | C |
=> {
switch (item.type) {
case 'html':
case 'recaptcha':
case 'button':
return;
}
if (clear !== false){
item.clear();
}
delete item.acceptValue;
if (me.hasCls(FIELD_NOT_VALID_CLS)) {
me.removeCls(FIELD_NOT_... | JavaScript |
%",
"每击杀一名玩家 将对周围 &e10 &7格所有玩家造成 &d天雷之罚 &7(5秒冷却)",
"&7如周围玩家内有穿戴 &c危险集群 &7则直接对其致死",
"每秒恢复 &c20❤ &7并给自身施加 &e圣盾 &7(无限叠加)",
"",
"属性 &d天雷之罚&7: 对受到此属性攻击的玩家造成 &c15❤ &7普通伤害并引导闪电劈下",
"属性 &e圣盾&7: 免疫一切玩家攻击造成的伤害,并给予自身额外 &61❤ 生命吸收"
).joinToString("/s")
... | Kotlin |
ODCAST_URL: String = "url"
public val PODCAST_SOURCE_TITLE: String = "source_title"
public val PODCAST_SOURCE_URL: String = "source_url"
public val PODCAST_LOCAL_PATH: String = "local_path"
public val PODCAST_MIME_TYPE: String = "mime_type"
public val PODCAST_LENGTH: String = "length"
public val PODCAST_DESCRIPTION: St... | Kotlin |
tFiles(r.Context(), projectID, opts...)
if err != nil {
var projectNotFoundError *project.ProjectNotFoundError
if errors.As(err, &projectNotFoundError) {
http.Error(w, projectNotFoundError.Error(), http.StatusNotFound)
return
}
http.Error(w, fmt.Sprintf("Failed to list files: %s", err), http.StatusInter... | Go |
T, when spec.G, it spec.S) {
when("Remote Lifecycle Reader", func() {
const lifecycleTag = "gcr.io/image/lifecycle"
var (
fakeClient = registryfakes.NewFakeClient()
expectedKeychain = authn.NewMultiKeychain(authn.DefaultKeychain)
remoteLifecycleReader = &cnb.RemoteLifecycleReader{
RegistryClien... | Go |
_RESOURCE {
DMA_Header: DMA_DES,
DMA_Data: [DMA_RANGE; ::ANYSIZE_ARRAY],
}}
pub type PDMA_RESOURCE = *mut DMA_RESOURCE;
pub const mIRQD_Share: ::ULONG = 0x1;
pub const fIRQD_Exclusive: ::ULONG = 0x0;
pub const fIRQD_Share: ::ULONG = 0x1;
pub const fIRQD_Share_Bit: ::ULONG = 0;
pub const fIRQD_Level_Bit: ::ULONG... | Rust |
.bio_forge.select_recipe");
public static final RegistryObject<SoundEvent> UI_BIO_FORGE_TAKE_RESULT = register("ui.bio_forge.take_result");
public static final RegistryObject<SoundEvent> UI_MENU_OPEN = register("ui.menu.open");
public static final RegistryObject<SoundEvent> UI_STORAGE_SAC_OPEN = register("ui.storage... | Java |
word)
else:
# 如果单词不再缓存中,查询单词释义
word_meaning,word_freq = self.__get_word_freq(new_word)
# 存入缓存字典
cached_words[new_word] = {"meaning":word_meaning,"freq":word_freq}
... | Python |
rsion = pipelineYamlService.getPipelineYamlVersion(
projectId = projectId,
repoHashId = repoHashId,
filePath = filePath,
ref = ref,
blobId = blobId,
branchAction = BranchVersionAction.ACTIVE.name
)
va... | Kotlin |
L55_1 = _ENV
L56_1 = "C9E4B2B841B76F1F3"
L57_1 = _hx_e
L57_1 = L57_1()
L55_1[L56_1] = L57_1
_ENV["C9E4B2B841B76F1F3"]["new"] = function()
local L0_2, L1_2, L2_2, L3_2
L0_2 = lua_helper_new
L1_2 = C9E4B2B841B76F1F3
L1_2 = L1_2.prototype
L2_2 = 1
L3_2 = 1
L0_2 = L0_2(L1_2, L2_2, L3_2)
L1_2 = C9E4B2B841B7... | Lua |
}
newDeps = append(newDeps, newDep)
}
case DependencyInvalid:
l.Warn("invalid dependency, skipping")
}
}
rel.lock.Lock()
rel.DependsOnF = newDeps
rel.lock.Unlock()
}
// buildAfterUnmarshalDependency generates full uniqname for dependency if it was short using release as default.
func (rel *config) b... | Go |
) : 0;
ret = as3722_update_bits(as3722, AS3722_GPIO_SIGNAL_OUT_REG,
AS3722_GPIOn_SIGNAL(offset), val);
if (ret < 0)
dev_err(as_pci->dev,
"GPIO_SIGNAL_OUT_REG update failed: %d\n", ret);
}
static int as3722_gpio_direction_input(struct gpio_chip *chip, unsigned offset)
{
return pinctrl_gpio_direction_input(c... | C |
ty .action.highlighted {
background-color: #fffcdb;
}
.activity .action .picture {
display: block;
line-height: 0;
float: left;
}
.activity .action .picture img {
width: 40px;
height: 40px;
}
.activity .action .body {
margin-left: 47px;
}
.activity .action .time {
display: block;
color: #999;
fo... | CSS |
s located at
//
// http://aws.amazon.com/apache2.0/
//
// or in the "license" file accompanying this file. This file is distributed
// on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
// express or implied. See the License for the specific language governing
// permissions and limitations u... | Go |
4b";
}
.mw-micon-solid-Pen-6:before {
content: "\eb4c";
}
.mw-micon-solid-Pen:before {
content: "\eb4d";
}
.mw-micon-solid-Pencil-Ruler:before {
content: "\eb4e";
}
.mw-micon-solid-Pencil:before {
content: "\eb4f";
}
.mw-micon-solid-Penguin:before {
content: "\eb50";
}
.mw-micon-solid-Pentagon:before {
cont... | CSS |
value%% is a valid [[DataHexString]] of %%length%% (if a //number//)
* bytes of data (e.g. ``0x1234`` is 2 bytes).
*/
export declare function isHexString(value: any, length?: number | boolean): value is `0x${string}`;
/**
* Returns true if %%value%% is a valid representation of arbitrary
* data (i.e. a valid [[D... | Typescript |
.cur a,.ev_t_catalogue_tit li:hover a{color:#469bb7;}
.ev_t_catalogue_div .ev_t_catalogue_a{border-bottom:1px solid #EEEEEE;}
.ev_t_catalogue_div .ev_t_top_last{border-bottom:0px;}
.ev_t_catalogue_div .ev_t_catalogue_li a{color:#676767;background: url(images/li_a.png) no-repeat left 19px;}
.ev... | CSS |
int valueToRemove = standardList[random.Next(standardList.Count)];
smallList.Remove(valueToRemove);
standardList.Remove(valueToRemove);
}
break;
case 2: // IndexOf
if (standar... | C# |
_ELEMENT_NODE && strcmp((const char *)curr_node->name, key) == 0) {
xmlChar *content = xmlNodeGetContent(curr_node);
if(content != NULL) {
strncpy(value, (char *)content, max_size - 1);
xmlFree(content);
bResult = true;
}
break;
}
}
return bResult;
}
static voi... | C++ |
备份当前配置
final oldConfig = _getCurrentConfig();
// 应用新配置
final success = await _applyConfig(configData);
if (success) {
_configVersion = newVersion;
_configCache.addAll(configData);
// 通知配置更新
final update = NetworkConfigUpdate(
oldCo... | Dart |
{
background-image: none !important;
background: var(--modspotify_main_bg);
}
/* .glue-page-header__sticky {
padding-top: 60px !important;
} */
/*
Remove those title, cringy description and
meaningless followers number
*/
.carousel .card-info-subtitle-description,
.carousel .card-info-subtitle-metadata,
.carou... | CSS |
/// </summary>
SegmentList<ROL> ROL { get; }
/// <summary>
/// TIMING_QTY
/// </summary>
LayoutList<ORU_R01_TIMING_QTY> TimingQty { get; }
/// <summary>
/// CTD
/// </summary>
Segment<CTD> CTD { get; }
/// <summary>
/// OBSERV... | C# |
0e-4+1i", want: 1e-4 + 1i},
{s: "1.0e-4+i", want: 1e-4 + 1i},
{s: "1.0e-4-i", want: 1e-4 - 1i},
{s: "1.0e-4i-1", want: -1 + 1e-4i},
{s: "1.0e-4i+1", want: 1 + 1e-4i},
{s: "1e-4+1i", want: 1e-4 + 1i},
{s: "1e-4+i", want: 1e-4 + 1i},
{s: "1e-4-i", want: 1e-4 - 1i},
{s: "1e-4i-1", want: -1 + 1e-4i},
{s: "1e-4i+1"... | Go |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.