content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
---@diagnostic disable: duplicate-set-field
Vehicles = Vehicles or {}
-- Vehicle properties setter function
--
-- Inspired by and derived from vehicle property handlers in:
-- ESX Framework (https://github.com/esx-framework/esx_core) [License: GPLv3]
-- QBCore Framework (https://github.com/qbcore-framework/qb-cor... | Lua |
rotateY(0)}50%{-webkit-transform:perspective(120px) rotateX(-180.1deg) rotateY(0);transform:perspective(120px) rotateX(-180.1deg) rotateY(0)}100%{-webkit-transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg);transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}.card-pricing{position:relative}.ca... | CSS |
{
const internal = (node: TypedNode): DesugaredNode => shallowDesugarDestructuring(mapNode(iterator, node));
const iterator = makeExpressionIterator(internal);
return internal(node);
}
export function simpleFunctionMapIterator<A, B>(f: (a: A) => B): (expression: SimpleFunctionExpression<A>) => SimpleFunctionExp... | Typescript |
.2-17 72.1l-22.2 74.3-80.7-239.6zm81.4 297.2l68.1-196.9c12.7-31.8 17-57.2 17-79.9 0-8.2-.5-15.8-1.5-22.9 17.4 31.8 27.3 68.2 27.3 107 0 82.3-44.6 154.1-110.9 192.7z"],wpbeginner:[512,512,[],"f297","M462.799 322.374C519.01 386.682 466.961 480 370.944 480c-39.602 0-78.824-17.687-100.142-50.04-6.887.356-22.702.356-29.59 0... | JavaScript |
NUSED)野性皮革",
[56480] = "野性披風",
[56481] = "海嘯護腕",
[56482] = "海嘯腰帶",
[56483] = "黑暗烙印護腕",
[56484] = "黑暗烙印手套",
[56485] = "風縛護腕",
[56486] = "風縛手套",
[56487] = "鋒銳殼體護腕",
[56488] = "鋒銳殼體護肩",
[56489] = "硬化鱗片披風",
[56490] = "海嘯手套",
[56491] = "黑暗烙印長靴",
[56492] = "風縛長靴",
[56493] = "鋒銳殼體長靴",
[56494] = "海嘯長靴",
[56495] = "黑暗烙印護肩",
[56... | Lua |
return true
}
override fun unload() {
PluginManager.getInstance().unregisterPluginLoader(this)
}
override fun matchPath(path: Path): Boolean {
return if (path.isDirectory()) {
path.resolve("plugin.groovy").canRead()
} else {
path.name.toString().endsW... | Kotlin |
지의 크기에 맞는 Rect
private val realImageRect = RectF()
// 현재 화면에 그려지고 있는 Rect, Matrix
private val curImageRect = RectF()
val boundLeft: Float
get() = max(curImageRect.left, 0f)
val boundTop: Float
get() = max(curImageRect.top, 0f)
val boundRight: Float
get() = min(curImag... | Kotlin |
,
{'d', 1},
{'w', 60},
{'press_a', 4},
{'w', 180},
{'press_b', 10},
{'d', 1},
{'w', 60},
{'d', 2},
{'w', 60},
{'d', 2},
{'w', 60},
{'d', 2},
{'w', 60},
{'r', 2},
{'d', 3},
{'l', 2},
{'w', 180},
{'press_b', 9},
{'d', 3},
{'l', 7},
{'d', 8},
{'l', 4},
{'u', 2},
{'l', 4},
{'w', 60},
{'l', 2},
{'w', 60},
{'l', 2},
{'w', 60... | Lua |
YCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAGYSURBVEhL5ZSvTsNQFMbXZGICMYGYmJhAQIJAICYQPAACiSDB8AiICQQJT4CqQEwgJvYASAQCiZiYmJhAIBATCARJy+9rTsldd8sKu1M0+dLb057v6/lbq/2rK0mS/TRNj9cWNAKPYIJII7gIxCcQ51cvqID+GIEX8ASG4B1bK5gIZFeQfoJdEXOfgX4QAQg7kH2A65yQ87lyxb27sggkAzAuFhbbg1K2kgCkB1bVwyI... | CSS |
n:focus,html body .ui-group-theme-b .ui-btn:focus,html head+body .ui-btn.ui-btn-b:focus,.ui-page-theme-b .ui-focus,html .ui-bar-b .ui-focus,html .ui-body-b .ui-focus,html body .ui-group-theme-b .ui-focus,html head+body .ui-btn-b.ui-focus,html head+body .ui-body-b.ui-focus{-webkit-box-shadow:0 0 12px #2ad;-moz-box-shado... | CSS |
.round;
var _loc_4: any = Math.pow(10, param2);
return param3(param1 * _loc_4) / _loc_4;
}// end function
public static average(...args): number {
/*
//args = args[0] is Array ? (args[0]) : (args);
if (typeof(args[0]) == " ")
args = args[0];
var _loc... | Typescript |
lc = ArchivedHabitScoreCalculator(
habitScore: HabitScore.getImp(
type: HabitType.normal, targetDays: 10, dailyGoal: 1),
startDate: HabitDate(2020, 1, 1),
endDate: HabitDate(2020, 1, 10),
iterable: data.keys,
isAutoComplated: (date) => data[dat... | Dart |
r),
})
return err
}
// TryWrite tries to write len(p) bytes.
func (w *Writer) TryWrite(p []byte) {
if w.TryError == nil {
_, w.TryError = w.Write(p)
}
}
// TryWriteByte tries to write 1 byte.
func (w *Writer) TryWriteByte(b byte) {
if w.TryError == nil {
w.TryError = w.WriteByte(b)
}
}
// TryWriteUint16 tr... | Go |
fi::PyList_New(self.len() as Py_ssize_t);
let t = err::cast_from_owned_ptr_or_panic(py, ptr);
for (i, e) in self.iter().enumerate() {
let obj = e.to_py_object(py).into_object();
ffi::PyList_SetItem(ptr, i as Py_ssize_t, obj.steal_ptr());
}
... | Rust |
crollView pagingEnabled={true}>`功能类似。我们或许希望统一成`<ViewPager>`。
- `ActivityIndicator`可以跨平台地渲染一个原生的加载(loading)指示器(目前在iOS上使用`ActivityIndicatorIOS`,而在Android上使用`ProgressBarAndroid`)
- `ProgressBar`可以跨平台渲染一个水平的进度条(目前只在iOS上支持,使用`ProgressViewIOS `)
### 使用第三方的原生模块
[JS.coach](https://js.coach/react-native)上有很多非常优秀的第三方模块。
... | Markdown |
from the specified zone key
* ([copyZoneX], [copyZoneZ]) and extending [BlockBuilder.zoneWidth] zones along the x-axis and
* [BlockBuilder.zoneLength] zones along the z-axis for **each level**.
*
* This function behaves like [copy], but instead of copying a block of zones at a single level,
* ... | Kotlin |
fetchOptions.followRedirects = Remote.RedirectT.NONE // or ALL
// }
fun getBranchList(repo:Repository, branchType:Branch.BranchType=defaultBranchTypeForList, excludeRemoteHead:Boolean=false):List<BranchNameAndTypeDto> {
val isDetached = repo.headDetached()
var head:Reference?=null
... | Kotlin |
e
</script>
```
If the extension script needs to be included before the xtypejs script, or the `xtype` global is not available (or is using a different variable name) when the extension script is included, the extension will be exported instead to a global variable named `xtypejsIntrospectionExtension`, which must the... | Markdown |
Req.ListenerQueryItem.RsPorts) != len(lblReq.ListenerQueryItem.RsIPs) {
return nil, nil, errors.New("rs_port and rs_ip num must be equal")
}
for idx, ip := range lblReq.ListenerQueryItem.RsIPs {
targetIPPortMap[fmt.Sprintf("%s_%d", ip, lblReq.ListenerQueryItem.RsPorts[idx])] = struct{}{}
}
}
// 统计每个目标组有多... | Go |
future date.`
});
}
if (sowingDate) {
farmsObj.status = 'Growing';
}
const farmModel = new Farms(farmsObj);
const farmDocument = await farmModel.save();
res.status(200).json({
farmId: farmDocument.id
});
} catch (error) {
... | Typescript |
; Generated with ikazuchi 1.0 by riidefi
; Object File: NWC24FileAPI
; Segments:
; .text: 0x80463144 -> 0x80464410
; .data: 0x805ea8e8 -> 0x805ea918 (805ea914 -> 805ea918 (size 0004/0x0004) is greedily claimed anonymous data)
; .sdata: 0x806b2828 -> 0x806b2838 (806b2834 -> 806b2838 (size 00... | Assembly |
from DocumentationUtils import CommandsUtils
from mdutils.mdutils import MdUtils
#%%
def generateShapeWorksCommandDocumentation(mdFilename = '../../docs/tools/ShapeWorksCommands.md', add_toc = False):
# settings from Executable.cpp
opt_width = 32
indent = 2
spacedelim = ''.ljust(indent)
... | Python |
assertThat(input.getCodePointsOffsetLength(19, 1), is(4));
assertThat(input.getCodePointsOffsetLength(23, 3), is(9));
}
@Test
public void codePointCount() {
input = builder.build();
assertThat(input.codePointCount(0, 2), is(1));
assertThat(input.codePointCount(0, 7), is(4... | Java |
/*
* auto-mute and auto-mic switching
* CS421x auto-output redirecting
* HP/SPK/SPDIF
*/
static void cs_automute(struct hda_codec *codec)
{
struct cs_spec *spec = codec->spec;
/* mute HPs if spdif jack (SENSE_B) is present */
spec->gen.master_mute = !!(spec->spdif_present && spec->sense_b);
snd_hda_gen_updat... | C |
key string, timeout int) (int, error) {
return Int(c.BRPop(key, timeout))
}
// BRPopInt64 BRPop的工具方法,元素类型为int64时
func (c *Cacher) BRPopInt64(key string, timeout int) (int64, error) {
return Int64(c.BRPop(key, timeout))
}
// BRPopString BRPop的工具方法,元素类型为string时
func (c *Cacher) BRPopString(key string, timeout int) (s... | Go |
the value of a specialized variable to the stack string.
*/
static ssize_t
varvalue(char *name, int varflags, int flags, struct strlist *var_str_list)
{
int num;
char *p;
int i;
int sep = 0;
int sepq = 0;
ssize_t len = 0;
char **ap;
int syntax;
int quoted = varflags & VSQUOTE;
int subtype = varflags & VSTYP... | C |
model = 16440}
models.legs[11930] = { name = "Versa Breeches" , enl = "versa breeches", model = 16442}
models.legs[11931] = { name = "Versa Breeches +1" , enl = "versa breeches +1", model = 16442}
models.legs[11932] = { name = "Lore Slops" , enl = "lore slops", model = 16499}
models.legs[11933] = { name = "Lore Slo... | Lua |
byte 0
min_align: .byte 0
xloadflags: .word 0
cmdline_size: .long 4096 # 0x238
# The maximum size of the command line
# without the terminating zero.
# This means that the command line can contain at
# most cmdline_size characters.
# With protocol version 2.05 and earlier, the maximum
#... | Assembly |
self.timer_loop += self.period
measurements = []
for each_id_set in self.select_measurement:
device_device_id = each_id_set.split(",")[0]
device_measure_id = each_id_set.split(",")[1]
device_measurement = get_measurement(device_measure_id)
if not device... | Python |
_OR_ZERO(gpiod_spk_sd);
if (ret)
return ret;
hs_jack_gpio.gpiod_dev = &pdev->dev;
snd_soc_card_hx4700.dev = &pdev->dev;
ret = devm_snd_soc_register_card(&pdev->dev, &snd_soc_card_hx4700);
return ret;
}
static int hx4700_audio_remove(struct platform_device *pdev)
{
gpiod_set_value(gpiod_hp_driver, 0);
gpiod_... | C |
nt-size:2.2rem}#Stencil .Fz-3xl{font-size:2.4rem}#Stencil .Fz-4xl{font-size:2.6rem}#Stencil .Fz-30{font-size:3rem}#Stencil .Fz-35{font-size:3.5rem}#Stencil .Fz-40{font-size:4rem}#Stencil .Fz-45{font-size:4.5rem}#Stencil .Fz-50{font-size:5rem}#Stencil .Fz-55{font-size:5.5rem}#Stencil .Fz-60{font-size:6rem}#Stencil .Fz-6... | CSS |
0x8005
/* 1B1CB4 80203C64 8DEFA7C4 */ lw $t7, -0x583c($t7)
/* 1B1CB8 80203C68 3C01800E */ lui $at, 0x800e
/* 1B1CBC 80203C6C C7AE0038 */ lwc1 $f14, 0x38($sp)
/* 1B1CC0 80203C70 8DF80000 */ lw $t8, ($t7)
/* 1B1CC4 80203C74 0018C880 */ sll $t9, $t8, 2
/* 1B1CC8 80203C78 00390821 */ addu $at, $at, $t9
/* 1B1CCC... | Assembly |
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at http://mozilla.org/MPL/2.0/.
--[=[
Extracts data from message fields in `heka.statmetric` messages generated by a
:ref:`config_stat_accum_input` a... | Lua |
-IGDklWZSaY3J5N-HFgeZSms&usqp=CAU'),
// DataModel('19', 'S', 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSZwz5vtndWOj3pg6DAj1IsqwRpVkReTkh5Wy8-NqX6cLmwRTy7UP7NCJ6OOigzKXqSH6U&usqp=CAU'),
// DataModel('20', 'T', 'https://img.freepik.com/premium-vector/avatar-profile-colorful-illustration-2_549209-82.j... | Dart |
"Aiden",
"Rowan",
"Jamie",
"Quinn",
"Haiden",
"Logan",
"Emerson",
"Sherlyn",
"Molly"
};
// Clear the registeredCustomers vector array
Customer::registeredCustomers.clear();
for (auto name : nameList)
{
//... | Markdown |
() != amt {
t.Fatalf("expected %v amt, got %v", amt, r.ReceiverAmt())
}
// Append the route with a node, making the first one take a fee.
fee := lnwire.UnitPrec11(100)
hops = append(hops, &Hop{
PubKeyBytes: Vertex{},
ChannelID: 2,
OutgoingTimeLock: 33,
AmtToForward: amt - fee,
},
)
r,... | Go |
}
// Modificar un usuario
UpdateUsuario(usuario1: Usuario): Observable<Usuario> {
//delete usuario.password;
return this.http.put(getUrl() + 'update', usuario1);
}
// obtener dotos los usuarios
getUsuarios(id:number): Observable<any>{
return this.http.get(getUrl() + 'listausuarios?id='+id);
}
... | Typescript |
ii String
index, reserved_internal = cboe_futures_orderentry_boe_v1_3.reserved_internal.dissect(buffer, index, packet, parent)
-- Dependency element: Message Length
local message_length = buffer(offset - 8, 2):le_uint()
-- Runtime Size Of: Variance Restatement Optional Fields
local size_of_variance_restatem... | Lua |
)
displayText()
displayText("\n§3| §o§4Inventory API Disabled!")
}
displayText()
armor.forEach {
hoverText(
"\n§3| ${it.displayName}",
(listOf(it.displayName) + it.lore)
)
... | Kotlin |
C:\\Windows\\SysWOW64\\msctf.CtfImeSelectEx\"")
#pragma comment(linker, "/export:CtfImeSetActiveContext=\"C:\\Windows\\SysWOW64\\msctf.CtfImeSetActiveContext\"")
#pragma comment(linker, "/export:CtfImeSetCompositionString=\"C:\\Windows\\SysWOW64\\msctf.CtfImeSetCompositionString\"")
#pragma comment(linker, "/export:Ctf... | C++ |
et_chunk(stripes, blocks, m_stride);
let b_cols = b.get_chunk(blocks, pillars, p_stride);
block_fn(m_stride, p_stride,
row_rem, m_rem, col_rem,
a_rows, b_cols, c_chunk);
}
#[inline]
fn block_kernel(m_stride: Stride, p_stride: Stride,
subrow_step: Dim, block_rem: D... | Rust |
pinnedHeaderSliverHeightBuilder: () {
return pinnedHeaderHeight(context);
},
body: buildNestedBody(context)),
));
}
double pinnedHeaderHeight(BuildContext context) => 0.0;
Widget buildNestedHeader(BuildContext context);
Widget buildNestedBody(Bu... | Dart |
te paragraph_builder.cc
if (textAlign != null) {
result[0] |= 1 << 1;
result[1] = textAlign.index;
}
if (textDirection != null) {
result[0] |= 1 << 2;
result[2] = textDirection.index;
}
if (fontWeight != null) {
result[0] |= 1 << 3;
result[3] = fontWeight.index;
}
if (fontStyle != ... | Dart |
Native.setFrameParameter(f, 23, 1, if(p) 1 else 0)
}
/** Gets rear left window **/
fun get_fhl_moe_rl() : Boolean = CanBusNative.getECUParameterB(CanBAddrs.TVR_A2, 22, 1) != 0
/** Sets rear left window **/
fun set_fhl_moe_rl(f: CanFrame, p: Boolean) {
checkFrame(f)
CanBusNative.setFrameParameter(f, 22, 1, ... | Kotlin |
#[macro_use]
extern crate static_ecs;
use static_ecs::*;
use std::collections::VecDeque;
use quicksilver::prelude::*;
use static_ecs::component::*;
use std::f32::consts::*;
mod components;
mod systems;
use components::*;
#[derive(Clone, Copy, Hash, PartialEq, Eq)]
pub(crate) enum CharacterAnimID {
Wait,
At... | Rust |
", "outside_base",
"palette_color2", "inside_base",
"palette_color3", "rover_base",
"display_name", T(302535920011418,"Fireworks Launcher"),
"display_name_pl", T(302535920011419, "Fireworks Launchers"),
"description", T(302535920011420, "Launches fireworks and slightly raises temperature."),
"display_... | Lua |
othing under regular and irregular sampling
- [Tracking](./src/notebooks/linear/cdlgssm_tracking.ipynb)
- [Parameter estimation](./src/notebooks/non_linear/cdnlgssm_hmc.ipynb) that marginalizes out un-observed dynamics via auto-differentiable filtering (MLE via SGD; uncertainty quantification via HMC)
- For mo... | Markdown |
ay.length; i++) {
StringBuilder sb = new StringBuilder();
for (int k = 0; k < array[i].length; k++) {
Object o = array[i][k];
char c = o == null ? ' ' : (char)('a'+(i*3+k));
sb.append(String.valueOf(c));
if (o != null) {
entries.add(c);
entries.add(o);
}
}
input[i] = sb.toStrin... | Java |
Preserve()]
public static void EnsureNotStrippedGen() {
FramePrinter.EnsureNotStripped();
FramePrinter.EnsurePrimitiveNotStripped<CallbackFlags>();
FramePrinter.EnsurePrimitiveNotStripped<Quantum.CoinType>();
FramePrinter.EnsurePrimitiveNotStripped<Quantum.GameState>();
FramePrinter.En... | C# |
())
return field
}
fun fork() = Randomizer(Random(nextInt()))
}
enum class NBIdFieldSelector {
// If one TAC program is obtained from another via a transformation of these fields,
// then the digest is preserved. This is because since canonicalization overwrites these values
// with the sa... | Kotlin |
00865C4 CB89010C */ jal rand
/* 2A05390 800865C8 00000000 */ nop
/* 2A05394 800865CC 7F004230 */ andi $v0, $v0, 0x7F
/* 2A05398 800865D0 00020324 */ addiu $v1, $zero, 0x200
/* 2A0539C 800865D4 23186200 */ subu $v1, $v1, $v0
/* 2A053A0 800865D8 CB89010C */ jal rand
/* 2A053A4 800865... | Assembly |
#ifndef AY8910_H
#define AY8910_H
#if !defined(__GNUC__) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
#pragma once
#endif
#define MAX_8910 5
#define ALL_8910_CHANNELS -1
struct AY8910interface
{
int num; /* total number of 8910 in the machine */
doub... | C |
nBhZ2luYXRpb24uRmVlZFBhZ2luYXRpb25SZXBseVIGb2Zmc2V0');
@$core.Deprecated('Use weightDescriptor instead')
const Weight$json = {
'1': 'Weight',
'2': [
{'1': 'title', '3': 1, '4': 1, '5': 9, '10': 'title'},
{
'1': 'items',
'3': 2,
'4': 3,
'5': 11,
'6': '.bilibili.app.dynamic.v2.W... | Dart |
ies(negs, infos, wnafs);
}
internal static ECPoint ImplSumOfMultipliesGlv(ECPoint[] ps, BigInteger[] ks, GlvEndomorphism glvEndomorphism)
{
BigInteger n = ps[0].Curve.Order;
int len = ps.Length;
BigInteger[] abs = new BigInteger[len << 1];
for (int i = 0, j = 0; i < len; ++i)
{
BigInteger[] ... | C# |
ene-inverted.msmarco-v1-doc-segmented.unicoil-noexp.20221005.252b5e.tar.gz" },
"f92d5a2ba22274993b34f69e59427379",
IndexType.SPARSE_IMPACT,
UniCoilEncoder.class.getSimpleName(),
BagOfWordsQueryGenerator.class.getSimpleName(),
"msmarco-v1-doc-segmented"),
MSMARCO_V1_DOC_SEGMENTED_UNICOIL... | Java |
enStoreRemoveTokenOperation,
update_token::RefreshTokenStoreUpdateTokenOperation, RefreshTokenStoreOperations,
};
pub struct DieselRefreshTokenStore<C: diesel::Connection + 'static> {
connection_pool: ConnectionPool<C>,
}
impl<C: diesel::Connection> DieselRefreshTokenStore<C> {
pub fn new(connection_pool:... | Rust |
ged. This can fail if SHIN
* is not a tty, but it will work in most cases.
*/
int
GetSize(lins, cols)
int *lins, *cols;
{
*cols = Val(T_co);
*lins = Val(T_li);
#ifdef TIOCGWINSZ
# define KNOWsize
# ifndef lint
{
struct winsize ws; /* from 4.3 */
if (ioctl(SHIN, TIOCGWINSZ, (ioctl_t) &ws) != -1)... | C |
lay: none;
}
/*
& List
*/
/* Divider *//*
.SEmVpmXrYVl3OxL1sDFTg {
display: none;
}
/*
! Installing now
*//*
.IbePLaw-vSvhG1GTenYFg .OINnOU8K5HzPe2nzczpZi {
border: none;
}
._1VNuYHM6BPBOJspC6zPf5r.IbePLaw-vSvhG1GTenYFg {
margin: 0 12px;
padding: 12px 0 12px 12px;
border-radius:... | CSS |
Tree *tree = nullptr;
/*
* The semantic of "RETURN SELECT ..." depends on whether it is used in Inlined Table Value Function or not.
* In ITVF, they should be interpeted as return a result tuple of SELECT statement.
* but in the other case (i.e. procedure or SQL batch), it should be interpreted as two separ... | C++ |
x-change-image-item:hover {
background-color: var(--dv_background-modifier-hover);
border-radius: var(--dv_lg-rounded);
}
/* Favorites */
.el-switch.is-checked .el-switch__core,
span[class='el-switch__core'][style*='border-color'] {
background-color: var(--dv_muted) !important;
border-color: var(--dv_m... | CSS |
# Faça um programa que peça o tamanho de um arquivo para download (em MB) e a velocidade de um link de Internet (em Mbps),
# calcule e informe o tempo aproximado de download do arquivo usando este link (em minutos).
tamanhoArquivo = float(input("Qual o tamanho do arquivo a ser baixado em MB: "))
velocidadeLink = floa... | Python |
9d2bb33b365c5302651dce93b0ae739064e350b8138c536339f37d660",
"0x62c70e0ee8e4a8613f46b5d11f684b80e274aa6baaaea6d73664c6f4629874fe",
"0x60aa94f7329e52daec407a7c6b9b1a192232f96ea32983159369e349f5562db8",
"0xe31602520292aed04e53f394754908dc3f95622c4359c1b53dcb9fc68352787c",
"0xc4ab563... | Go |
Database:O,loading:p,startingLoading:S,operationType:"unloading"}),n.jsx("div",{children:n.jsx(C1,{pageTransitionLoading:w,message:v,error:N,setMessage:j,setError:C,shipments:o,loading:p,selectedShipmentId:x,onShipmentSelect:A,onWarehouseSelect:L})})]})}function uA(){const a=dt(),{selectedShipment:l,setSelectedShipment... | JavaScript |
array.copyInto(destination = buffer, destinationOffset = start, startIndex = 0, endIndex = array.size)
bufferCounter += array.size
}
private fun consumeBlock(data: UByteArray): UByteArray {
return when (mode) {
Mode.ENCRYPT -> {
currentOutput = if (currentOu... | Kotlin |
ict[str, Any]:
return _try_request_with_backoff(
'patch',
f'{API_ENDPOINT}/machines/{instance_id}/stop',
headers={'Authorization': f'Bearer {self.api_key}'},
)
def remove(self, instance_id: str) -> Dict[str, Any]:
return _try_request_with_backoff(
... | Python |
dMapK<A, C> =
fix().map(f)
}
fun <A : Comparable<A>> SortedMapK.Companion.functor(): SortedMapKFunctor<A> =
object : SortedMapKFunctor<A> {}
interface SortedMapKFoldable<A : Comparable<A>> : Foldable<SortedMapKPartialOf<A>> {
override fun <B, C> SortedMapKOf<A, B>.foldLeft(b: C, f: (C, B) -> C): C =
fix()... | Kotlin |
WifAndCheck(reqData.LastTempAddressPrivateKey, lastCommitmentTx.RSMCTempAddressPubKey)
if err != nil {
return nil, false, errors.New(fmt.Sprintf(enum.Tips_rsmc_wrongPrivateKeyForLast, reqData.LastTempAddressPrivateKey, lastCommitmentTx.RSMCTempAddressPubKey))
}
}
if latestCommitmentTxInfo.CurrState == da... | Go |
ty': 'ALBEE',
'loc': [-96.562366, 45.022142],
'pop': 357,
'state': 'SD'
},
{
'_id': '57260',
'city': 'ROSHOLT',
'loc': [-96.71741, 45.875315],
'pop': 841,
'state': 'SD'
},
{
'_id': '57261',
'city': 'ROSLYN',
'loc': [-97.540105, 45.500564],
'pop': 533,
'state':... | Dart |
g,
confirmText?: string,
success?: (data?) => void,
showCancel?:boolean,
confirmColor?:string,
}
export function ShowActionModal(data: ShowBackModel){
let { title = '温馨提示', confirmText = '确定', msg, success, showCancel = false, confirmColor='' } = data
Taro.showModal({
title: title,
content: (typeof... | Typescript |
#import <Foundation/Foundation.h>
#import <PubNub/PNEncoder.h>
#import <PubNub/PNDecoder.h>
#pragma mark Classes forward
@class PNJSONEncoder, PNJSONDecoder;
NS_ASSUME_NONNULL_BEGIN
#pragma mark - Protocol interface declaration
/// Codable object protocol.
///
/// If object adopt this protocol, it is able to spe... | C |
import streamlit as st
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
st.title("🏠 About our Dataset")
st.markdown(" Access our Colab notebook here : https://colab.research.google.com/drive/1Ocjx5k9_szTnyFYZKBLshATQ1fFTpbeV?usp=sharing")
st.markdown(" Access our github repo here : https://g... | Python |
case "image/svg+xml":
return EpubContentType.IMAGE_SVG;
case "font/truetype":
return EpubContentType.FONT_TRUETYPE;
case "font/opentype":
return EpubContentType.FONT_OPENTYPE;
case "application/vnd.ms-opentype":
return EpubContentType.FONT_OPENTYPE;
default... | Dart |
0g5y7xnh5fmdpf3mqk5utl75r49dzl",
"amount": "34436"
},
{
"address": "secret1nme6jdpglc6vy956x9fmt8ax8yej46gmgkny5f",
"amount": "908739"
},
{
"address": "secret1nude9nknse40dnspxha6xr0zaqfn75pp8a9l7e",
"amount": "3748767"
},
{
"address": "secret1nuwjecgwuyzwd3csqcqgpzqrq453nk9hqudfmm",... | Go |
а поисковые системы могут пометить страницу как спам.
- Описания не обязательно должны быть полными предложениями; они могут содержать структурированные данные.
Вот примеры хороших и плохих описаний:
{% Compare 'worse' %}
```html
<meta name="description" content="Рецепт пончиков." />
```
{% CompareCaption %} Слишк... | Markdown |
0 )
canon = self.canon
-- Update the Editable level after the cairo UI - can respond to events more easily
local level = gLevels[self.editLevel].level
cmat = byt3dRender.currentCamera.node.transform
local tm = byt3dRender.currentCamera.node.transform.m
-- level.spheres["Model1"].node.transform:Positio... | Lua |
keyIndexVar.name
startValue = .keyIndexVar.assignedValue or "0"
else
intIndexVarName = '#{.valueVar.name}__inx';
include valueVar.name in a bracket block to contain scope
.out "{ var ",.valueVar.name,"=undefined;",NL
.out
"for(int ", intIndexVarName,"=", s... | Markdown |
thorized"),
/**
* appid unbind mchid
*/
CODE_94007(94007, "appid unbind mchid"),
/**
* invalid timestamp
*/
CODE_94008(94008, "invalid timestamp"),
/**
* invalid cert_serialno, cert_serialno's size should be 40
*/
CODE_94009(94009, "invalid cert_serialno, cert_serialno's size should be ... | Java |
sform:translate(50%, -50%);margin:0}body .ui-chip{background-color:#e3f2fd;color:#495057;border-radius:16px;padding:0 .5rem}body .ui-chip .ui-chip-text{line-height:1.5;margin-top:.25rem;margin-bottom:.25rem}body .ui-chip .ui-chip-icon{margin-right:.5rem}body .ui-chip img{width:2rem;height:2rem;margin-left:-0.5rem;margi... | CSS |
imeta/fastapi-admin/internal/model"
"github.com/iimeta/fastapi-admin/internal/service"
"github.com/iimeta/fastapi-admin/utility/db"
"github.com/iimeta/fastapi-admin/utility/logger"
"github.com/iimeta/fastapi-admin/utility/util"
"go.mongodb.org/mongo-driver/bson"
)
type sChat struct{}
func init() {
service.Regis... | Go |
tning-icon {
color: var(--slds-g-color-brand-base-50, #0176d3);
}
/* Toggle button alignment with help text */
.slds-grid_vertical-align-center {
align-items: center;
}
.slds-grid_vertical-align-center lightning-input {
margin-bottom: 0;
}
.slds-grid_vertical-align-center s-multiline-helptext {
flex-shrink: ... | CSS |
rialfv(GL.GL_FRONT, GL.GL_SPECULAR, mat);
myGL.glMaterialf(GL.GL_FRONT, GL.GL_SHININESS, shine * 128.0f);
myAUX.auxSolidTeapot(1.0);
myGL.glPopMatrix();
}
/*
* First column: emerald, jade, obsidian, pearl, ruby, turquoise 2nd column: brass, bronze,
* chrome, copper, gold, silver 3rd column: black... | Java |
in:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.C_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,k... | JavaScript |
n will emit debugging sounds and notifications for life-cycle events of [[BackgroundGeolocation | BackgroundGeolocation]].
*
* ## iOS
*
* In you wish to hear debug sounds in the background, you must manually enable the background-mode:
*
* **`[x] Audio and Airplay`** background mode in *Backgrou... | Typescript |
/*
* cocos2d for iPhone: http://www.cocos2d-iphone.org
*
* Copyright (c) 2008-2010 Ricardo Quesada
* Copyright (c) 2009 Leonardo Kasperavičius
*
* 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 th... | C |
local T, C, L = unpack((select(2, ...)))
local Miscellaneous = T["Miscellaneous"]
local Movers = T["Movers"]
local RaidUtilities = CreateFrame("Frame", "TukuiRaidUtilities", UIParent)
local PreviousButton
local ButtonSize = 24
local StringSize = 14
local Prefix = "|TInterface\\TargetingFrame\\UI-RaidTargetingIcon_"
l... | Lua |
;
it("should works with the shorter commit message syntax", () => {
const core = new GitgraphCore();
const gitgraph = core.getUserApi();
gitgraph.commit("Initial commit");
const { commits } = core.getRenderedData();
const [commit] = commits;
expect(commits.length).toBe(1);
... | Typescript |
) {
this.users = config.users;
}
if(config.unlockdelay) {
this.unlockdelay = config.unlockdelay;
}
if(config.relockdelay) {
this.relockdelay = config.relockdelay;
}
this.unlockdelay *= 1000;
this.relockdelay *= 1000;
}
set hass(hass) {
this._hass = hass;
this.s... | JavaScript |
#pragma once
#include <Spore\MathUtils.h>
namespace Terrain
{
using namespace Math;
struct TerrainState
{
/* 00h */ Vector4 vSunDir;
/* 10h */ ColorRGBA waterColor;
/* 20h */ Vector4 innerParms;
/* 30h */ Vector4 vCamPos;
/* 40h */ Vector4 sphereParms;
/* 50h */ Vector4 camParms;
/* 60h */ Vector4 i... | C |
Node(assignmentNode) === false) {
Env.get().codeOutput += ')'
}
Env.get().codeOutput += '}\n'
}
}
export const constructorCodeGen = {
enter (node: AstNode, parent: AstNode): void {
const inheritanceNode = (parent.value as AstNode[])[0]
if (isEmptyNode(node)) {
const propDeclarations = E... | Typescript |
e_pending, false);
assert_eq!(frame.header.ack_request, true);
assert_eq!(frame.header.pan_id_compress, false);
assert_eq!(frame.header.version, FrameVersion::Ieee802154_2003);
assert_eq!(
frame.header.destination,
Address::Short(PanId(0xffff), ShortAddress(0x0002... | Rust |
nt );
LRESULT CALLBACK WndProc( HWND, UINT, WPARAM, LPARAM );
INT_PTR CALLBACK About( HWND, UINT, WPARAM, LPARAM );
// ID with which to tag WM_COPYDATA messages when passing filenames to the application via the command line.
// Copied data should be an array of null terminated WCHAR strings, ending with an additional ... | C++ |
" d="M960 512q93 0 174 35t143 96 96 142 35 175q0 93-35 174t-96 143-142 96-175 35q-93 0-174-35t-143-96-96-142-35-175q0-93 35-174t96-143 142-96 175-35zm0 768q66 0 124-25t101-68 69-102 26-125q0-66-25-124t-69-101-102-69-124-26q-66 0-124 25t-102 69-69 102-25 124q0 66 25 124t68 102 102 69 125 25zm64-896H896V0h128v384zM896 15... | Dart |
GNORED](https://developer.android.com/reference/android/opengl/GLES30.html#GL_TIMEOUT_IGNORED)
pub const GL_TIMEOUT_IGNORED : i64 = -1i64;
/// public static final [GL_TRANSFORM_FEEDBACK](https://developer.android.com/reference/android/opengl/GLES30.html#GL_TRANSFORM_FEEDBACK)
pub const GL_TRANS... | Rust |
if is_traffic_limited(day, day_of_week, license_plate_tail) and int("700") <= int(datetime.now().strftime("%H%M")) <= int("2000"):
print("当前至20时限行,范围为五环路以内道路(不含五环路)。")
else:
print("当前至(次日)7时不限行,可放心行驶。")
else:
print("\n错误!请输入\"1\"或\"0\"。") # 错误... | Markdown |
tate.PLAY);
const [speed, setSpeed] = useState(INITIAL_SPEED);
const [fruit, setFruit] = useState(PointModel.random(GRID_SIZE));
const [snake, setSnake] = useState(SnakeModel.initialSnake(GRID_SIZE));
useEffect(() => {
const handleKeyPressed = (e: KeyboardEvent) => {
if (e.keyCode === 38 || e.keyCode... | Typescript |
, #2
mov r3, #6
bl NewMsgDataFromNarc
mov r1, #0x12
lsl r1, r1, #4
str r0, [r4, r1]
sub r1, #0x20
add r0, r1, #0
mov r1, #6
bl String_New
mov r1, #0xfe
lsl r1, r1, #2
str r0, [r4, r1]
pop {r4, pc}
thumb_func_end ov75_021E737C
thumb_func_start ov75_021E73E8
ov75_021E73E8: ; 0x021E73E8
push {r4, r5}
ldr... | Assembly |
ANCO DEL CARIBE C.A.\n"
+ ":59:/00010013800020001146\n"
+ "BANCO DEL CARIBE C.A.\n"
+ ":71A:OUR\n"
+ ":72:/TIPO/410\n"
+ "-}";
final String m2 = "{1:F01AAAAUSC0AXXX6083000009}{2:I103BBBBUSC0XXXXN}{4:\n"
+ ":20:TCLIO200908132\n"
+ ":... | Java |
tualMachine != null, "virtualMachine");
_virtualMachine = virtualMachine;
_suspendPolicy = suspendPolicy;
_request = request;
}
public IVirtualMachine VirtualMachine
{
get
{
return _virtualMachine;
}
... | C# |
#!/usr/bin/python3
def print_last_digit(number):
last_digit = abs(number) % 10
print(last_digit, end="")
return last_digit
| Python |
atic int checkPorts(string[] names)
{
var ipGlobalProperties = IPGlobalProperties.GetIPGlobalProperties();
var tcpConnInfoArray = ipGlobalProperties.GetActiveTcpListeners();
var tcpPorts = tcpConnInfoArray.Select(i => i.Port).ToList();
foreach (string name in nam... | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.