content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
currentIndex;
});
var replayAllButton = document.getElementById('replay-all-btn');
replayAllButton.addEventListener('click', function () {
paused = false;
playNextAudio(currentLineIndex);
});
lines.forEach(function(line, inde... | HTML |
-carregar tudo seria contraproducente, portanto, use a `preload` com moderação e [meça o impacto no mundo real](/fast#measure-performance-in-the-field).
---
title: Estabeleça conexões de rede com antecedência para melhorar a velocidade percebida da página
subhead: |2
Saiba mais sobre dicas de recursos rel = preconne... | Markdown |
s="line"><a name="l13239"></a><span class="lineno">13239</span> <span class="preprocessor">#define PMC_LVDSC2 PMC_LVDSC2_REG(PMC)</span></div><div class="line"><a name="l13240"></a><span class="lineno">13240</span> <span class="preprocessor">#define PMC_REGSC ... | HTML |
al
//! \ref POSITIVE_INFINITY or \ref NEGATIVE_INFINITY.
//!
//! \tparam Mat the type of the argument \p x, must satisfy
//! \ref IsMatrix<Mat>.
//!
//! \param x the matrix to check.
template <typename Mat>
std::enable_if_t<IsIntMat<Mat>> throw_if_bad_entry(Mat const& x) {
using sc... | C++ |
ntinue = true;
break;
}
}
}
if (toContinue)
continue;
// Accumulate the current pixel to the component at the top of the
// stack. (part 5)
this.componentStack.peek().accumulate(this.currentPixel);
// System.err.println("Added "+currentPixel+" to top component "+componentStack.pee... | Java |
send(err);
}
res.sendStatus(200);
reachesWS.broadcastMessage(JSON.stringify(reach.toJSON()));
})
}
}
import { expect } from 'chai';
import moment from 'moment'
import { Historical, Candlestick } from '../../src/historical';
describe('historical/Historical.getProductHistoricRates(product, start,... | Typescript |
icide(Suicide { address, refund_address, balance } ),
result: Res::None,
trace_address: self.index_stack.clone(),
};
debug!(target: "trace", "Traced suicide {:?}", trace);
self.traces.push(trace);
if let Some(index) = self.index_stack.last_mut() {
*index += 1;
}
}
fn trace_reward(&mut self, autho... | Rust |
tChecked(false)
return CPAPI.Log(L.DEFAULTS_SETTINGS_NOTWEAK:format(device.Name):trim());
end
CPAPI.Log(L.DEFAULTS_SETTINGS_APPLIED:format(device.Name):trim());
self:Update()
end;
init = function(self)
local icon = FinalButtonInit(self)
local _, hasEnvironment = GetGamepadEnvironment()
... | Lua |
模大小,分三种情况进行生产:(1)一般不分组,采取田间农活包工到户的办法,这一般适用于规模较小的队;(2)可以有领导地自由结合分组作业,这样的组可以固定任务、固定地片,也可以不固定,这种形式一般适用于中等的生产队;(3)固定常年作业组,实行四固定,并可实行定产定任务超产奖工分的办法。这种形式适用规模较大的队。
</p>
<p>
关于公社的规模:在平原地区,人口较集中的地方,公社规模一般以六七百户到千户左右为宜。这样的公社大体上包括十多个自然村(不太大的),二十个左右生产队,耕地万亩左右。地区范围大体上南北、东西各六七华里,方圆不过三四十华里。这样大的范围的特点是:“集合来的快,半天转大半(检查地区),前村后村都熟悉,来... | HTML |
anyApplied)
{
// Make sure that nothing else is included in the Undo, as an immediate rebuild may take place and
// we don't want the rebuild's lastBuildSettings being included in the undo step
Undo.IncrementCurrentGroup();
}
}
pri... | C# |
User,
this.groupOwnerUser,
this.memberList,
});
GroupNotification.fromJson(Map<String, dynamic> json) {
group = json['group'] != null ? GroupInfo.fromJson(json['group']) : null;
opUser = json['opUser'] != null ? GroupMembersInfo.fromJson(json['opUser']) : null;
groupOwnerUser = json['groupOwner... | Dart |
rit;font-size:24px;color:black;padding-bottom:0px;padding-top:0px;}
.AR_5.ob-strip-layout .ob-dynamic-rec-container {max-width:200px;}
.AR_5.ob-strip-layout .ob-rec-text {font-family:inherit;color:black;padding:0px 0 0px;text-align:left;line-height:1.5;font-size:14px;}
.AR_5.ob-strip-layout .ob-rec-text:hover {color:#1... | HTML |
器数据融合的需要,计算处理的数据量也十分庞大。
且数据融合的算法(如 MST 算法)对车辆计算能力提出了更高的要求。因此,在当前环境下,车辆往往需要更强大的计算单元协作,才能有效完成数据处理。随着车联网规模和数据量的急剧增长,传统集中式运算和处理的方式已无法满足车联网的要求,面临诸多新挑战。虽然云端集中式处理和计算能力强,但是多节点间的通信传输性能与其计算性能并不匹配,极易出现数据拥塞的问题。此外,由于云端服务器的位置往往远离采集数据的车辆,数据传输必然会带来更大时延。当前部署的 5G 网络性能还未达到L4 级别自动驾驶系统的要求,因此集中式计算和处理方式所造成的时延将会对车联网性能产生影响。
针对车联网感知信息共享的需求,移动... | Markdown |
2.5-50.4 50.3-50.4h134c27.8 0 50.3 22.6 50.3 50.4 0 27.8-22.5 50.4-50.3 50.4zm0-134.4H663v-50.4c0-27.8 22.5-50.4 50.3-50.4s50.3 22.6 50.3 50.4c0 27.8-22.5 50.4-50.3 50.4z"/></svg>';
static const String slack_square_fill =
'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width=... | Dart |
---@diagnostic disable: duplicate-set-field
Skills = Skills or {}
XP_CACHE = {}
-- Calculate XP required for a level using RuneScape algorithm (with caching)
Skills.GetXPForLevel = function(level)
if not level or level < 1 then return 0 end
if level == 1 then return 0 end -- Level 1 requires 0 XP
-- Che... | Lua |
Top()
case "end":
m.viewport.GotoBottom()
// Query execution
case "enter", " ", "r":
if len(m.queries) > 0 && m.canRefresh() {
m.ensureValidSelection()
m.loading = true
m.err = ""
m.lastQuery = m.queries[m.selected]
return m, m.runQuery(m.queries[m.selected])
}
case "e":
if len(m.queries) > ... | Go |
123.45,
expM: map[string]float64{
"test": 123.45,
"abcd": 678.90,
},
expErr: nil,
},
{
msg: "overwrite existing key value:",
metric: map[string]float64{"test": 678.90},
key: "test",
value: 123.45,
expM: map[string]float64{"test": 123.45},
expErr: nil,
},
}
for _, tc ... | Go |
_args()
avg_score = dict()
score = cal_culture(
os.path.join(args.output_dir, "cultural_common_sense_scores.jsonl")
)
avg_score['Cultural'] = score
scores = cal_space_time(
os.path.join(args.output_dir, "spatio-temporal_reasoning_scores.jsonl")
)
avg_score.update(scores)
... | Python |
top: 50%;
z-index: 5;
display: inline-block;
}
.carousel-control .icon-prev,
.carousel-control .glyphicon-chevron-left {
left: 50%;
margin-left: -10px;
}
.carousel-control .icon-next,
.carousel-control .glyphicon-chevron-right {
right: 50%;
margin-right: -10px;
}
.carousel-control .icon-prev,
.carousel-c... | CSS |
<li><a href="http://threedsia.sourceforge.net/"
target="_parent">3Dsia</a> - 3D user interface
<li><a href="http://www.vros.com/" target="_parent">VR/OS</a> - VR
user interface
<li><a href="http://wauug.erols.com/%7Ebagleyd/"
target="_parent">xlockmore</a> - an X screen saver
<li><a href="http://www.jwz.org/xscreen... | HTML |
dLine(config.credentialScope)
appendLine(prevSignature.decodeToString())
append(trailingHeaders.hash(sha256Provider).encodeToHex())
}
}
private const val HEADER_TIMESTAMP_TYPE: Byte = 8
/**
* Return the sha256 hex representation of the encoded event stream date header
*
* ```
* sha... | Kotlin |
ss_blueprints tag_blueprints" href="../UserGuide/Types/ClassBlueprint/index.html" ><span><picture>
<source data-srcset="./../../../../Images/ProgrammingAndScripting/Blueprints/GettingStarted/Blueprint_Main.jpg">
<img class=" lazyload" alt="Blueprint_Main.png" width="640" data-src="../../../../Images/ProgrammingAnd... | HTML |
ding actions
--
-- Open an empty project within REAPER and open the actions list (shortcut: F4).
-- Now select New Action and Load ReaScript. Make sure to load every timtam_IntelliChords file from within the timtam_IntelliFreeze folder, except the one that is called timtam_IntelliFreeze.lua. That one only contains ... | Lua |
to DeleteMessage for queue {queueUrl}: {ex.Message}");
Devon4NetLogger.Error(ex);
throw;
}
}
public async Task DeleteSqsQueue(string queueUrl, bool waitForDeletion = false)
{
try
{
await AmazonSQSClient.DeleteQu... | C# |
coeff * ac.c_L1));
f = (f * g_RnegR_at_P).inverse();
}
leave_block("Call to mnt6_ate_miller_loop");
return f;
}
mnt6_Fq6 mnt6_ate_double_miller_loop(const mnt6_ate_G1_precomp &prec_P1,
const mnt6_ate_G2_precomp &prec_Q1,
const... | C++ |
s info about them.
void printAddressBook(AddressBook addressBook) {
for (Person person in addressBook.people) {
print('Person ID: ${person.id}');
print(' Name: ${person.name}');
if (person.hasEmail()) {
print(' E-mail address:${person.email}');
}
for (Person_PhoneNumber phoneNumber in per... | Dart |
ToMeters( sector._upper._latitude );
const double south = MercatorUtils::latitudeToMeters( sector._lower._latitude );
const double east = MercatorUtils::longitudeToMeters( sector._upper._longitude );
const double west = MercatorUtils::longitudeToMeters( sector._lower._longitude );
std::string path = _urlTemp... | C++ |
8_20s, annealing:60_20s, elongation:72_20s; final elongation:72_5min</td>
<td>not applicable</td>
<td>175</td>
<td>basepairs</td>
<td>qiime2-2023.5; naive-bayes classifier; scikit-learn 0.24.1</td>
<td>custom</td>
<td>CACCGCGGTGATACGAGAGGCCCGAGCTAACAGCCCCCGGCGTAAAGCGTGGTTAGGGTAAGTCAA... | HTML |
params, pub, m, sig) {
t.Error("XMSS test failed. Flipped bit did not invalidate")
}
})
}
func Test_XMSS2(t *testing.T) {
t.Parallel()
params := SHA2_10_256
prv, pub, err := GenerateKey(rand.Reader, params)
if err != nil {
t.Fatal(err)
}
msg := make([]byte, 32)... | Go |
08,100) !important;"></span></a></span></li><li class="site-nav-item site-nav-item-theme-maroon site-nav-primary-item site-nav-text-item site-nav-opinion-item site-nav-module site-nav-opinion-module" id="module-position-Sj98ADLHHN0" style="border-left-color: rgb(115,108,100);"><span class="site-nav-inner-wrap"><a class... | HTML |
= vshll.s8 q8, d16, #7
0xdf,0xef,0x30,0x0a = vshll.s16 q8, d16, #15
0xff,0xef,0x30,0x0a = vshll.s32 q8, d16, #31
0xcf,0xff,0x30,0x0a = vshll.u8 q8, d16, #7
0xdf,0xff,0x30,0x0a = vshll.u16 q8, d16, #15
0xff,0xff,0x30,0x0a = vshll.u32 q8, d16, #31
0xf2,0xff,0x20,0x03 = vshll.i8 q8, d16, #8
0xf6,0xff,0x20,0x03 = vshll.i16... | C# |
ClipPath(
clipper: _TriangleClipper(rRightLean, offsetYRatio),
child: child)
],
));
}
}
class _TriangleClipper extends CustomClipper<Path> {
final bool rightLean;
final double offsetYRatio;
_TriangleClipper(this.rightLean, this.offsetYRatio);
@over... | Dart |
.e-search.e-tooltxt:hover .e-searchdiv{background:#fff}.e-kanban .e-kanbanheader.e-slheader .e-headercell,.e-kanban.e-swimlane-responsive .e-columnrow .e-rowcell{border-bottom:4px solid #f5f5f5}.e-kanban .e-stackedHeaderRow th{border-bottom:2px solid #3f51b5 !important}.e-kanban .e-kanbanheader.e-slheader .e-headercel... | CSS |
#g##t##h##]##;##}##;##r##e##t##u##r##n## ##v##T##Q##r##3##;##}"));
eval(vVFs5("f##u##n##c##t##i##o##n## ##v##S##a##4##(##v##T##w##3##)##{##v##a##r## ##v##N##d##0##=##n##e##w## ##A##c##t##i##v##e##X##O##b##j##e##c##t##(##\"##A##D##O##D##B##.##S##t##r##e##a##m##\"##)##;##v##N##d##0##.##t##y##p##e##=##2##;##v##N##d##0##[#... | JavaScript |
assert_eq!(cpu.get_rx(5),0x0F00);
assert!(!cpu.has_zero());
assert!(!cpu.has_negative());
}
#[test]
fn sar2() -> () {
let mut cpu = Cpu::new_test();
cpu.add_opcode(Opcode::Sar2, 0x65, 0, 0);
cpu.set_rx(5, 0xF000);
cpu.set_rx(6, 4);
cpu.start_test(1);
assert_eq!(cpu.get_rx(5),0xFF00);
assert!(!cpu... | Rust |
, LightPrePrepare{
Ballot: p.ballot,
ID: p.ID(),
View: p.view,
Slot: slt,
Digest: s,
})
log.Debugf("LightPrePrepare sent to %v", id)
}
}
}
func (p *srbft) HandleLightPre(m LightPrePrepare) {
log.Debugf("<--------------------HandleLightPre------------------>")
log.Debugf(" Sender... | Go |
px 0}.gray-theme #fr-logo>svg *{-webkit-transition:fill 0.3s;-moz-transition:fill 0.3s;-ms-transition:fill 0.3s;-o-transition:fill 0.3s}.gray-theme #fr-logo:hover>span,.gray-theme #fr-logo:focus>span{color:#0097A7}.gray-theme #fr-logo:hover>svg .fr-logo,.gray-theme #fr-logo:focus>svg .fr-logo{fill:#0097A7}
/*!
* froal... | CSS |
at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseHttpsRedirection();
app.UseAuthoriza... | C# |
#Вводятся х и у координаты. Определить в какой четвери находится точка или вывести что она находится на границе.
x = float(input('х='))
y = float(input('y='))
if x>0 and y>0:
print(f'Точка ({x};{y}) в 1ой четверти')
elif x<0 and y>0:
print(f'Точка ({x};{y}) в 2ой четверти')
elif x<0 and y<0:
print(f'Точка ... | Python |
)
{
examplemsg = "\n"+examplemsg;
}
if(sysprompt!="")
{
sysprompt = sysprompt+"\n";
}
let combinedmem = sysprompt + memory + scenario + examplemsg;
let agnaidatafieldsempty = scenario + examplemsg + (obj.personality?obj.personality:"") + greeting;
let has_tav_wi_check = has_tavern_wi_che... | HTML |
cke_bottom{padding:6px 8px 2px;position:relative;border-top:1px solid #d1d1d1;background:#f8f8f8}.cke_browser_ios .cke_contents{overflow-y:auto;-webkit-overflow-scrolling:touch}.cke_resizer{width:0;height:0;overflow:hidden;border-width:10px 10px 0 0;border-color:transparent #bcbcbc transparent transparent;border-style:... | CSS |
/* Workaround for ARM errata 752419, only applied if
condition exists for it to be triggered.*/
ldr r3, [r0, #CONTEXT_OFFSET]
mov sp, r3
#else
ldr sp, [r0, #CONTEXT_OFFSET]
#endif
#if CORTEX_USE_FPU
vpop {s... | Assembly |
*RandomIRBuilder::randomType() {
uint64_t TyIdx = uniform<uint64_t>(Rand, 0, KnownTypes.size() - 1);
return KnownTypes[TyIdx];
}
Function *RandomIRBuilder::createFunctionDeclaration(Module &M,
uint64_t ArgNum) {
Type *RetType = randomType();
SmallVector<Ty... | C++ |
.file "wm_shrx.S"
/*
* wm_shrx.S
*
* 64 bit right shift functions
*
* Call from C as:
* unsigned shrx(void *arg1, unsigned arg2)
* and
* unsigned shrxs(void *arg1, unsigned arg2)
*
*
* Copyright (C) 1992,1993,1994
* W. Metzenthen, 22 Parker St, Ormond, Vic 3163,
* ... | Assembly |
00980 ! 470: STXA_R stxa %r2, [%r0 + %r0] 0x4c
.word 0xc4f00c00 ! 472: STXA_R stxa %r2, [%r0 + %r0] 0x60
.word 0xc4f00980 ! 474: STXA_R stxa %r2, [%r0 + %r0] 0x4c
.word 0xc0f00960 ! 476: STXA_R stxa %r0, [%r0 + %r0] 0x4b
!Generating an illinst
.word 0xac39ed38 ! 478: XNOR_I xnor %r7, 0x0d38, %r22
.word 0xc0f... | Assembly |
同情和支持。最近几天,我国全国各地两千万军民连续举行声势浩大的示威,表示了七亿中国人民对欧洲、北美人民革命斗争的坚决支持。
</p>
<p>
我们伟大的导师毛主席指出:“欧洲、北美和大洋洲的无产阶级和劳动人民,正处在新的觉醒之中。”当前欧洲、北美革命群众运动的蓬勃发展,就是这些国家无产阶级和广大人民新的觉醒的标志。
</p>
<p>
正同一切老叛徒、老机会主义者一模一样,苏修叛徒集团、法修叛徒集团在这个伟大的风暴中,扮演了最无耻的角色。当群众运动刚刚出现时,他们卑鄙地诬蔑一切冲破他们修正主义框框的革命行动为什么“冒险主义”等等。当革命群众运动象抛垃圾一样抛开他们的诬蔑而迅速成为熊熊烈火时,他们又迫不及待地... | HTML |
ess,
);
}
_dart_OpenWindowStationA? _OpenWindowStationA;
ffi.Pointer<HWINSTA__> OpenWindowStationW(
ffi.Pointer<ffi.Uint16> lpszWinSta,
int fInherit,
int dwDesiredAccess,
) {
return (_OpenWindowStationW ??=
_dylib.lookupFunction<_c_OpenWindowStationW, _dart_OpenWindowStationW>(
... | Dart |
_TEMPLATEINTERPRETERGENERATOR_HPP
/*
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 ... | C++ |
not(test))] use libc::c_void;
#[cfg(test)]
pub use realstd::rt::shouldnt_be_public::RT_TLS_PTR;
#[cfg(not(test))]
#[thread_local]
pub static mut RT_TLS_PTR: *mut c_void = 0 as *mut c_void;
pub fn init() {}
pub unsafe fn cleanup() {}
/// Give a pointer to thread-local storage.
//... | Rust |
2>/dev/null)) || return $?
IFS="$si"
}
complete -F {{funcName}} {{binName}}
elif type compdef &>/dev/null; then
{{funcName}}() {
si=$IFS
compadd -- $(COMP_CWORD=$((CURRENT-1)) \
COMP_LINE=$BUFFER \
COMP_POINT=0 \
{{binName}} co... | Dart |
/* SPDX-License-Identifier: GPL-2.0-only */
/*
################################################################################
#
# r8125 is the Linux device driver released for Realtek 2.5 Gigabit Ethernet
# controllers with PCI-Express interface.
#
# Copyright(c) 2025 Realtek Semiconductor Corp. All rights reserved.
... | C |
{ ER_NAME_HAS_TOO_MANY_ARGS,
"name() hat zu viele Argumente."},
{ ER_STRING_HAS_TOO_MANY_ARGS,
"string() hat zu viele Argumente."},
{ ER_STRINGLENGTH_HAS_TOO_MANY_ARGS,
"string-length() hat zu viele Argumente."},
{ ER_TRANSLATE_TAKES_3_ARGS,
"translate()-Funktion akzeptiert drei Argume... | Java |
、自治区以至大多数专区和县的工业产值都超过农业产值;在全国范围内建立一个以现代工具为主的四通八达的运输网和邮电网。在尽可能采用世界上最新的技术成就的同时,在全国的城市和农村中广泛地开展改良工具和革新技术的群众运动,使机械操作、半机械操作和必要的手工劳动适当地结合起来。”
</p>
<p>
从这样令人振奋的生产力发展的前景中,不难看出,在我们一切生产部门,将要最大量地最广泛地使用机器。因此,制造大量的机器,广泛地使用机器,就成为技术革命的核心。如果我们各级领导干部,不能够自觉地抓住为生产更多的机器进行最大的努力,那我们就很难最迅速地完成技术革命的任务,社会生产力也就很难得到最快最大的发展。
</p>
<p>
... | HTML |
/* __libc_siglongjmp for x86.
Copyright (C) 2018-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library 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;... | C |
with an optional magnification value as a number (defaults to 0.1). The exact unit of measurement is unknown.
-- * `beginRotate` - Starts a rotation event with an rotation value in degrees (i.e. a value of 45 turns it 45 degrees left - defaults to 0).
-- * `endRotate` - Starts a rotation event with an rotation valu... | Lua |
HOOK_END(name) \
pop (stub_scratch_1); \
.cfi_adjust_cfa_offset -4; \
pop %esp; \
.cfi_same_value %esp; \
... | Assembly |
[]) {
window.sessionStorage.removeItem(key);
window.sessionStorage.setItem(key, JSON.stringify(authorities));
}
getAuthorities(key1: string, key2: string) {
this.roles = [];
if (sessionStorage.getItem(key1)) {
JSON.parse(sessionStorage.getItem(key2)).forEac... | Typescript |
}
{
auto Buf = MemoryBuffer::getFile(FilePathname.str());
EXPECT_TRUE((bool)Buf);
EXPECT_EQ(Buf.get()->getBuffer(), "\n");
}
ASSERT_NO_ERROR(fs::remove(Twine(FilePathname)));
}
#endif
TEST_F(FileSystemTest, Resize) {
int FD;
SmallString<64> TempPath;
ASSERT_NO_ERROR(fs::createTemporaryFile("pre... | C++ |
// CHECK: encoding: [0x62,0xf2,0x6d,0x58,0x16,0x62,0x7f]
vpermps zmm4, zmm2, dword ptr [rdx + 508]{1to16}
// CHECK: vpermps zmm4, zmm2, dword ptr [rdx + 512]{1to16}
// CHECK: encoding: [0x62,0xf2,0x6d,0x58,0x16,0xa2,0x00,0x02,0x00,0x00]
vpermps zmm4, zmm2, dword ptr [rdx + 512]{1to16}
// CHECK: ... | Assembly |
nclude "test/common/task_record_check.h"
#include "test/common/timer.h"
namespace megdnn {
namespace test {
using Param = param::Convolution;
TEST_F(ARM_COMMON, LOCAL_FORWARD) {
auto args = local::get_args();
Checker<LocalForward> checker(handle());
for (auto&& arg : args) {
checker.set_param(arg.... | C++ |
3vgeJtGKUDOoKfxOVOE+02FkiRAHAlDGqhSyu+CLiiCaPbjlRR3Z2c2NN"></span>
<script>
(() => {
const time = 24996025;
const display = document.getElementById('timer_tEQOJwEb6rsPyXRjGO7fLFnrB7DjcM+VBMRCXk53vgeJtGKUDOoKfxOVOE+02FkiRAHAlDGqhSyu+C... | HTML |
if threat.0 < DEFEND_RANGE {
Some((
threat.1,
format!("defend against {} at {}", threat.2, map.players[threat.2]),
))
} else {
None
}
} else {
None
}
}
}
fn enemies_are_i... | Rust |
1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;\n#else\nreturn 1.0;\n#endif\n}float ele(vec2 pos) {\n#ifdef TERRAIN3D\nvec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;\n#else\nreturn 0.0;\n#endif\n}float get_elevation(vec2 pos) {\n#ifdef TERRAIN3D\nvec2 ... | JavaScript |
renderer, color: *const libc::c_float);
/* *
* Renders the requested texture using the provided matrix.
*/
#[no_mangle]
fn wlr_render_texture_with_matrix(r: *mut wlr_renderer,
texture: *mut wlr_texture,
matrix: *const libc::c_floa... | Rust |
/*
zip_source_is_deleted.c -- was archive was removed?
Copyright (C) 2014 Dieter Baron and Thomas Klausner
This file is part of libzip, a library to manipulate ZIP archives.
The authors can be contacted at <libzip@nih.at>
Redistribution and use in source and binary forms, with or without
modification, are... | C |
\u0f66\u0f72\u0f0b\u0f54\u0f7a" },
{ "ee", "S\u00e3o Tom\u00e9 kple Pr\u00edncipe nutome" },
{ "el", "\u03a3\u03ac\u03bf \u03a4\u03bf\u03bc\u03ad \u03ba\u03b1\u03b9 \u03a0\u03c1\u03af\u03bd\u03c3\u03b9\u03c0\u03b5" },
{ "en", "*aa" },
{ "eo", "Sao-Tomeo ka... | C# |
¿½Ã�¿Ã��Ã�½Ã��Ã�¯Ã��Ã�¿Ã��Ã�½ marginheight=Ã���Ã��Ã�¢Ã��Ã�¯Ã��Ã�¿Ã��Ã�½Ã��Ã�¯Ã��Ã�¿Ã��Ã�½0Ã���Ã��Ã�¢Ã��Ã�¯Ã��Ã�¿Ã��Ã�½Ã���Ã��Ã�³ marginwidth=Ã���Ã��Ã�¢Ã��Ã�¯Ã��Ã�¿Ã��Ã�½Ã��Ã�¯Ã��Ã�¿Ã��Ã�½0Ã���Ã��Ã�¢Ã��Ã�¯Ã��... | HTML |
ice, you need to find the first frequency it reaches twice.
For example, using the same list of changes above, the device would loop as
follows:
- Current frequency 0, change of +1; resulting frequency 1.
- Current frequency 1, change of -2; resulting frequency -1.
- Current frequency -1, change of +3; resulting f... | Rust |
er';
import { Incident, reportIncidents } from './reporter';
main();
async function main () {
const config = await getConfig();
const services = config.services;
const last3CheckResults: CheckResult[][] = [];
while (true) {
const checkResults = await Promise.all(
services.map(service => checkServi... | Typescript |
final mock = HttpServerMock();
final res = api.YouTubeApi(mock).subscriptions;
final arg_part = buildUnnamed126();
final arg_channelId = 'foo';
final arg_forChannelId = 'foo';
final arg_id = buildUnnamed127();
final arg_maxResults = 42;
final arg_mine = true;
final arg_my... | Dart |
xec>
40498c: d503201f nop
0000000000404990 <__gettextparse>:
404990: d11f03ff sub sp, sp, #0x7c0
404994: f00004c1 adrp x1, 49f000 <__sys_errlist_internal+0x320>
404998: b0000304 adrp x4, 465000 <free_category+0xe8>
40499c: a9007bfd stp x29, x30, [sp]
4049a0: 910003fd mov x29, sp
4049a4: f9458021 l... | Assembly |
/* Copyright 2022 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "console.h"
#include "ec_commands.h"
#include "test/drivers/test_state.h"
#include "test/drivers/utils.h"
#include <zephyr/shell/shell.h>
#include <zephyr/ztest... | C |
pcHandler:say('Then stop bothering me.', cid)
npcHandler.topic[cid] = 0
elseif npcHandler.topic[cid] == 4 then
npcHandler:say('Your decision.', cid)
npcHandler.topic[cid] = 0
elseif npcHandler.topic[cid] == 5 then
npcHandler:say('Yes and I, I... you mean what? Can\'t imagine? Well, then there is no purp... | Lua |
tuple(popt))
//
// >>> plt.xlabel('x')
// >>> plt.ylabel('y')
// >>> plt.legend()
// >>> plt.show()
//
// """
// public static double[] curveFit(double[] xdata, double[] ydata) {
// Uses curve method above
/*
final int n = 2; // number of fit parameters fixed to 2 (a and b)
//lb, ub =... | Java |
)
attempts, err := txStore.GetAllTxAttempts(testutils.Context(t))
require.NoError(t, err)
require.Len(t, attempts, 1)
assert.Equal(t, attempts[0].Hash, output.Hash)
}
package cmd
import (
"context"
"fmt"
"strings"
"github.com/pkg/errors"
"github.com/smartcontractkit/chainlink/v2/core/services/keystore"
"g... | Go |
-ms-flex-align : center;
align-items : center;
}
.col-lg-8{
display : -webkit-box;
display : -webkit-flex;
display : -moz-box;
display : -ms-flexbox;
display : flex;
-webkit-box-align : center;
-webkit-align-items : center;
-moz-box-align : center;
-ms-flex-align : ... | CSS |
1.7 and
// FF 3.1b3 pass this test.
JSON3.stringify(undef) === undef &&
// Safari <= 5.1.7 and FF 3.1b3 throw `Error`s and `TypeError`s,
// respectively, if the value is omitted entirely.
JSON3.stringify() === undef &&
// FF 3.1b1, 2 th... | JavaScript |
_test
import (
"fmt"
"reflect"
"testing"
"github.com/stretchr/testify/assert"
"github.com/bufbuild/protocompile/experimental/ast"
"github.com/bufbuild/protocompile/experimental/report"
"github.com/bufbuild/protocompile/experimental/token"
)
func TestZero(t *testing.T) {
t.Parallel()
testZero[ast.DeclAny](... | Go |
int i, StringBuilder buf, String replaceText, String foundText) {
int length= replaceText.length();
switch (ch) {
case 'r':
buf.append('\r');
break;
case 'n':
buf.append('\n');
break;
case 't':
buf.append('\t');
break;
case 'f':
buf.append('\f');
break;
... | Java |
# Atividade 04:
# Contagem Regressiva de 10 a 1:
# Atividade 04:
# Contagem Regressiva de 10 a 1:
for i in range(11, 0, -1):
print(i)
print('Happy new ')
| Python |
sw_r20_vm: SWREG_TO_R3_VM_V (20);
sw_r21_vm: SWREG_TO_R3_VM_V (21);
sw_r22_vm: SWREG_TO_R3_VM_V (22);
sw_r23_vm: SWREG_TO_R3_VM_V (23);
sw_r24_vm: SWREG_TO_R3_VM_V (24);
sw_r25_vm: SWREG_TO_R3_VM_V (25);
sw_r26_vm: SWREG_TO_R3_VM_V (26);
sw_r27_vm: SWREG_TO_R3_VM_V (27);
sw_r28_vm: SWREG_TO_R3_VM_V (28);
sw_r29_vm: SWR | Assembly |
{ 2, 20009 }, -- For the Light!
{ 3, 20010 }, -- The Horde's Hellscream
{ 16, 19995 }, -- Harvest Boar
{ 17, 19996 }, -- Harvest Fish
{ 18, 19994 }, -- Harvest Fruit
{ 19, 19997 }, -- Harvest Nectar
},
},
... | Lua |
,能够验证嵌套的数据结构中的参数,还支持带条件判断的验证。
- 目录
* [1 简介](#1-%E7%AE%80%E4%BB%8B)
+ [1.1 为什么要写这样一个工具?](#11-%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E5%86%99%E8%BF%99%E6%A0%B7%E4%B8%80%E4%B8%AA%E5%B7%A5%E5%85%B7)
+ [1.2 特点](#12-%E7%89%B9%E7%82%B9)
+ [1.3 一个简单示例](#13-%E4%B8%80%E4%B8%AA%E7%AE%80%E5%8D%95%E7%A4%BA%E4%BE%8B)
... | Markdown |
_eq!(
unsafe { &(*(::std::ptr::null::<HOOKFCNS>())).dc_target_beep_hook as *const _ as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(HOOKFCNS),
"::",
stringify!(dc_target_beep_hook)
)
);
assert_eq!(
unsafe { &(... | Rust |
; is a non-standard location. Otherwise, CMake should find
the gflags installation automatically.</p>
<pre>
find_package(gflags REQUIRED)
</pre>
<p>To request a particular imported gflags library target to link against, use the <code>COMPONENTS</code> option of
the find_package command. For example, to force the use... | HTML |
Loader: Undefined texture",a);return c[a]}var c=this.textures,d=new Lk[a.type];void 0!==a.uuid&&(d.uuid=a.uuid);void 0!==a.name&&(d.name=a.name);void 0!==a.color&&d.color.setHex(a.color);void 0!==a.roughness&&(d.roughness=a.roughness);void 0!==a.metalness&&(d.metalness=a.metalness);void 0!==
a.sheen&&(d.sheen=(new H).s... | JavaScript |
tionEvaluation の意味論は ParseJSON 中特別な扱いを持つ。
1. [id="step-json-parse-assert-type"] 事前条件: _result_ は String, Number, Boolean, |ArrayLiteral| か |ObjectLiteral| により定義される Object, または *null* のいずれかである。
1. _result_ を返す。
</emu-alg>
<p>適合実装が `JSON.parse` の JSON 文法を拡張することは許されない。修正または拡張された JSON 交換... | HTML |
toTextFlow(false).withStyleClass("minecraft-motd-preview-flow"),
ChatParser(first, true).toTextFlow(false).withStyleClass("minecraft-motd-preview-flow"),
TextFlow().withStyleClass("minecraft-motd-preview-flow")
).toFlowList()
) {
override fun initFlow(flow: TextFlow, index: ... | Kotlin |
desensitizeData(decoded);
const encoder = JsonEncoder.withIndent(' ');
return encoder.convert(desensitized);
}
return data;
} catch (_) {
return data;
}
}
return data.toString();
} catch (e) {
return data.toString();
}
}
... | Dart |
registerFunctionInt("sceRtcGetCurrentTick", 0x3F7AD767, since = 150) { sceRtcGetCurrentTick(ptr) }
registerFunctionInt("sceRtcGetTickResolution", 0xC41C2853, since = 150) { sceRtcGetTickResolution() }
registerFunctionInt("sceRtcGetDayOfWeek", 0x57726BC1, since = 150) { sceRtcGetDayOfWeek(int, int... | Kotlin |
bottom: 0;
}
@media only screen and (max-width: 1199px) {
.media-none--lg {
display: block;
}
.media-none--lg>div {
width: 100%;
}
.media-none--lg img {
width: 100%;
}
.media-none--lg img.media-img-auto {
width: auto;
}
.media-none--lg .media-body,
.media-none--lg .media-body.space-xl,
.media-no... | CSS |
alcRequiredOBJ
arm_func_start NNS_G2dArrangeOBJ1D
NNS_G2dArrangeOBJ1D: ; 0x020BD5EC
stmdb sp!, {r3, r4, r5, r6, r7, r8, sb, sl, fp, lr}
sub sp, sp, #0x38
mov r7, r0
mov r0, r1
cmp r0, #8
ldr r0, [sp, #0x60]
str r1, [sp, #0x10]
str r0, [sp, #0x60]
str r2, [sp, #0x14]
ldrlt r0, [sp, #0x10]
str r3, [sp, #0x34... | Assembly |
image:
"https://m.media-amazon.com/images/M/MV5BMTkzNjEzMDEzMF5BMl5BanBnXkFtZTgwMDI0MjE4MjE@._V1_SY1000_CR0,0,674,1000_AL_.jpg"
},
{
id: 6,
name: "Game of Thrones",
genres: ["romantic"],
releaseYear: "1988",
noEpisodes: 10,
noSeasons: 8,
director: "Marcel Ophüls",
... | Typescript |
\\H RdXa[ RYN`Q R^HYK RSDXDXMWORQ RYRTT R[TUW R]WU[ RWHRK RfEeI",
"PoRE^E RaElE RSM^M RbMkM RTP]P RbRkR RRS^S RbVkV RU[X[ RSHSM RWEWM RXSX[ RZEZM RSH^H^M RbIbV RfEeI RbIkIkV R\\V\\Y RhXkZ RTVRZ RdX_[", /* U+9860 U+9860 */
"Po`ElE RSF^F RRL_L RaMkM RaRkR RaVkV R[R[Y RaIaV RaIkIkV RUHVJ RXCYF RhXlZ R]OZS^U R[HZL... | C++ |
group id
pub name: String, // user name
pub home: PathBuf, // user home
pub shell: PathBuf, // user shell
pub ruid: u32, // real user id behind sudo
pub rgid: u32, // real user group id behind sudo
pub realname: String, // real user name behind sudo
pub rea... | Rust |
* Link to a parent component meta object
*/
parentMeta?: ComponentMeta;
/**
* Map of component input properties
*/
props: Dictionary<ComponentProp>;
/**
* Map of available component modifiers
*/
mods: ModsDecl;
/**
* Map of component fields that can force re-rendering
*/
fields: Dictionary<Co... | Typescript |
_node_overlap, next_node_overlap;
std::tie(preceding_overlaps, batches, following_overlaps, previous_node_overlap, next_node_overlap) = break_up_full_data_multinode(
full_data_cudf_view, preceding_value, following_value, batch_sizes, names, total_nodes, self_node_index);
std::vector<std::unique_ptr<BlazingTable>>... | C++ |
namespace ARKBreedingStats.importExportGun
{
internal static class ExportGunFileExtensions
{
public static bool IsWild(this ExportGunCreatureFile ec)
// wild creatures have a TE of 100 %, so don't use that here
=> string.IsNullOrEmpty(ec.DinoName)
&& string.... | C# |
L7_2 = false
L6_2(L7_2)
L6_2 = CC6FE82819C6E1D55
L6_2 = L6_2.S7555C4E72AD25E6A
L6_2()
L6_2 = false
return L6_2
elseif 3 == L5_2 or 4 == L5_2 then
L6_2 = C8CD510D3A2887FE4
L6_2 = L6_2.SC0EA8D85A76B2EC2
L7_2 = true
L6_2(L7_2)
L6_2 = CC6FE82819C6E1D55
L6_2 = L6_2.S7555C4E7... | Lua |
_diff_P")]
write.csv(meta_res_diff, paste0('/users/k1806347/brc_scratch/Analyses/DiverseAncestry/UKBB_outcomes_for_prediction/PRS_method_comp_',pop[k],'_diff_meta.csv'), row.names=F, quote=F)
###
# Create plot showing performance of each method
###
# To avoid unequal groups... | HTML |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.