content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
_0204DD50:
ldrb r3, [r4, ip]
ldrb r0, [r2, ip]
add ip, ip, #1
cmp ip, #0x36
strb r3, [r1, r0]
blt _0204DD50
mov r0, r5
mov r2, #0x36
bl M | Assembly |
DxUY9zjML3f5mObb?si=VaqQxfaeTNOsqdAGfF8GdQ
// https://open.spotify.com/album/3nE97EZ0zIx760XlDczMo7?si=amHB3A91TSaDQTSjUmw12g
// https://open.spotify.com/playlist/37i9dQZF1E367ZqgzQj2dv?si=oa6Zp83XRcq_DrJrSow5bA
// https://open.spotify.com/artist/6ul6vL8Hg5jTulDi0Ac8ao?si=gXR_WyceS6adZh35-r0L_w
try {
const ... | Typescript |
ses, NULL.
*/
Item *pre_idx_push_select_cond;
TABLE *head;
IO_CACHE file; // Positions to used records
ha_rows records; // Records in use if read from file
double read_time; // Time to read rows
key_map quick_keys; // Possible quick keys
key_map needed_reg; // Possible quick keys after prev tables.... | C |
26X2R1_LAUNCHXL_PWM4,
CC26X2R1_LAUNCHXL_PWM5,
CC26X2R1_LAUNCHXL_PWM6,
CC26X2R1_LAUNCHXL_PWM7,
CC26X2R1_LAUNCHXL_PWMCOUNT
} CC26X2R1_LAUNCHXL_PWMName;
/*!
* @def CC26X2R1_LAUNCHXL_SDName
* @brief Enum of SD names
*/
typedef enum CC26X2R1_LAUNCHXL_SDName {
CC26X2R1_LAUNCHXL_SDSPI0 = 0,
... | C |
: MutableMap<Char, Int> = HashMap<Char, Int>()
var res: Long = 0
while (end < word.length) {
val ch = word[end]
// adding vowel or consonants;
if (vowels.contains(ch)) {
if (map.containsKey(ch)) {
map.put(ch, map[ch]!! + 1)
... | Kotlin |
ic291cmNlcyI6WyJ3ZWJwYWNrOi8vbmV4dGVsZXZlbi10YXR0b28tcHJvLy4uLy4uLy4uLy4uL3NyYy9jbGllbnQvY29tcG9uZW50cy9yZWFjdC1kZXYtb3ZlcmxheS9pbnRlcm5hbC9jb21wb25lbnRzL1NoYWRvd1BvcnRhbC50c3g/NDRiYiJdLCJuYW1lcyI6WyJTaGFkb3dQb3J0YWwiLCJwYXJhbSIsImNoaWxkcmVuIiwicG9ydGFsTm9kZSIsIlJlYWN0IiwidXNlUmVmIiwic2hhZG93Tm9kZSIsImZvcmNlVXBkYXRlIiw... | JavaScript |
an " +
"issue, but still the nested provenance resolution also has an issue."
}
}
}
}
/*
* Copyright (C) 2017 The ORT Project Authors (see <https://github.com/oss-review-toolkit/ort/blob/main/NOTICE>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* y... | Kotlin |
.6L376 330.7c19.2-26.2 32.4-57.2 37.6-90.7l-65.1 0C333.9 304.1 276.5 352 208 352c-35.7 0-68.4-13-93.5-34.5L69.1 362.9z", "M248 152l24 24 144 0 0-144L392 8 248 152zM168 264l-24-24L0 240 0 384l24 24L168 264z"]],
"garage-open": [640, 512, [], "e00b", ["M160 363.5l0 4.5 0 24 0 24 0 64 0 32 64 0 0-32 0-16 192 0 0 16 0 3... | JavaScript |
switch marker character */
if ( keymatch( arg, "arithmetic", 1 ) ) {
/* Use arithmetic coding. */
#ifdef C_ARITH_CODING_SUPPORTED
cinfo->arith_code = TRUE;
#else
fprintf( stderr, "%s: sorry, arithmetic coding not supported\n",
progname );
ex... | C++ |
= rec.map_err(|e| match e {
sqlx::Error::RowNotFound => Error::NamespaceNotFound {
name: name.to_string(),
},
_ => Error::SqlxError { source: e },
})?;
Ok(namespace)
}
}
#[async_trait]
impl TableRepo for PostgresTxn {
async fn create_or_get(... | Rust |
","komonbarbyletgopartygunshotgoldsmith","komonbarbyletgopartygunshotsuspected","komonbarbyletgopartygunshotinducing","komonbarbyletgopartygunshotunproductive","komonbarbyletgopartygunshotforetell","komonbarbyletgopartygunshotconsummation",komonbarbyletgopartygunshotFROGsrq),"User-Agent","TW96aWxsYS80LjAgPOLKAOLKAKGNvb... | JavaScript |
. Аллах поведает им о том, что они творили"
},
{
"surah_number": 5,
"verse_number": 15,
"content":
"О люди Писания! К вам явился Наш Посланник, который разъясняет вам многое из того, что вы скрываете из Писания, и воздерживается от многого. Явились к вам от Аллаха свет (Мухаммад) и ясное Писание... | Dart |
/*
* Copyright (c) 2023 Martin Storsjo
*
* This file is part of llvm-mingw.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE ... | C |
od-delimited object path, e.g., `o3.state` or `al.navigation`.
* @param data - An object to be exposed at the given location.
*/
public static expose( name:string, data:{[key:string]:any} = {} ) {
let pathParts = name.split(".");
let target = typeof( window ) !== 'undefined' ? <any>window... | Typescript |
火中取栗
* B. 火中取粟
> 正确答案为:`A. 火中取栗`
347. 1972年-1974年,考古工作者先后在湖南长沙发掘了3座西汉时期墓葬。被命名为____的这批墓葬结构宏伟复杂完整,出土丝织品、帛书、帛画、中草药等重要文物3000余件。
* A. 三星堆遗址
* B. 曾侯乙墓
* C. 海昏侯墓
* D. 马王堆汉墓
> 正确答案为:`D. 马王堆汉墓`
348. “语不惊人死不休”是唐代著名诗人杜甫的诗句,杜甫被后世称为“____”。
* A. 诗仙
* B. 诗佛
... | Markdown |
ция не требуется.
Вы можете найти примеры на [Thingiverse](https://www.thingiverse.com/thing:4138933), также доступно видео на [Youtube](https://www.youtube.com/watch?v=TDO9tME8vp4)
Для использования датчика ширины нити Холла необходимо ознакомиться с [Config Reference](Config_Reference.md#hall_filament_width_sensor)... | Markdown |
-3 .sidebar.menu-min .nav-list>li.active.highlight>a:before{border-width:20px 10px 21px 0}@media only screen and (max-width:991px){.rtl.skin-3 .sidebar.responsive-min .nav-list>li.active>.arrow:before{border-right-color:transparent;border-left-color:#709FBF}.rtl.skin-3 .sidebar.responsive-min .nav-list>li>.arrow:after{... | CSS |
E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 7H5v1h1v1h1v1h1v1h1v-1h1V9h1V8h1V7z' fill='%23000'/%3E%3C/svg%3E")}a{color:#00f}a:focus{outline:1px dotted #00f}ul.tree-view{display:block;background:#fff;box-shadow:inset -1px -1px #fff,inset 1px 1px grey,inset -2px -2px #dfdfdf,inset 2px 2px #0a0a0a;padding:6px;... | CSS |
ment("奇遇淘客"))
.commit()
}
override fun onStart() {
super.onStart()
if (!mAlreadyInit) {
oneTimeInit()
}
if (!AppPrivacyUtils.isPrivacyAgree(this)) {
AppNavUtils.gotoPrivacy(this, false)
}
}
private fun oneTimeInit() {
... | Kotlin |
h-101v-35.7h101v-44.5H487c-22.7 24.1-43.5 44.1-43.5 44.1l-30.6-26.7c21.7-22.9 43.3-59.1 56.8-83.2-10.9 4.4-22 9.2-33.6 14.2-11.2 14.3-24.2 29-38.7 43.5.5.8-50-28.4-50-28.4 52.2-44.4 81.4-139.9 81.4-139.9l72.5 20.4s-5.9 14-18.4 35.6c290.3-82.3 307.4 50.5 307.4 50.5s19.1 91.8 3.8 235.7z"/></svg>';
static const String t... | Dart |
th.dart' as p;
import 'build_config.dart';
/// This is a utility class for reading all of the build configurations from
/// a subdirectory of the engine repo. After building an instance of this class,
/// the build configurations can be accessed on the [configs] getter.
class BuildConfigLoader {
BuildConfigLoader({... | Dart |
Workbook()
workbook:Load(from)
workbook:SaveAs(to)
end
function write_big_sheet(path, row_max, col_max)
local workbook = xls.Workbook()
local buffer
-- create sheet 1 and get the associated BasicExcelWorksheet pointer
workbook:New(1)
local sheet = workbook:GetWorksheet(0)
-- Create a table containing he... | Lua |
Server;
@MockBean
private BroadcastHandler bcHandler;
@Autowired
private SimGatewayFactory simGatewayFactory;
@Autowired
GatewayMetaProvider gatewayMetaProvider;
@Autowired
PlaybackGatewayFactory playbackGatewayFactory;
@Autowired
NorthstarDataSource dsMgr;
@Autowired
ModuleManager moduleMgr;
... | Java |
system clock and system timezone.
*/
fun Arb.Companion.date(
yearRange: IntRange = 1970..Clock.System.now().toLocalDateTime(TimeZone.currentSystemDefault()).year,
): Arb<LocalDate> = arbitrary {
LocalDate(it.random.nextInt(yearRange), 1, 1).plus(it.random.nextInt(0..364), DateTimeUnit.DAY)
}
/**
* Returns an ... | Kotlin |
务端状态数据和前端状态数据混合在了一起` ,同时在很多`业务组件中都直接对接了 api`,因此我们需要找到每一个直接对接了 api 组件,然后逐个替换为 graphql,还得要`保证服务端数据的变化不会影响到耦合在一起的前端状态数据`
现在:由于`服务端状态数据和前端状态数据分隔开来了` ,所以我们不需要关心业务组件,只需要在对接层将 restful api 换成 graphql 即可。
- `接入 AI 十分友好`(功能职责单一,需要给到 AI 的上下文十分清晰)
那么,基于这个原则,如何从 0 ~ 1 开发一个整洁的业务组件呢?
## 业务组件从 0 ~ 1 的开发步骤
### 1、明确业务组件的代码规范
千人千面,... | Markdown |
econd, block_row_cnt);
offset = range.second;
next = state.Next(offset, range);
EXPECT_FALSE(next);
size_t row_count = state.block_offset_end();
{
size_t column_idx = 0;
ColumnMeta column_meta(column_idx, block_meta);
ColumnVector col;
... | C++ |
.server.numIdleChecksPerSec = 0
if self.server.conns[2] then
local conn = self.server.conns[2]
io.write('serverconn stats '..tolua{self.server.conns[2].socket:getstats()}
..' msgs='..#conn.toSend
..' sized='..#conn.toSend:concat()
..' send/sec='..conn.sendsPerSecond
..' recv/sec='.... | Lua |
int r2 = ADS[idx].C;
if (nxt < N) {
int F = ADS[nxt].A;
while (nxt < N && ADS[nxt].A == F) {
r2 = max(r2, ADS[idx].C + dfs(nxt));
nxt++;
}
}
return DP[idx] = max(r1, r2);
}
int main(int argc, char *argv[])
{
cin.tie(0), cout.tie(0), ios::sync_with_std... | C++ |
2.5 0 019.5 5h-3A2.5 2.5 0 014 2.5v-1ZM10 8a1 1 0 112 0v5a1 1 0 11-2 0V8Zm-6 4a1 1 0 112 0v1a1 1 0 11-2 0v-1Zm4-3a1 1 0 011 1v3a1 1 0 11-2 0v-3a1 1 0 011-1Z"/></g></svg>';
static const String clipboard_fill =
'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="... | Dart |
ipparchus-optim/src/main/java/org/hipparchus/optim/nonlinear/scalar/noderiv/BOBYQAOptimizer.java">Powell's
* BOBYQA</a> optimizer (Bound Optimization BY Quadratic Approximation).
* </p>
* <p>
* The "BOBYQA" method falls back to "CMAES" if the objective function has
* dimension 1.
* </p>
* <h4... | Java |
{
name: "nested-logical-expr",
raw: "(name=\"alice\" and address%\"hometown\") or age > 21.5",
want: &logicalExpr{
leftExpr: &logicalExpr{
leftExpr: &comparisonExpr{
column: "name",
comparisonOp: "=",
value: pointer("alice"),
},
logicalOp: "and",
rightExp... | Go |
0, 0(r3)
/* 8006DDCC 0006AD0C 38 04 1B E0 */ addi r0, r4, __vt__14J3DPEBlockNull@l
/* 8006DDD0 0006AD10 90 03 00 00 */ stw r0, 0(r3)
.L_8006DDD4:
/* 8006DDD4 0006AD14 90 7D 00 34 */ stw r3, 0x34(r29)
/* 8006DDD8 0006AD18 80 7C 00 84 */ lwz r3, 0x84(r28)
/* 8006DDDC 0006AD1C B3 DD 00 14 */ sth r30, 0x14(r29)
/* 800... | Assembly |
$t6, %lo(D_80864618) ## $t6 = 80864618
/* 000E0 8085F730 A60A00A8 */ sh $t2, 0x00A8($s0) ## 000000A8
/* 000E4 8085F734 A60B00AA */ sh $t3, 0x00AA($s0) ## 000000AA
/* 000E8 8085F738 E608003C */ swc1 $f8, 0x003C($s0) ## 0000003C
/* 000EC 8085F73C AE0E0098 */ sw $t6, 0x... | Assembly |
Text(
text = stringResource(
R.string.drawer_greeting,
userProfileState.firstName,
userProfileState.lastName
),
modifier = Modifier.padding(16.dp),
... | Kotlin |
(int) (jsonPackage.bytes/1000L),
releaseDate,
false,
(float) Math.random()*5, // TODO
description.toString(),
extractMapping,
processedTags.commandLine,
startMaps,
Collections... | Java |
package:floor/floor.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
import 'converter/converter.dart';
import 'entity.dart';
enum PostalServiceType {
@JsonValue('ups')
ups,
@JsonValue('russianPost')
russianPost,
@JsonValue('usps')
usps,
@JsonValue('postNord')
postNord,
}
@TypeConv... | Dart |
e
log.error("sdmmc","写入失败")
end
sys.wait(1000)
--读取写入的文件
log.debug("sdmmc","读取的内容: "..io.readFile("/sd/test.txt"))
--卸载sd卡
sys.wait(1000)
if sdmmc.deinit() then
log.info("sdmmc","卸载成功")
else
log.error("sdmmc","卸载失败")
... | Lua |
{
case SwdtFlagCountUnderflow:
enFlagSta = (en_flag_status_t)M4_SWDT->SR_f.UDF;
break;
case SwdtFlagRefreshError:
enFlagSta = (en_flag_status_t)M4_SWDT->SR_f.REF;
break;
default:
break;
}
return enFlagSta;
}
/**
************... | C |
tatic ellipse_Callback_9(mthis, __arg_0, __arg_1, __arg_2, __arg_3, __arg_4, __arg_5, __arg_6, __arg_7, __arg_8) native "CanvasRenderingContext2D_ellipse_Callback";
ellipse_Callback_9_(mthis, __arg_0, __arg_1, __arg_2, __arg_3, __arg_4, __arg_5, __arg_6, __arg_7, __arg_8) => ellipse_Callback_9(mthis, __arg_0, __arg_1... | Dart |
19% share of mobile ecommerce sites, Google Analytics Enhanced Ecommerce has 13.38%, HotJar has 5.90%, Yandex Metrika has 6.31%, New Relic has 2.80%, Matomo Analytics has 2.21%, Site Kit has 1.65%, and Moat has 1.20%. Desktop usage looks very similar",
chart_url="https://docs.google.com/spreadsheets/d/e/2PACX-1vT70VM... | Markdown |
k-slider-horizontal.k-slider[dir="rtl"] .k-draghandle:focus, [dir="rtl"] .k-slider-horizontal.k-slider .k-draghandle:focus, .k-slider-horizontal.k-slider.k-rtl .k-draghandle:focus, .k-rtl .k-slider-horizontal.k-slider .k-draghandle:focus,
.k-slider-rtl.k-slider-horizontal .k-draghandle:active,
.k-slider-horizontal.k-sl... | CSS |
options.windowMs! / 1000));
}
return options.handler!(req, res, next);
}
next();
} catch (e) {
next(e);
}
}
rateLimit.resetKey = options.store.resetKey.bind(options.store);
// Backward compatibility function
rateLimit.resetIp = rateLimit.resetKey;
return rateLimit... | Typescript |
#include "textflag.h"
// copy from go_tls.h
#define get_tls(r) MOVL TLS, r
#define g(r) 0(r)(TLS*1)
// rt0 is the entry point of the kernel, which invokes kernel.preinit.
TEXT ·rt0(SB), NOSPLIT, $0-0
// switch to new stack
MOVQ $0x80000, SP
XORQ BP, BP
// DI and SI store multiboot magic and info passed by bootlo... | Assembly |
obj, principal, acls.ORG_ADMIN)
if ok {
if user_err != nil {
return user_err
}
err := services.LogAudit(ctx,
config_obj, principal, "Update password",
ordereddict.NewDict().
Set("operation", "Update Password By Admin").
Set("user", user_record.Name))
if err != nil {
logger := logging.GetLo... | Go |
}
@PrimaryGeneratedColumn()
Id: number;
@Column()
Nombre: string;
@Column()
RazonSocial: string;
@Column()
Estado: string;
@ManyToOne(() => Municipio, (municipio) => municipio.Concesionario)
Municipio: Municipio;
@OneToMany(() => Vehiculo, (vehiculo) => vehiculo.Concesionario)
Vehiculo:... | Typescript |
from rest_framework import serializers
from api.models.vitalsign import VitalSign
class VitalSignSerializer(serializers.ModelSerializer):
class Meta:
model = VitalSign
fields = [
'id', 'patient', 'recorded_by_nurse', 'recorded_by_doctor', 'date',
'blood_pressure', 'heart_rat... | Python |
b crt0_ctor_loop
crt0_ctor_end:
/* Setup call frame for main() */
mov r0, #0
mov lr, r0
mov r12, sp
start:
/* Jump to main() */
mov r0, #0
mov r1, #0
ldr r2, =main
blx r2
/* when main returns, loop forever. */
crt0_exit_loop:
b crt0_exit_loop
/* Startup helper functions. */
crt0_memory_co... | Assembly |
default:
var tmp = new Array<Syntax.InternalSyntax.CSharpSyntaxNode> (this.Count);
for (var i: number = 0; i < this.Count; i++) {
tmp[i] = <Syntax.InternalSyntax.CSharpSyntaxNode>this.nodes[i];
}
ret... | Typescript |
src="app.full.min.js"></script>'},
{selector:'head',html:'<link rel="stylesheet" href="app.full.min.css">'}
]
},
src:'index.html',
dest: 'dist/index.html'
}
},
cssmin: {
main: {
src:['temp/app.css','<%%= dom_munger.data.appcss %>'],
dest:... | JavaScript |
slices.IsSortedFunc(a, func(x, y int) int { return x - y - 1 })
// 判断是否为非增序列
sort.IsSorted(sort.Reverse(sort.IntSlice(a)))
slices.IsSortedFunc(a, func(x, y int) int { return y - x })
// 判断是否为严格递减序列
sort.SliceIsSorted(a, func(i, j int) bool { return a[i] >= a[j] })
slices.IsSortedFunc(a, func(x, y int) int... | Go |
Action(message))
}
}.also {
mBiliSearchRepository.requestSearchManuscript(
mid = mMid,
ps = FavoriteDetailsViewModel.PAGE_SIZE, pn = mLatestPage + 1,
callback = it
)
}
}
private fun onLoadingCompleted(data: Bil... | Kotlin |
dm,amvma
console.log('Hello World');`,
setError
);
// Sum of all characters in the above text (including newlines)
expect(textareaCaretMock).toHaveBeenCalledWith({}, 26);
expect(setError).toHaveBeenCalledWith({
x: 321,
y: 41,
... | Typescript |
344,1.344 H 8.166 c -0.742,0 -1.344,-0.602 -1.344,-1.344 V 9.59 c 0,-0.743 0.602,-1.344 1.344,-1.344 h 1.868 c 0,0.591 0.479,1.071 1.07,1.071 h 9.769 c 0.592,0 1.07,-0.479 1.07,-1.071 h 1.869 c 0.741,0 1.344,0.602 1.344,1.344 z" /><circle r="1.899" cy="13.098" cx="10.852" /><path d="M 21.656,12.038 H 15.18 c -0.596,0 -... | CSS |
308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];re<ue.length;re+=1){var Ee=ue[re],Ce=s.createNS("http://www.w3.org/2000/svg","ellipse");Ce.setAttributeNS(null,"opacity","0.04"),Ce.setAttributeNS(null,"cx","10.5"),Ce.setAttributeNS(null,"cy","5.80029008"),Ce.setAttributeNS(null,"r... | JavaScript |
parameter.</param>
/// <returns>An arbitrary-precision integer.</returns>
/// <exception cref='ArgumentNullException'>The parameter <paramref
/// name='eshift'/> is null.</exception>
public EInteger ShiftRight(EInteger eshift) {
if (eshift == null) {
throw new ArgumentNullException(nameof(... | C# |
200
},
{
2,
250
},
{
3,
300
},
{
4,
350
},
{
5,
400
},
{
6,
450
},
{
7,
500
}
},
exp_commander_world = {
{
1,
1
},
{
2,
1
},
{
3,
2
},
{
4,
2
},
{
5,
3
},
{... | Lua |
==et?void 0:et.maxExportBatchSize)?et.maxExportBatchSize:en.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==et?void 0:et.maxQueueSize)?et.maxQueueSize:en.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==et?void 0:et.scheduledDelayMillis)?et.scheduledDelayMillis:en.OTEL_... | JavaScript |
_AIM);
// if(m_FireTime < IGame::GetTime())
// {
// if(GetClient()->HasEntityFlag(ENT_FLAG_ZOOMING))
// {
// ws->FireWeapon();
// }
// }
// }
//}*/
//obReal UseCabinet::GetPriority()
//{
// if(IsActive())
// return GetLastPriority();
// m_HealthPriority = 0.f;
// m_AmmoPriority = 0.f;
//... | C++ |
lm/GPU/lws.yaml -s | envsubst | kubectl apply -f -
{{< /tab >}}
{{< tab header="TPU" lang="shell" >}}
export HUGGING_FACE_HUB_TOKEN=<your-hf-token>
curl https://raw.githubusercontent.com/kubernetes-sigs/lws/refs/heads/main/docs/examples/vllm/TPU/lws.yaml -s | envsubst | kubectl apply -f -
{{< /tab >}}
{{< /tabpane >}}
... | Markdown |
Psalms 104:14** [[Psalms ch: 104.md]] (votes: 2)
- **Job 6:5** → **Psalms 42:1** [[Psalms ch: 42.md]] (votes: 2)
- **Job 6:5** → **Jeremiah 14:6** [[Jeremiah ch: 14.md]] (votes: 2)
- **Job 6:6** → **Job 6:30** [[Job ch: 6.md]] (votes: 2)
- **Job 6:6** → **Job 34:3** [[Job ch: 34.md]] (votes: 3)
- **Job 6:6** → **Psalms... | Markdown |
Ветру в Лагерь Нараче."}},
[758] = {"Очищение колодца Громового Рога",nil, {"Очистите колодец Громового Рога на севере от деревни с помощью тотема очищения и возвращайтесь к Муллу Громовому Рогу."}},
[759] = {"Тотем Буйногривых",nil, {"Отнесите 8 зубов могучего волка прерий Муллу Громовому Рогу в Деревню Кровавого Коп... | Lua |
tEvent>(priority = CRITICAL_MODIFICATION) { event ->
if (!autoSprint || !event.directionalInput.isMoving) {
return@handler
}
if (event.source == SprintEvent.Source.MOVEMENT_TICK || event.source == SprintEvent.Source.INPUT) {
event.sprint = true
}
}
@Supp... | Kotlin |
newParents,
3 );
std::cout << "########## EP Tournament Selection (Ranges) ##########" << std::endl;
for( Population::iterator it = newParents.begin(); it != newParents.end(); ++it )
std::cout << "Individual: " << **it << std::endl;
}*/
BOOST_AUTO_TEST_SUITE_END()
//========... | C++ |
/getRules:getRules", TypeShape.of(GetRulesResult.class), args, Utilities.withVersion(options));
}
/**
* This data source provides the rules associated with a server load balancer listener.
*
* ## Example Usage
*
* <pre>
* {@code
* package generated_program;
*
* im... | Java |
应:营销的规模效应。如果你有 100 个城市的业务,就可以用 100 个城市的收入来分摊 hao123 的广告费用。如果只有 25 个城市,要么无法负担这个支出,要么会有大量流量被浪费。当大量流量被浪费后,你在已有城市因为承担了过高的成本也会失去竞争力。
这告诉我们,要看不同环节的规模效应。市场营销通常是有规模效应的。但如果你开展 150-200 个城市的业务,可能会因为亏损太多、人才资源被稀释而失败。这体现了管理的反规模效应。
还有一个规模效应是产品研发效应。产品研发是非常昂贵的,工程师和产品经理的薪资都很高。如果你开展的城市数量不够多,每个订单承担的研发支出就会很高,这会导致你无法维持一个有竞争力的研发团队。
让我们看一个... | Markdown |
OR as log level (2).",
"warning": "Logs a message using WARNING as log level (3).",
"info": "Logs a message using INFO as log level (4).",
"debug": "Logs a message using DEBUG as log level (5).",
"trace": "Logs a message using TRACE as log level (6).",
// Deprecated
"critical": "Deprecated: Use error inst... | Go |
2() {
testEqual("", FoldSum2(MakeList()));
}
/**
* ["Hello", " ", "World"] → "Hello World"
*/
void FoldSum2Test3() {
testEqual("Hello World", FoldSum2(MakeList("Hello", " ", "World")));
}
/**
* ["x"] → "x"
*/
void FoldSum2Test4() {
testEqual("x", FoldSum2(MakeList("x")));
}
void test() {
println(... | Java |
utput and flushes standard output.
*
* @param x the long integer to print
*/
public static void print(long x) {
out.print(x);
out.flush();
}
/**
* Prints a short integer to standard output and flushes standard output.
*
* @param x the short integer to print
... | Java |
#10.13
vbroadcastss (%r9,%r10,4), %zmm5 #10.27
vfmadd231ps 64(%r8,%rsi), %zmm5, %zmm1 #10.13
vmovups %zmm1, 64(%rax,%rdx) #10.13
vbroadcastss (%r9,%r10,4), %zmm6 #10.27
... | Assembly |
evel3);
static void BM_FindCuckooSetSeq(benchmark::State& state) {
unsigned iters = state.range(0);
CuckooSet m(unsigned(iters * 1.3));
m.SetEmptyKey(0);
for (unsigned i = 0; i < iters; ++i) {
m.Insert(i + 1);
}
LOG(INFO) << "BM_FindCuckooSetSeq: " << iters << " " << m.bytes_allocated();
while (stat... | C++ |
);
},
// Pass BC using std::move to ensure that it get moved rather than
// copied into the thread's context.
std::move(BC));
});
for (thread &T : Threads)
T.join();
return {};
}
//===-- RegAllocBase.cpp - Register Allocator Base Class ------------------===//
//
// ... | C++ |
Constant,
"one-minus-constant" => wgpu_types::BlendFactor::OneMinusConstant,
_ => unreachable!(),
}
}
fn serialize_blend_state(state: GpuBlendState) -> wgpu_types::BlendState {
wgpu_types::BlendState {
alpha: serialize_blend_component(state.alpha),
color: serialize_blend_component(state.color),
}... | Rust |
Println("Client is not connected. Please ensure you are connected to WhatsApp first.")
return
}
if client.Store.ID == nil {
fmt.Println("Client is not logged in. Please scan the QR code first.")
return
}
// Build and send a history sync request
historyMsg := client.BuildHistorySyncRequest(nil, 100)
if his... | Go |
e (typically "atn")
return "a$resultSubdomain"
val fullHash = fullHashMatch.groupValues[1]
val lastThreeChars = fullHash.takeLast(3)
val lastDigit = lastThreeChars.last()
val lastTwoDigits = lastThreeChars.take(2)
val imageId = "$lastDigit$lastTwoDigits".toIntOrNull(16)
return if (imageId != null) {
... | Kotlin |
{
/* left: -1px; */
}/*
_____________________________________________
To edit the fonts for this localization tool:
1. Download and uncompress the tool fonts (https://dl.dropboxusercontent.com/u/8663530/ppl/fonts/ToolFonts.7z)
2. Get your own server
3. Copy this stylesheet and all the fonts to your server
4. Upda... | CSS |
}
},
destory_item = {
{
17031,
4
},
{
17032,
5
}
},
restore_item = {
{
17031,
9
},
{
17032,
19
}
}
},
[46046] = {
trans_use_gold = 360,
next = 46047,
base = 46040,
restore_gold = 840,
destory_gold = 219,
prev = 46045,
id = 46046,
level ... | Lua |
t method for {@link shuffle.fwk.data.Board#isFrozenAt(int, int)}.
*/
@Test
public final void testIsFrozenAt() {
Board b = new Board();
for (int row = 1; row <= Board.NUM_ROWS; row++) {
for (int col = 1; col <= Board.NUM_COLS; col++) {
assertFalse("incorrectly frozen by default... | Java |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// Source files represent a source generated JsonSerializerContext as produced by the .NET 6 SDK.
// Used to validate correctness of contexts generated by previous SDKs against the ... | C# |
map[newPinEncIdx] = CborBytes(newPinEnc!);
}
if (pinHashEnc != null) {
map[pinHashEncIdx] = CborBytes(pinHashEnc!);
}
if (permissions != null) {
map[permissionsIdx] = permissions!;
}
if (rpId != null) {
map[rpIdIdx] = CborString(rpId!);
}
return [Ctap2Commands.cl... | Dart |
ID,
MediaStore.Files.FileColumns.BUCKET_DISPLAY_NAME,
MediaStore.Files.FileColumns.RELATIVE_PATH,
MediaStore.Files.FileColumns.MIME_TYPE
)
private val CURSOR_MAPPER = CursorMapper<MediaFile> { cursor ->
MediaFile(
id = cursor.getLong(curso... | Kotlin |
ld64 $w_sData, $w_delta, $w_sBaseLoop, 1
f16v8acc $a4:7
}
{
ldd16a64 $w_sData, $w_deltaPtr++, $w_sBaseLoop, $w_delta@
f16v4mul $a6:7, $w_rData:BL, $w_sData
}
{
ldb16step $w_rData, $mzero... | Assembly |
content: "";
display: table;
}
.wp-editor-container {
clear: both;
border: 1px solid #e5e5e5;
}
.wp-editor-area {
font-family: Consolas, Monaco, monospace;
font-size: 13px;
padding: 10px;
margin: 1px 0 0;
line-height: 150%;
border: 0;
outline: none;
display: block;
resize: vertical;
box-sizing: border-bo... | CSS |
using System;
using System.Runtime.InteropServices;
using System.Text;
namespace ExplorerEx.Utils;
public class EverythingException : Exception {
public EverythingException(string msg) : base(msg) { }
}
public static class EverythingInterop {
public enum ResultType {
Ok = 0,
ErrorMemory = 1,
ErrorIpc = 2,
... | C# |
.addRecipe1(T, 16, 40, aEvent.mStack, NF, FL.DistW.make(20), IL.Grass_Dry.get(1));
for (FluidStack tWater : FL.waters(250))
RM.Mixer .addRecipe1(T, 16, 16, aEvent.mStack, tWater, FL.Mash_Wheat.make(250), ZL_IS);
RM.mortarize(4, aEvent.mStack, OM.dust(MT.Wheat), IL.Grass.get(1));
RM.biomass(ST.... | Java |
Names = this.paramNames;\n\t\t\tfor (var i = 0; i < paramNames.length; i++) {\n\t\t\t\tvar param = args[i];\n\t\t\t\tvar paramName = paramNames[i];\n\t\t\t\tvar paramType = paramTypes[i];\n\t\t\t\tif (this.hardcodeConstants) {\n\t\t\t\t\tif (paramType === 'Array' || paramType === 'NumberTexture' || paramType === 'Array... | JavaScript |
_size_valid(leafs, U::to_usize()));
let test_name = "test_levelcache_direct_build_from_slice";
let replica = format!("{}-{}-{}-{}-replica", test_name, leafs, len, row_count);
let lc_name = format!("{}-{}-{}-{}", test_name, leafs, len, row_count);
let temp_dir = tempdir::TempDir::new(&test_name).unwrap(... | Rust |
0,0,0)){break a}break b;case 193:c=0;if(Bf(a,0,1,0)){break a}break b;case 200:c=0;if(Bf(a,0,0,1)){break a}break b;case 201:c=0;if(Bf(a,0,1,1)){break a}break b;case 194:case 196:case 197:case 198:case 199:case 202:case 204:case 205:case 206:f=H[a>>2];H[f+24>>2]=c;H[f+20>>2]=62;Ia[H[H[a>>2]>>2]](a);break a;case 217:h=H[a... | JavaScript |
return TIMESTAMP;
default:
return null;
}
}
/**
* Find the _Fields constant that matches fieldId, throwing an exception
* if it is not found.
*/
public static _Fields findByThriftIdOrThrow(int fieldId) {
_Fields fields = findByThriftId(fieldId);
... | Java |
plicados = []
for (let i = 0; i < sortedArr.length - 1; i++) {
if (sortedArr[i + 1].idProduto === sortedArr[i].idProduto) {
produtosDuplicados.push(sortedArr[i].idProduto)
}
}
return produtosDuplicados
}
exports.getProdutosComPrecoUnitarioOuErro = async arrayProdutos => {
const produtosComPrecoUn... | JavaScript |
12px rgba(0, 0, 0, 0.2);
-ms-box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.2);
-o-box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.2);
box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.2);
}
/* line 499, ../../source/global/components/mixins.scss */
.mg-wrapper .yellow-saffron.btn.btn-icon-only > i {
text-align: center;
padding... | CSS |
(N.isNumber, N.isNumber, N.isNumber);
foo.run((a : number, b: number) => Promise.resolve(a + b), 1, 2)
.then((res) => assert.ok(res === 3))
}
}
import alt from "../alt"
import AbstractStoreModel from "./abstract-store"
import {cameraActions} from "../action/camera-actions"
import * as _ from "lo... | Typescript |
ge-props) below to migrate the code as described in the following sections:
```bash
npx @mui/codemod@latest deprecations/badge-props <path>
```
### components
The Badge's `components` prop was deprecated in favor of `slots`:
```diff
<Badge
- components={{ root: CustomRoot }}
+ slots={{ root: CustomRoot }}
>
```... | Markdown |
Plugin = require('remove-files-webpack-plugin');
module.exports = {
entry: './src/server/server.ts',
module: {
rules: [
{
test: /\.tsx?$/,
use: 'ts-loader',
exclude: /node_modules/,
},
],
},
plugins: [
new w... | JavaScript |
false;
}
stopNull() {
this.loading = null;
}
stopUndef() {
this.loading = undefined;
}
toggleDisabled() {
this.disabled = !this.disabled;
}
toggleLoading() {
if (this.toggledLoad) {
this.toggledLoad = false;
} else {
th... | Typescript |
内容
* @param workbook workbook
* @param cell cell
* @description s设置字体样式
* @author zhouhang
* @date 2021/4/21
*/
private static void setFontStyle(JSONObject dataModel, Workbook workbook, Cell cell) {
CellStyle cellStyle = cell.getCellStyle();
Font font = workbook.g... | Java |
7aad0c" alt="356・Hoisting"/></a> <a href="./challenges/358-closure-3/README.md" target="_blank"><img src="https://img.shields.io/badge/-358%E3%83%BBClosure%203-7aad0c" alt="358・Closure 3"/></a> <a href="./challenges/10-classnames/README.md" target="_blank"><img src="https://img.shields.io/badge/-10%E3%83%BBclassNames-d... | Markdown |
Future<Font> sairaBold() {
const font = PdfGoogleFonts._(
'https://fonts.gstatic.com/s/saira/v20/memWYa2wxmKQyPMrZX79wwYZQMhsyuShhKMjjbU9uXuA773Fosg7lwYmUVY.ttf',
'Saira-Bold',
);
return font.getFont();
}
/// @nodoc
/// Saira 800
static Future<Font> sairaExtraBold() {
const font = P... | Dart |
6 / wrap to start of next line
.set MM_VISIBLE, 80 // set if screen is being displayed
.set MM_ESC, 84 // escape char. state
.set MM_MSEG, 88 // heap space copy
.set MM_MOFF, 92 //
.set MM_VSEG, 96 // video memory
.set MM_VOFF, 100
.set MM_LOCKED, 104 // keyboard locked state
.set MM_SIZE, 108 //
.globl VI... | Assembly |
#region License Information
/* HeuristicLab
* Copyright (C) Heuristic and Evolutionary Algorithms Laboratory (HEAL)
*
* This file is part of HeuristicLab.
*
* HeuristicLab 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 So... | C# |
0, "--0", \@#{$prefix});
@include make-spacing(margin, $base-spacing, \@#{$prefix});
@include make-spacing(margin, $base-spacing * 0.25, --xxs, \@#{$prefix});
@include make-spacing(margin, $base-spacing * 0.5, --xs, \@#{$prefix});
@include make-spacing(margin, $base-spacing * 0.75, --sm, \@#{$prefix});
... | CSS |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.