content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
ype> => {
return axios
.get(`https://reqres.in/api/users?page=${page}&per_page=4&delay=5`)
.then((result) => {
console.log("res get users", result);
const users = result.data;
return users;
})
.catch((err) => {
console.log("err get users", err);
});
};
export default GetUs... | Typescript |
ивается: Червеглаз", nil, {"Убейте Червеглаза и отнесите палачу Зуганду в Брилл его лапу."}},
[399] = {"Скромные дары прошлого", nil, {"Обыщите дом Бароса Алекстона в Западном Крае, найдите компас и вернитесь на Соборную площадь Штормграда."}},
[400] = {"Инструменты для Сталежара", nil, {"Доставьте инструменты Белдину ... | Lua |
SBP2::logging_log_raw_sbp(uint16_t msg_type,
uint16_t sender_id,
uint8_t msg_len,
uint8_t *msg_buff) {
if (!should_df_log()) {
return;
}
//MASK OUT MESSAGES WE DON'T WANT TO LOG
if (( ((uint16_t) gps._sbp_logmask) & msg_type) == 0) {
return;
}
uint64_t tim... | C++ |
.3 rsa_pkcs1_sha384 TLS_AES_128_GCM_SHA256
* @run main/othervm TLSTest TLSv1.3 rsa_pkcs1_sha512 TLS_AES_128_GCM_SHA256
* @run main/othervm TLSTest TLSv1.3 ec_rsa_pkcs1_sha256 TLS_AES_128_GCM_SHA256
* @run main/othervm TLSTest TLSv1.3 ecdsa_sha1 TLS_AES_128_GCM_SHA256
* @run main/othervm TLSTest TLSv1.3 ecdsa_secp38... | Java |
dden_TotalFuelUsedGaseousKg = *b.TotalFuelUsedGaseousKg
}
if b.TotalElectricEnergyUsedWh != nil {
protoimpl.X.SetPresentNonAtomic(&(x.XXX_presence[0]), 11, 19)
x.xxx_hidden_TotalElectricEnergyUsedWh = *b.TotalElectricEnergyUsedWh
}
if b.TotalElectricEnergyRecuperatedWh != nil {
protoimpl.X.SetPresentNonAtomic... | Go |
// 19
'postScriptFindFontName', // 20
'wwsFamily', // 21
'wwsSubfamily' // 22
];
var macLanguages = {
0: 'en',
1: 'fr',
2: 'de',
3: 'it',
4: 'nl',
5: 'sv',
6: 'es',
7: 'da',
8: 'pt',
9: 'no',
10: 'he',
11: 'ja',
12: 'ar',
13... | JavaScript |
data:extend(
{
{
type = "virtual-signal",
name = "signal-unknown",
icon = "__core__/graphics/icons/unknown.png",
hidden = true
},
{
type = "entity-ghost",
name = "entity-unknown",
icon = "__core__/graphics/icons/unknown.png",
hidden = true
},
{
type = "item",
name = "it... | Lua |
entIndex] = message.content;
}
// 添加新的备选内容占位
message.alternativeContent.add('');
message.content = '';
message.alternativeContent[message.alternativeContent.length - 1] = null;
// 更新消息以显示空内容(准备接收生成内容)
await widget.sessionController.updateMessage(message.time, message);
... | Dart |
arest']],
[[-1, 4], 1, Concat, [1]], # cat backbone P3
[-1, 3, BottleneckCSP, [256, False]], # 17 (P3/8-small)
[-1, 1, Conv, [256, 3, 2]],
[[-1, 14], 1, Concat, [1]], # cat head P4
[-1, 3, BottleneckCSP, [512, False]], # 20 (P4/16-medium)
[-1, 1, Conv, [512, 3, 2]],
[[-1, 10], 1, Concat, [1]]... | Markdown |
oolchainName(String line) {
// ignore (default) after toolchain name
final parts = line.split(' ');
return parts[0];
}
final res = runCommand("rustup", ['toolchain', 'list']);
// To list all non-custom toolchains, we need to filter out lines that
// don't start with "stable", "beta",... | Dart |
namespace System.Web.UI.WebControls.Expressions {
using System;
using System.ComponentModel;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public abstract class DataSourceExpression : IStateManager {
... | C# |
fn last_support_fork() {
let mut value = 0;
let mut value2 = 0;
{
let o = observable::from_iter(1..100).last();
let o1 = o.fork().last();
let o2 = o.fork().last();
o1.subscribe(|v| value = v);
o2.subscribe(|v| value2 = v);
}
assert_eq!(value, 99);
assert_eq!(value2... | Rust |
"name": "买辣椒也用券"
}
],
"albumMeta": {
"id": 74715426,
"name": "起风了"
}
},
"single": 0,
"noCopyrightRcmd": null,
"rtype": 0,
"rurl": null,
"mvid": 0,
"bMusic": {
"name": null,
"id": 7232443404,
"... | Dart |
ertThat<UUID?>(persistCaptor.allValues.get(1).connectionId).isEqualTo(connectionId)
Assertions.assertThat(persistCaptor.allValues.get(1).jobId).isEqualTo(jobId)
Assertions
.assertThat(
persistCaptor.allValues
.get(1)
.manager!!
.successivePartialFailures... | Kotlin |
err := json.Unmarshal(js, &m); err != nil {
return nil, err
}
return m, nil
}
// JSONMapToStateValue takes a generic json map[string]interface{} and converts it
// to the specific type, ensuring that the values conform to the schema.
func JSONMapToStateValue(m map[string]interface{}, block *configschema.Block) (... | Go |
IRCUIT(
S 0
)CIRCUIT"));
}
TEST(gate_decomposition, decompose_spp_or_spp_dag_operation_inverted) {
Circuit out;
decompose_spp_or_spp_dag_operation(
Circuit("SPP !Z0").operations[0], 10, false, [&](const CircuitInstruction &inst) {
out.safe_append(inst);
});
ASSERT_EQ... | C++ |
: new FormControl('',[Validators.required,this.customValidation.bind(this)]),
machine_code : new FormControl('',[Validators.required])
})
})
}
getFormData(f){
console.log("Hi",f);
this.formname = f.value.machine_name;
}
formData($event){
console.log("test",$event);
}
crea... | Typescript |
ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno,
"setitimer() failed");
}
}
if (ngx_event_flags & NGX_USE_FD_EVENT) {
struct rlimit rlmt;
if (getrlimit(RLIMIT_NOFILE, &rlmt) == -1) {
ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno,... | C |
32 0 107.8 0 200.9s74.7 168.9 166.5 168.9c39.8 0 76.3-14.2 105-37.9l146 148.1 30.5-31zM166.5 330.8c-70.6 0-128.1-58.3-128.1-129.9S95.9 71 166.5 71s128.1 58.3 128.1 129.9-57.4 129.9-128.1 129.9z"],
"square-instagram": [448, 512, ["instagram-square"], "e055", "M224,202.66A53.34,53.34,0,1,0,277.36,256,53.38,53.38,0,0,... | JavaScript |
, HttpServletRequest request,
@PathVariable("type") String type,@RequestParam Map<String, Object> map) {
map.put("column", columnName);
map.put("type", type);
if(type.equals("2")) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Calendar c = Calendar.getInstance();
Date remindStart... | Java |
; Generated with ikazuchi 1.0 by riidefi
; Object File: FileSelectIconID
; Segments:
; .text: 0x80178378 -> 0x801783f8
; Symbols Defined
; 80178378 -> 80178388 __ct__16FileSelectIconIDFv
; 80178388 -> 8017839c __ct__16FileSelectIconIDFRC16FileSelectIconID
; 8017839c -> 801783b0 set__16FileSelectIconIDFRC16F... | Assembly |
r6 as ApartmentRounded,i6 as ApartmentSharp,V6 as ApartmentTwoTone,x6 as Api,j6 as ApiOutlined,u6 as ApiRounded,L6 as ApiSharp,S6 as ApiTwoTone,C6 as AppBlocking,T6 as AppBlockingOutlined,w6 as AppBlockingRounded,R6 as AppBlockingSharp,O6 as AppBlockingTwoTone,y6 as AppRegistration,g6 as AppRegistrationOutlined,A6 as A... | JavaScript |
r.earningsRecords = [
testRecord(constants.CURRENT_YEAR - 2),
testRecord(constants.CURRENT_YEAR - 1),
testRecord(constants.CURRENT_YEAR),
testRecord(constants.CURRENT_YEAR + 1),
testRecord(constants.CURRENT_YEAR + 2),
];
r.simulateFutureEarningsYears(10, Money.from(100 * 1000))... | Typescript |
ar {
--fa: "\f080"; }
.fa-bar-chart {
--fa: "\f080"; }
.fa-hands-bubbles {
--fa: "\e05e"; }
.fa-hands-wash {
--fa: "\e05e"; }
.fa-less-than-equal {
--fa: "\f537"; }
.fa-train {
--fa: "\f238"; }
.fa-eye-low-vision {
--fa: "\f2a8"; }
.fa-low-vision {
--fa: "\f2a8"; }
.fa-crow {
--fa: "\f520"; }
... | CSS |
s.save();
}
onReload();
}
});
selectico = new selectedIcon((int)height,(int)height,0,0);
selectico.setX(width - height);
selectico.setDrawing(false);
addShape(selectico);
setData(Id);
... | Java |
w3.org/2000/svg' width='4' height='5'%3E%3Cpath fill='%23494444' d='M2 0 0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") right .75rem center/8px 10px no-repeat,#242424 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23aa2e28'%3E%3Ccircle cx='6' cy='6' r='4.... | CSS |
gned char *dst_key, gnb_key_address_t *dst_key_address){
index_service_worker_ctx_t *index_service_worker_ctx = gnb_index_service_worker->ctx;
gnb_core_t *gnb_core = index_service_worker_ctx->gnb_core;
index_service_worker_ctx->index_frame_payload->sub_type = PAYLOAD_SUB_TYPE_PUSH_ADDR;
gnb_payload1... | C |
== rechargeActivityDefine.DiscountType.Text then
self.uiBinder.Ref:SetVisible(self.uiBinder.node_discount, true)
self.uiBinder.lab_discount.text = Lang(lab[2])
elseif tonumber(lab[1]) == rechargeActivityDefine.DiscountType.Time and nowTime <= data.rewardEndTime and nowTime > data.rewardBegi... | Lua |
}
void stop(num when) {
if (JS('bool', '!!#.stop', this)) {
JS('void', '#.stop(#)', this, when);
} else {
JS('void', '#.noteOff(#)', this, when);
}
}
// To suppress missing implicit constructor warnings.
factory AudioBufferSourceNode._() { throw new UnsupportedError("Not supported");... | Dart |
LinearSpeed);
size += sizeof(SystemAngularSpeed);
size += sizeof(SystemLinearAxis);
size += sizeof(SystemAngularAxis);
size += sizeof(SystemSizeChange);
size += sizeof(mNumParticles);
if (mNumParticles > 0)
{
size += mNumParticles*sizeof(mParticleLinearSpeed[0]);
size += mNu... | C++ |
raith_form:OnCreated()
-- Ability properties
self.caster = self:GetCaster()
self.ability = self:GetAbility()
self.parent = self:GetParent()
if IsServer() then
self.damage_pool = 0
self.max_hp = self.parent:GetMaxHealth()
self.threhold_hp = self.ability:GetSpecialValueFor("scepter_hp_pct_threhold") * 0.01 * s... | Lua |
expect(combinedPsbts2.txOutputs[0].value).toEqual(1000000);
expect(combinedPsbts2.txOutputs[1].address).toEqual(Multisig.unusedChangeAddresses[0].address);
expect(combinedPsbts2.txOutputs[1].value).toEqual(25911552);
expect(COMBINED_PSBTS_BASE64).toEqual(combinedPsbts2.toBase64());
});
test('createU... | JavaScript |
where { c.birthDateTime > param(test) || c.birthDateTime >= param(test) || c.birthDateTime < param(test) || c.birthDateTime <= param(test) }
c.name
}
val build = q.buildFor.Postgres()
shouldBeGolden(build.token.build(), "Original SQL")
shouldBeGolden(build.determinizeDynamics().token.bui... | Kotlin |
{margin-top:0!important}.last,.with-subtitle{margin-bottom:0!important}blockquote.epigraph,div.abstract{margin:2em 5em}.hidden{display:none}a.toc-backref{text-decoration:none;color:#000}object[type="image/svg+xml"],object[type="application/x-shockwave-flash"]{overflow:hidden}div.abstract p.topic-title{font-weight:700;t... | CSS |
} from "@counterfactual/types";
import log from "loglevel";
import { INVALID_NETWORK_NAME } from "./methods/errors";
import { prettyPrintObject } from "./utils";
export enum EthereumNetworkName {
Main = "mainnet",
Ropsten = "ropsten",
Rinkeby = "rinkeby",
Kovan = "kovan"
}
export const SUPPORTED_NETWORKS = ... | Typescript |
qual( attribute.Get( 0 ), 24.0 )
self.assertEqual( attribute.Get( 24 ), 24.0 )
renderAttribute = uPrim.GetAttribute( "primvars:testAttribute" )
self.assertEqual( renderAttribute.Get( 0 ), 24.0 )
self.assertEqual( renderAttribute.Get( 24 ), 24.0 )
# constant prim var
attribute = uPrim.GetAttribute( "primva... | Python |
t below the root, it's trivial. */
parent->branches.b[EB_LEFT] = NULL;
goto delete_unlink;
}
/* To release our parent, we have to identify our sibling, and reparent
* it directly to/from the grand parent. Note that the sibling can
* either be a link or a leaf.
*/
gpside = eb_gettag(parent->node_p);
gpar... | C |
_void, _1: *mut c_void) -> (),
pub fn XtCallbackNone (_3: Widget, _2: *mut c_void, _1: *mut c_void) -> (),
pub fn XtCallbackNonexclusive (_3: Widget, _2: *mut c_void, _1: *mut c_void) -> (),
pub fn XtCallbackPopdown (_3: Widget, _2: *mut c_void, _1: *mut c_void) -> (),
pub fn XtCallbackReleaseCacheRef (_3: Widg... | Rust |
== "name":
num_tokens += tokens_per_name
elif isinstance(message, str):
num_tokens += len(encoding.encode(message))
else:
NotImplementedError(
f"""num_tokens_from_messages() is not implemented message type {type(message... | Python |
toppedInput
if #popups > 0 then
popupStoppedInput = touchscreen.stopInput()
end
fullscreenNext = false
transparentTopBarNext = false
if previousAppsTransition < 0.5 then
if appNext ~= appCurrent then
appTransition = appTransition + dt * 4
if appTransition >= 1 then
if appCurrent t... | Lua |
num_body_points=17 backbone='resnet50' \
--dataset_file="coco" \
--pretrain_model_path "./models/edpose_r50_coco.pth" \
--eval
```
</details>
<details>
<summary>Swin-L</summary>
```
export EDPOSE_COCO_PATH=/path/to/your/cocodir
export pretrain_model_path=/path/to/your/swin_L_384_22k
python -m torch.distribut... | Markdown |
_sys_siglist+0x74b1>
2b853: 74 79
2b855: 70 65 20 movd (r5),$0x20 [d-float]
2b858: 66 6f 72 divd2 (pc),-(r2)
2b85b: 20 73 6f 63 addp4 -(r3),(pc),(r3),(r11)
2b85f: 6b
2b860: 65 74 00 50 muld3 -(r4),$0x0 [d-float],r0
2b864: 72 6f 74 mnegd (pc),-(r4)
2b867: 6f 63 6f 6c acbd (r3),(p... | Assembly |
声,打断了雪华的话。她凝视着雪华,语气冷硬而严肃。', '', '', '', '', '', '', '', '', '', '', '', '', '1', '', '', '', '', '', '1', '', '', '', '', '', '', '', '', '1041704', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''},
{'1041704', '', '你是什么身份,竟敢斥责和污蔑我?', '', '', '', '', '', '', '', '', '', '7041001', '', '', '2', '', '鸣刃', ... | Lua |
using System;
using System.Collections.Generic;
namespace HT.Framework
{
/// <summary>
/// 默认的ECS管理器助手
/// </summary>
internal sealed class DefaultECSHelper : IECSHelper
{
/// <summary>
/// 当前ECS环境是否是脏的
/// </summary>
private bool _isDirty = false;
/// <sum... | C# |
ey(RplConstants.CONFLICT_STRATEGY)) {
ConflictStrategy conflictStrategy = ConflictStrategy.valueOf(StringUtils
.upperCase(params.get(RplConstants.CONFLICT_STRATEGY)));
replicaMeta.setConflictStrategy(conflictStrategy);
}
if (params.containsKey(RplConstants.MASTER_... | Java |
Assert.That(Redis.ContainsKey("key"), Is.True);
Thread.Sleep(2000);
Assert.That(Redis.ContainsKey("key"), Is.False);
}
[Test]
public void Can_Set_Expire_MilliSeconds()
{
Redis.SetValue("key", "val", expireIn: TimeSpan.FromMilliseconds(1000));
... | C# |
pub struct FeeConfig {
pub fee: Uint128,
pub operation: String,
pub denom: String,
}
#[derive(Default, Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)]
pub struct Member {
pub amount: Uint128,
pub claimed: Uint128,
}
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debu... | Rust |
功,那么他就需要一个远大的目标和能使他前进的动力,外加一个实现目标的周密计划。 c:18
人不能满足于为各种具体事务而忙碌,要做到超脱烦琐事务抽出时间坐下来静心思考。思考如何智慧地做人,聪明地办事;思考如何能完成自己的目标;思考如何做才能获得最大利益;思考如何才能获得成功。 c:21
### 四象限法则:把时间留给最重要的事
四个象限:一、重要而且紧急;二、重要但不紧急;三、紧急但不重要;四、既不紧急,也不重要。 c:47
### 不断地自我激励、自我暗示
“只要有自信,你就年轻;但若恐惧,你就衰老。只要有信仰,你就年轻;但若疑虑,你就衰老。只要有希望,你就年轻;但若绝望,你就衰老。 c:34
利用自我激励、自我暗示的力... | Markdown |
lush);
break;
case 0x14: // pump out water from system
service.setState(EspressoMachineState.airPurge);
break;
default:
service.setState(EspressoMachineState.idle);
break;
}
}
void _requestedState(ByteData value) {
var state = value.getUint8(0);
log.... | Dart |
req: HttpRequest,
auth: BasicAuth,
body: Json<RequestOauth2Introspect>,
) -> HttpResult<HttpResponse> {
server_request!(&server, &req, async {
let body = server_validate!(&server, body);
let request = server
.oauth2_introspect_parse_request(Some(&body.token), auth.secret().... | Rust |
}
_input2() {
return JhFormInputCell(
title: '防抖2:',
text: _keyWord2,
hintText: '请输入',
maxLength: 140,
textInputAction: TextInputAction.search,
inputCallBack: JhCommonUtils.debounceInput((value) {
print('防抖后 防抖2 _keyWord2 : $value');
JhProgressHUD.showText('... | Dart |
for (var i = _pairCodeLength; i < digits; i++) {
var digitVal = _codeAlphabet.indexOf(code[i]);
var row = digitVal ~/ _gridColumns;
var col = digitVal % _gridColumns;
gridLat += row * rowpv;
gridLng += col * colpv;
if (i < digits - 1) {
rowpv = rowpv ~/ _grid... | Dart |
glabel func_8096865C
/* 01D0C 8096865C 27BDFFA0 */ addiu $sp, $sp, 0xFFA0 ## $sp = FFFFFFA0
/* 01D10 80968660 AFBF001C */ sw $ra, 0x001C($sp)
/* 01D14 80968664 AFB00018 */ sw $s0, 0x0018($sp)
/* 01D18 80968668 AFA40060 */ sw $a0, 0x0060($sp)
/* 01D1C 80968... | Assembly |
120.305,45.05341648,028.71660732,TULCEA APP,CATALOI",
"LRTM,125.900,46.46996568,024.42553801,TARGU MURES TWR,TRANSILVANIA TARGU MURES",
"LRTM,125.905,46.46996568,024.42553801,TARGU MURES TWR,TRANSILVANIA TARGU MURES",
"LRTM,121.900,46.46996568,024.42553801,TARGU MURES APP,TRANSILVANIA TARGU MURES",
"LRT... | C++ |
tring{},
lst: []string{},
},
want: false,
},
{
name: "empty lst",
args: args{
ids: []string{"a", "b", "c"},
lst: []string{},
},
want: false,
},
{
name: "contains a",
args: args{
ids: []string{"a", "b", "c"},
lst: []string{"a"},
},
want: true,
},
{
name: "... | Go |
80954DEC 44063000 */ mfc1 $a2, $f6
/* 05B30 80954DF0 00000000 */ nop
/* 05B34 80954DF4 00063400 */ sll $a2, $a2, 16
/* 05B38 80954DF8 0C01DE2B */ jal Math_ApproxUpdateScaledS
/* 05B3C 80954DFC 00063403 */ sra $a2, $a2, 16
/* 05B40 80954... | Assembly |
Layout_l4["T3"] = {1,1}
DEDLayout_l4["T3_code"] = {3,4,0,"_inv","I"}
DEDLayout_l4["Asterisks_T3_both"] = {2,1,7,"","I"}
DEDLayout_l4["T7"] = {10,1}
DEDLayout_l4["T7_code"] = {12,4,0,"_inv","I"}
DEDLayout_l4["Asterisks_T7_both"] = {11,1,16,"","I"}
--HTS SEAD
DEDLayout_l4["HTS_ELEV_lbl"] = {2,3}
DEDLayout_l4["HTS_ELEV"] ... | Lua |
to_write: &mut [u8] = &mut magnitude_bytes[first_occupied_byte..];
if value < 0 {
bytes_to_write[0] |= 0b1000_0000;
}
sink.write_all(bytes_to_write)?;
Ok(bytes_to_write.len())
}
/// Encodes a negative zero as an `Int` and writes it to the privided `sink`.
/// Re... | Rust |
// ===============================================================================================
// @@@ START COPYRIGHT @@@
//
// 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
// regar... | C |
.8h, v23.8h, v4.8h
FMAX v24.8h, v24.8h, v4.8h
FMAX v25.8h, v25.8h, v4.8h
FMAX v26.8h, v26.8h, v4.8h
FMAX v27.8h, v27.8h, v4.8h
FMAX v28.8h, v28.8h, v4.8h
FMAX v29.8h, v29.8h, v4.8h
FMAX v30.8h, v30.8h, v4.8h
... | Assembly |
BufHnd = NULL;
if (!DuplicateHandle(hServer, ad.BufHnd, hSelf, &BufHnd,
0, FALSE, DUPLICATE_SAME_ACCESS))
{
Error = GetLastError();
CloseHandle(hServer);
CloseHandle(Mutex);
return 0;
} else {
for (i = RD; i <= RTT; i++) {
if (!DuplicateHandle(hServer, ad.Signal[i],
hSelf, &Sign... | C++ |
- 40%),
calc(var(--theme-nuance-color-3-lightness) + 20%));
/* ---------hover---------- */
--button-tertiary-text-hover:
hsl(210,
calc(var(--theme-nuance-color-3-saturation) - 40%),
calc(var(--theme-nuance-color-3-lightness) - 5%));
--button-tertiary-color-hover:
hsl(210,
calc(var(--theme-... | CSS |
/*
* Copyright (c) 2017 Trail of Bits, 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | Assembly |
číslo.","chooseColor":"Výběr"},"cellPad":"Odsazení obsahu v buňce","cellSpace":"Vzdálenost buněk","column":{"menu":"Sloupec","insertBefore":"Vložit sloupec před","insertAfter":"Vložit sloupec za","deleteColumn":"Smazat sloupec"},"columns":"Sloupce","deleteTable":"Smazat tabulku","headers":"Záhlaví","headersBoth":"Oboj... | JavaScript |
T but for OUTPUT
/// pub type OUTPUT = (f32,);
///
/// // similar to INPUT and OUTPUT but tells the uniform
/// pub type UNIFORM = ();
/// }
/// ```
/// ### Example input
/// ```
/// # use gears::{module};
/// module! {
/// // Module kind:
/// kind = "vert",
/// // Module source path:
/// path = "../gea... | Rust |
-size: 0.9rem;
}
.items {
margin: 50px 0 0 30px;
}
.items ul li {
display: flex;
flex-direction: row;
justify-content: space-between;
text-align: left;
margin: 20px 10px;
font-size: 1.4rem;
font-weight: 300;
color: #494a4b;
}
.items ul li p {
max-width: '60%';
}
.actions {
display: flex;
fle... | CSS |
, T7, T8, T9, T10;
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
impl_value_list_for_tuple!(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11;
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11);
impl_value_list_for_tuple!(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12;
... | Rust |
return active_igds;
}
void UPnPService::map(const MappingRequest& request) {
mappings_[request.id] = request;
for (auto igd : activeIgd()) igd->sendAddPortMapping(request);
}
void UPnPService::unmap(const QString& id) {
for (auto igd : activeIgd()) igd->sendDeletePortMapping(mappings_[id]);
mappings_.remove... | C++ |
void __iomem *ramc1, int memctrl)
*/
ENTRY(at91_slow_clock)
/* Save registers on stack */
stmfd sp!, {r4 - r12, lr}
/*
* Register usage:
* R0 = Base address of AT91_PMC
* R1 = Base address of RAM Controller (SDRAM, DDRSDR, or AT91_SYS)
* R2 = Base address of second RAM Controller or 0 if not present
... | Assembly |
let e: u32 = 1;
let r: u32 = transmute(vcvts_n_u32_f32::<2>(transmute(a)));
assert_eq!(r, e);
}
#[simd_test(enable = "neon")]
unsafe fn test_vcvtd_n_u64_f64() {
let a: f64 = 0.25;
let e: u64 = 1;
let r: u64 = transmute(vcvtd_n_u64_f64::<2>(transmute(a)));
... | Rust |
/* 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/. */
#ifndef CacheFileOutputStream__h__
#define CacheFileOutputStream__h__
#include "nsIAsyncOutputStream.h"
#include ... | C |
/*
* Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
* From ASN.1 module "NGAP-IEs"
* found in "../support/ngap-r17.3.0/38413-h30.asn"
* `asn1c -pdu=all -fcompound-names -findirect-choice -fno-include-deps -no-gen-BER -no-gen-XER -no-gen-OER -no-gen-UPER -no-gen-JER`
*/
#include "NGAP_ReportCharacteristics... | C |
cePart = (part: string, query: IQuery, isOptional: boolean) => {
const key = extractKey(part, isOptional)
const value = query[key]
if (!value && !isOptional) {
const message = `Required parameter ${key} not provided by query`
throw new Error(message)
}
return value ? `${SIGN.SEPARATOR}${value}` : ''
... | Typescript |
var lowerBoundX = latZone / 2.0 - 90;
var lowerBoundY = (lonZone - 1) / 2.0 - 180;
var quadrant = '';
if (lat - lowerBoundX >= 0.25) {
quadrant = '12';
lowerBoundX += 0.25;
} else {
quadrant = '34';
}
if (lon - lowerBoundY >= 0.25) {
out += quadrant[1];
lowerBoundY += 0.25;
} else ... | Dart |
start_move_anim_events = {
bwd = "move_start_bwd",
fwd = "move_start_fwd",
left = "move_start_left",
right = "move_start_right",
},
start_move_anim_data = {
move_start_fwd = {},
move_start_bwd = {
sign = -1,
rad = math.pi,
},
move_start_left = {
sign = 1,
rad = math.pi / 2,
... | Lua |
hAdapter.EXTRA_STATE, BluetoothAdapter.ERROR)
when (state) {
BluetoothAdapter.STATE_OFF -> {
Log.d("FlutterMIDICommand", "BT is now off")
bluetoothState = "poweredOff";
bluetoothScanner = null
}
BluetoothAdapter.STATE_TURNING_OFF -> {
... | Kotlin |
через ключевое слово pub) — это инструмент ограничения
небезопасности, который действует только на границе модуля (это особенность языка).
Однако работает это *идеально*. Существование `make_room` - это *не* проблема
устойчивости Vec, потому что мы не пометили его как публичный. Эту функцию можно
вызывать только внутр... | Markdown |
bg);
--vp-code-copy-code-active-text: var(--vp-c-text-2);
--vp-code-copy-copied-text-content: 'Copied';
--vp-code-tab-divider: var(--vp-code-block-divider-color);
--vp-code-tab-text-color: var(--vp-c-text-2);
--vp-code-tab-bg: var(--vp-code-block-bg);
--vp-code-tab-hover-text-color: var(--vp-c-text-1);
-... | CSS |
\\Windows\\System32\\DeviceCensus.exe",
"IntegrityLevel": "System",
"LogonGuid": "B2796A13-618F-5881-0000-0020E7030000",
"LogonId": "0x000003e7",
"ParentCommandLine": "C:\\Windows\\system32\\svchost.exe -k netsvcs",
"ParentImage": "C:\\Windows\\System32\\svchost.exe",
"ParentProcessG... | Go |
ByteBuffer header = BufferUtil.allocate(4096);
ByteBuffer chunk = BufferUtil.allocate(HttpGenerator.CHUNK_SIZE);
ByteBuffer content0 = BufferUtil.toBuffer("Hello World. ");
ByteBuffer content1 = BufferUtil.toBuffer("The quick brown fox jumped over the lazy dog.");
HttpGenerator gen = new... | Java |
ranch_out.chunk(3, dim=1)
outs.append(curr_out)
gates.append(curr_gate)
for group_id in range(1, self.num_groups - 1):
curr_x = torch.cat([xs[group_id], curr_fork], dim=1)
branch_out = self.interact[str(group_id)](curr_x)
curr_out, curr_fork, curr_gate = bran... | Python |
nder;
type RenderContext = RenderContext;
fn upload_model(ctx: &mut RenderContext, models: Vec<tobj::Model>) {
asset_load::upload_model(ctx, models);
}
/// Creates a `RenderContext` with the specified
/// window title and dimensions
fn create_context(title: &str, dimensions: (u32, u32)... | Rust |
polate with
* only one point."); System.exit(1); }
*
* return newAlpha;
* }
*/
// Returns the minimizer of a quadratic running through point (a0,f0) with
// derivative g0 and passing through (a1,f1).
// private double interpolateQuadratic2pt(double[] pt0, double[] pt1){
// if( Double.isNaN(pt0[... | Java |
namespace WebAPI.Trackers
{
using Soulseek;
using System.Collections.Concurrent;
/// <summary>
/// Tracks browse operations.
/// </summary>
public class BrowseTracker : IBrowseTracker
{
/// <summary>
/// Tracked browse operations.
/// </summary>
publ... | C# |
不对称的, 偏位的\\n[计] 非对称的, 不对称的, 不平衡的",
"asymmetric atom":"[化] 不对称原子\\n[医] 不对称原子",
"asymmetric bars":" 高低杠",
"asymmetric carbon":"[机] 不对称碳原子",
"asymmetric carbon atom":"[机] 不对称碳原子",
"asymmetric carbon(atom)":"[化] 不对称碳原子",
"asymmetric chevron":"[计] 不对称人字形",
"asymmetric compound":"[机] 不对称化合物",
"asymmetric conductivity":"[电] 不... | Typescript |
ory_make ("gdkpixbufoverlay", NULL);
/* set positioning-mode to absolute so we can set negative positions */
g_object_set (overlay, "pixbuf", logo_pixbuf, "positioning-mode", 1, NULL);
sink_pad = gst_element_get_static_pad (overlay, "sink");
gst_pad_add_probe (sink_pad, GST_PAD_PROBE_TYPE_BUFFER, buffer_cb, N... | C |
pping(host->irq);
iounmap(host->ioaddr);
return 0;
}
static const struct of_device_id sdhci_of_match[] = {
#ifdef CONFIG_MMC_SDHCI_OF_ESDHC
{ .compatible = "fsl,mpc8379-esdhc", .data = &sdhci_esdhc, },
{ .compatible = "fsl,mpc8536-esdhc", .data = &sdhci_esdhc, },
{ .compatible = "fsl,esdhc", .data = &sdhci_esdhc,... | C |
---
-- @class ENT
-- @section ttt_traitor_check
ENT.Type = "brush"
ENT.Base = "base_brush"
if CLIENT then
return
end
---
-- Called when the engine sets a value for this scripted entity.
-- @param string key The key that was affected
-- @param string value The new value
-- @realm server
function ENT:KeyValue(key,... | Lua |
Id2(_shardedDatasetId);
produceTask.OutputId = _shardedDatasetId;
produceTask.NextInputIds.SetInputId1(_shardedDatasetId);
produceTask.NextInputIds.SetInputId2(_shardedDatasetId);
produceTask.PrepareTaskTransformations(new OperatorTransforms());
operatorsTopo... | C# |
9-4.1 2.9-6.8 0-5.3-4.3-9.6-9.9-10.1-16.3-3-28.5-18.4-28.5-33.3v-2.1c0-29-25-52.7-55.9-53.5h-.5.2-1.1c.2 0 0 0 0 0zm.6 0h.9-.9zM128 224c-64.9 0-96 70-96 128v96h192v-96c0-52.7-34-128-96-128zm256 0c-96 0-96 224-96 224h192s0-224-96-224zm-192-96c0 35.3-28.7 64-64 64s-64-28.7-64-64 28.7-64 64-64 64 28.7 64 64z" />',viewBox:... | JavaScript |
toff(1, "Lossless", true);
var artist = EnsureArtist("8ac6cc32-8ddf-43b1-9ac4-4b04f9053176", "Alien Ant Farm", false);
EnsureTrackFile(artist, 1, 1, 1, Quality.MP3_192);
var result = WantedCutoffUnmet.GetPaged(0, 15, "releaseDate", "desc");
result.Records.Should().BeEmp... | C# |
4638504391 {
t.Errorf("Wrong Epoch time w/ float: %d", ts.UnixNano())
}
}
func TestEpochMilliInt(t *testing.T) {
ts, err := ForgivingTimeParse("EpochMilli", "1414448234638", nil)
if err != nil {
t.Error("Error parsing EpochMilli time")
}
if ts.UnixNano() != 1414448234638000000 {
t.Errorf("Wrong EpochMilli t... | Go |
e_int(env: *mut ErlNifEnv, i: c_int) -> ERL_NIF_TERM;
fn enif_make_ulong(env: *mut ErlNifEnv, i: c_ulong) -> ERL_NIF_TERM;
fn enif_make_double(env: *mut ErlNifEnv, d: c_double) -> ERL_NIF_TERM;
fn enif_make_atom(env: *mut ErlNifEnv, name: *const c_char) -> ERL_NIF_TERM;
fn enif_make_existing_atom(env: *mut ErlNifEn... | Rust |
WindowCopyToVram
add r0, r5, #0
add r0, #0x7c
bl ScheduleWindowCopyToVram
b _021F0364
_021F0334:
add r0, r5, #0
add r0, #0x6c
mov r1, #0
bl FillWindowPixelBuffer
mov r0, #0
str r0, [sp]
str r0, [sp, #4]
ldr r0, _021F03B4 ; =0x00050900
ldr r1, _021F03AC ; =0x0000065C
str r0, [sp, #8]
mov r0, #2
str r0, [... | Assembly |
N OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
using System;
namespace EventFlow.Core
{
public class RetryDelay
{
private static readonly Random Random = new Random();
public static RetryDelay Between(... | C# |
rsp,%r15,8)
movq %rdx,%r13
movq %r10,%r11
xorq %rdx,%rdx
addq %r11,%r13
adcq $0,%rdx
movq %r13,-8(%rsp,%r9,8)
movq %rdx,(%rsp,%r9,8)
leaq 1(%r14),%r14
jmp L$outer
.p2align 4
L$outer:
movq (%r12,%r14,8),%rbx
xorq %r15,%r15
movq %r8,%rbp
movq (%rsp),%r10
mulq %rbx
addq %rax,%r10
movq (%rcx),%rax
adcq $... | Assembly |
HCI` es una funcionalidad para desarrolladores, por lo que hay que activar las opciones para desarrolladores para poder utilizarlo.
Para ello, se accede a `Ajustes > Información del teléfono` y se pulsa sobre `Número de compilación` repetidamente hasta que aparezca una notificación indicando que las opciones para desa... | Markdown |
transaction.gasPrice?.getInWei ?? BigInt.zero) /
BigInt.from(1000000000);
const encoder = JsonEncoder.withIndent(' ');
final trx = encoder.convert(tJson);
if (await MethodsUtils.requestApproval(
trx,
title: title,
method: method,
chainId: chainId,
transportType: tran... | Dart |
oid2CloserCliff, CliffGoingUpCode5, BC_SeaMajorCliffTop, i);
TC.SetEdgeCodes(JOKER, INVALID_ID, BC_Void2CloserCliff, CliffGoingUpCode5, JOKER, i);
AddTile(TC, SeaAltitude, CliffAltitude, P.mSideRampStartLeft*10, CreateTile_Inland_Straight_CloserCliff_LandMajor_Extension, "proxy top");
}*/
TC.EndTileG... | C++ |
delete(int col, Uint8List key) async {
final id = _tdb.requireId();
final encodedKey = base64UrlNoPadEncode(key);
final out = await _wrapApiPromise<String?>(
js_util.callMethod(wasm, 'table_db_delete', [id, col, encodedKey]));
if (out == null) {
return null;
}
return base64UrlNoP... | Dart |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.