content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
pdated_at: match document.get_datetime("updatedAt") {
Ok(updated_at) => Some(Timestamp::from(SystemTime::from(updated_at.to_owned()))),
_ => None,
},
})
}
}
use crate::core::AppCore;
use eframe::egui;
#[derive(Default)]
pub struct AboutPanel {}
impl AboutPanel {... | Rust |
@param replaceIfExisting - if true and the group had already existed then it will be emptied before.
* @param arrFileOrNull - if given, sets the group arranger file path to its absolute path
* @return the actually resulting group if it could be created and the specified diagrams could
* be attached to it, {@... | Java |
ears balloon
[39669] = 39681, [39681] = 39669, -- purple 25 years balloon
[39670] = 39682, [39682] = 39670, -- blue 25 years balloon
[39671] = 39683, [39683] = 39671, -- balloon no.0
[39672] = 39684, [39684] = 39672, -- balloon no.1
[39673] = 39685, [39685] = 39673, -- balloon no.2
[39674] = 39686, [39686] = 3967... | Lua |
function GLib.Enumerator.YieldEnumerator (f)
local thread = coroutine.create (f)
return function (...)
if coroutine.status (thread) == "dead" then return nil end
local success, a, b, c, d, e, f = coroutine.resume (thread, ...)
if not success then
GLib.Error (a)
return nil
end
return a, b, c, d, e, f
... | Lua |
name = name;
}
agree(staff: Staff): void {
let restDays: number | undefined = staff.restDays;
const staffName = staff.name;
if (!!restDays) {
if (restDays === 1) {
console.log(`${staffName}你请假${restDays}天,去找部门副经理审批吧!`);
}else if(restDays >=2 && re... | Typescript |
-query : <boolean> | <selector>
@mixin susy-breakpoint(
$query,
$layout: false,
$no-query: $susy-media-fallback
) {
@include susy-media-router($query, $no-query) {
@if $layout {
@include with-layout($layout) {
@content;
}
} @else {
@content;
}
}
}
// Susy Media
// ----... | CSS |
m_iterations++;
++statsAvgIterations;
// End check
if (m_iterations > m_maxIterations) return false;
/* Compute the tangent vectors for the current path */
statsNonManifold.incrementBase();
if (!computeTangents()) {
++statsNonManifold;
#if MTS_MANIFOLD_DEBUG == 1
cout ... | C++ |
omaticGeneration,
ManualEditing,
MouseWheelUp,
MouseWheelDown,
ResetClippingPlane,
Moving
};
class CommonGizmosDataBase;
class AssembleViewDataBase;
namespace CommonGizmosDataObjects {
class SelectionInfo;
class InstancesHider;
class HollowedMesh;
class Raycaster;
class Object... | C++ |
om:.8rem;margin-top:0;width:11.7rem}[dir=ltr] .md-typeset .inline.end{float:right}[dir=rtl] .md-typeset .inline.end{float:left}[dir=ltr] .md-typeset .inline.end{margin-left:.8rem;margin-right:0}[dir=rtl] .md-typeset .inline.end{margin-left:0;margin-right:.8rem}}.SlectBox, .SlectBoxa { width: 200px; padding: 5px; }
/*t... | CSS |
}.uxcore .kuma-menu-none-border-dark .uxcore .kuma-menu-item-selected:after{border-right:0}.uxcore .kuma-menu-none-border-dark .uxcore .kuma-menu-item-selected>a,.uxcore .kuma-menu-none-border-dark .uxcore .kuma-menu-item-selected>a:hover{color:#fff}.uxcore .kuma-menu-none-border-dark .uxcore .kuma-menu-item-disabled,.... | CSS |
color: rgba(0, 0, 0, 0.87); } }
@media only screen and (min-width: 60em) {
[data-md-color-primary="white"] .md-search__input {
background-color: rgba(0, 0, 0, 0.07); }
[data-md-color-primary="white"] .md-search__input::-webkit-input-placeholder {
color: rgba(0, 0, 0, 0.54); }
[data-md-color-pr... | CSS |
summary>
CombinedOnlyArmourPct = 5201,
/// <summary>
/// combined_armour_+%
/// </summary>
CombinedArmourPct = 5202,
/// <summary>
/// combined_only_armour_+%_final
/// </summary>
CombinedOnlyArmourPctFinal = 5203,
/// <summary>
/// combined_evasion_rating_+%_final
/// </summary>
CombinedEv... | C# |
et.minecraft.tileentity.TileEntity;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.MathHelper;
import net.minecraft.world.IBlockAccess;
import net.minecraft.world.World;
public class PinkCloudBroadcaster extends BlockContainer {
public PinkCloudBroadcaster(Material p_i45386_1_) {
super(p_i45386... | Java |
-20
last_modified_at: 2020-06-20
---
인프런에 있는 홍정모 교수님의 **홍정모의 게임 만들기 연습 문제 패키지** 강의를 듣고 정리한 필기입니다.😀
[🌜 공부에 사용된 홍정모 교수님의 코드들 보러가기](https://github.com/jmhong-simulation/GameDevPracticePackage)
[🌜 [홍정모의 게임 만들기 연습 문제 패키지] 강의 들으러 가기!](https://www.inflearn.com/course/c-2)
{: .notice--warning}
<br>
# Chapter 3. 게임 ... | Markdown |
// Copyright (c) Microsoft. All rights reserved.
using System;
namespace Microsoft.SemanticKernel.Agents.Runtime;
/// <summary>
/// Represents metadata associated with an agent, including its type, unique key, and description.
/// </summary>
public readonly struct AgentMetadata(string type, string key, string descr... | C# |
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
// Set of Material typography styles to start with
val Typography = Typography(
bodyLarge = Tex... | Kotlin |
),
css_class="form-group col-md-4 mb-0",
),
Column(
PrependedText("start_date", '<i class="fas fa-hourglass-start"></i>'),
css_class="for... | Python |
ers[s.name] = s;
});
}
}
private async cacheMap(path: string, bufferLoader: () => Promise<Buffer>): Promise<string> {
const data = this.getMapData(path);
if (!await fs.pathExists(data.fileName)) {
await fs.mkdirp(dirname(data.fileName));
let buffer = ... | Typescript |
30)
/* 803F3CA0 003F0BE0 D8 E1 01 00 */ stfd f7, 0x100(r1)
/* 803F3CA4 003F0BE4 D8 C1 01 08 */ stfd f6, 0x108(r1)
/* 803F3CA8 003F0BE8 D8 A1 01 10 */ stfd f5, 0x110(r1)
/* 803F3CAC 003F0BEC D8 81 01 18 */ stfd f4, 0x118(r1)
/* 803F3CB0 003F0BF0 D8 61 00 E0 */ stfd f3, 0xe0(r1)
/* 803F3CB4 003F0BF4 D8 41 00 E8 */ ... | Assembly |
addTask.setOnClickListener { saveNote() }
}
private fun saveNote() {
val title = editTextTitle?.text.toString().trim { it <= ' ' }
val description = editTextDescription?.text.toString().trim { it <= ' ' }
if (title.isEmpty() || description.isEmpty()) {
Toast.makeTex... | Kotlin |
ze
;Schreib minus Lesezeiger
;BCC berspringe nchstes
;plus Lnge
;ergibt Anzahl belegter Pltze
;-------------------------------------------------------------------------
;---------
;<KRIT?> als Kommentar: Dieser Befehl durfte nur wegen Interruptsperre
;an dieser Stelle etwas vorgezogen werden und mte normalerweise ?
... | Assembly |
) -> Result<Option<Entity>> {
unimplemented!()
}
}
#[derive(Debug, Deserialize)]
#[serde(rename_all = "camelCase", deny_unknown_fields)]
pub(super) struct AssertCollectionNotExists {
collection_name: String,
database_name: String,
}
#[async_trait]
impl TestOperation for AssertCollectionNotExi... | Rust |
amkeit
Ein Hauptgrund für die anhaltende kulturelle Wirkung des *Symphonic Black Metal* liegt im ständigen Spiel mit Provokation und Anpassung. Schon in den späten **1990er-Jahren** begannen Medien, nicht nur über die Musik, sondern auch über die kontroversen Bühnenshows und die ideologischen Hintergründe der Szene zu... | Markdown |
type==SLIDER) {
Slider sl=(Slider)n.control;
UUtil.log(i+"| "+sl.name()+txt.DELIM+sl.value()+" "+sl.id()+" "+n.id);
txt.add(sl.name()).add(sl.id()).add(n.type).
add(sl.value()).add(sl.min()).add(sl.max()).endLn();
}
if(n.type==BUTTON) {
Button b=(Button)n.control;
txt.add(b.na... | Java |
-- made by Antoine Buirey
MAX_MSG_LENGTH = 8
-- input channels
-- number
KEY_PRESSED_X_CHANNEL = 3
KEY_PRESSED_Y_CHANNEL = 4
-- channels numbers from 25 to 32 will be the letters of the message
-- boolean
KEY_PRESSED_CHANNEL = 1
-- output channels
-- number
-- c... | Lua |
print("github") | Python |
{
return false;
}
return true;
}
void tLocalPlayerEntity::tLocalPlayerEntityFunctions::GetLocalPlayerEntityInfo(tLocalPlayerEntityInfo* LocalPlayerEntityInfo)
{
if (LocalPlayerEntityInfo)
{
LocalPlayerEntityInfo->Valid = false;
if (pIO.ClientModuleBaseAddress)
{
pIO.Functions.Read<DWORD>(&LocalPlayerEnti... | C++ |
tring | null): I_setError =>
({type: appActionTypes.SET_ERROR, key, message});
/* ====================
thunk actions
==================== */
import Player from '../src/modules/core/player/player';
import Stock from '../src/modules/core/player/stock';
import Route from '../src/modules/core/route';
import {
Pl... | Typescript |
# Copyright 2023 RT Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | Python |
4bb5a6u, 0x502036a5u, 0x4370c551u, 0xb11b4652u,
0x65d122b9u, 0x97baa1bau, 0x84ea524eu, 0x7681d14du,
0x2892ed69u, 0xdaf96e6au, 0xc9a99d9eu, 0x3bc21e9du,
0xef087a76u, 0x1d63f975u, 0x0e330a81u, 0xfc588982u,
0xb21572c9u, 0x407ef1cau, 0x532e023eu, 0xa145813du,
0x758fe5d6u, 0x87e466d5u, 0x94b49521u, 0x66d... | Kotlin |
nc() error) {
var es errorState
return func(yield func(*ListObject, func(io.Writer, *ReaderOptions) error) bool) {
defer es.Done()
for {
obj, itErr := i.Next(ctx)
if itErr == io.EOF {
return
}
if itErr != nil {
es.Set(itErr)
return
}
downloadFunc := func(w io.Writer, opts *ReaderOpti... | Go |
]]) {
if (item[props[0]].toLowerCase().includes(value.toLowerCase())) {
return true
}
}
}
if (props.length === 2) {
if (item[props[0]]) {
if (
item[props[0]][props[1]].toLowerCase().includes(value.toLowerCase())
) {
... | Typescript |
h_224c2b8 - Jumppoints_224bbc0 - 2
.hword branch_224c308 - Jumppoints_224bbc0 - 2
.hword branch_224c33c - Jumppoints_224bbc0 - 2
.hword branch_224c344 - Jumppoints_224bbc0 - 2
.hword branch_224c35e - Jumppoints_224bbc0 - 2
.hword branch_224c3a2 - Jumppoints_224bbc0 - 2
.thumb
branch_224bbe4: @ 224bbe4 :thumb
ldr r... | Assembly |
Version ?: "")
@Suppress("UnusedPrivateMember")
private val appVersion
get() = BuildConfig.VERSION_CODE
private val minAppVersion
get() = myNodeInfo?.minAppVersion ?: 0
// Map a nodenum to a node, or throw an exception if not found
private fun toNodeInfo(n: Int) = nodeDBbyNodeNum[... | Kotlin |
1.34 3.26 16 19 29.13 38.4 29.13 21.21 0 35.48-13.57 38.45-29.19.34-1.91-.92-3.73-2.83-4.08-.42-.07-.86-.07-1.28 0a192.649 192.649 0 01-34.33 2.9z"
fill="#422b0d"
/>
</g>
<path
d="M44.74 87.83v21c.01 9.48 7.69 17.16 17.17 17.17h3.27c9.48 0 17.17-7.69 17.17-17.17V87.61c-18.81 3.7-3... | JavaScript |
returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Ue,Ue,Ue),Ys[Ue]=!0)}d.tag=k... | JavaScript |
f len(pidParts) > 1 {
port = strings.TrimSpace(pidParts[1])
}
return ip, port, nil
}
// Copyright (c) 2019 Uber Technologies, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
/... | Go |
char check[16];
BYTE on;
BYTE option;
{
char *p = argv[i];
if (p[0] == '-')
{
on = FALSE;
p++;
}
else if (p[0] == '+')
{
on = TRUE... | C |
r2
strh r4, [r0]
subs r5, #0x17
adds r0, r1, r5
strh r4, [r0]
adds r2, #4
adds r0, r1, r2
strh r4, [r0]
adds r5, #4
adds r0, r1, r5
strh r4, [r0]
adds r2, #4
adds r0, r1, r2
strh r4, [r0]
adds r5, #4
adds r0, r1, r5
strh r4, [r0]
adds r2, #6
adds r0, r1, r2
strh r4, [r0]
adds r5, #0xc
adds r1, r1, ... | Assembly |
see from the Earth. Superior conjunction is possible for any planet other than the Earth.
*
* @param body
* A planet other than the Earth. Any other body will cause an exception.
*
* @param targetRelativeLongitude
* The desired relative longitude, expressed in degrees. Must be in the range [0, 360).
*
* @param... | Kotlin |
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import unittest
from telemetry.timeline import model as timeline_model
from telemetry.timeline import tab_id_importer
from telemetry.timeline import trace_d... | Python |
_value(&tag);
if (i < 0) {
flb_warn("expecting positive integer, got %" PRId64, i);
return -1;
}
time->tm.tv_sec = i;
time->tm.tv_nsec = 0;
break;
case mpack_type_uint:
time->tm.tv_sec = mpack_tag_uint_valu... | C |
ep do
local xp = self.scaleFunction(v/self.max) * halfWidth + center
glVertex(xp, h1)
glVertex(xp, h2)
if (xp - lastXp < 2) then
glVertex(xp,h1)
glVertex(self.width, h1)
glVertex(xp,h2)
glVertex(self.width, h2)
break
end
lastXp = xp
end
local lastXp = 99999
for v = 0, s... | Lua |
}
static PyObject* LampArray_get_SupportsVirtualKeys(py::wrapper::Windows::Devices::Lights::LampArray* self, void* /*unused*/) noexcept
{
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.Devices.Lights.LampArray", L"SupportsVirtualKeys"))
{
... | C++ |
}
it "12隻 is not kanji" {
assert_eq!(is_kanji("12隻"), false);
}
it "隻。 is not kanji" {
assert_eq!(is_kanji("隻。"), false);
}
}
describe! is_japanese {
it "泣き虫 is japanese" {
assert_eq!... | Rust |
8013A808 00137748 90 01 00 64 */ stw r0, 0x64(r1)
/* 8013A80C 0013774C 48 2D 7B D5 */ bl "__ct__4QuatFf10Vector3<f>"
/* 8013A810 00137750 C0 61 00 DC */ lfs f3, 0xdc(r1)
/* 8013A814 00137754 38 61 01 30 */ addi r3, r1, 0x130
/* 8013A818 00137758 C0 41 00 E0 */ lfs f2, 0xe0(r1)
/* 8013A81C 0013775C C0 21 00 E4 */ ... | Assembly |
MTEWirelessDynamo(
WIRELESS_DYNAMO_ENERGY_HATCH_IV.ID,
"hatch.wireless.transmitter.tier.05",
"IV Wireless Energy Dynamo",
5).getStackForm(1L));
ItemList.Wireless_Dynamo_Energy_LuV.set(
new MTEWirelessDynamo(
WIRELESS_DYN... | Java |
move.l (a7)+,a1
clr.b $fffffa1b.w
movem.l d0/a0,-(a7)
lea $fffffa21.w,a0
move.b #200,(a0)
move.b #8,$fffffa1b.w
move.b (a0),d0
x_882 cmp.b (a0),d0
beq.s x_882
move.b #$fc,$ffff820a.w
move.w #2,d0
x_892 nop
dbf d0,x_892
move.b #$fe,$ffff820a.w
movem.l (a7)+,d0/a0
clr.b $fffffa1b.w
bclr #0,$fffffa0f.w
rte
... | Assembly |
agePart.Body.Length);
using var tnefReader = new TnefReader(stream);
{
var attachments = Part.ExtractAttachments(tnefReader);
var count = attachments.Count;
if (count > 0)
{
Logger.Wri... | C# |
f jid then
(choice and always or never):tag("jid"):text(jid):up();
end
end
prefstanza:add_child(always):add_child(never);
return prefstanza;
end
local function fromstanza(prefstanza)
local prefs = {};
local default = prefstanza.attr.default;
if default then
prefs[false] = default_attrs[default];
end
loc... | Lua |
event.entity.EntityToggleGlideEvent
/**
* @author cookiedragon234 25/May/2020
*/
object AntiElytraFly: PaperBinFeature {
override fun postStartup() {
if (!PaperBinConfig.antiElytraFly) return
Bukkit.getServer().pluginManager.registerEvent(
EntityToggleGlideEvent::class.java,
object: Listener {},
Eve... | Kotlin |
digits int64, scale int32, isConst bool) types.Decimal64 {
if digits > 19 {
digits = 19
}
if digits < -18 {
digits = -18
}
return x.Floor(scale, int32(digits), isConst)
}
func floorDecimal128(x types.Decimal128, digits int64, scale int32, isConst bool) types.Decimal128 {
if digits > 39 {
digits = 39
}
if... | Go |
has_one $key:expr, $value:block
$($rest:tt)*
}) => {
expand_resource_impl!(@$scope $($args),+, {
$($rest)*
});
};
(@$scope:tt $($args:ident),+, {
link $key:expr, $value:block
$($rest:tt)*
}) => {
expand_resource_impl!(@$scope $($args),+, ... | Rust |
对于不支持这个新特性的老内核,Cilium 1.11 中做了兼容;
* TCP 时间戳问题,已经从 Facebook 收到积极反馈,他们也需要这个东西,有望在 12 月份解决。
以下是详细 patch 列表。
## 6.1 Merged cgroup v1/v2 patches
1. [bpf, cgroups: Fix cgroup v2 fallback on v1/v2 mixed mode](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8520e224f547cd070c7c8f97b1fc6d58cff7c... | Markdown |
.f09FE563B
L3_2, L4_2, L5_2 = L3_2(L4_2)
L1_2 = L1_2(L2_2, L3_2, L4_2, L5_2)
L2_2 = 0
L3_2 = A0_2[11]
while true do
L4_2 = L3_2.length
if not (L2_2 < L4_2) then
break
end
L4_2 = L3_2[L2_2]
L2_2 = L2_2 + 1
L5_2 = L4_2.name
if L1_2 == L5_2 then
return L4_2
end
end
... | Lua |
BoardSize3x3(object sender, EventArgs e)
{
// Not allow user to click anything when play back the solution
if (fThreadRunning)
return;
BoardSizeHelper(3,3);
}
private void OnBoardSize4x4(object sender, EventArgs e)
{
// Not allow user to click anything when play back the solution
if (fThrea... | C# |
pe: 'yuan' | 'fen' = 'yuan',
): number | string => {
switch (type) {
case 'yuan':
return (Number(value) / 100).toFixed(2);
case 'fen':
return Number(value) * 100;
}
};
export const setClassName = (classNameList: Array<string>) =>
classNameList.join(' ');
/**
* 校验手机号
* @param phone
*/
expo... | Typescript |
0) {
// if we started adding left-columns, try adding right-columns
if (startBackwards && columnNumber + columns.visible < columns.total) {
backwards = false;
}
else if (columns.min === null || visibleColumns + columns.getPaddingCount() >= columns.min) {
break;
... | JavaScript |
/* partial visibility of the menu */
/* top navigation */
/* nav Info Card (appears below the logo) */
/* width is auto */
/* nav DL labels for all child */
/* will be pulled to left as a negative value */
/* MISC Settings
========================================================================== */
/* List Table */
... | CSS |
'''
Python Routines for COsmology and Data I/O
PyRCODIO Pandas Version
Edoardo Carlesi 2020
ecarlesi83@gmail.com
main_ics_density_plot.py: produce a large number of plots of density and velocities in the ICs
'''
import numpy as np
import read_files as rf
import plot_utils as pu
import config as cf... | Python |
thumbnailImage: string;
useNen?: boolean;
isDead?: boolean;
isArrested?: boolean;
isAttendedTraining?: boolean;
note?: string;
}
export interface IPrince extends IPerson {
motherId: string;
nenBeastNote: string;
nenNote?: string;
nenBeastThumbnailImage: string | null;
nenBeast... | Typescript |
if (text.contains("%j")) {
text = text.replace("%j", String.valueOf(calendar.get(Calendar.DAY_OF_YEAR)));
}
if (text.contains("%m")) {
text = text.replace("%m", String.valueOf(calendar.get(Calendar.MONTH) + 1));
}
if (text.contains("%M")) {
text = text.replace("%M", String.valueOf(calendar.get(Calenda... | Java |
{
checkIfActivityIsVisible(MainActivity::class.java)
performClick(R.id.open_tv_screen_btn)
checkIfActivityIsVisible(TitleSubtitleViewDemoActivity::class.java)
Espresso.pressBack()
performClick(R.id.open_shadow_screen_btn)
checkIfActivityIsVisible(ShadowLayoutActivity::... | Kotlin |
eom == null) return null;
IShape gR = GamaShapeFactory.createFrom(geom);
for (final IShape g : geoms) {
if (g != null && geom.intersects(g)) {
gR = SpatialOperators.minus(scope, gR, g);
if (gR == null) return null;
if (gR.getGeometries().size() > 1) {
for (final IShape sh : gR.getGeometries()) ... | Java |
*)&iin, sizeof (int));
iin=p->origin_k;
headout.write((char*)&iin, sizeof (int));
// xyz origin
ddn=p->originx;
headout.write((char*)&ddn, sizeof (double));
ddn=p->originy;
headout.write((char*)&ddn, sizeof (double));
ddn=p->originz;
headout.write((char*)&ddn, si... | C++ |
expect(account.creator.address,
'HcEjuQ7Eate3eyNBaZV2cwATcdAH8F7VGygVqkkoqUjf');
expect(account.auctioneerAddress.address,
'sEac3HrsYnHSrbqx5BUBHpiXrBmJvhXMo9pMcYE4zYL');
expect(account.feeWithdrawalDestination.address,
'6jwLNd4w4RfZsj5WCszKB4wKHmU2gX24JLq2DH42No5s');
expect(acc... | Dart |
s and outputs must be in 32-bit floating-point format.
### `MAX_POOL_2D`
* Inputs and outputs must be in 32-bit floating-point format.
* 1x1 pooling with non-unit stride is not supported.
* Fused `NONE`, `RELU`, `RELU_N1_TO_1`, and `RELU6` activations are supported,
but fused `TANH` and `SIGN_BIT` activations are n... | Markdown |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | C |
wantNullBool sql.NullBool
wantFloat64 float64
wantNullFloat64 sql.NullFloat64
wantInt32 int32
wantNullInt32 sql.NullInt32
wantInt64 int64
wantNullInt64 sql.NullInt64
wantInt int
wantString string
wantNullString sql.NullString
gotBool bool
gotNullBool ... | Go |
tRange(2, 2 + value.length, value);
return bytes;
}
//print Hexadecimal Uint8List
String printHex() {
Uint8List bytes = this.toList();
return bytes.map((byte) => '0x' + byte.toRadixString(16).padLeft(2, '0') + " ").join();
}
}
///
/// Class repesents one entire data set in a Data Field. MRTD add... | Dart |
AddFormItem(ev.navBar)
ev.flex = tview.NewFlex().
SetDirection(tview.FlexRow)
formWidth, formHeight := uiutils.MinFormSize(ev.form)
centeredForm := uiutils.CenterHorizontally(formWidth, ev.form)
ev.flex.AddItem(centeredForm, formHeight+ev.navBar.GetHeight(), formProportion, true)
ev.centeredFlex = uiutils.Ce... | Go |
G.Mesh[] renderMeshes;
var joinedMesh = new RG.Mesh();
RG.MeshingParameters meshParams = RG.MeshingParameters.DocumentCurrentSetting(doc);
switch (geometry)
{
case RG.Brep brep:
renderMeshes = RG.Mesh.CreateFromBrep(brep, meshParams);
break;
case RG.SubD subd:
#pragma warning... | C# |
idian-90: hsl(163.6, 100%, 8.6%);
--viridian-100:hsl(156.9, 100%, 5.1%);
--viridian: var(--viridian-50);
--blue-10: hsl(195, 16.7%, 95.3%);
--blue-20: hsl(190.9, 16.4%, 86.9%);
--blue-30: hsl(190.4, 18.7%, 75.9%);
--blue-40: hsl(203.1, 36.3%, 64.9%);
--blue-50: hsl(208.1, 34.2%, 55.9%);
--blue-60: hsl(2... | CSS |
ed unexpected column names.", emps.columnNames(), Arrays.asList(ALL_EMP_FIELDS));
List<List<Object>> expEmps = select(node.cache(EMP_CACHE_NAME), null, emps.columnNames().toArray(new String[0]));
assertContainsEq(emps.values(), expEmps);
});
}
/**
* Check SELECT query wit... | Java |
("restricted") }.toMutableList()
if (!SCSettings.unrestrictedAssociates!!) {
aptitudes = aptitudes.filter { it.tags.contains("startingOption") }.toMutableList() //Only pick aptitudes available from the starting interaction
}
var picks = ArrayList<SCBaseAptitudePlugin>()
for... | Kotlin |
ror: operands are not valid for this GPU or mode
v_subrev_co_ci_u32 v5, vcc, null, v2, vcc
// W64: encoding: [0x7c,0x04,0x0a,0x44]
// W32-ERR: :[[@LINE-2]]:{{[0-9]+}}: error: operands are not valid for this GPU or mode
v_subrev_co_ci_u32 v5, vcc, -1, v2, vcc
// W64: encoding: [0xc1,0x04,0x0a,0x44]
// W32-ERR: :[[@LIN... | Assembly |
\
\xbd\xfa\x0d\xeco\xb8\x0dj>)%6[PC\xe1\
\xf0\xfeC(/-o\x93\xc7\xcd\xc2\x9d\xb5\xca\xe8\xda\
\x19\x19];c\xda\xe5\x97`\xd5g\xff\xc1G\xef~\
\x88\x90\x09\xb3k\x1bWo\xc0\x8dw\xded\xb8\x1d\x8a\
NC\x5c=\x91\xa8\xd9\x90d\xd3Q\x15R\xb2\xcc\x99\
\x8d\xddo$c\xe8\x1d\x95\xc0\x19{\x004\x97}\x12\
.T\x1c(\xc2\x06\xbbz\xc0)Z\xdf\xdaU8... | Python |
local zcl_clusters = require "st.zigbee.zcl.clusters"
local capabilities = require "st.capabilities"
local battery = capabilities.battery
local battery_defaults = require "st.zigbee.defaults.battery_defaults"
local utils = require "st.utils"
local can_handle = function(opts, driver, device)
if device.network_type ... | Lua |
allocate with careful consideration to make sure that the physical memory
/// allows the amount of allocation. We highly recommend not using this method. However, we support this to accomodate some VMs that require this
/// behavior. This call does not disable explicit GCs (through handle_user_collection_request()).
//... | Rust |
namespace TraktNet.Objects.Post.Syncs.Ratings.Json.Reader
{
using Newtonsoft.Json;
using System.Threading;
using System.Threading.Tasks;
using TraktNet.Objects.Json;
internal abstract class ASyncRatingsPostObjectJsonReader<TSyncRatingsPost> : AObjectJsonReader<TSyncRatingsPost>
where TSync... | C# |
from __future__ import annotations
from virtualenv.discovery.py_info import PythonInfo
from virtualenv.discovery.py_spec import PythonSpec
from .pep514 import discover_pythons
# Map of well-known organizations (as per PEP 514 Company Windows Registry key part) versus Python implementation
_IMPLEMENTATION_BY_ORG = {
... | Python |
require.NoError(t, err)
err = os.WriteFile(filepath.Join(subModuleDir, "main.tf"), []byte("hello"), 0644)
require.NoError(t, err)
err = os.Symlink("test-module", filepath.Join(moduleDir, "symlink-module"))
require.NoError(t, err)
targetDir := filepath.Join(tmpdir, "target")
_ = os.Mkdir(targetDir, os.ModePerm)... | Go |
sbfx lr, r8, #16, #16
#endif
mul r12, r11, r12
mul lr, r11, lr
asr r12, r12, #26
asr lr, lr, #26
mul r12, r10, r12
mul lr, r10, lr
sub lr, r8, lr, lsl #16
sub r8, r8, r12
lsr lr, lr, #16
#if defined(WOLFSSL_ARM_ARCH) && (WOLFSSL_ARM_ARCH < 7)
bic r8, r8, #0xff0000
bic r8, r8, #0xff000000
orr r8, r8, lr, lsl... | Assembly |
CqMDgSXKejLS2jx4GDjI1ZTXg++0AMJ8\n'+
'sJ74pWzVDOfmCEQ/7wXs3+cbnXhKriO8Z036q92Qc1+N87SI38nkGa0ABH9CN83H\n'+
'mQqt4fB7UdHzuIRe/me2PGhIq5ZBzj6h3BpoPGzEP+x3l9YmK8t/1cN0pqI+dQwY\n'+
'dgfGjackLu/2qH80MCF7IyQaseZUOJyKrCLtSD/Iixv/hzDEUPfOCjFDgTpzf3cw\n'+
'ta8+oE4wHCo1iI1/4TlPkwmXx4qSXtmw4aQPz7IDQvECgYEA8KNThCO2... | Markdown |
d, maxMbInputPerTick: Int, ratio: Double, minTemp: Double?, maxTemp: Double?): Int {
// Check that we can put the amount into the output, then pull what we can from the input and put to the output
val maxMbOutputPerTick = ceil(maxMbInputPerTick * ratio).toInt()
//println("maxMbInputPerTick: $ma... | Kotlin |
//
// CMDownloadInfo.h
// Cumulus
//
// Created by John Clayton on 4/16/13.
// Copyright (c) 2013 Fivesquare Software, LLC. All rights reserved.
//
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redist... | C |
},
['blocklistchat'] = {
['1'] = '%s has now been blocklisted, and A will leave whenever A am added there!',
['2'] = '%s is a usar, thes commaund is anely for blocklisting tauks such as gruips and channels!',
['3'] = '%s daesna appeir tae be a valid tauk!'
},
['bugreport'] = {
... | Lua |
.353-10.289-4.019-15.371-15.617-11.353-25.906 14.103-36.083 26.72-61.235 27.255-176.036-28.734-3.339-57.683-9.793-88.689-17.114-8.6-2.031-13.926-10.648-11.895-19.249 2.03-8.6 10.647-13.926 19.249-11.896 105.222 24.845 135.48 24.893 240.904 0 8.599-2.022 17.218 3.297 19.249 11.896zm-177.895-42.517c0-21.094 17.1-38.193 3... | JavaScript |
objective_1 = {
1
},
objective_2 = {
2
},
objective_3 = {
5,
120
},
bufficon = {}
},
[10301072] = {
sink_limit = 1,
ai = 0,
guide_desc = "",
type = 7,
ai_mov = 0,
add_icon = "",
bgm = "battle-1",
exp_commander = 0,
time_limit = 120,
exp_commander_ratio = 30,
dungeon_id = ... | Lua |
.substring(it) }
fun getFromKtFile() =
currentFile.getKtFile()?.let { ktFile ->
ktFile.textRange.cutOut(range).let { cutOut ->
ktFile.text.let { textValue ->
cutOut.substring(textValue)
}
}
}
getFromFirSource() ?: getFromKtFile()
} catch (e: Throwa... | Kotlin |
ubsubMessage(4)] = "4"
assertThat(ttlCache.size).isEqualTo(1)
ttlCache[createPubsubMessage(5)] = "5"
assertThat(ttlCache.size).isEqualTo(2)
ttlCache -= createPubsubMessage(5)
assertThat(ttlCache.size).isEqualTo(1)
time.set(4000)
ttlCache[createPubsubMessage(... | Kotlin |
BarRect = new((int)drawPos.X - barWidth / 2, (int)drawPos.Y - barHeight / 2, barWidth, barHeight);
Utils.DrawInvBG(spriteBatch, progressBarRect, new Color(6, 80, 84, 255) * 0.785f * size);
// 绘制进度条主体
DrawProgressBar(spriteBatch, pixel, drawPos, eventKillRatio, size, barWidth);
... | C# |
local MessagesCount = 0
-- [ Code ] --
-- [ Events ] --
RegisterNetEvent('mercy-misc/client/me', function(Source, Text)
local Alpha = 0
MessagesCount = MessagesCount + 1
local MessageCountSpacing = MessagesCount + 0.1
local Distance = 0.1
local Ped = GetPlayerPed(GetPlayerFromServerId(Source))
... | Lua |
23_022553A0
thumb_func_start ov23_022553E4
ov23_022553E4: ; 0x022553E4
push {r3, r4, r5, lr}
add r5, r1, #0
add r0, r5, #0
bl ov20_022538A0
add r4, r0, #0
add r0, r5, #0
bl ov20_022538A4
add r1, r0, #0
ldr r0, [r4, #4]
bl ov23_02255410
ldr r0, [r4, #4]
mov r1, #6
bl BgCommitTilemapBufferToVram
add r0, r... | Assembly |
! {
/// This is used to manage variable definitions within scopes.
/// When a function is called, a scope is pushed on the scope stack,
/// and all new definitions are contained in the new scope.
/// When the function call finishes, the scope is popped and freed.
pub static ref SCOPE_STACK: Mutex<Ve... | Rust |
r(2, 16, pcmSamples.size(), (unsigned int)samplingRate, false);
fwrite(wavHeader, 1, 0x2C, outFileTempRaw);
delete[] wavHeader;
for (size_t x = 0; x < pcmSamples.size(); x++)
{
fwrite(&pcmSamples[x], 1, 2, outFileTempRaw);
}
unsigned char keyBase = 0x3C;
wavHeader = GenerateWavSmplHeader(keyBase, false);
fw... | C++ |
I (XML Namespaces 1.1). </p></div>\n',summary:"<p> Constructs an xs:QName value given a namespace URI and a lexical\n QName.</p>",annotation_str:"",annotations:[],updating:!1,parameters:[{name:"paramURI",type:"xs:string",occurrence:"?",description:""},{name:"paramQName",type:"xs:string",occurrence:null,d... | JavaScript |
0x00,0x13,0xed,0xd3,0x00,0x03,0x06,0xf4]
v_mfma_f32_16x16x8bf16 a[0:3], a0, v1, a[1:4]
// GFX908: v_mfma_f32_16x16x8bf16 a[0:3], a0, v1, a[1:4] ; encoding: [0x00,0x00,0xed,0xd3,0x00,0x03,0x06,0x0c]
v_mfma_f32_16x16x8bf16 a[0:3], a0, v1, a[1:4] cbsz:3 abid:2 blgp:7
// GFX908: v_mfma_f32_16x16x8bf16 a[0:3], a0, v1, a[1... | Assembly |
les = append(triples, testutils.MakeTripleWithFloatValue(1, 0, 150)...)
triples = append(triples, testutils.MakeTripleWithFloatValueStartingFromKey(1, 4, 0, 0)...)
triples = append(triples, testutils.MakeTripleWithFloatValueStartingFromKey(5, 4, 1, 0)...)
statMap := testutils.PerPartitionVarianceStatistics(minValu... | Go |
x2 v[1:2], off, s[4:7], s1 ; encoding: [0x00,0x00,0x74,0xe0,0x00,0x01,0x01,0x01]
buffer_store_dwordx3 v[0:2], off, s[4:7], s0 offset:4095
// SICI: buffer_store_dwordx3 v[0:2], off, s[4:7], s0 offset:4095 ; encoding: [0xff,0x0f,0x7c,0xe0,0x00,0x00,0x01,0x00]
// VI: buffer_store_dwordx3 v[0:2], off, s[4:7], s0 offset:... | Assembly |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.