content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
ns {
type: TypeWithPartials;
}
export type FMConstructorOptions = FMTypeOscillatorOptions | FMCustomOscillatorOptions | FMPartialsOscillatorOptions;
export interface FMOscillatorOptions extends ToneOscillatorOptions {
harmonicity: Positive;
modulationIndex: Positive;
modulationType: AllNonCustomOscillatorType;
}
... | Typescript |
ax, -12
// CHECK: encoding: [0x83,0xd0,0xf4]
adc eax, -12
// CHECK: encoding: [0x48,0x83,0xd0,0xf4]
adc rax, -12
// CHECK: encoding: [0x66,0x83,0xd8,0xf4]
sbb ax, -12
// CHECK: encoding: [0x83,0xd8,0xf4]
sbb eax, -12
// CHECK: encoding: [0x48,0x83,0xd8,0xf4]
sbb rax, -12
// CHECK: encoding: [0x66,0x83,0xf8,0xf4]... | Assembly |
087B38C
/* 005B8 8087B378 8FA60018 */ lw $a2, 0x0018($sp)
/* 005BC 8087B37C 3C0E8088 */ lui $t6, %hi(BgGndSoulmeiro_Draw) ## $t6 = 80880000
/* 005C0 8087B380 25CEB3CC */ addiu $t6, $t6, %lo(BgGndSoulmeiro_Draw) ## $t6 = 8087B3CC
/* 005C4 8087B384 10000002 */ beq $zero, $zero, .L808... | Assembly |
oseKeyParams.SymmKeyParams) { "No symmetric key bytes present" }
val alg = algorithm.algorithm
require(alg.isAuthenticated() && alg.isIntegrated())
alg.keyFrom(keyParams.k).getOrThrow()
}
}
/**
* Creates a CoseKey matching, if the key's [SymmetricKey.algorithm] has a COSE mapping.
*/
fun... | Kotlin |
is equivalent to using:
//
// client.TenantConn.Create().
// OnConflict(sql.ConflictColumns(columns...)).
// Exec(ctx)
func (tccb *TenantConnCreateBulk) OnConflictColumns(columns ...string) *TenantConnUpsertBulk {
tccb.conflict = append(tccb.conflict, sql.ConflictColumns(columns...))
return &TenantConnUpsertBulk{
... | Go |
ame_id = "material_" .. id .. "_title",
dlc = self.defaults.dlc or "mods",
value = 0,
texture = "units/mods/matcaps/"..id.."_df",
texture_bundle_folder = self._config.ver == 2 and "mods" or nil,
global_value = self.defaults.global_value,
mod_path =... | Lua |
h');
const BlurStrength(this.radius, this.label);
final int radius;
final String label;
}
class FastBlurProcessor {
static Uint8List _fastBoxBlur(
Uint8List pixels, int width, int height, int radius) {
if (radius <= 0) return pixels;
final Uint8List output = Uint8List(pixels.length);
for (i... | Dart |
ionPointer, TrapCode, TrapSite};
use lucet_runtime_internals::module::Module;
use lucet_runtime_internals::vmctx::lucet_vmctx;
use std::sync::Arc;
pub fn mock_traps_module() -> Arc<dyn Module> {
extern "C" fn onetwothree(_vmctx: *mut lucet_vmctx) -> std::os::raw::c_int {
123
}
extern "C" fn hostca... | Rust |
,"U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[,"NE","U"],
[... | JavaScript |
C_free (cgraph_node_p, heap, tm_callees);
VEC_free (cgraph_node_p, heap, irr_worklist);
bitmap_obstack_release (&tm_obstack);
for (node = cgraph_nodes; node; node = node->next)
node->aux = NULL;
#ifdef ENABLE_CHECKING
verify_cgraph ();
#endif
return 0;
}
struct simple_ipa_opt_pass pass_ipa_tm =
{
{
... | C |
FB__EMI_DDR_OPEN_FEEDBACK | MUX_CONFIG_EMI,
/* -- Strick 5 -- */
/* MMC0 */
MX28_PAD_SSP0_DATA0__SSP0_D0 | MUX_CONFIG_SSP0,
MX28_PAD_SSP0_DATA1__SSP0_D1 | MUX_CONFIG_SSP0,
MX28_PAD_SSP0_DATA2__SSP0_D2 | MUX_CONFIG_SSP0,
MX28_PAD_SSP0_DATA3__SSP0_D3 | MUX_CONFIG_SSP0,
MX28_PAD_SSP0_CMD__SSP0_CMD | MUX_CONFIG_SS... | C |
.Length - 1);
newEntry.Next = newBuckets[bucket];
newBuckets[bucket] = newEntriesIndex;
newEntriesIndex++;
}
else
{
// Pretend the item was removed, so that this c... | C# |
this.applyDrag();
Vec3 vec31 = this.func_70489_a(this.posX, this.posY, this.posZ);
if (vec31 != null && vec3 != null)
{
double d14 = (vec3.yCoord - vec31.yCoord) * 0.05D;
d6 = Math.sqrt(this.motionX * this.motionX + this.motionZ * this.motionZ);
if (d6 ... | Java |
message_type, &remote_addr).await
{
eprintln!("Could not send message to {}: {}", remote_addr, e);
}
}
}
}
use num::bigint::BigUint;
use num::Zero;
use rand::{thread_rng, Rng};
/// NIST Diffie-Hellman prime
pub const P: [u8; 192] = [
0xff, 0xff, 0xff, 0xff, 0xf... | Rust |
rt.isTrue(email.validate('local@sub.domains.com'));
assert.isTrue(email.validate('backticks`are`legit@test.com'));
assert.isTrue(email.validate('digit-only-domain@123.com'));
assert.isTrue(email.validate('digit-only-domain-with-subdomain@sub.123.com'));
});
it('values is not valid', () ... | Typescript |
deCurve >("curve");
var debugNode = graph.FindNodeByName< NodeDebugInfo >("debug");
//Assign a curve like this -> /\
var curve = new AnimationCurve(new Keyframe(0, 0), new Keyframe(.5f, 1), new Keyframe(1, 0));
curveNode.curve = curve;
graph.Process();
var result = debugNode.obj as Sampler2D;
... | C# |
}
Dispatcher::TaskBatch::TaskBatch( TaskNode::ConstTaskPlugPtr plug, Gaffer::ConstContextPtr context )
: m_plug( plug ), m_context( context ), m_blindData( new CompoundData ),
m_size( 0 ), m_postTaskIndex( 0 ), m_immediate( false ), m_visited( false ), m_executed( false )
{
}
void Dispatcher::TaskBatch::execute()... | C++ |
_array3", "type": "let genarray_of_array3: Array3.t('a, 'b, 'c) => Genarray.t('a, 'b, 'c)", "docs": "<p>Return the generic big array corresponding to the given three-dimensional big array.</p>\n", "kind": "value", "args": [["", "Array3.t('a, 'b, 'c)"]]}, {"path": "Bigarray", "name": "array1_of_genarray", "type": "let a... | JavaScript |
ClassLoader cl = ClassHelper.getCallerClassLoader(Builder.class);
String cn = c.getName();
String bcn = BUILDER_CLASS_NAME + "$bc" + BUILDER_CLASS_COUNTER.getAndIncrement();
StringBuilder cwt = new StringBuilder("public void writeTo(Object obj, ").append(GenericObjectOutput.class.getName()).... | Java |
h;
s->v_pos += s->v_speed * in->height;
}
static int filter_frame(AVFilterLink *inlink, AVFrame *in)
{
AVFilterContext *ctx = inlink->dst;
AVFilterLink *outlink = ctx->outputs[0];
AVFrame *out;
out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
if (!out) {
av_frame_free(&in);
... | C |
"}})}},state={globals:{},globalTypes:{}},updateGlobals=globals=>{let currentGlobals=store22.getState()?.globals;dequal2(globals,currentGlobals)||store22.setState({globals})};return provider.channel.on(GLOBALS_UPDATED,function({globals}){let{ref}=getEventMetadata(this,fullAPI);ref?logger.warn("received a GLOBALS_UPDATED... | JavaScript |
title:"Let's Talk",
desc:`실생활과 아주 밀접하고 의견 대립이 나올 수 있는 주제를 선정 고급 토론 영어를 위한 기초를 다질 수 있도록 구성. 토론의 기초 단계인 쉬운 영어로 만들어 졌다.`
},
{
img:"assets/img/book23.jpg",
title:"Communicating in Business",
desc:`비즈니스 상황에서 많이 사용되는 어휘, 회화 중심으로 구성된 교재. 비즈니스 관련 전화, ... | Typescript |
local plenary_dir = os.getenv("PLENARY_DIR") or "/tmp/plenary.nvim"
local telescope_dir = os.getenv("TELESCOPE_DIR") or "/tmp/telescope.nvim"
local fzf_lua_dir = os.getenv("FZF_LUA_DIR") or "/tmp/fzf-lua"
local snacks_dir = os.getenv("SNACKS_DIR") or "/tmp/snacks.nvim"
local nvim_cmp_dir = os.getenv("NVIM_CMP_DIR") or ... | Lua |
createWatchableBucket(TypeMoq.Times.once(), TypeMoq.Times.never(), b)
);
const watchable = watchableToStop.concat(watchableToSkip);
const watchableBucketFactory = TypeMoq.Mock.ofType<WatchableBucketFactory>();
watchable.forEach(w => registerInFactory(watchableBucketFactory, w.object.bucket, w));
... | Typescript |
"haiku_3_5" to AnthropicModels.Haiku_3_5,
"sonnet_3_5" to AnthropicModels.Sonnet_3_5,
"sonnet_3_7" to AnthropicModels.Sonnet_3_7,
"sonnet_4" to AnthropicModels.Sonnet_4,
"sonnet_4_5" to AnthropicModels.Sonnet_4_5,
)
private val GOOGLE_MODELS_MAP = mapOf(
"gemini2_0flash" to GoogleModels.Gemini2_0F... | Kotlin |
.createLogsMetric"
).makeRequestContext(localVarPath, HttpMethod.POST);
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
requestContext.setHttpConfig(_config.httpConfig);
// Query Params
// Header Params
// Form Params
// Body Params
const contentType = ObjectS... | Typescript |
/* origin: FreeBSD /usr/src/lib/msun/src/e_hypot.c */
/*
* ====================================================
* Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
*
* Developed at SunSoft, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
* software is free... | C |
[width] cropped region width
* @property [height] cropped region height
*/
@RequiresApi(Build.VERSION_CODES.O)
public class Crop(
public var x: Int = 0,
public var y: Int = 0,
public var width: Int = 0,
public var height: Int = 0,
) : Operation<Bitmap, Bitmap> {
override fun apply(input: Bitmap... | Kotlin |
re.forceBlockingFlush();
final UntypedResultSet results = executeCQL(FTS_CF_NAME, "SELECT * FROM %s.%s WHERE artist LIKE 'lady%%'");
Assert.assertNotNull(results);
Assert.assertEquals(3, results.size());
}
@Test
public void testMultiExpressionQueriesWhereRowSplitBetweenSSTables()
... | Java |
br>请说明环境保护的意义和作用。 |
| 科技创新 | 当前科技创新领域的热门话题有哪些?<br>如何促进科技创新的发展? |
| 教育教学 | 创新教学方式可以提高学生的学习效果吗?<br>如何利用现代科技手段进行教学? |
| 健康养生 | 如何保持健康的饮食习惯?<br>有哪些实用的养生小技巧? |
| 旅游出行 ... | Markdown |
ra. |
| **Giết con chim nhại** | Harper Lee | 1960 | Câu chuyện về sự bất công xã hội và định kiến chủng tộc ở miền Nam nước Mỹ qua góc nhìn của một cô bé. |
| **Chuyện ở nông trại** | George Orwell | 1945 | (Xem thêm: **Trại Súc Vật**) Một câu chuyện ngụ ngôn chính trị châm biếm về sự thoái hóa của một cuộc cách mạng... | Markdown |
ssage ? _0x442828.message : _0x442828;
let _0x5909f8 = _0x1068f6 ? _0x1068f6 : Object.keys(_0x14aec7)[0];
_0x14aec7 = {
..._0x28966a,
..._0x14aec7
};
const _0x5d8b14 = await generateWAMessageFromContent(_0x2565bd, _0x14aec7, _0x145dd4 ? {
...(_0x5909f8 == "conversation" ?... | JavaScript |
me limit reached, stopping. %d <= %d",
(uint32_t)devc->limit_msec,
(uint32_t)(g_get_monotonic_time() - devc->aq_started) / 1000);
sr_dev_acquisition_stop(sdi);
} else {
read_channel(sdi, data_amount(sdi));
}
}
static int read_channel(const struct sr_dev_inst *sdi, uint32_t amount)
{
int ret;
struct dev_c... | C |
Purpose */
/* ======= */
/* DLAED8 merges the two sets of eigenvalues together into a single */
/* sorted set. Then it tries to deflate the size of the problem. */
/* There are two ways in which deflation can occur: when two or more */
/* eigenvalues are close together or if there is a tiny element in the */
... | C++ |
X, mouseY, partialTicks);
passwordBox.render(context, mouseX, mouseY, partialTicks);
// red flash for errors
if(errorTimer > 0)
{
int alpha = (int)(Math.min(1, errorTimer / 16F) * 255);
int color = 0xFF0000 | alpha << 24;
context.fill(0, 0, width, height, color);
errorTimer--;
}
for(Drawab... | Java |
5241 // XBRA
dc.l 0x4d694e54 // MiNT
SYM(old_fpcp_2):
dc.l 0
bra.s SYM(new_fpcp)
dc.l 0x58425241 // XBRA
dc.l 0x4d694e54 // MiNT
SYM(old_fpcp_3):
dc.l 0
bra.s SYM(new_fpcp)
dc.l 0x58425241 // XBRA
dc.l 0x4d694e54 // MiNT
SYM(old_fpcp_4):
dc.l 0
bra.s SYM(new_fpcp)
dc.l 0x58425241 // XBRA
dc.l 0x4... | Assembly |
st
.align 2
.global HEVC_SetScalingList
.type HEVC_SetScalingList, %function
HEVC_SetScalingList:
UNWIND(.fnstart)
@ args = 0, pretend = 0, frame = 0
@ frame_needed = 1, uses_anonymous_args = 0
UNWIND(.movsp ip)
mov ip, sp
stmfd sp!, {r3, r4, r5, r6, r7, r8, r9, r10, fp, ip, lr, pc}
UNWIND(.pad #4)
UNWIND(.s... | Assembly |
local tint = vim.deepcopy(require("ef-themes.themes.custom.ef-tint"))
tint.palette.bg_main = "#292d3e"
tint.palette.bg_active = "bg-main"
tint.palette.fg_main = "#eeffff"
tint.palette.fg_intense = tint.palette.fg_main
tint.palette.fg_dim = "gray50"
tint.palette.fg_mode_line = "#ffffff"
tint.palette.bg_mode_line = "... | Lua |
ong *_ufc_dofinalperm();
#ifdef _UFC_32_
/*
* 32 bit version
*/
extern long32 _ufc_keytab[16][2];
extern long32 _ufc_sb0[], _ufc_sb1[], _ufc_sb2[], _ufc_sb3[];
#define SBA(sb, v) (*(long32*)((char*)(sb)+(v)))
ufc_long *_ufc_doit(ufc_long l1, ufc_long l2, ufc_long r1, ufc_long r2, ufc_long itr)
{ int32_t i;
... | C++ |
#pragma once
// @generated by torchgen/gen.py from Operator.h
#include <string_view>
#include <tuple>
#include <vector>
// Forward declarations of any types needed in the operator signatures.
// We can't directly include these classes because it will cause circular include dependencies.
// This file is included by T... | C |
v4H9c-.6 0-1 .4-1 1s.4 1 1 1h6c.6 0 1-.4 1-1s-.4-1-1-1zM23 15h-6c-.6 0-1 .4-1 1s.4 1 1 1h2v4c0 .6.4 1 1 1s1-.4 1-1v-4h2c.6 0 1-.4 1-1s-.4-1-1-1z"})),(0,a.__)("Customize","blocksy")))),(0,e.createElement)("li",null,(0,e.createElement)("h4",null,(0,a.__)("Header Options","blocksy")),(0,e.createElement)("p",null,(0,a.__)(... | JavaScript |
itFieldNames ? '' : 'singleAvatar', subBuilder: $2.Avatar.create)
..aOM<$2.GroupMemberAvatarList>(5, _omitFieldNames ? '' : 'multipleAvatar', subBuilder: $2.GroupMemberAvatarList.create)
..a<$core.int>(6, _omitFieldNames ? '' : 'activeCommunityMembers', $pb.PbFieldType.O3)
..a<$core.int>(7, _omitFieldNames ... | Dart |
, match_type = '', factors=None):
files_needed = ['{}.bin'.format(f) for f in ['cameras', 'images', 'points3D']]
if os.path.exists(os.path.join(basedir, 'sparse/0')):
files_had = os.listdir(os.path.join(basedir, 'sparse/0'))
else:
return None, None
# if not all([f in files_had for f... | Python |
.p2align 4,,10
.p2align 3
.L1968:
movq %rbp, %rdi
call pthread_mutex_unlock
cmpl $4, %eax
je .L1968
addq $8, %rsp
.cfi_remember_state
.cfi_def_cfa_offset 24
popq %rbx
.cfi_def_cfa_offset 16
popq %rbp
.cfi_def_cfa_offset 8
ret
.p2align 4,,10
.p2align 3
.L1966:
.cfi_restore_state
addq $8, %rsp
.cfi_def_... | Assembly |
映射:理论与模型的类比、应用与批判
将概率论的形式化工具应用于理解和模拟人类认知,是当代认知科学的核心议题之一。
### 4.1 “贝叶斯大脑”假说:认知作为概率推断的宏大叙事
“贝叶斯大脑”假说是一个极具影响力的理论框架,它主张大脑在根本上是一个进行贝叶斯推断的器官,不断地根据感官输入和先验知识来更新其关于世界状态的概率表征,从而实现感知、学习、推理和决策。
#### 4.1.1 感知作为概率推断:从模糊输入到清晰知觉
- **核心思想:** 感知并非对外部世界的简单、被动的照相式复制,而是一个主动的、建设性的推断过程。大脑必须处理充满噪声、模糊和不完整的感官信号,并结合其对世界结构的先验预期,来推断最可能造成这些信号的... | Markdown |
diff_local_body_rot_flat = torch_utils.quat_mul(torch_utils.quat_mul(heading_inv_rot_expand.view(-1, 4), diff_global_body_rot.view(-1, 4)), heading_rot_expand.view(-1, 4)) # Need to be change of basis
##### linear and angular Velocity differences
diff_global_vel = ref_body_vel.view(B, time_steps, J, 3) ... | Python |
if (cell.occupied === true) {
console.log("shot hit!");
return true;
} else {
console.log("shot misses!");
cell.discovered = true;
return board;
}
}
var board1 = createEmptyBoard();
//placeSheep(board1, sheepShapes["fatSheep"], [0, 0]);
//shotHits(board1, [0, 5]);
//console.log(board1);
i... | Typescript |
BaseInitFromRawFn:
Fn(BaseInitFromRawArgs<RawData, Mode, Step>) -> BaseInitFromRawOutput + Clone + 'static,
BaseInitFromRawOutput:
Future<Output = BaseInit<Step, Base, Main, Sidebar, Header, Footer, Overlay>>,
{
// extract the things from init args that need to be shared
... | Rust |
ize(true); // 'Hello World'
*/
addPrototype(String, "capitalize", method);
import { Client, Message } from 'discord.js';
import { database } from '../utils/databaseFunctions';
import { embed } from '../utils/embed';
import { emojis } from '../utils/emojis';
export const run = async (message: Message, _client: Client,... | Typescript |
t_bit --RR */
char ____end_marker____;
};
#define Control CardP->DpControl
#define SetInt CardP->DpSetInt
#define ResetTpu CardP->DpResetTpu
#define ResetInt CardP->DpResetInt
#define Signature CardP->DpSignature
#define Sram1 CardP->DpSram1
#define Sram2 CardP->... | C |
所以还是要不定期记录一些遇到的问题。
keywords: flutter,dart
date: 2022-01-27 16:02:00
cover: https://cdn.chengpeiquan.com/img/2021/11/20220127161927.jpg?x-oss-process=image/interlace,1
categories:
- tech
maybeLegacy: true
---
最近有空,接触一下 Flutter 和 Dart 的开发,虽然说前端入门 Flutter 比较友好,但个人觉得最最最开始其实不怎么友好,当然写了几个小时 Dart 之后感觉确实都是熟悉的身影,但真的刚入门的那一两个小时... | Markdown |
11.6-6.9 24 7.7 15.4 18L343.6 180l33.6 40.3c8.7 10.4-3.9 24.8-15.4 18l-80-48c-7.7-4.7-7.7-15.9 0-20.6zm-163-30c-8.6-10.3 3.8-24.9 15.4-18l80 48c7.8 4.7 7.8 15.9 0 20.6l-80 48c-11.5 6.8-24-7.6-15.4-18l33.6-40.3-33.6-40.3zM398.9 306C390 377 329.4 432 256 432h-16c-73.4 0-134-55-142.9-126-1.2-9.5 6.3-18 15.9-18h270c9.6 0 1... | JavaScript |
.36";
}
String _randomDesktopUA() =>
_oneOf([_windowsDesktopUA(), _macDesktopUA(), _linuxDesktopUA()]);
// ---------- MOBILE ----------
String _androidMobileUA() {
final androidMajor = _randInt(8, 14);
final androidMinor = androidMajor <= 10 ? _randInt(0, 3) : 0;
final androidVersion =
androidMinor >... | Dart |
니다. RandomX도 채굴에 비슷한 방법을 사용합니다.<br/><br/>\n이렇게 되면 소수의 사람들이 가진 이점을 최소화하고 그들이 RandomX을 위한 “ASICs” 개발하기 위해 노력하면 그저 더 발전된 CPU를 만들어 모두에게 이로울 것입니다.<br/><br/>\n이 덕분에 프린터를 20대 구매한 일반인도 다시 경쟁에 뛰어들 수 있습니다. 프린터를 더 많이 살 수 있는 자와는 경쟁하기 힘들 지 몰라도, 기계성능의 차이에 의해 몇십배씩 차이가 나지는 않을 것이고, 나름대로의 경쟁이 가능할 것입니다. <br/><br/>\n 거창한 장비가 없어도 모네로 채굴이 가... | Dart |
}.cke_dialog_find_fieldset{margin-top:10px!important}.cke_dialog_image_ratiolock{margin-top:52px!important}.cke_dialog_forms_select_order label.cke_dialog_ui_labeled_label{margin-left:0}.cke_dialog_forms_select_order div.cke_dialog_ui_input_select{width:100%}.cke_dialog_forms_select_order_txtsize .cke_dialog_ui_hbox_la... | CSS |
//
// This file contains the various code
// snippets from Chapter 11. This ensures
// they compile and gives you a chance
// to single step through them.
// They are labeled, so you can set a
// breakpoint at the one you are interested in.
.global _start
.align 4
_start:
l1: STP Q8, Q9, [SP, #-32]!
STR Q10, [SP, #... | Assembly |
local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #007BE0;--tw... | CSS |
let uri = Uri::from_str(&format!(
"https://{}.{}.amazonaws.com",
self.service,
region.as_ref(),
))?;
Ok(AwsEndpoint {
endpoint: Endpoint::mutable(uri),
signing_region: Some(region.clone().into()),
signing_service: None,
}... | Rust |
.1.弹窗事件
弹窗是一个独立组件:

并且在Goods组件中已经引用它:

并且在页面中渲染:

在`新增商品`按钮的点击事件中,改变这个`dialog`的`show`属性:


## 1.2... | Markdown |
i+k*n] = - v;
x[j+k*n] = - u;
x[l+k*n] = + u;
w[k] = b12;
k = k + 1;
x[i+k*n] = - v;
x[j+k*n] = + u;
x[l+k*n] = - u;
w[k] = b12;
k = k + 1;
x[i+k*n] = - v;
x[j+k*n] = + u;
x[l+k*n] = + u;
w[k] = b12;
k = k + ... | C++ |
popl %esi
popl %ebx
popl %ebp
ret
.size _poly1305_blocks_sse2,.-_poly1305_blocks_sse2
.align 32
.type _poly1305_emit_sse2,@function
.align 16
_poly1305_emit_sse2:
#ifdef __CET__
.byte 243,15,30,251
#endif
pushl %ebp
pushl %ebx
pushl %esi
pushl %edi
movl 20(%esp),%ebp
cmpl $0,20(%ebp)
je .Lenter_emit
movl... | Assembly |
.
/// See its documentation for more details.
///
/// Typically you'll want to build a matrix of this information. However,
/// we keep separate scaling/translation/rotation values to make it
/// easier to process and optimize UV transformations internally.
#[derive(Debug, Clone, Copy)]
type... | Rust |
LabelCreate {
lc.mutation.SetName(s)
return lc
}
// SetDescription sets the "description" field.
func (lc *LabelCreate) SetDescription(s string) *LabelCreate {
lc.mutation.SetDescription(s)
return lc
}
// SetNillableDescription sets the "description" field if the given value is not nil.
func (lc *LabelCreate) Set... | Go |
LintCode get lintCode => code;
@override
void registerNodeProcessors(
NodeLintRegistry registry, LinterContext context) {
var visitor = _Visitor(this);
registry.addVariableDeclaration(this, visitor);
}
}
class _Visitor extends SimpleAstVisitor<void> {
final LintRule rule;
_Visitor(this.rule)... | Dart |
// Checks pinging a dead successor with alternate
func TestVnodeCheckNewSuccDeadAlternate(t *testing.T) {
r := makeRing()
sort.Sort(r)
vn1 := r.vnodes[0]
vn2 := r.vnodes[1]
vn3 := r.vnodes[2]
vn1.successors[0] = &vn2.Vnode
vn1.successors[1] = &vn3.Vnode
vn2.predecessor = &vn1.Vnode
vn3.predecessor = &vn2.Vno... | Go |
-cloud:** subject Add order by desc on metric ([#939](https://github.com/apache/superset/issues/939)) ([bf2a80c](https://github.com/apache/superset/commit/bf2a80ca7b884840c0870814738dc21762bfa1bc))
- **plugin-chart-world-map:** add control panel ([#462](https://github.com/apache/superset/issues/462)) ([3102d93](https:/... | Markdown |
/**
******************************************************************************
* @file pios_mutex.h
* @author Tau Labs, http://taulabs.org, Copyright (C) 2014
* @addtogroup PIOS PIOS Core hardware abstraction layer
* @{
* @addtogroup PIOS_Mutex Mutex Abstraction
* @{
* @brief Abstracts the concept... | C |
elf) -> client::Result<(hyper::Response<hyper::body::Body>, SiteSummaryResponse)> {
use url::percent_encoding::{percent_encode, DEFAULT_ENCODE_SET};
use std::io::{Read, Seek};
use hyper::header::{CONTENT_TYPE, CONTENT_LENGTH, AUTHORIZATION, USER_AGENT, LOCATION};
use client::ToParts;
... | Rust |
_library
* try (SaasDeploymentsClient saasDeploymentsClient = SaasDeploymentsClient.create()) {
* CreateTenantRequest request =
* CreateTenantRequest.newBuilder()
* .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
* .setTenantId("tenantId-1306693787")
* ... | Java |
set; }
void OnCommandChanged(ICommand oldCommand, ICommand newCommand)
{
CommandSubscription?.Dispose();
CommandSubscription = null;
if (newCommand is not null)
{
CommandSubscription = new WeakCommandSubscription(this, newCommand, CanExecuteChanged);
IsSearchEnabledCore = Command.CanExecute(C... | C# |
s.fragment().parse::<u64>()
})(input)?;
Ok((i, Literal::IntLiteral(int)))
}
fn float(input: Span) -> nom::IResult<Span, Literal> {
let (i, float) = nom::combinator::map_res(
nom::combinator::recognize(nom::sequence::delimited(
nom::character::complete::digit1,
tag("."),
... | Rust |
b - z19.b}, {z16.b - z19.b} // 11000001-10110001-00000010-00000101
// CHECK-INST: usmlall za.s[w8, 4:7, vgx4], { z16.b - z19.b }, { z16.b - z19.b }
// CHECK-ENCODING: [0x05,0x02,0xb1,0xc1]
// CHECK-ERROR: instruction requires: sme2
// CHECK-UNKNOWN: c1b10205 <unknown>
usmlall za.s[w8, 4:7, vgx4], {z0.b - z3.b}, {z28.... | Assembly |
let = inlet_" + o.getLegalName() + ";\n");
} else if (typeName.equals("inlet_string") || typeName.equals("patch/inlet string")) {
sKRateCode.append(" getVoices()[vi]." + o.getCInstanceName() + "_i._inlet = (char *)inlet_" + o.getLegalName() + ";\n");
} else if (typeName.equals(... | Java |
", Helvetica, Arial, "Lucida Grande", sans-serif;
-webkit-box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 7px rgba(0, 0, 0, 0.2);
border-radius: 3px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
/*
* Dropdown Below
*
*/
/*
* Dro... | CSS |
{
let pl = load_plugin_lib("cuckaroo_cpu_avx2_29").unwrap();
let mut params = pl.get_default_params();
params.nthreads = 4;
run_solver(&pl, params);
}
#[ignore]
#[test]
fn sanity_cuckatoo_mean_compat_cpu_31() {
let pl = load_plugin_lib("cuckatoo_mean_cpu_compat_31").unwrap();
let mut params = pl.get_default_par... | Rust |
rue
return false, false, false
end
d2 = depth + 1
end
if isWheel then
local wheel = self:getWheelFromWheelIndex( index )
local rootNode = self:getParentComponent(wheel.repr)
if rootNode == rootNode1 then
return true, false, true
elseif rootNode == rootNode2 then
... | Lua |
pe::OUTER_BOUNDARY_PADDING) return;
cuint cellSysBoundaryLayer = technicalGrid.get(i,j,k)->sysBoundaryLayer;
std::array<Real, Rec::N_REC_COEFFICIENTS> perturbedCoefficients;
reconstructionCoefficients(
perBGrid,
dPerBGrid,
perturbedCoefficients,
i,
j,
k,
3 // Recons... | C++ |
Exec, but panics if an error occurs.
func (ld *LabelDelete) ExecX(ctx context.Context) int {
n, err := ld.Exec(ctx)
if err != nil {
panic(err)
}
return n
}
func (ld *LabelDelete) sqlExec(ctx context.Context) (int, error) {
_spec := sqlgraph.NewDeleteSpec(label.Table, sqlgraph.NewFieldSpec(label.FieldID, field.... | Go |
/*
* Copyright (C) 2021 - This file is part of libecc project
*
* Authors:
* Ryad BENADJILA <ryadbenadjila@gmail.com>
* Arnaud EBALARD <arnaud.ebalard@ssi.gouv.fr>
*
* This software is licensed under a dual BSD and GPL v2 license.
* See LICENSE file at the root folder of the project.
*/
#ifndef _... | C |
^
// [analyzer] COMPILE_TIME_ERROR.NON_CONSTANT_RELATIONAL_PATTERN_EXPRESSION
// [analyzer] COMPILE_TIME_ERROR.REFERENCED_BEFORE_DECLARATION
// [cfe] Read of a non-const variable is not a constant expression.
== b && var b => 'error',
// ^
// [analyzer] COMPILE_TIME_ERROR.NON_CONSTANT_R... | Dart |
template = """
<contextMenu idMso="{group_name}">
<menu idMso="ObjectsGroupMenu">
<button
id="ObjectsAddToGroup_{group_name}"
insertAfterMso="ObjectsUngroup"
imageMso="ObjectsGroup"
label="Add to Group"
... | Python |
Key[xorkey.pk1 * 1024 + xorkey.pk2]) ^ 0x77u);
xorkey.pk1++;
xorkey.pk2++;
if (xorkey.pk1 >= 217)
{
xo | C# |
--花札衛-松-
--Flower Cardian Pine
local s,id=GetID()
function s.initial_effect(c)
--Draw 1 card, show it, then send it to the GY unless it is a "Flower Cardian" monster
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_DRAW+CATEGORY_TOGRAVE)
e1:SetType(EFFECT_TYPE_SINGLE+EF... | Lua |
using Features.Data;
using Features.Data.Components;
using Features.Models;
using Features.Signals;
using Unity.Entities;
using Unity.Mathematics;
using Unity.Transforms;
using Zenject;
namespace Features.Systems
{
/// <summary>
/// System responsible for creating new gems instead of destroyed ones
/// </s... | C# |
e(block, dims);
}
void update_block_range(multi_dimensional_iterator block, const std::array<size_t, N> &dims) {
dimensions = dims;
for (int i = 0; i < N; i++) {
left_boundary[i] = (block.get_local_index(i) == 0);
}
this->set_offsets(block.get_offset());
}
s... | C++ |
("Injecting Malware")
await sleep(2000)
await citel.send(" █ 10%")
await sleep(1000)
await citel.send(" █ █ 20%")
await sleep(1000)
await citel.send(" █ █ █ 30%")
await sleep(1000)
await citel.send(" █ █ █ █ 40%")
await sleep(1000)
await citel.send(" █ █ █ █ █ 50%")
await slee... | JavaScript |
/* { dg-do compile } */
/* { dg-options "-O1" } */
/* This used to result in an ICE. */
_Decimal64 y[258][258];
_Decimal64 dd[258][258];
_Decimal64 ry[258][258];
_Decimal64
foo (void)
{
int i;
int j;
int m;
int im;
int jm;
int ip;
int jp;
int i2m;
int i1p;
_Decimal64 a;
_Decimal64 b;
_Decimal... | C |
# -*- coding: utf-8 -*-
"""
PyTorch: nn
-----------
A third order polynomial, trained to predict :math:`y=\sin(x)` from :math:`-\pi`
to :math:`\pi` by minimizing squared Euclidean distance.
This implementation uses the nn package from PyTorch to build the network.
PyTorch autograd makes it easy to define computationa... | Python |
s(android.view.animation.AccelerateInterpolator)
importClass(android.view.animation.AnticipateInterpolator)
importClass(android.view.animation.AnticipateOvershootInterpolator)
importClass(android.view.animation.BounceInterpolator)
importClass(android.view.animation.CycleInterpolator)
importClass(android.view.animation.... | JavaScript |
ectorEditorPanel editorPanel = editorReflect.get("myPanel");
val context = editorReflect.get<LayoutInspectorContext>("myContext")
propertyTable = context.propertiesTable
previewDisplay = Reflect.on(context).get<ViewNodeActiveDisplay>("myPreview")
windowTitle = Reflect.on(window).get<String>("title")
... | Kotlin |
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl\nsIX509CertDB2.idl
*/
#ifndef __gen_nsIX509CertDB2_h__
#define __gen_nsIX509CertDB2_h__
#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif
/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_V... | C |
/*
* Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | C |
这两个不幸的名字团聚,
> 将我的爱永远和你的名望连在一起!
> 随着时光流逝,我的所有悲伤都将结束,
> 我这颗不安的心也将不再跳动;
> 如果有一对恋人凑巧漫游至此,
> 看见此地白色的墙壁和银色的泉水,
> 在苍白的墓碑前,他们会抱在一起,
> 双双洒下泪水,
> 怀着感动和同情,悲伤的说:
> "但求我们的爱永不会和他们一样!"
>
> 当合唱团高声赞美上帝时,
> 巨大的牺牲也随之而来,
> 如果此时有一双同情的眼睛
> 看到了我们冰冷的遗骨长眠之地,
> 哪怕再虔诚的心,也会有一丝思绪离开天堂,
> 世俗的泪水将会落下,并且得到宽恕。
> 如果他们之间正好... | Markdown |
),
},
})
}
func TestAccPrivateEndpointApplicationSecurityGroupAssociationResource_deleted(t *testing.T) {
data := acceptance.BuildTestData(t, "azurerm_private_endpoint_application_security_group_association", "test")
r := PrivateEndpointApplicationSecurityGroupAssociationResource{}
data.ResourceTest(t, r, []acce... | Go |
Style(fontWeight: FontWeight.bold),
),
subtitle: Text('Link: ${conference['link']}'),
trailing: IconButton(
onPressed: () {
// Join conference room
_joinC... | Dart |
auto pass_break_label::build(lexer&, const ast::astnode_builder::inputs_t& input)-> grammar::produce
{
token label = WO_NEED_TOKEN(1);
return new AstBreak(wstring_pool::get_pstr(label.identifier));
}
auto pass_continue::build(lexer&, const ast::astnode_builder::in... | C++ |
const playerWantsInstructions = await askYesOrNo("DO YOU WANT DIRECTIONS");
if (playerWantsInstructions) {
print("THE COMPUTER GIVES YOU AND IT A 'CARD'. THE HIGHER CARD\n");
print("(NUMERICALLY) WINS. THE GAME ENDS WHEN YOU CHOOSE NOT TO\n");
print("CONTINUE OR WHEN YOU HAVE FINISHED THE ... | JavaScript |
InterfaceType::Unknown => "Unknown interface type",
};
write!(f, "{}", interface_type)
}
}
#[derive(Debug, Copy, Clone)]
pub enum ChannelWidth {
Width20NoHT,
Width20,
Width40,
Width80,
Width80P80,
Width160,
Width5,
Width10,
Width1,
Width2,
Widt... | Rust |
e {
r.Logger.Warn("Counter is missing or unable to parse", slog.String("counter", metric.GetName()))
}
}
}
// order metrics, such that those requiring base counters are processed last
orderedMetrics := orderedNonDenominatorMetrics
orderedMetrics = append(orderedMetrics, orderedDenominatorMetrics...)
orde... | Go |
6-6v6h5V5h-5z") !important; }
[d*="M20,9H9V7h11V9z M20,11H9v2h11V11z M20,15H9v2h11V15z"], [d*="M20,8H9V7h11V8z M20,11H9v1h11V11z M20,15H9v1h11V15z M7,7H4v1h3V7z M7,11H4v1h3V11z M7,15H4v1h3V15z"] { d: path("M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z") !important; }
[d*="M21,... | CSS |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.