content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
= 8388608;
pub const VK_PIPELINE_STAGE_COMMAND_PREPROCESS_BIT_NV: VkPipelineStageFlagBits = 131072;
pub const VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_NV: VkPipelineStageFlagBits = 2097152;
pub const VK_PIPELINE_STAGE_ACCELERATION_STRUCTURE_BUILD_BIT_NV: VkPipelineStageFlagBits = 33554432;
pub const VK_PIPELINE_STAGE_... | Rust |
овышает рейтинг критического удара на %s на %s сек"] = { { Stats.MeleeCritRating, Stats.RangedCritRating, Stats.SpellCritRating, }, false, } -- s24543
L["увеличивает силу заклинаний тайной магии на %s на %s сек"] = { { Stats.ArcaneDamage, }, false, } -- s24544
L["повышает рейтинг скорости боя на %s и снижает расход ман... | Lua |
//}
const double v0 = (double)vrc7_output[0] / (double)(1 << 20);
out[i] = (float)v0;
}
// 回退
famicom->interfaces.audio_change = audio_change_bk;
famicom->apu.vrc7 = vrc7_bk;
}
#endif
/// <summary>
/// StepFC: VRC7生成波表
/// </summary>
/// <remarks>
/// out是 长度为128 x 6的缓冲区
/// </remark... | C |
Fi() {
hvue.NewComponent(
"wifi",
hvue.Template(templateWiFi),
hvue.DataFunc(func(vm *hvue.VM) interface{} {
data := struct {
*js.Object
ShowStoreModal bool `js:"showStoreModal"`
ShowLoadModal bool `js:"showLoadModal"`
ShowDeployStoredModal bool `js:"showDeployStoredModal"`
TemplateN... | Go |
ributes.name || "";
this.use = attributes.use || "";
this.usehref = attributes.usehref || "";
}
}
class Oids extends _xfa_object.XFAObject {
constructor(attributes) {
super(TEMPLATE_NS_ID, "oids", true);
this.id = attributes.id || "";
this.type = (0, _utils.getStringOption)(attributes.type, ["op... | JavaScript |
from last
if (slow?.next != null) {
slow.next = slow.next!!.next
}
return newHead
}
private fun printList(node: ListNode19?) {
var newNode = node
while (newNode != null) {
print(newNode.`val`.toString() + " ")
newNode = newNode.next
}
println()
}
fun main() {
v... | Kotlin |
to remove the trailing white space characters from a VARCHAR string.
//
// This parameter applies only to columns with a VARCHAR data type. Choose `true` to remove unneeded white space. The default is `false` .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dms-endpoint-redshif... | Go |
elemento ```body```:
```html
Eu sou um desenvolvedor web!
E eu sou incrível!
```
Agora execute novamente o arquivo ```index.html```, da mesma forma que foi realizado no passo 6 do capítulo anterior.
Você escreveu exatamente como eu mostrei, não foi? E por que o navegador está mostrando:
> Eu sou um desenvolvedor ... | Markdown |
AtAuthStateNoneStoresGyAndY(t *testing.T) {
c := newConversation(otrV3{}, fixtureRand())
nextState, nextMsg, err := authStateNone{}.receiveDHCommitMessage(c, fixtureDHCommitMsg())
assertEquals(t, err, newOtrError("corrupt DH commit message"))
assertEquals(t, nextState, authStateNone{})
assertDeepEquals(t, nextMsg,... | Go |
e,
},
timeToBeCompleted: {
type: DataTypes.STRING,
allowNull: false,
},
});
// Define the one-to-many relationship with User
UserAppointments.associate = (models) => {
UserAppointments.belongsTo(models.User, {
foreignKey: "userId",
as: "user",
});
UserAppointments.belongsTo(models.User, {
... | JavaScript |
MainWindow.Instance.navView.SelectedItem = MainWindow.Instance.navView.MenuItems[1] as NavigationViewItem;
}
}
protected override DependencyObject CreateShell()
{
return Container.Resolve<MainWindow>();
}
protected override void RegisterTypes(IContainerRe... | C# |
orm" action="/notifications/subscribe" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="a5Ra8yWOToa/uLhgS4hffTsjlbHYKhOO1HG3RBc7ch6SSSlociMNYAzjuWUq+Eb5VvG9kvw3J9kMKTuB8IYzvQ==" />
<input type="hidden" name="repository_id" value="44867148">
<header... | CSS |
(
env,
ATOM_OK,
enif_make_tuple2(env, enif_make_uint64(env, count), enif_make_uint64(env, size))
);
}
ERL_NIF_TERM
CompactRange(ErlNifEnv *env, int argc, const ERL_NIF_TERM argv[])
{
ReferencePtr<DbObject> db_ptr;
rocksdb::ColumnFamilyHandle *column_family;
rocksdb::Slice begin... | C++ |
5_2 = L5_2.super
L6_2 = A0_2
L7_2 = A1_2
L8_2 = A2_2
L9_2 = A3_2
L10_2 = A4_2
L5_2(L6_2, L7_2, L8_2, L9_2, L10_2)
end
L68_1 = _ENV["C04D3D64A1D8BE8BA"]
L69_1 = "__name__"
L70_1 = "C04D3D64A1D8BE8BA"
L68_1[L69_1] = L70_1
L68_1 = _ENV["C04D3D64A1D8BE8BA"]
L69_1 = "prototype"
L70_1 = _hx_e
L70_1 = L70_1()
L68... | Lua |
import logging
from flask import render_template
from itsdangerous import URLSafeTimedSerializer
from redash import settings
from redash.tasks import send_mail
from redash.utils import base_url
logger = logging.getLogger(__name__)
serializer = URLSafeTimedSerializer(settings.SECRET_KEY)
def invite_token(user):
... | Python |
: HashMap::new(),
scratch_registers: SCRATCH_REGISTERS.iter().map(|r| (*r, false)).collect(),
label_idx: 0,
ctx: Context::default(),
functions: HashMap::new(),
generating_functions: vec![],
}
}
}
use crate::schrage::jobs::{Job, JobList, SchrageJobT... | Rust |
mprovider/openai.png";
import GenericOpenAiLogo from "@/media/llmprovider/generic-openai.png";
import AzureOpenAiLogo from "@/media/llmprovider/azure.png";
import AnthropicLogo from "@/media/llmprovider/anthropic.png";
import GeminiLogo from "@/media/llmprovider/gemini.png";
import OllamaLogo from "@/media/llmprovider/... | JavaScript |
.Buffer)
for _, e := range structHashEntries {
h.Write(e.khash[:])
h.Write(e.vhash[:])
}
identifier := mapIdentifier
if hasher.messageIdentifier != "" {
identifier = hasher.messageIdentifier
}
return hash(identifier, h.Bytes())
}
// hashValue returns the hash of an arbitrary proto field value.
//
// Note ... | Go |
// Copyright (c) 2015, Michael Kunz. All rights reserved.
// http://kunzmi.github.io/managedCuda
//
// This file is part of ManagedCuda.
//
// ManagedCuda 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 Foundat... | C# |
Lcieven | no, go check dest
movsb a0@+,d1 | yes, get a byte
nop
movb d1,a1@+ | put a byte
subql #1,d0 | adjust count
jeq Lcidone | exit if done
Lcieven:
movl a1,d2
btst #0,d2 | dest address odd?
jne Lcibloop | yes, must copy by bytes
movl d0,d2 | no, get count
lsrl #2,d2 | convert to longword... | Assembly |
のう",
"がはく",
"かぶか",
"かほう",
"かほご",
"かまう",
"かまぼこ",
"かめれおん",
"かゆい",
"かようび",
"からい",
"かるい",
"かろう",
"かわく",
"かわら",
"がんか",
"かんけい",
"かんこう",
"かんしゃ",
"かんそう",
"かんたん",
"かんち",
"がんばる",
"きあい",
"きあつ",
"きいろ",
"ぎいん",
"きうい",
"きうん... | JavaScript |
out: "η~|␑k␐Z<p'~ζ{\x13|%Pψ\x15\x04]πξk\x18S{ε~)",
}, { // 778
mask: EncodeZero | EncodeLeftTilde,
in: "η~|␑k␐Z<p'~ζ{\x13|%Pψ\x15\x04]πξk\x18S{ε~~",
out: "η~|␑k␐Z<p'~ζ{\x13|%Pψ\x15\x04]πξk\x18S{ε~~",
}, { // 779
mask: EncodeZero | EncodeLeftTilde,
in: "η~|␑k␐Z<p'~ζ{\x13|%Pψ\x15\x04]πξk\x18S{ε~~",
ou... | Go |
export default apiRoute;
export const config = {
api: {
bodyParser: false, // Disallow body parsing, consume as stream
},
};
type ImageOptions = ({
type: "user";
userId: string;
videoId: null;
} | {
type: "thumbnail";
videoId: string;
userId: null;
} | {
type: "none",
videoId: null;
userId: ... | Typescript |
Operate: 'संचालन',
Exchange: 'व्यापार करें',
trading: "व्यापार अब",
high: "24 घंटे की उच्चतम कीमत",
low: "24 घंटे सबसे कम कीमत"
},
exchange: {
coin: 'मुद्रा',
symbol:"ट्रेडिंग जोड़ी",
lastprice: 'नवीनतम कीमत',
daychange: '24 घंटे ऊपर और नीच... | JavaScript |
> 0:
stats['blue_side_avg_pick_pos'] = round(stats['blue_side_avg_pick_pos'] / stats['blue_side_pick_count'], 1)
stats['blue_side_winrate'] = round((stats['blue_side_win_count'] / stats['blue_side_pick_count']) * 100, 2)
if stats['red_side_pick_count'] > 0:
s... | Python |
PlsCoreManager.createNotification(NotificationType.WARNING, content)
}
}
package icu.windea.pls.lang.expression.nodes
import com.intellij.openapi.editor.colors.TextAttributesKey
import com.intellij.openapi.util.TextRange
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiElementResolveResult
import com... | Kotlin |
ERROR) {
strType = "ERROR";
} else if (type == GL32.GL_DEBUG_TYPE_MARKER) {
strType = "MARKER";
} else if (type == GL32.GL_DEBUG_TYPE_OTHER) {
strType = "OTHER";
} else if (type == GL32.GL_DEBUG_TYPE_PERFORMANCE) {
strType = "PERFORMANCE";
} else if (type == GL32.GL_DEBUG_TYPE_POP_GROUP) {
... | Java |
// Framework and third-party non-ui
import React from 'react';
import PropTypes from 'prop-types';
// Redux operations and local helpers/utils/modules
// Component specific modules (Component-styled, etc.)
import {
StyledArcgisAccountContentInfo,
StyledArcgisAccountContentName,
StyledArcgisAccountContentId,
... | JavaScript |
alt="Cat" id="donateImg">
</span>
</div>
</body>
</html>
<script src="../dist/popup.js"></script>
<!doctype html>
<html lang="en">
<head>
<title>We’re sorry, but something went wrong (500 Internal Server Error)</title>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, width=d... | HTML |
JsonNode metricsName = metricsNode.get(i).get("name");
if (expectedMetricName.equals(metricsName.textValue())) {
bingo = true;
break;
}
}
assertTrue(bingo);
}
@Test
public void testStorageCounter() {
// test for local storage
ShuffleServerMetrics.incStorageRetryC... | Java |
const actionCreators = {
getTokenFromCode,
getUserPlaylists,
createRoom,
leaveRoom,
getPlayback,
play,
getRoom,
joinRoom,
synx,
getUsers,
logout,
addMembershipAdmin,
addReward,
clearError
};
import { expect } from 'chai'
import { expect as earl } from '../../../src'
import { mockFn } from ... | Typescript |
8</B>
(
e/d;
128
,
192
,
256
);
<B>CFB128</B>
(
e/d;
128
,
192
,
256
);
<B>OFB</B>
(
e/d;
128
,
192
,
256
);
<B>CTR</B>
(
ext only;
128
,
192
,
256
)
<BR>
<P>
<B>CCM (KS:
128
,
192
,
256
</B>)
<B>(Assoc. Data Len Range</B>:
0 -
0
, 2^16
)
<B>(Payload Length Range</B>:
1 -
32
(
<B>Nonce Length(s)</B>:
7
8
9
10
11
1... | HTML |
义加载器会解密并执行恶意二进制文件,而无需Secure Boot验证。
**影响范围**
**1**
**受影响产品及版本**
ESET的报告列出了以下易受攻击的产品和版本:
- Howyar SysReturn 10.2.023_20240919之前的版本
- Greenware GreenGuard 10.2.023-20240927之前的版本
- Radix SmartRecovery 11.2.023-20240927之前的版本
- Sanfong EZ-back System 10.3.024-20241127之前的版本... | Markdown |
fun Player.playSound(sound: Sound, volume: Float, pitch: Float): Unit = playSound(location, sound, volume, pitch)
public fun Player.playNote(instrument: Instrument, note: Note): Unit = playNote(location, instrument, note)
public fun <T> Player.playEffect(effect: Effect, data: T? = null): Unit = playEffect(location, ef... | Kotlin |
cpu_reset)
#endif /* OFW */
/*
* setjump + longjmp
*/
ENTRY(setjmp)
stmia r0, {r4-r14}
mov r0, #0x00000000
RET
END(setjmp)
ENTRY(longjmp)
ldmia r0, {r4-r14}
mov r0, #0x00000001
RET
END(longjmp)
.data
.global _C_LABEL(esym)
_C_LABEL(esym): .word _C_LABEL(end)
ENTRY_NP(abort)
b _C_LABEL(abort)
END(abort)
... | Assembly |
ily: 'Source Code Pro';
font-style: italic;
font-weight: 300;
src: url(assets/fonts/Source-Code-Pro-italic-300.woff2) format('woff2'), url(assets/fonts/Source-Code-Pro-italic-300.woff) format('woff'), url(assets/fonts/Source-Code-Pro-italic-300.ttf) format('truetype');
}
@font-face {
font-family: 'Source Code ... | CSS |
end Sie Ihre Geldbörse(n) generieren.",
"securitystep1title": "Schritt 1: Generierung eines neuen Schlüssels",
"securitystep1": "Wählen Sie eine Kryptowährung und wählen Sie \"Generiere neuen Schlüssel\".",
"securitystep2title": "Schritt 2: Ausdruck Ihrer Papier Geldbörse",
"securitystep2": "Klicken Sie... | HTML |
;
if (parent is { })
return parent;
goto default;
}
default:
return VisualTreeHelper.GetParent(child);
}
}
}
extension(DependencyObject child) {
/// <summary>
/// Find the parent of a given <typeparamref name="TElement" /> in the visual tree.
/// </summary>
/// <typeparam na... | C# |
was a Thursday) */
wt->wat_dow = (days + 4) % 7;
/* Number of years in days */
i = POSIX_BASE_YEAR;
while (days >= days_in_year(i)) {
days -= days_in_year(i);
i++;
}
wt->wat_year = i - CLOCK_BASE_YEAR;
/* Number of months in days left */
if (leapyear(i))
days_in_month(FEBRUARY) = 29;
for (i = 1; days ... | C |
1.555.613 2.164a9.047 9.047 0 01-.124 3.286 7.203 7.203 0 01-.953 2.215c-.494.768-1.129 1.465-1.937 2.128.492 1.43 1.776 4.222 2.604 6.067zM6.688 2.922c.032.53.036 1.064.013 1.596a23.53 23.53 0 01-.13 1.626c-.06.538-.132 1.075-.205 1.611l-.024.175c-.23 1.677-.471 3.352-.725 5.024a280.578 280.578 0 01-.866 5.255c-.139.... | Dart |
ZDtzdHJva2UtbGluZWpvaW46cm91bmQ7LWlua3NjYXBlLXN0cm9rZTpub25lIi8+JiN4YTsgICAgPHBhdGggZD0ibSAyMjEuNjUyMzcsMjEwLjY0Mzk5IC0yOC45MzM2NSwtMjkuMDcyMTMgYyAtOS41NDkyMyw2LjU5MzE1IC0yMS4xMDA1MiwxMC40NjcwNiAtMzMuNTEwMDgsMTAuNDY3MDYgLTMyLjUyMDk3LDAgLTU5LjE2MDg2LC0yNi41ODMxNiAtNTkuMjU3MzU3LC01OS4wODI3IC0xLjhlLTQsLTAuMDU5IC0wLjAwMywt... | JavaScript |
TestKotlinJvm.classpathSnapshotProperties.classpathSnapshot
}
named("jvmTestClasses") {
dependsOn(compileTestJavaJvm)
}
}
fun Test.setJreSystemProperty(majorVersion: Int) {
val javaHome = project.javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(majorVersion)
}.... | Kotlin |
use std::path::PathBuf;
use utils::*;
use std::hash::Hash;
use std::sync::{Mutex, Arc};
use std::cmp::min;
use serde::{Deserialize, Serialize};
use serde_json::json;
use flare_utils::file_utils::open_file;
use call_tree::*;
use std::ops::{Index, Deref, DerefMut};
use flare_utils::stopwatch::*;
use std::str::FromStr;
u... | Rust |
r3, #0x0
str r3, [sp, #0x0]
mov r0, #0x46
str r0, [sp, #0x4]
ldr r0, [pc, #0x2c] @ 0x2242360, (=0xf0200)
ldr r1, [sp, #0xc]
str r0, [sp, #0x8]
mov r0, r6
add r0, #0x10
bl Function_2242200
.thumb
branch_224233e: @ 224233e :thumb
mov r1, #0x0
ldr r0, [pc, #0x1c] @ 0... | Assembly |
a:after {
padding-left:0.2rem;
font-family: "JuliaMono";
content: "⮻";
color: var(--signage);
background-color: inherit;
font-size: 120%;
}
html.theme--documenter-light p > a:after {
padding-left:0.2rem;
font-family: "JuliaMono";
content: "⮻";
background-color: inherit;
font-size: 120%;
}
html.theme--docu... | CSS |
inger -type AttributeID,TypeID,NodeIDType,NamingRuleType,OpenFileMode,IdentityCriteriaType,AlarmMask,TrustListValidationOptions,TrustListMasks,PubSubState,DataSetFieldFlags,DataSetFieldContentMask,OverrideValueHandling,DataSetOrderingType,UADPNetworkMessageContentMask,UADPDataSetMessageContentMask,JSONNetworkMessageCon... | Go |
return x.DownlinkDataServiceInformation()
}
}
return nil, ErrIENotFound
default:
return nil, &InvalidTypeError{Type: i.Type}
}
}
// HasPPI reports whether an IE has PPI bit.
func (i *IE) HasPPI() bool {
if i.Type != DownlinkDataServiceInformation {
return false
}
if len(i.Payload) < 1 {
return fals... | Go |
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../unlekker/modelbuilder/Vec3.html" title="class in unlekker.modelbuilder">Vec3</A>[]</CODE></FONT></TD>
<TD><CODE><B>Vec3.</B><B><... | HTML |
#pragma once
// 2022 Visa.
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublic... | C |
removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgn... | HTML |
[];
/**
* @public
* <p>The tag-set that is applied to the job results.</p>
*/
Tagging?: Record<string, string>;
/**
* @public
* <p>A map of metadata to store with the job results in Amazon S3.</p>
*/
UserMetadata?: Record<string, string>;
/**
* @public
* <p>The storage class used to... | Typescript |
m_driverController.povRight().whileTrue(m_climberSubsystem.unlockArmCommand());
m_driverController.a().whileTrue(m_gameCommands.alignRobotToTargetCommand());
// m_driverController.b().whileTrue();
m_driverController.y().whileTrue(m_gameCommands.runReloadCommand());
m_driverController.x().whileTrue(... | Java |
[maxTrim].
///
/// The [min] param is the minimum position of the trimmed area on the slider
/// The [max] param is the maximum position of the trimmed area on the slider
///
/// Arguments range are `0.0` to `1.0`.
void updateTrim(double min, double max) {
assert(min < max,
'Minimum trim value (... | Dart |
at first try when using the above method. In such cases a follow up sync should be successful.
# Plugins
See the [upstream documentation](https://argo-cd.readthedocs.io/en/stable/user-guide/config-management-plugins/#configure-plugin-via-sidecar) for more information.
Plugin sidecar containers can be added to the re... | Markdown |
Sequence asCharSequence() {
return result != null ? result : word;
}
String getString() {
return result;
}
char[] getChars() {
return word.getArray();
}
int getLength() {
return word.length();
}
String result;
private boolean matched() {
/***
* if (!lookups.cont... | Java |
and 3 common parts
uint16_t Version = 0;
uint16_t Revision_level = 0;
uint32_t Vendor = 0;
union
{
uint16_t channelcount = 2;
uint16_t always3;
}PACKED;
union
{
uint16_t samplesize = 16;
uint16_t always16;
}PACKED;
union
{
uint16_t Compress... | C |
day - 1) % 7];
fish_per_day[(day - 1) % 7] += new_fish;
if day == final_day {
break;
}
}
fish_per_day.iter().sum::<usize>() + fish1 + fish2
}
pub fn part1() -> usize {
run(80)
}
pub fn part2() -> usize {
run(256)
}
#[cfg(test)]
mod tests {
use super::*;
... | Rust |
/************************************************************************
* Copyright(c) 2013, One Unified. All rights reserved. *
* email: info@oneunified.net *
* *
* This file is provided... | C |
owLayout_main {
box-sizing: border-box;
overflow: hidden;
position: absolute;
top: 0;
}
.fixedDataTableRowLayout_body {
left: 0;
position: absolute;
top: 0;
}
.fixedDataTableRowLayout_fixedColumnsDivider {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
border-left-style:... | CSS |
radientBrush, graphicsPath3);
areaPath.Dispose();
areaPath = null;
gradientFill = false;
}
areaBottomPath.Reset();
if (!selection)
{
common.EventsManager.OnPaint(item, new ChartPaintEventArgs(graph, common, area.PlotAreaPosition));
}
}
if (flag2)
{
arrayList = null;
... | C# |
0A101QN1): цена=84.2%, доходность=11.54%, дюрация=39.96 мес.</li><li>Строка 732 из 2245: СберИОС 001Р-269R IMOEX_asn 4Г (RU000A101QT8): цена=98.5%, доходность=0%, дюрация=0 мес.</li><li>Строка 733 из 2245: СберИОС 001Р-271R SPX_asn 3.5Г (RU000A101QU6): цена=148.7%, доходность=0%, дюрация=0 мес.</li><li>Строка 734 из 22... | HTML |
per::*;
pub trait AsAny {
fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
}
impl<T: Any> AsAny for T {
fn as_any(&self) -> &dyn Any {
return self;
}
fn as_any_mut(&mut self) -> &mut dyn Any {
return self;
}
}
/// Trait for Building a Widget
pub trait Widget: AsAny + 'static {
// T... | Rust |
()
if len(bucketName) == 0 {
flag.PrintDefaults()
log.Fatalf("invalid parameters, bucket name required")
}
if len(region) == 0 {
flag.PrintDefaults()
log.Fatalf("invalid parameters, region required")
}
if len(accountId) == 0 {
flag.PrintDefaults()
log.Fatalf("invalid parameters, accounId required")
... | Go |
xed.Int26_6(0)
)
fupe := fixed.Int26_6(fnt.FUnitsPerEm())
for _, char := range text {
idx := fnt.Index(char)
hm := fnt.HMetric(fupe, idx)
vm := fnt.VMetric(fupe, idx)
g := truetype.GlyphBuf{}
err := g.Load(fnt, fupe, idx, font.HintingNone)
if err != nil {
log.Println(err)
return 0, 0, 0
}
tota... | Go |
n32_System_IO"))]
pub fn ProcessSocketNotifications(completionport: super::super::Foundation::HANDLE, registrationcount: u32, registrationinfos: *mut SOCK_NOTIFY_REGISTRATION, timeoutms: u32, completioncount: u32, completionportentries: *mut super::super::System::IO::OVERLAPPED_ENTRY, receivedentrycount: *mut u32) ... | Rust |
PROTO_0:
GETUPVAL R4 0
GETTABLEKS R3 R4 K0 ["Dictionary"]
GETTABLEKS R2 R3 K1 ["join"]
MOVE R3 R0
GETTABLEKS R4 R1 K2 ["storeData"]
CALL R2 2 -1
RETURN R2 -1
PROTO_1:
GETUPVAL R4 0
GETTABLEKS R3 R4 K0 ["Dictionary"]
GETTABLEKS R2 R3 K1 ["join"]
MOVE R3 R0
DUPTABLE R4 K3 [{"assetId"}]
GETTABLE... | Assembly |
ro out 4 bytes, so that `bit 7` value can be trusted.
UNSAFE.putInt(heapMemory, pos + 2, 0);
if (numPaddingBytes > 2) {
UNSAFE.putByte(heapMemory, pos + numPaddingBytes - 1, (byte) (0x40));
writerIndex = writerIdx + numPaddingBytes;
return numPaddingBytes;
} else {
UNSA... | Java |
,但是想让主域名 `https://example.com/` 也能跳转到 `/home`,可以这么配置:
这是最简单的配置方式,把目标路由的 `path` 配置进来就可以了:
```ts
const routes: Array<RouteRecordRaw> = [
// 重定向到 `/home`
{
path: '/',
redirect: '/home',
},
// 真正的首页
{
path: '/home',
name: 'home',
component: () => import('@views/home.vue'),
},
]
```
但缺点也显而... | Markdown |
128.0 would be completely filled in.
/// The value can be changed by clicking and dragging on the shape.
#[derive(Clone, CloneRef, Debug)]
pub struct NumberPicker {
/// Public FRP api of the Component.
pub frp: Rc<number::Frp>,
model: Rc<Model>,
/// Reference to the application the Component belongs ... | Rust |
cezaIibsAa386kogyga0r5UkqrOuADz8QSTca3goNGP4jbtz/WbfyyNINoxpAz6XK5//CroZg6eJ4uPztu/ihDxd9TvcnqjFUMK6L2YjdX4WCLayEQ0vGV4WQWRN6TooGWdMW7NaExPAlycah6tvZiB+F64bYwFY9O8MaDP5DMxAbcQIO2sGGwelGwMszuKXY3mjVbMqh2g/J4oVww+IcqG80a3IaJs0fTeV80b3YTIzG48TlQNvt2CiLjLMQkx9PzM1Sf0MS0ZYalPdKqB2B/ijrH/Mb7mAg5PPSUs/XX2vBuZmJH8IPsdUjzUmdSF+... | HTML |
# type: (Optional[str]) -> None
if node in path:
# We hit a cycle, so we'll break it here.
return
# Time to visit the children!
path.add(node)
for child in graph.iter_children(node):
visit(child)
path.remove(node)
last_known_pare... | Python |
intoRows()
// SampleEnd
}
@Test
@TransformDataFrameExpressions
fun merge() {
// SampleStart
// Merge two columns into one column "fullName"
df.merge { name.firstName and name.lastName }.by(" ").into("fullName")
// SampleEnd
}
@Test
@TransformDataFram... | Kotlin |
genIv(644, 16);
final byte[] input1 = genData(0, 256);
final byte[] input2 = genData(1, 256);
final Cipher accp = accpAesCbcCipher(isPaddingEnabled);
final Cipher sun = sunAesCbcCipher(isPaddingEnabled);
accp.init(Cipher.ENCRYPT_MODE, key, iv);
sun.init(Cipher.ENCRYPT_MODE, key, iv);
asser... | Java |
auto* igtl_data_point_color = new igtlFloat32[4 * number_of_points];
std::size_t i = 0;
for(const auto& color : _mesh_src->crange<data::iterator::point::rgba>())
{
igtl_data_point_color[4 * i] = static_cast<float>(color.r) / 255.F;
igtl_data_point_color[4 * i + 1] = ... | C++ |
/*
* Copyright (C) 2014 The Android Open Source Project
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributions of source code must retain the above copyright
* notice, t... | C |
filename"] = nil
modules_options["module-name"] = nil
return ok_3f, val
end
local function compile_file(fnl_path, lua_path, modules_options, macros_options, _3fpreprocessor)
_G.assert((nil ~= macros_options), "Missing argument macros-options on fnl/hotpot/lang/fennel/compiler.fnl:114")
_G.assert((nil ~= modules... | Lua |
files = {},
extensions = {"pyx", "pxd", "pxi"},
modelines = {},
color = "darkblue",
},
["R"] = {
icon = " ",
files = {},
extensions = {"r"},
modelines = {},
color = "darkblue",
},
["reStructuredText"] = {
icon = "",
files... | Lua |
s raised.
:param max_failed_attempts: The maximum number of times to an attempt
at making a request should be done before throwing an exception.
:param reattempt_pause_base: The base of the exponential backoff -- the
time between each attempt.
**Warning**: This function assumes ... | Python |
if args.test_repeats==1:
current_iou, current_acc = metric.evaluate(pred_logit.numpy(),
gt.numpy(),
dataset=labelset_name,
... | Python |
sult)
{
ISystem systemStub = new StubISystem()
.GetEnvironmentVariable((string name, EnvironmentVariableTarget target) =>
{
if (name != "PATH")
{
return null;
}
ret... | C# |
mock(LoadBalancerClientFactory.class);
private final ServiceInstance first = serviceInstance("test-1", buildZoneMetadata("zone1"));
private final ServiceInstance second = serviceInstance("test-2", buildZoneMetadata("zone1"));
private final ServiceInstance third = serviceInstance("test-3", buildZoneMetadata("zone... | Java |
} else {
throw Exception('🚫 Resource not found: $detail');
}
} else {
throw Exception('🚫 LNURLP extension not found\n\n' +
'LNURLP extension is not installed on this LNBits server.\n' +
'Contact administrator to install it.');... | Dart |
from functools import total_ordering
@total_ordering
class Employee:
def __init__(self, name, salary):
self.name = name
self.salary = salary
def __str__(self):
return f"Name is {self.name}\nSalary is {self.salary}"
# it also works for != (not equal to)
def __eq__(self, other... | Python |
.length);
stderr.writeln(
'Response status code ${response.statusCode}. Body: ${response.body.substring(0, bodyLength)}',
);
sleep(const Duration(seconds: 1));
}
return responseBytes == null ? null : ZipDecoder().decodeBytes(responseBytes);
}
Future<void> _extractDocs(
String ... | Dart |
the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
#include <sys... | Assembly |
cookies-success-message-bg-color: #d4edda;
--scify-cookies-success-message-text-color: #155724;
--scify-cookies-always-active-message-color: #155724;
--scify-cookies-success-message-border-color: #c3e6cb;
--scify-cookies-success-message-padding: 0.75rem 1.25rem;
--scify-cookies-success-message-box-shadow: 0 0.5rem... | CSS |
head></code> 部分中早期加载的基本脚本可能会被分配极高的优先级。尽管浏览器通常会有效处理优先级分配事宜,但需要注意的是,这并非对所有场景而言都是最佳方案。</p>
<figure class="kg-card kg-image-card"><img src="https://blog.cloudflare.com/content/images/2023/06/Fetch-Priorities.png" class="kg-image" alt="" loading="lazy" width="2070" height="1155"></figure>
<p>利用 <a href="https://web.dev... | HTML |
network: Option<String>,
}
pub fn exec(env: &dyn Environment, opts: CanisterBuildOpts) -> DfxResult {
let env = create_agent_environment(env, opts.network)?;
let logger = env.get_logger();
// Read the config.
let config = env.get_config_or_anyhow()?;
// Check the cache. This will only insta... | Rust |
body.landing .feature-docs {
margin-top: -200px;
padding-top: 300px;
}
@media screen and (min-width: 1216px) {
body.landing .feature-docs .container .columns.is-multiline {
margin: 0 8.333%;
}
}
body.landing .feature-docs .columns.is-multiline .column {
display: flex;
}
body.landing .feature-docs .box {
color: ... | CSS |
ss__.__name__):
# 尝试使用备用工具
try:
logger.info(f"[新闻分析师] 🔄 尝试使用备用工具获取新闻...")
backup_news = toolkit.get_google_news.invoke({"ticker": ticker})
if backup_news and len(backup_news.strip()) > 100:
# 合并原始报告和备用新闻
enhanced_report = f"{report}\n\n=== 补充新闻信息 ==... | Markdown |
url:'https://dldir1.qq.com/qqfile/qq/PCQQ9.1.5/25530/QQ9.1.5.25530.exe',
savedDir: path,
);
await FlutterDownloader.loadTasksWithRawQuery(query: taskId);
}
getTaskTwo() async {
path = await getDocPath();
taskIdTwo = await FlutterDownloader.enqueue(
url:'https://dldir1.qq.com/qqfile/qq/... | Dart |
src/protocol/requests/fetch/v0/response.js")
const MessageSetDecoder = __webpack_require__(/*! ../../../messageSet/decoder */ "./node_modules/kafkajs/src/protocol/messageSet/decoder.js")
/**
* Fetch Response (Version: 1) => throttle_time_ms [responses]
* throttle_time_ms => INT32
* responses => topic [partition... | JavaScript |
specified as a percentage in the range 1 - 100.
* *
* *
* @returns the RGB Color object
*/
package mods.eln.registration
import mods.eln.Eln
import mods.eln.Eln.instance
import mods.eln.Eln.transparentNodeItem
import mods.eln.ghost.GhostBlock
import mods.eln.ghost.GhostGroup
import mods.eln.gridnode.GridSwitchDes... | Kotlin |
`-${when.name}->`;
return `${prefix} ${to.name}`;
}
export function runStateMachine(spec: StateMachineSpec) {
for(const t of spec.transitions) {
const path = buildPath(t, spec.transitions);
const pathString = `<start> ${path.map(pathStringPartFromTransition).join(' ')}`;
it(pathStri... | Typescript |
le::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// repeated string potential_issues = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_potentia... | C++ |
AndSelect("teacher.asAdditionalTeacher_courseOfferings", "asAdditionalTeacher_courseOffering")
.where("teacher.id = :id", { id: teacherId })
.getOne();
}
//from the above, you will get result like
/*
{
id: 1,
employeeNumber: ...,
...
asAdditionalTeacher_co... | Typescript |
GFX10: encoding: [0x01,0x7f,0x00,0x8b]
s_orn2_b32 s0, s1, vcc_lo
// GFX10: encoding: [0x01,0x6a,0x00,0x8b]
s_orn2_b32 s0, s1, vcc_hi
// GFX10: encoding: [0x01,0x6b,0x00,0x8b]
s_orn2_b32 s0, s1, m0
// GFX10: encoding: [0x01,0x7c,0x00,0x8b]
s_orn2_b32 s0, s1, 0
// GFX10: encoding: [0x01,0x80,0x00,0x8b]
s_orn2_b32 s0... | Assembly |
public curSelectRole: number = 0;
public constructor() {
super();
this.sysId = PackageID.Title;
this.regNetMsg(1, this.postListUpdate);
this.regNetMsg(2, this.doAdd);
this.regNetMsg(3, this.doRemove);
this.regNetMsg(4, this.doUpdateShow);
}
public static ins(): Title {
return super.ins() as Title;
}... | Typescript |
928 140.416 160.376 140.968 160.376Z" class="fill-color-22"/>
<path d="M129.168 160.376C129.721 160.376 130.168 159.928 130.168 159.376C130.168 158.823 129.721 158.376 129.168 158.376C128.616 158.376 128.168 158.823 128.168 159.376C128.168 159.928 128.616 160.376 129.168 160.376Z" class="fill-color-22"/>
<p... | HTML |
a href="#fields.inherited.from.class.org.apache.jmeter.visualizers.gui.AbstractVisualizer">Field</a> | </li>
<li><a href="#constructor.summary">Constr</a> | </li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li>Field | </li>
<li><a hre... | HTML |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.