content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
te cadastrar ou atualizar os comentários que estão
// relacionados com aquele post
cascade: ['insert', 'update']
})
// nome da coluna que armazena o relacionamento de post com comentários
@JoinColumn({ name: 'post_id' })
// comments não existi nessa tabela no banco, ele é um array[] de Comments
// d... | Typescript |
eta ? "http://beta.nulscan.io" : "https://nulscan.io";
const ETHOrigin = isBeta
? "https://ropsten.etherscan.io"
: "https://etherscan.io";
const BNBOrigin = isBeta
? "https://testnet.bscscan.com"
: "https://bscscan.com";
const HTOrigin = isBeta
? "https://testnet.hecoinfo.com"
: "https://hecoinfo.com";
cons... | Typescript |
/ blt lbl_80229994
/* 802299B8 00225618 80 9D 00 04 */ lwz r4, 4(r29)
/* 802299BC 0022561C 39 00 00 00 */ li r8, 0
/* 802299C0 00225620 38 E0 00 00 */ li r7, 0
/* 802299C4 00225624 88 64 00 01 */ lbz r3, 1(r4)
/* 802299C8 00225628 38 04 00 04 */ addi r0, r4, 4
/* 802299CC 0022562C 88 A4 00 03 */ lbz r5, 3(r4)
/* ... | Assembly |
03002B */ li $v1, 43
/* AF76A8 80080508 10400016 */ beqz $v0, .L80080564
/* AF76AC 8008050C 0002C080 */ sll $t8, $v0, 2
.L80080510:
/* AF76B0 80080510 0238C821 */ addu $t9, $s1, $t8
/* AF76B4 80080514 8F260790 */ lw $a2, 0x790($t9)
/* AF76B8 80080518 50C00013 */ beql $a2, $zero, .L80080568
/* AF76BC 8... | Assembly |
0.25);
sfxb.skip(ZRO, 8);
sfxb.scaleOffset(1.0, -0.25);
sfxb.skip(ZRO, 3);
double shift4 = 0.0;
if(pitch4 > 0) {
shift4 = (16384.0 * Math.pow(2.0, (pitch4/12.0) - 1))/32768.0;
}
else
{
shift4 = (-32.0 * Math.pow(2.0, (-pitch4/12.0) - 1))/32768.0;
}
sfxb.scaleOffset(0.0, shift4);
... | Java |
Shell> getTargetClass() {
return GameShell.class;
}
@Override
public Class<HitboxMarkerToggleMenuItemFeature> getFeatureClass() {
return HitboxMarkerToggleMenuItemFeature.class;
}
public static class HitboxMarkerToggleMenuItemFeature implements Feature<GameShell>{
private MenuItemListener m... | Java |
import sys
sys.path.append('../wakis')
from wakis import geometry
import pytest
class TestGeometryUtils:
#Compare data
STP_FILE = 'tests/stl/006_muonCavity.stp'
COLORS = {'000_Vacuum-Half_cell_dx': [0.5, 0.800000011920929, 1.0],
'001_Be-windows-Be-window-left': [0.75294... | Python |
" +
"T t = { x, y ->\n" + // should proxy only foo(a,b)
" print \"$x,$y\"\n" +
"}\n" +
"t.foo(1)\n", // MissingMethodException
};
//@formatter:on
runConformTest(sources, "1,2");
}
@Test
public void testTraits8272() {
//@forma... | Java |
elow, since tests can not do await */
#[allow(dead_code)]
async fn read_write_admin_via_socket(data: &DullControl) -> Result<DullControl, std::io::Error> {
let (parent,child) = UnixStream::pair().unwrap();
let (mut cfs, mut pfs) = make_parent_child_streams(parent, child).await;
pfs.wri... | Rust |
.Any())
{
this.flowLayoutBaseItemProperties.Controls.Clear();
if (!this.checkBoxFilterExtraInfo.Checked)
this.flowLayoutBaseItemProperties.Controls.Add(BaseTooltip.MakeRow(UIService, this.FontService
, this.Data.BaseItemId.Normalized
, FGColor: ItemStyle.Relic.Color()));
foreach (v... | C# |
deLeftCrLfHtVt,
in: ".\tοφ␕2\b/F\x1f,\\␏1}τY\x17ι^O\x13H\nq/ι␅\t␐",
out: "‛.\tοφ␕2\b/F\x1f,\\␏1}τY\x17ι^O\x13H\nq/ι␅\t␐",
}, { // 1202
mask: EncodeDoubleQuote | EncodeLeftPeriod | EncodeLeftCrLfHtVt,
in: ".\nοφ␕2\b/F\x1f,\\␏1}τY\x17ι^O\x13H\nq/ι␅\n␐",
out: ".\nοφ␕2\b/F\x1f,\\␏1}τY\x17ι^O\x13H\nq/ι␅\n␐"... | Go |
import FreeCAD as App
import Part
doc = App.newDocument("GasDistributionManifold")
# Parameters
inlet_diameter = 20 # Main inlet diameter in mm
outlet_diameter = 10 # Outlet diameter in mm
outlet_count = 6 # Number of outlets
manifold_length = 100 # Length of the manifold in mm
outlet_spacing = 20 # Spacing betw... | Python |
local numAppsLeft = ...;
LookingForGuildBrowseFrameRequestsLeft:SetFormattedText(GUILD_FINDER_REQUESTS_LEFT, numAppsLeft);
LookingForGuildApps_Update();
elseif ( event == "LF_GUILD_MEMBERSHIP_LIST_CHANGED" ) then
RequestGuildMembershipList();
end
end
function LookingForGuildFrame_OnHide(self)
PlaySound("igCh... | Lua |
char(')').trim();
inner.set(paren | pattern('^)'));
return inner.end();
})(),
'improved': (() {
final outer = undefined<dynamic>();
final inner = undefined<dynamic>();
final operator = string('&&') | string('||');
outer.set(inner.plusSeparated(operator));
... | Dart |
/*
* Copyright (c) 2018 Isode Limited.
* All rights reserved.
* See the COPYING file for more information.
*/
#pragma once
#include <memory>
#include <string>
#include <Swift/Controllers/UIInterfaces/FdpFormSubmitWindow.h>
namespace Swift {
class Form;
class MockFdpFormSubmitWindow : public FdpFormSub... | C |
vedInstanceState) {
if (img == null) {
img = new ImageView(container.getContext());
img.setBackgroundColor(Color.BLACK);
//
Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
R.drawable.girl);
Rect rect = null;// null表示整个图片都处理
// rect = new Rect(500, 500, 1000, 1000);// 指定区域
img.se... | Java |
// 논리 연산자
5 > 3
) && 2 < 4; // true
// 타입 연산자
typeof "Hi"; // "string"
```
# ▶ 산술 연산자
> 산술 연산자는 피연산자의 개수에 따라 이항 산술 연산자(2개의 피연산자)와 단항 산술 연산자(1개의 피연산자)로 구분하며, 산술 연산이 불가능한 경우 `NaN`을 반환한다.
## ▷ 이항 산술 연산자
| 이항 산술 연산자 | 의미 |
| :--------------: | :----: |
| + | 덧셈 |
| - | 뺄셈 |
|... | Markdown |
G_ECHUNK_POS,
ChunkSize = sys::spng_errno_SPNG_ECHUNK_SIZE,
ChunkCrc = sys::spng_errno_SPNG_ECHUNK_CRC,
ChunkType = sys::spng_errno_SPNG_ECHUNK_TYPE,
ChunkUnknownCritical = sys::spng_errno_SPNG_ECHUNK_UNKNOWN_CRITICAL,
DupPlte = sys::spng_errno_SPNG_EDUP_PLTE,
DupChrm = sys::spng_errno_SPNG_EDUP... | Rust |
e IdWorker idWorker;
@Autowired
private RepositoryService repositoryService;
@PostMapping("/jsonToBpmn")
public Object saveForm(@RequestBody JSONObject jsonObject) throws InvocationTargetException, IllegalAccessException {
System.err.println(jsonObject.toJSONString());
BpmnModel bpmnMode... | Java |
<T1> field1, SelectField<T2> field2, SelectField<T3> field3, SelectField<T4> field4, SelectField<T5> field5, SelectField<T6> field6, SelectField<T7> field7, SelectField<T8> field8, SelectField<T9> field9, SelectField<T10> field10, SelectField<T11> field11, SelectField<T12> field12, SelectField<T13> field13, SelectField... | Java |
c3kiqp.puis .puisg-col-9-of-24{max-width:673.5px}.nav-ewc-persistent-hover:not(.nav-ewc-compact-view).a-js .s-wide-grid-style .puis-vd9s33jixtjwf23051qgc3kiqp.puis .puisg-col-10-of-24{max-width:748.33px}.nav-ewc-persistent-hover:not(.nav-ewc-compact-view).a-js .s-wide-grid-style .puis-vd9s33jixtjwf23051qgc3kiqp.puis .p... | CSS |
/([0-9\.\%pxems]*)$/, "<em class=\"int\">$1</em>");
} else {
formatted_string = string;
}
// 注释状态开启
if (which === '*' && !openComment && prevSlash) {
openComment = true;
s = formatted_string + which;
// 注释状态关闭
} else if (which ===... | JavaScript |
import os
import shutil
import datetime as dt
#GB 30/.1/2024
#check if the last backup file is older than a month and in this case
#create a new backupFile
class fileNameDate:
def __init__(self, filePath, dateTime) -> None:
self.filePath = filePath
self.dateTime = dateTime
def __gt__(self, ot... | Python |
(), 13, 'Add date');
assertEq(a.add({ w: 1 }).date(), 20, 'Add week');
assertEq(a.add({ M: 1 }).month(), 10, 'Add month');
assertEq(a.add({ y: 1 }).year(), 2012, 'Add year');
assertEq(a.add({ Q: 1 }).month(), 1, 'Add quarter');
b = moment([2010, 0, 31]).add({ M: 1 });
c = moment([2010, 1, 28]).... | Typescript |
to draw the glyph.
* @return the width of the glyph in pixels.
*/
virtual int drawGlyph(Graphics* graphics, unsigned char glyph, int x, int y);
// Inherited from Font
virtual void drawString(Graphics* graphics, const std::string& text, int x, int y, bool is_normal);
... | C |
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/ads/googleads/v21/services/bidding_strategy_service.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021, 8981
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global:... | C# |
e.parse("2023-05-04T05:04:07.000")
val tester = object : Table("tester") {
val datetimeWithDefault = datetime("datetimeWithDefault").default(datetime)
val datetimeWithDefaultExpression =
datetime("datetimeWithDefaultExpression").defaultExpression(CurrentDateTime)
... | Kotlin |
/*
* Copyright (C) 2019-2025 by Sukchan Lee <acetcom@gmail.com>
*
* This file is part of Open5GS.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License,... | C |
.protobuf.CodedOutputStream
.computeInt32Size(15, numVirtualDevicesPerGpu_);
}
if (gpuSystemMemorySizeInMb_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(16, gpuSystemMemorySizeInMb_);
}
if (populatePjrtGpuClientCreationInfo_ != false) {
... | Java |
n_multiplier_w
pooled = F.adaptive_avg_pool2d(x, (h_pool, w_pool))
y = f(pooled)
if self.upsampling_mode == 'nearest':
out.append(F.interpolate(y, (int(h), int(w)), mode='nearest'))
elif self.upsampling_mode == 'bilinear':
out.append(F.inte... | Python |
C_OPERATION_SUBTYPE;
bottom->option = fsf_cfdc->option;
bytes = zfcp_qdio_sbals_from_sg(qdio, &req->qdio_req,
fsf_cfdc->sg,
ZFCP_FSF_MAX_SBALS_PER_REQ);
if (bytes != ZFCP_CFDC_MAX_SIZE) {
zfcp_fsf_req_free(req);
goto out;
}
zfcp_fsf_start_timer(req, ZFCP_FSF_REQUEST_TIMEOUT);
retval = zfcp_fsf_req... | C |
}
@if $C == 0 { $C: 0 }
@if $D == 0 { $D: 0 }
@if $A == $B and $A == $C and $A == $D { $output: $A }
@else if $A == $C and $B == $D { $output: $A $B }
@else if $B == $D { $output: $A $B $C }
@else { $output: $A $B $C $D }
@... | CSS |
l issue_tma_store = (thread_idx / NumThreadsPerWarp) == 0;
// In the reuse smem configuration we have StagesC smem buffers and at most StagesD committed TMA stores in flight.
// The TMA store pipeline producer acquire returns when at most StagesD-1 committed stores are in-flight, so we can
// only guarante... | C++ |
= from.flags
to.priority = from.priority
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
to.extras = from.extras
to.actions = from.actions
}
}
}
}
package com.stardust.automator.simple_action
import android.view.accessibility.... | Kotlin |
This is safe, because we confirmed the buffer is >= MAX_F32_SIZE.
// We have up to `MAX_F32_SIZE - 1` bytes from `get_inf_string()`,
// and up to 1 byte from the sign.
copy_to_dst(bytes, get_inf_string())
} else {
forward(value, radix, bytes)
}
}
/// Handle +/- values.
#[inline... | Rust |
efine === 'function' && define.amd ? define(['../../moment'], factory) :
factory(global.moment)
}(this, function (moment) { 'use strict';
/*global QUnit:false*/
var test = QUnit.test;
function module (name, lifecycle) {
QUnit.module(name, {
setup : function () {
mom... | JavaScript |
60:e=>{e.exports={en:["Delete pane"],ru:["Удалить панель"]}},54602:e=>{e.exports={en:["Delisted"],ru:["Делистинг"]}},31683:e=>{e.exports={en:["Delisted alert"],ru:["Инструмент снят с торгов на бирже"]}},50035:e=>{e.exports={en:["Derived Data"],ru:["Производные данные"]}},45321:e=>{e.exports={en:["Derived Data refers to... | JavaScript |
printUnhandledLine(line);
return result;
}
GdbMiResult newThreadId = new GdbMiResult("new-thread-id");
newThreadId.value.type = GdbMiValue.Type.String;
newThreadId.value.string = m.group(1);
result.add(newThreadId);
// frame={*}
result.add(pa... | Java |
.style = Paint.Style.FILL
mNumberPaint.setARGB(0xff, 0x33, 0xb5, 0xe5)
mNumberPaint.textAlign = Paint.Align.CENTER
mNumberPaint.textSize = TEXT_SIZE * resources.displayMetrics.density
val tf = Typeface.create(Typeface.SANS_SERIF, Typeface.BOLD)
mNumberPaint.typeface = tf
... | Kotlin |
bits, no parity, 1 stop bit
pub const _9600_8_N_1: UartConfig = UartConfig {
baudrate: Baud(9600),
data_bits: DataBits::Eight,
stop_bits: StopBits::One,
parity: None,
};
/// 19200 baud, 8 data bits, no parity, 1 stop bit
pub const _19200_8_N_1: UartConfig = UartConfig {
baudrate: Baud(19200),
... | Rust |
分組',
task_rule_name: '規則名稱',
task_rule_desc: '規則描述',
task_rule_severity: '風險等級',
task_order: '任務排序',
task_account_name: '資源名稱',
task_rule_type: '規則類型',
task_tree_child: '該節點不是葉子節點,請點擊最葉子節點獲取資源信息',
task_tree_cloud: '請選擇需要生成報告內容的賬號信息',
task_list: '任務列表',
task_manage: '任務管理',
ta... | JavaScript |
Xd v1 = x.row(3);
MatrixXd v2 = x.row(4);
MatrixXd v3 = x.row(5);
MatrixXd vi(3,1), vf(3,1);
vi(0) = v1(0);
vi(1) = v2(1);
vi(2) = v3(2);
vf(0) = v1(length(v1)-1);
vf(1) = v2(length(v1)-1);
vf(2) = v3(length(v1)-1);
Print(vi,"Initial velocity vector [m/s]");
Print(vf,... | C++ |
软件社区是一个神奇的地方,人们在这里互相帮助并做出很棒的东西——开源是其中非常重要的一部分。
开源对不同的人来说意味着不同的东西,但大多数人都会同意它是为了支持自由。当软件不尊重你的权利时,它看起来是不公平的,并可能通过不道德的方式损害你的自由。
这就是为什么我们为 FLOSS 倡导者可以使用 Tauri 构建“可认证的”开源应用程序而感到自豪,这些应用程序可以包含在 FSF 认可的 GNU/Linux 发行版中。
## 未来
Tauri 的未来取决于你的参与和贡献。尝试它,文件问题,加入一个工作组或捐款-每一个贡献都是重要的。无论如何,请务必保持联系!!
---
title: Tauri の理念
i18nReady: tr... | Markdown |
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright 2011-2012 Calxeda, Inc.
* Copyright (C) 2012-2013 Altera Corporation <www.altera.com>
*
* Based from clk-highbank.c
*/
#include <linux/slab.h>
#include <linux/clk-provider.h>
#include <linux/io.h>
#include <linux/of.h>
#include <linux/of_address.h>
#in... | C |
) => {
e.update_gui(data, ctx);
}
AddRangedVarUSize(e) => {
e.update_gui(data, ctx);
}
AddRangedVarI32(e) => {
e.update_gui(data, ctx);
}
AddRangedVarI64(e) => {
e.update_gui(data, ctx... | Rust |
.write(i);
}
input.close();
output.flush();
}
Toast.makeText(this, "已下载到" + SDCard + "/APKSTYTOOL/bilibili", Toast.LENGTH_SHORT).show();
}
} catch (Exce... | Java |
)
addSpec(FlatConfigForLoad)
}.from.map.flat(loadContent)
Config {
addSpec(ConfigForLoad)
addSpec(FlatConfigForLoad)
}.from.map.flat(config.toFlatMap())
}
itBehavesLike(FlatSourceLoadBaseSpec)
})
object FlatSourceFromDefaultProvidersSpec : SubjectSpe... | Kotlin |
core.Instance
for i := 0; i < len(slotOpts); i += 2 {
switch {
case core.DeepEqual(slotOpts[i], core.NewSymbol(":READER")):
readerFunctionName = slotOpts[i+1]
case core.DeepEqual(slotOpts[i], core.NewSymbol(":WRITER")):
writerFunctionName = slotOpts[i+1]
case core.DeepEqual(slotOpts[i], core.NewS... | Go |
continue;
}
encoded[key] = encode(data[key]);
}
return JSON.stringify(encoded).slice(1, -1);
},
decode: (encoded) => {
const data = JSON.parse('{' + encoded + "}");
for (const key in data) {
if (!data.hasOwnProperty(key)) {
... | Typescript |
"float" to listOf(ep(1), ep("1.5"), ep("2"), ep(3)),
"sp" to listOf(ep("SP1"), ep("SP2")),
"int with sp" to listOf(ep(1), ep(3), ep("SP1")),
"float with sp" to listOf(ep("1.5"), ep(3), ep("SP1")),
"Normal lt Special" to listOf(ep(3), ep("SP2"), ep("SP3")),
... | Kotlin |
8h-4.24L34.261 32.9h14.128l-1.49 2.374h-4.241v1.448h3.328l-1.417 2.259h-1.911v4.573l3.185-4.98 4.285 6.833h-2.086l-.421-.753h-3.554l-2.74 4.923-2.742-4.923H35.03l-.421.753h-2.084l4.284-6.833m11.157 13.085-1.429-1.037-1.43 1.037.546-1.681-1.429-1.037h1.767l.546-1.681.545 1.681h1.768l-1.43 1.037.546 1.681m-5.211 3.937-1.... | Dart |
clone()
local seq_4ever5 = seq_4ever:clone()
sprite1:runAction(seq_4ever)
sprite2:runAction(seq_4ever2)
sprite3:runAction(seq_4ever3)
sprite4:runAction(seq_4ever4)
sprite5:runAction(seq_4ever5)
-- restore default
cc.Texture2D:setDefaultAlphaPixelFormat(cc.TEXTURE2_D_PIXEL_FORMAT_DEFAU... | Lua |
IsDisplayedOnChildren(
"QuackText KDOC",
"QuackButton KDOC",
)
casaComponents.assertTextIsNotDisplayedOnChildren("QuackTag KDOC")
navigator.onChildren().run {
filterToOne(hasTextExactly("text")).performClick() // disable
filterToOne(hasTextExactly("button")).performClick() // disabl... | Kotlin |
1
b _022D4CD4 ; case 2
b _022D4CAC ; case 3
b _022D4CC4 ; case 4
b _022D4CD4 ; case 5
b _022D4CD4 ; case 6
_022D4CAC:
mov r0, #0xb
bl ov00_022D5B1C
mov r0, r4
bl SetIrqFlag
mov r0, #7
ldmia sp!, {r4, r5, r6, pc}
_022D4CC4:
mov r0, r4
bl SetIrqFlag
mov r0, #5
ldmia sp!, {r4, r5, r6, pc}
_022D4CD4:
mov r... | Assembly |
sendme.body.setTime(startDate.getTime());
m_log.info("run SessionID=" + m_info.getSessionId() + ", JobID=" + m_info.getJobId());
//送信
m_sendQueue.put(sendme);
if(m_info.getCommand().equals(CommandConstant.GET_CHECKSUM)){
String checksum = getCheckSum(m_info.getFilePath());
if(checksum != null){
... | Java |
颈椎病? |
| 投资理财 | 投资股票市场需要注意哪些风险? |
| 艺术欣赏 | Rembrandt是谁?他的代表作品有哪些? |
| 科技前沿 | 人工智能技术在医疗行业中有哪些应用? |
| 历史探秘 | 古埃及的金字塔是如何建造的? |
| 社交礼仪 | 在商务场合中如何打造良好的个人形象? |
| 教育心理 | 如何帮助孩子克服学习焦虑症? |
|天气查询|今天北京的天气怎么样?|
|新冠疫苗|请列举目前已经获批的新冠疫苗有哪些?|
|历史事件|请问1939年的九一八事变是发生在哪个国家?|
|文学作品|《红楼梦》的主要人物有哪些?|
|电影推荐|您能给我推荐一部好看的爱情片吗?|
|菜谱|如何制作一道口感鲜美的番茄炒蛋... | Markdown |
codageplan1 dc.b 0,2,1,1,4,2,1,1,3,2,1,1,3,2,1,1
codageplan2 dc.b 0,3,2,2,1,1,1,1,4,3,2,2,1,1,1,1 P4 P0 P1 P2
codageplan3 dc.b 0,4,3,3,2,2,2,2,1,1,1,1,1,1,1,1
; description codage plan en vue de raster split de palette
; couleur 0 = 1 FOIS MOVE.W (A0)+,REGCOLOR
; couleur 1 = 8 fois move.w (a0)+,d0 8x move.w d0,regco... | Assembly |
: 200px;
height: 210px;
}
.tileimg{ /* タイル画像のimgタグに適用 */
width: 200px;
height: 200px;
}
/* 講演資料一覧用 */
table.tb4{
border-top: 1px solid #663300;
border-left: 1px solid #663300;
border-collapse: collapse;
border-spacing: 0;
background-color: #ffffff;
empty-cells: show;
line-height: 1... | CSS |
Index = start
endIndex = end
touchType = RANGE_TOUCH_NONE
onChange()
}
}
}
}
fun cleanRange() {
startIndex = -1
endIndex = -1
startX = 0f
endX = 0f
}
fun onTouchEvent(event: ... | Kotlin |
#if UNITY_EDITOR
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEngine;
#if UNITY_6000_0_OR_NEWER
using UnityEditor.Build;
using UnityEditor.Build.Profile;
#endif
namespace AudioLink.Editor
{
[InitializeOnLoad]
public class AudioLinkDefineManager
{
static Audio... | C# |
:-webkit-scrollbar-thumb{background-color:#666;border-radius:10px}.log-code:not(:empty) ::-webkit-scrollbar-track,.log-code:not(:empty) ::-webkit-scrollbar-track-piece{background-color:#000;border-radius:10px}.log-code:not(:empty) ::-webkit-scrollbar{width:3px;height:3px}.gray-svg svg{color:#5c7080}.logo{display:flex;f... | CSS |
RecordNotFound) {
return nil, err, false
}
return nil, fmt.Errorf("failed to get chat flow role for chatflowID %d: %w", workflowID, err), true
}
res := &entity.ChatFlowRole{
ID: role.ID,
WorkflowID: role.WorkflowID,
Name: role.Name,
Description: role.Des... | Go |
import yt
from sys import argv
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import numpy as np
def get_oned_data(arr3d,axialdir):
res=np.array(arr3d.shape)
mid=res/2
mid=mid.astype(int)
linedata=np.zeros(res[axialdir])
trans1dir=(axialdir+1)%3
trans2dir=(axialdir+2)%3... | Python |
(), undefined, {schema: schema, filename: filename});
export const dump = (doc: object): string =>
jsyaml.safeDump(doc, {schema: schema, lineWidth: 999, noRefs: true})
.replace(/!<!([^>]+?)>/g, '!$1')
.replace(/ !\$include /g, ' !$ ')
.replace(/: \$0string (0\d+)$/gm, ": '$1'")
.replace(/\$0string (0... | Typescript |
mockMvc: MockMvc
@Autowired
private lateinit var gitlabRegistryController: GitlabRegistryController
@BeforeEach
internal fun setUp() {
mongo.emptyDatabase()
mongo.runScript("10_user.js")
}
@Test
fun validateTestConfiguration() {
assertThat(objectMapper).isNotNull
... | Kotlin |
d="M5.419 8.534h1.614v6.911H5.419v-.72c-.71.822-1.573.933-2.07.933C1.218 15.658 0 13.882 0 11.985c0-2.253 1.542-3.633 3.37-3.633.507 0 1.4.132 2.049.984zm-3.765 3.491c0 1.198.751 2.202 1.918 2.202 1.015 0 1.959-.74 1.959-2.181 0-1.512-.934-2.233-1.959-2.233-1.167-.01-1.918.974-1.918 2.212zm7.297-3.49h1.613v.618a3 3 0 ... | Dart |
import time
lista: list = ["Jose", "Juan", "Miguel"]
print(lista)
# Inserción
lista.append("Samuel")
print(lista)
# Borrado
lista.remove("Jose")
print(lista)
# Actualización
lista[2] = "Albert"
print(lista)
# Ordenación
lista.sort()
print(lista)
# EXTRA
def agenda():
def insertar_contacto():
print... | Python |
/* *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=* */
/* ** Copyright UCAR (c) 1990 - 2016 */
/* ** University Corporation for Atmospheric Research (UCAR) */
/* ** National Center for Atmospheric Research (NCAR) */
... | C |
repeat 100% -24px}A.btna-imp-02:hover SPAN.btna-s{background:url(../images/btna-red1-04.gif) no-repeat 0 0}A.btna-com-04{line-height:22px;background:#013a87;height:22px;color:#fff;font-size:12px;font-weight:normal;text-decoration:none!important}A.btna-com-04 SPAN.btna-s{padding-bottom:0;line-height:22px;padding-left:10... | CSS |
s"]["shortcut"] = "NULL"
defs["igMenuItemEx"][1]["funcname"] = "MenuItemEx"
defs["igMenuItemEx"][1]["location"] = "imgui_internal:3092"
defs["igMenuItemEx"][1]["namespace"] = "ImGui"
defs["igMenuItemEx"][1]["ov_cimguiname"] = "igMenuItemEx"
defs["igMenuItemEx"][1]["ret"] = "bool"
defs["igMenuItemEx"][1]["signature"] = ... | Lua |
mercury.platform.shared.config.descriptor.adr.AdrProgressBarDescriptor;
import com.mercury.platform.ui.adr.components.panel.tree.AdrNodePanel;
import com.mercury.platform.ui.adr.components.panel.tree.model.AdrTreeNode;
import com.mercury.platform.ui.adr.components.panel.ui.MercuryTracker;
import com.mercury.platform.ui... | Java |
/*********
*
* In the name of the Father, and of the Son, and of the Holy Spirit.
*
* This file is part of BibleTime's source code, https://bibletime.info/
*
* Copyright 1999-2025 by the BibleTime developers.
* The BibleTime source code is licensed under the GNU General Public License
* version 2.0.
*
**********/
#pra... | C |
D GETL D0BW.0,D1BW.0,[A0.2++]
D GETL D0BW.1,D1BW.1,[A0.2++]
#else
ADD A0.2,A0.2,#(8*8)
#endif
MOV TXMODE,#0 /* Restore TXMODE */
#ifndef CTX_NO_DSP
D GETL D0ARI.0,D1ARI.0,[A0.2++]
D GETL D0ARI.1,D1ARI.1,[A0.2++]
D GETL D0AWI.0,D1AWI.0,[A0.2++]
D GETL D0AWI.1,D1AWI.1,[A0.2++]
D GETL D0BRI.0,D1BRI.0,[A0.2++]
D GETL D... | Assembly |
import unittest
from unittest.mock import Mock, patch
from nuplan.database.nuplan_db_orm.rendering_utils import lidar_pc_closest_image, render_lidar_box
from nuplan.database.tests.test_utils_nuplan_db import (
get_test_nuplan_db,
get_test_nuplan_lidar_box,
get_test_nuplan_lidarpc_with_blob,
)
class TestR... | Python |
't reliably print a stack trace. FIXME.
// Note: gp.m == g.m occurs when tracebackothers is
// called from a signal handler initiated during a
// systemstack call. The original G is still in the
// running state, and we want to print its stack.
if gp.m != g.m && readgstatus(gp)&^_Gscan == _Grunning {
pri... | Go |
istItemProto = RevocationKidListOuterClass.RevocationKidListItem.newBuilder()
.setKid(kidListItem.kid.toProtoByteString())
.addHashTypes(kidListItem.hashTypes.first().type.decodeHex().toProtoByteString())
val revocationKidListProto = RevocationKidListOuterClass.RevocationKidList.newBuil... | Kotlin |
<DocumentSet>(
[&] { return RunQuery(query1, kMissingLastLimboFreeSnapshot); });
EXPECT_EQ(result1, DocSet(query1.Comparator(), {doc1, doc4, doc5}));
auto query2 = testutil::Query("coll")
.AddingFilter(Filter("a", "in", Array(2, 3)))
.AddingOrderBy(OrderBy("a... | C++ |
_i2.NestedIntFilter? $max;
@override
Map<String, dynamic> toJson() => {
'equals': equals,
'in': $in,
'notIn': notIn,
'lt': lt,
'lte': lte,
'gt': gt,
'gte': gte,
'not': not,
'_count': $count,
'_avg': $avg,
'_sum': $sum,
... | Dart |
length;
bool get isEmpty => _size == 0;
void write(E element) {
if (isFull) throw Exception('Buffer is full');
_list[_writeIndex] = element;
_writeIndex = _advance(_writeIndex);
_size++;
}
int _advance(int index) => (index + 1) % _list.length;
E? read() {
if (isEmpty) return null;
... | Dart |
key.fmtid == propertyKey.fmtid && key.pid == propertyKey.pid;
});
var detail = ((DefaultNamespaceFolderView)lazyFolderView.Value).GetItemDetail(item, column);
return detail.ToString();
}
/// <summary>
/// The namespace extension that we are either a proxy for... | C# |
<li>National check digit: 54</li>
* </ul>
*
* @see <a href=
* "https://www.bportugal.pt/sites/default/files/anexos/documentos-relacionados/international_bank_account_number_en_dpgdr_vr_20180226.pdf">IBAN
* | Specifications and validation procedures</a>
*/
PT(IsoCountry.PT, "4!n4!n11!n2!n",... | Java |
AstroNvim/astrocore",
opts = {
mappings = {
n = {
["<Leader>g|"] = {
function() require("gitgraph").draw({}, { all = true, max_count = 5000 }) end,
desc = "GitGraph",
},
},
},
},
},
{ -- use diffview for viewing ... | Lua |
// console.log('yearUpdateDec function works');
if (month === 1) {
return --year;
}
else {
return year;
}
}
namespace JWF {
export class SelectBox extends JWF.Window{
select : HTMLSelectElement
constructor(option: { label?:string,options: { name: string, value: string | number }[] }) {
super()
... | Typescript |
lgkmcnt(0)
s_barrier
ds_read_b64 v[v_a:v_a+1], v[v_sld_a_os]
ds_read_b64 v[v_b:v_b+1], v[v_sld_b_os]
ds_read_b64 v[v_b+2:v_b+2+1], v[v_sld_b_os] offset:512
ds_read_b64 v[v_a+2:v_a+2+1], v[v_sld_a_os] offset:512
L_igemm_fwd_gtcx2_nhwc_fp16_bx0_ex1_bt128x128x8_wt32x32x4_ws1x1_wr2x2_ta1x1x4x1_1x8x1x... | Assembly |
lda _flags,x
and #FLG_FLY_TO_PLANET
beq nodock
; Dock to planet
lda #IS_DOCKING
ora _flags,x
sta _flags,x
rts
nodock
; If we wants to go hyper, go hyper
lda _flags,x
and #FLG_FLY_TO_HYPER
beq nohyper
; Check if conditions are met (no other hypers, no interdictors...)
lda ship_to_hyper
bne nohyper
;... | Assembly |
pRRAF7_9nyybpngbeVpRRRR
.type b__MA7naqebvq5AOYbt6ErnqreP1REXAF_2fcVAF_7VZrzbelRRRzEXAFg3__112onfvp_fgevatVpAF7_11pune_genvgfVpRRAF7_9nyybpngbeVpRRRR,%function
b__MA7naqebvq5AOYbt6ErnqreP1REXAF_2fcVAF_7VZrzbelRRRzEXAFg3__112onfvp_fgevatVpAF7_11pune_genvgfVpRRAF7_9nyybpngbeVpRRRR:
nop
.text
.globl b__MA4Wfba5Inyhr6nccra... | Assembly |
ettingRecord");TombstonedItemRecord.registerClass("TombstonedItemRecord");BootCommonComponent.registerClass("BootCommonComponent",null,_a.kg,_j.ce);_bc.O.registerClass("_bc.O",null,_ff.a);_bc.bc.registerClass("_bc.bc");_bc.g.registerClass("_bc.g");_bc.b.a=_a.a.N;_bc.e.a=5;_bc.e.c=[8,0,2,1,3,4,6,5,12];_bc.e.d=[9,0,2,1,3... | JavaScript |
/**
* Ext2read
* File: log.c
**/
/**
* Copyright (C) 2005 by Manish Regmi (regmi dot manish at gmail.com)
*
* This program 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 Software Foundation; either version 2 of the Lice... | C |
právní pomoci ročně odmítnou 160 000 lidí
Více než 160 000 nejvíce ohrožených občanů je každý rok v komunitních centrech právní pomoci odmítnuto a v sektoru samotném se chystají na dopady, které budou mít další omezení finančních prostředků na již nadmíru vytížené služby.
V Queenslandu tři z pěti lidí - převážně lidé v... | C# |
type commonMsgPattern struct {
regex *regexp.Regexp
fingerprintKeys []string
}
// Common message patterns that should be grouped better
var patternsAll = []*commonMsgPattern{
{
regex: regexp.MustCompile(`^Memory cgroup out of memory: Killed process (?P<process_id>\d+) \((?P<process_name>[^)]+)... | Go |
dst[d:d+length] and dst[d-offset:] can overlap, this is
// still OK if offset >= 8. Note that this has to be two 8-byte load/stores
// and not one 16-byte load/store, and the first store has to be before the
// second load, due to the overlap if offset is in the range [8, 16).
//
// if length > 16 || offset < 8 ||... | Assembly |
ecure_connection < key.must_be_secure_connection;
}
const std::string name;
const bool must_be_secure_connection;
};
typedef std::map<Authentication_key, Authentication_handler::create> Auth_handler_map;
bool m_timer_running;
bool m_skip_name_resolve;
uint32 m_errors_while_accepting;
ngs::sh... | C |
l if there is no cancel button. Using this argument is equivalent to setting the cancel button index to the value returned by invoking addButtonWithTitle: specifying this title.
@param otherButtonTitles The title of another button. Using this argument is equivalent to invoking addButtonWithTitle: with this title to ad... | C |
a) {
// your code here
}
// This fits rl::concept::sa::Foo<int>... and
// rl::concept::sa::FooBase<int> since Foo inherits
// from FooBase
typedef int value_type;
value_type get(void) {
// your code here
}
void set(const value_type& v) {
// your code here
}
// This fits rl::c... | C++ |
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 71001, 71002, 71003, 71004, 71005... | Lua |
>
{count}
</button>
</li>
}
}).collect::<Vec<_>>();
view! {
<ul>
{counter_buttons}
</ul>
}
}
#[component]
fn DynamicList( initial_length: usize ) -> impl IntoView {
let mut next_counter_id = initial_length;
let i... | Markdown |
Boolean indicating that the current build is official. Set to `true` if `OfficialBuildId` is non-empty. |
| AssemblyVersion | .NET | Set to `42.42.42.42` if not set in the project, the build is not official and `DotNetUseShippingVersions` is not `true`. |
| FileVersion | .NET | Set to `42.42.42.42424` if the buil... | Markdown |
, $cast, t);
}
final splitter = RegExp(r'[ ./_\-\\]+|(?<=[a-z])(?=[A-Z])');
final customCase = RegExp(r'^custom\(([luc][luc]?)?,(.?)\)$');
/// Used to transform fields to a specific case style
class CaseStyle {
const CaseStyle({this.head, this.tail, this.separator = ''});
/// Transforms the first word of a field ... | Dart |
var disableCloseWarning: Boolean = false
val httpClient: AsyncHttpClient = asyncHttpClient(DefaultAsyncHttpClientConfig.Builder()
.setThreadFactory {
Thread(it).apply {... | Kotlin |
jalr t9
# if _MIPS_SIM == _ABIO32
move gp, s1
# endif
#else
jal JUMPTARGET (__setcontext)
#endif
move a0, v0
0:
/* exit (a0) */
#ifdef __PIC__
PTR_LA t9, HIDDEN_JUMPTARGET (exit)
jalr t9
#els | Assembly |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.