content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
)
}
}
<reponame>tokera-com/ate
use async_trait::async_trait;
use bytes::Bytes;
use serde::{Deserialize, Serialize};
use std::sync::Arc;
use crate::chain::Chain;
use crate::chain::ChainKey;
use crate::crypto::AteHash;
use crate::crypto::PublicSignKey;
use crate::error::*;
use crate::event::*;
use crate::redo::LogLo... | Rust |
size_t byte_size_limit);
void initialize(ReservedSpace rs, size_t alignment);
void initialize_virtual_space(ReservedSpace rs, size_t alignment);
size_t gen_size_limit() { return _gen_size_limit; }
void set_gen_size_limit(size_t v) { _gen_size_limit = v; }
bool resize_generation(size_t eden_size... | C++ |
margin-right: 0.4em; padding: 0 0.4em 0 0.4em; display: block; }
/* LineNumbers */ .chroma .ln { ; margin-right: 0.4em; padding: 0 0.4em 0 0.4em; }
/* Keyword */ .chroma .k { color: #0000ff }
/* KeywordConstant */ .chroma .kc { color: #0000ff }
/* KeywordDeclaration */ .chroma .kd { color: #0000ff }
/* KeywordNamespac... | CSS |
sass/src/button/Button.scss */
.x-btn-plain-toolbar-large-menu-active,
.x-btn-plain-toolbar-large-pressed {
border-color: #e1e1e1;
background-image: none;
background-color: #e1e1e1;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e1e1e1), color-stop(50%, #d5d5d5), color-stop(51%, #e... | CSS |
/*
* Copyright (c) 2012 Stephen A. Pratt
*
* 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 the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, p... | C# |
,0,0,0.2);
background-clip: padding-box;
}
/* popup */
.leaflet-popup {
position: absolute;
text-align: center;
margin-bottom: 20px;
}
.leaflet-popup-content-wrapper {
padding: 1px;
text-align: left;
border-radius: 12px;
}
.leaflet-popup-content {
margin: 13px 19px;
line-height: 1.4;
}
.leaflet-popup-co... | CSS |
Init();
}
private void Update()
{
unscaledDeltaTime = Time.unscaledDeltaTime;
m_timeToResetMinFpsPassed += unscaledDeltaTime;
m_timeToResetMaxFpsPassed += unscaledDeltaTime;
// Update fps and ms
m_currentFps = 1 / unscaledDel... | C# |
width: 40px;
height: 40px;
line-height: 40px;
font-weight: bold;
color: #fff;
border-radius: 50%;
margin: 2em auto;
}
.clr1 {
color: #0099e5;
}
.clr2 {
color: #ff4c4c;
}
.clr3 {
color: #34bf49;
}
/*-- //banner bottom --*/
/*-- //banner-bottom --*/
/*-- features --*/
h3.title-w3ls... | CSS |
value);
}
}
}
}
function setSelection(sel: HTMLSelectElement, value: string) {
let opts = sel.options;
for (let i: number = 0; i < opts.length; i++) {
opts.item(i).selected = false;
if (opts.i... | Typescript |
.annotation.RestController
@RestController
class InternalAnimationController(
private val animationFacade: AnimationFacade,
@Value("\${internal.image.secret}") private val internalImageSecret: String,
) {
@GetMapping(value = ["/lines/{username}/only-pets"], produces = ["image/svg+xml"])
fun getOnlyPet... | Kotlin |
if G2D.Process then
outputDGSMessage("G2D process terminated!","G2D")
G2D.Process = false
else
outputDGSMessage("G2D is not running!","G2D")
end
elseif args[1] == "crawl" then
if args[2] and args[2] ~= "" then
if args[2] == "npp" or args[2] == "n++" then
CrawlWikiFromMTA("n... | Lua |
r Redox, following http://pubs.opengroup.org/onlinepubs/7908799/xsh/time.h.html
#![no_std]
extern crate platform;
use platform::types::*;
#[cfg(target_os = "redox")]
pub const CLOCK_REALTIME: c_int = 1;
#[cfg(target_os = "redox")]
pub const CLOCK_MONOTONIC: c_int = 4;
#[cfg(target_os = "linux")]
pub const CLOCK_REA... | Rust |
:"100%"},z(n.a,null,a("badge.gearheadPick")),z(m.a,{isDark:!0,boxSize:"50px",right:"10%",pos:"absolute",zIndex:"docked"})))}},X27B:function(a,c,l){"use strict";var s=l("CH9N"),e=l("wHK/"),t=l("ERkP"),n=l.n(t),r=l("KxNa"),i=n.a.createElement;c.a=function(a){var c=a.isDark,l=Object(e.a)(a,["isDark"]),t=c?"#757575":"#fff"... | JavaScript |
/*
* Copyright (c) 2016, Nareg Sinenian
* 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. Redistributions of source code must retain the above copyright notice,
* this list of c... | C |
print("声调,");
// for (Pinyin pinyin : pinyinList)
// {
// System.out.printf("%s,", pinyin.getTone());
// }
// System.out.println();
//
// System.out.print("声母,");
// for (Pinyin pinyin : pinyinList)
// {
// System.out.printf("%s,", pinyin.getShengmu... | Java |
[201.0] = "mwait",
[223.0] = "invlpga",
[196.0] = "vmxoff",
[220.0] = "stgi",
[248.0] = "swapgs",
[221.0] = "clgi",
[249.0] = "rdtscp",
[218.0] = "vmload",
[193.0] = "vmcall",
[219.0] = "vmsave",
[200.0] = "monitor",
[216.0] = "vmrun",
[195.0] = "vmresume"
}
slot16 = {
[0] = "faddFm",
"fmulFm",
"fcomFm",... | Lua |
}
return result;
}
/// The result of computing the [topologicalSort] on a [Graph].
class TopologicalSortResult<T> {
/// The non-cyclic vertices of the graph sorted in topological order.
final List<T> sortedVertices = [];
/// The cyclic vertices of graph, including vertices that have a path to
/// a vertex... | Dart |
# ############################################################################
# #
# Copyright 2020-2021 Jiang Mengshan #
# #
# Li... | Assembly |
VisualKitfmt[] = "niiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii";
char const StableSlotPricesfmt[] = "ni";
char const SummonPropertiesfmt[] = "niiiii";
char const TalentEntryfmt[] = "niiiiiiiiiiiiiixxxx";
char const TalentTabEntryfmt[] = "nxxiiixxxii";
char const TalentTreePrimarySpellsfmt[] = "diix";
char const TaxiNodesEnt... | C |
f_enable_rssi_th[4];
long cck_pwdb_sta[4];
};
struct tx_config_cmd {
u32 cmd_op; /* Command packet type. */
u32 cmd_length; /* Command packet length. */
u32 cmd_value;
};
/*------------------------------Define structure----------------------------*/
/*---------... | C |
Any {
var fragment = super.instantiateItem(container, position) as BooksFragment
val group = bookGroups[position]
/**
* Activity recreate 会复用之前的 Fragment,不正确的需要重新创建
*/
if (fragment.isCreated && getItemPosition(fragment) == POSITION_NONE) {
... | Kotlin |
g)
{
fprintf(flog, "%s\n", buffer);
fclose(flog);
}
}
#endif
// Only used when calling TraceOut
const WCHAR *GuidToString(GUID guid)
{
static WCHAR szGuid[128];
StringFromGUID2(guid, szGuid, 128);
return szGuid;
}
extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReasonForCall, LPVOID lpvR... | C++ |
cmp r1, #0x1
bne branch_2256532
ldr r0, [r4, #0x18]
cmp r0, #0x1
bne branch_2256532
mov r0, #0x0
strb r0, [r4, #0x3]
ldr r0, [r4, #0x8]
mov r1, #0x3
bl Function_2256918
mov r0, #0x0
str r0, [r4, #0x1c]
mov r0, r4
mov r1, #0x1
bl Function_225635c... | Assembly |
ails } from '../Users/usersInterfaces';
import { INewsFeed } from './newsFeedInterfaces';
export enum newsFeedsActionTypes {
GET_NEWSFEEDS_OF_USER_REQUEST = 'GET_NEWSFEEDS_OF_USER_REQUEST',
GET_NEWSFEEDS_OF_USER_RESPONSE = 'GET_NEWSFEEDS_OF_USER_RESPONSE',
}
const getNewsFeed = (userDetails: IUserDetails) =>
... | Typescript |
", nil, {"杀死8只邪灵劣魔,然后向大兽穴外的祖雷萨复命。"}},
[793] = {"破碎的联盟", nil, {"用大地印章激活钻石柱、玛瑙石柱和紫水晶石柱并拿到三颗符石。\n\n把符石放在大地封印上,释放黑龙布莱克拉什和赫玛图斯。\n\n杀了这两条黑龙,把黑龙布莱克拉什的锁链、赫玛图斯的锁链和大地印章交给高恩。"}},
[794] = {"火刃奖章", nil, {"给大兽穴外的祖雷萨带回火刃奖章。"}},
[796] = {"<UNUSED>", nil, nil},
[797] = {"<UNUSED>", nil, nil},
[798] = {"<UNUSED>", nil, nil},
[799] = {"<... | Lua |
; GRAZEY of The P.H.F. From Kingston Upon Hull
; Brings you The Ultimate Music Hack for your Atari ST.
; ALL the music from the Best In the Galaxy Demo By The Exceptions!
; Music Composition........................Rob Hubbard ( From Hull,hehe )
; Music Conversion.........................Jochen Hippel ( Of TEX )
... | Assembly |
seen)
missing, ok := it.Error().(*MissingNodeError)
if !ok || missing.NodeHash != rhash {
t.Fatal("didn't hit missing node, got", it.Error())
}
// Add the node back and continue iteration.
if memonly {
delete(tr.reader.banned, string(rpath))
} else {
rawdb.WriteTrieNode(diskdb, common.Hash{}, rpat... | Go |
/* Smallest integral value not less than argument. PowerPC version.
Copyright (C) 2019-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
pub... | C |
0x01bc_bbc4, 0xaae5_0f15,
0x45b3_e48d, 0xeeea_505c, 0x1300_8d2f, 0xb859_39fe, 0x438c_8318, 0xe8d5_37c9, 0x153f_eaba, 0xbe66_5e6b,
0x49cd_2ba7, 0xe294_9f76, 0x1f7e_4205, 0xb427_f6d4, 0x4ff2_4c32, 0xe4ab_f8e3, 0x1941_2590, 0xb218_9141,
0x0f43_3f21, 0xa41a_8bf0, 0x59f0_5683, 0xf2a9_e252, 0x097c_58b4, 0xa225_e... | Rust |
);
final expectedRow = ['°∆'];
expect(result, [expectedRow]);
result = await connection.execute('select t from t');
expect(result, [expectedRow]);
});
test('UTF16 strings in value with escape characters', () async {
await connection.execute(
Sql.named('INSERT INTO t (t) ... | Dart |
,
}
}
#[cfg(feature = "std")]
#[inline]
fn encrypt_reader_to_bytes(&self, reader: &mut dyn Read) -> Result<Vec<u8>, MagicCryptError> {
match &self.cipher {
MagicCryptCipher::DES64(mc) => mc.encrypt_reader_to_bytes(reader),
MagicCryptCipher::AES128(mc) => mc.encry... | Rust |
xa5, 0x8d, 0xd3, 0x27, 0x95, 0xf5, 0x18, 0x3e, 0x10, 0x3d, 0x36, 0x12, 0xb3, 0xec, 0x7d, 0x42,
0x0a, 0xda, 0x2c, 0x4b, 0x7d, 0xbf, 0x74, 0xf5, 0x9b, 0x9f, 0xf4, 0xd4, 0xef, 0x4f, 0xf5, 0xa9,
0xb0, 0xfa, 0x63, 0x04, 0x4b, 0xa1, 0x6e, 0xfc, 0x25, 0xac, 0x5e, 0xe8, 0x59, 0x5c, 0x9d, 0xe7,
0xce, 0xbc, 0x89, 0x2b, 0xbd, ... | Go |
e0d\u652f\u6301\u6253\u5f00\u526a\u8d34\u677f\uff0c\u8bf7\u4f7f\u7528Ctrl+X\/C\/V\u7b49\u5feb\u6377\u952e\u3002",
"Headers": "\u6807\u9898",
"Header 1": "\u6807\u98981",
"Header 2": "\u6807\u98982",
"Header 3": "\u6807\u98983",
"Header 4": "\u6807\u98984",
"Header 5": "\u6807\u98985",
"Heade... | JavaScript |
Value))
return EC;
} else if (Value >= std::numeric_limits<int16_t>::min() &&
Value <= std::numeric_limits<int16_t>::max()) {
if (auto EC = Writer->writeInteger<uint16_t>(LF_SHORT))
return EC;
if (auto EC = Writer->writeInteger<int16_t>(Value))
return EC;
} else if (Value >= s... | C++ |
```
kubectl --namespace rook get pod -o jsonpath='{range .items[*]}{range .spec.containers[*]}{.image}{"\n"}' -l 'app in (csi-rbdplugin,csi-rbdplugin-provisioner,csi-cephfsplugin,csi-cephfsplugin-provisioner)' | sort | uniq
```
- Final checks:
Once everything is up to date then run following commands in the to... | Markdown |
-
if not isinstance(w, libpysal.weights.W):
return {"status": "error", "message": "Failed to build a valid W object"}
transform_type = (transform_type or "").lower()
if transform_type not in {"r", "v", "b", "o", "d"}:
return {"status": "error", "message": f"Invalid transf... | Python |
) {
data['badge'] = this.badge.toJson();
}
return data;
}
}
import 'package:fluro/fluro.dart';
import 'package:flutter_wechat/routers/router_init.dart';
import 'package:flutter_wechat/views/profile/setting/setting_page.dart';
import 'package:flutter_wechat/views/profile/about_us/about_us_page.dart';
im... | Dart |
WARMUP = 0.05
IDLING = 0.40
ANNEALING = 0.30
WARMUP_START_LR_FACTOR = 0.01
ANNEALING_LR_MIN_FACTOR = 0.2
DECAY_LR_MIN_FACTOR = 0.005
def config_helper(total_iters: int, max_lr: float, verbose: bool = False):
warmup_iters = int(total_iters * WARMUP)
lr_idling_iters = int(total_iters * IDLING)
annealing_it... | Python |
panel-label{width:100%;color:#666}.fui-label-panel.fui-no-position .fui-label-panel-label{position:static!important}.fui-label-panel.fui-layout-bottom .fui-label-panel-label{position:absolute;bottom:0;left:0;top:auto;z-index:2}.fui-label{cursor:default;display:inline-block;white-space:nowrap}.fui-mask{position:fixed;z-... | CSS |
��일에 추가할 접미사. CDN에서 non-cache를 강제할 경우 유용함 (예를 들어 ?version2 를 붙이는 것 처럼)
## Particle FX
#### max_emitter_count
동시에 존재할 수 있는 emitters 최대 수, 기본값 64
#### max_particle_count
동시에 존재할 수 있는 파티클 최대 수, 기본값 1024
## Facebook
#### appid (hidden setting)
Facebook에서 발행한 application id
## IAP
#### auto_finish_transactions
체크하면 자동으로 ... | Markdown |
20.船舶引航合同纠纷案件;
21.船舶抵押合同纠纷案件;
22.船舶租用合同(含定期租船合同、光船租赁合同等)纠纷案件;
23.船舶融资租赁合同纠纷案件;
24.船员劳动合同、劳务合同(含船员劳务派遣协议)项下与船员登船、在船服务、离船遣返相关的报酬给付及人身伤亡赔偿纠纷案件;
25.海上、通海可航水域货物运输合同纠纷案件,包括含有海运区段的国际多式联运、水陆联运等货物运输合同纠纷案件;
26.海上、通海可航水域旅客和行李运输合同纠纷案件;
27.海上、通海可航水域货运代理合同纠纷案件;
28.海上、通海可航水域运输集装箱租用合同纠纷案件;
29.海上、通海可航水域运输理货合同纠纷案件;
30.海上、通海可航水... | Markdown |
/*************************************************************************
* *
* XII Olimpiada Informatyczna *
* *
* Rozwizanie zada... | C |
};
let output = quote! {
impl #generics #krate::InfluxDbWriteable for #ident #generics
{
fn into_query<I: Into<String>>(self, name : I) -> #krate::WriteQuery
{
let timestamp : #krate::Timestamp = self.#time_field.into();
let mut query = timest... | Rust |
; ----------------------------------
; debout OK
; ----------------------------------
vbl_debout clr saut(a6) ; flag si vient de marche
; Changement de cote ?
SEQUENCE2 #vbl_debout,#debout_rien ; retour
move xn(a6),d0 ; si je suis
sub xn(a3),d0 ; a droite de l'autre
bpl.s debout_cdroit ; alors c'est + loin
t... | Assembly |
tokenizer.enterRCDATA(toCharCodes(`</template`), 0);
}
} else {
let expParseMode = 0 /* Normal */;
currentProp.exp = createExp(
currentAttrValue,
false,
getLoc(currentAttrStartIndex, currentAttrEndIndex),
... | JavaScript |
age, query_image, [support_mask], video_predictor, return_vis=True)
retrieve_scores.append(iou_records[0])
retrieve_vis.append(vises[0])
# sort the query images based on the retrieval scores
sorted_indices = np.argsort(retrieve_scores)
sorted_retrieved_images = [retrieve_vis[i] for i in sorted_indices]
if out... | Python |
'ParameterGroupName': parameterGroupName,
if (tags != null)
if (tags.isEmpty)
'Tags': ''
else
for (var i1 = 0; i1 < tags.length; i1++)
for (var e3 in tags[i1].toQueryMap().entries)
'Tags.Tag.${i1 + 1}.${e3.key}': e3.value,
};
final $result = aw... | Dart |
�는 유형별로 분류하는 경우에도 마찬가지입니다. 예를 들어 데스크톱과 모바일에 대해 별도의 보고서를 실행하는 경우 데스크톱에서 가장 중요하게 생각하는 FID 값은 데스크톱 사용자의 95~99번째 백분위수여야 하고 모바일에서 가장 중요하게 여기는 FID 값은 모바일 사용자의 95~99번째 백분위수여야 합니다.
## FID를 개선하는 방법
특정 사이트에 대한 FID를 개선하는 방법을 알아보려면 Lighthouse 성능 감사를 실행하고 감사에서 제안하는 특정한 [기회](https://developer.chrome.com/docs/lighthouse/performance... | Markdown |
e
extensibilidade.
Assim que estiver familiarizado com esses conceitos, você pode começar a se aprofundar nos
[padrões de projeto disponíveis](https://java-design-patterns.com/patterns/) por qualquer
das seguintes abordagens
- Pesquise um padrão específico por nome. Não consegue encontrar um? Informe um novo padrão... | Markdown |
c]};else if(!isNaN(o))u={t:"n",v:o};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return u}function Ig(e,t,r){var a=Xt(e),n=a.getUint32(8,!0),i=12,s=-1,f=-1,c=NaN,o=NaN,l=new Date(2001,0,1);n&1&&(c=Ag(e,i),i+=16),n&2&&(o=... | JavaScript |
_BAD_PARAMETER);
}
/* zero and free drbg state */
if (drbg->state)
{
switch (drbg->type)
{
case EXTERNAL_DRBG:
FREE(drbg->state);
break;
case SHA256_HMAC_DRBG:
sha256_hmac_drbg_free((SHA256_HMAC_DRBG_STATE *)drbg-... | C |
ize` method. More info: https://moleculer.services/docs/0.14/moleculer-web.html#Authorization
authorization: true,
// The auto-alias feature allows you to declare your route alias directly in your services.
// The gateway will dynamically build the full routes from service schema.
autoAliases: true,
... | JavaScript |
1);
c.translate(zoomDx, zoomDy);
c.scale(zoom);
c.translate(-zoomDx + relativeWidthGap * d, -zoomDy);
c.drawAtlas(
monaLisa,
monaLisas,
List.filled(monaLisas.length, const Rect.fromLTWH(0, 0, _w / 1, _h / 1)),
null,
null,
null,
Paint(),
);
}
Future<v... | Dart |
/src/platform/node/types.js"(exports) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CompressionAlgorithm = void 0;
var CompressionAlgorithm;
(function(CompressionAlgorithm2) {
CompressionAlgorithm2["NONE"] = "none";
CompressionAlgori... | JavaScript |
, this.options.height * 0.5)
this.ctx.rotate(deg * Math.PI / 180)
this.ctx.fillText(item, 0, 0)
this.ctx.rotate(-deg * Math.PI / 180)
this.ctx.translate(-dis, -this.options.height * 0.5)
})
for (var i = 0; i < 4; i++) {
this.ctx.strokeStyle = this.randomColor(40, 180)
this.ct... | JavaScript |
aram totalAmount 分
*/
public void setTotalAmount(Integer totalAmount) {
setTotalAmount(new BigDecimal(totalAmount / 100));
}
public Integer getTotalNum() {
return totalNum;
}
public void setTotalNum(Integer totalNum) {
addAttr(WxConst.TOTAL_NUM, totalNum);
this... | Java |
rong/document-library/tree/master/other-library/LeetCode/easy/557-反转字符串中的单词III(reverse-words-in-a-string-iii).md) |
| 25 | 558 - 四叉树交集(quad-tree-intersection) | [#558 解题](https://github.com/LiangJunrong/document-library/tree/master/other-library/LeetCode/easy/558-四叉树交集(quad-tree-intersection).md) |
| 26 | 559 - N叉树的最大深... | Markdown |
yoffset, true)
end)
glfw.set_scroll_callback(window, function(window, xoffset, yoffset)
-- whenever the mouse scroll wheel scrolls, this callback is called
camera:process_scroll(yoffset)
end)
-- tell GLFW to capture our mouse:
glfw.set_input_mode(window, 'cursor', 'disabled')
-- configure global opengl state
... | Lua |
Option<Self> {
let p = Peripherals {
iomuxc: iomuxc::IOMUXC::new(ral::iomuxc::IOMUXC::take()?),
ccm: ccm::CCM::new(ral::ccm::CCM::take()?, ral::ccm_analog::CCM_ANALOG::take()?),
pit: pit::UnclockedPIT::new(ral::pit::PIT::take()?),
dcdc: dcdc::DCDC(ral::dcdc::DCDC:... | Rust |
ddSupportServices = true,
AddLicensing = false,
AddDumperService = true,
// Provide a test license for all tests. This is not useful for the open-soure tests,
// but it's useful for premium components.
LicensingOptions = Li... | C# |
#CHECK: error: instruction requires: miscellaneous-extensions-3
#CHECK: selfhr %r0, %r0, %r0, 0
#CHECK: error: instruction requires: miscellaneous-extensions-3
#CHECK: selfhre %r0, %r0, %r0
selfhr %r0, %r0, %r0, 0
selfhre %r0, %r0, %r0
#CHECK: error: instruction requires: miscellaneous-extensions-3
#CHECK: selr ... | Assembly |
NoBorderFlag)
fmt.Println(t.Render())
fmt.Printf("\n")
}
func (e *SEnv) PrintServiceFeatures() {
t := table.NewWriter()
rowConfigAutoMerge := table.RowConfig{AutoMerge: true}
t.AppendHeader(table.Row{"Service Features", "Configuration"}, rowConfigAutoMerge)
features := e.Features.GetFeatures()
for _, feature :... | Go |
(picList != null && picList.length > 0) {
//一共有几张图片
int len = picList.length;
//算出一共有几行
int rowlength = 0;
//一共有几列
int conlength = 0;
if (len <= 3) {
conlength = len;
rowlength = 1;
} else if (len <= 6) {
conlength = 3;
rowlength = 2;
if (len == 4) {
... | Dart |
yui-gb .yui-u {_margin-left:1.0%;}
.yui-gb .yui-gd .yui-u {*width:66%;_width:61.2%;}
.yui-gb .yui-gd div.first {*width:31%;_width:29.5%;}
.yui-g .yui-gc .yui-u,
.yui-gb .yui-gc .yui-u {width:32%;_float:right;margin-right:0;_margin-left:0;}
.yui-gb .yui-gc div.first {width:66%;*float:left;*margin-left:0;}
.yu... | CSS |
Demo
more detailed instructions can be found
[here](https://pivan.github.io/file-upload/)
# Tested with
- Firefox (latest)
- Chrome (latest)
- Chromium (latest)
- Edge
# Compatible with
- Angular 20 (@iplab/ngx-file-upload@version >= 20.0.0)
- Angular 19 (@iplab/ngx-file-upload@version >= 19.0.0)
- Angular 18 (@i... | Markdown |
/* SPDX-License-Identifier: GPL-2.0-only */
#include <amdblocks/mca.h>
#include <cpu/x86/msr.h>
#include <types.h>
static const char *const mca_bank_name[] = {
[0] = "Load-store unit",
[1] = "Instruction fetch unit",
[2] = "L2 cache unit",
[3] = "Decode unit",
[4] = "",
[5] = "Execution unit",
[6] = "Fl... | C |
3. Compute multiple Scattering.
bgfx::setImage(ATM_TRANSMITTANCE_SLOT, GetRenderContext()->GetTexture(TextureTransmittanceCrc), 0, bgfx::Access::Read, bgfx::TextureFormat::RGBA32F);
bgfx::setImage(ATM_SCATTERING_DENSITY, GetRenderContext()->GetTexture(TextureDeltaScatteringDensityCrc), 0, bgfx::Access::Read, bgfx:... | C++ |
(context).primaryColor,
fontSize: 14,
);
}
Future<void> updateLivenessLevel(value) async {
final prefs = await SharedPreferences.getInstance();
await prefs.setInt("liveness_level", value);
}
Future<void> updateCameraLens(value) async {
final prefs = await SharedPreferences.getInstance();... | Dart |
// 新版HorizontalPager无限循环滑动实现,参考https://github.com/google/accompanist/blob/main/sample/src/main/java/com/google/accompanist/sample/pager/HorizontalPagerLoopingSample.kt
val middleIndex = MAX_PAGE_COUNT / 2
val pageCount = MusicPlayController.realSongList.size
Log.d("ssk", "DiskPager recompose pageCount =... | Kotlin |
@ccclass
export default class Vitalsigns extends cc.Component {
@property
maxHP: number = 100;
@property
HP: number = 100;
@property
Damage: number = 10;
progressBarHp: number = 100;
isDead: boolean = false;
onDeadPlus: any = null;
update(dt) {
this.updateHP();
}
... | Typescript |
mucal_vclk_uart_bt, NULL, NULL),
CMUCAL_VCLK(VCLK_USI06_I2C, NULL, cmucal_vclk_usi06_i2c, NULL, NULL),
CMUCAL_VCLK(VCLK_USI06_USI, NULL, cmucal_vclk_usi06_usi, NULL, NULL),
CMUCAL_VCLK(VCLK_USI07_I2C, NULL, cmucal_vclk_usi07_i2c, NULL, NULL),
CMUCAL_VCLK(VCLK_USI07_USI, NULL, cmucal_vclk_usi07_usi, NULL, NULL),
CM... | C |
UnknownFieldSet
import com.tencent.mobileqq.fe.FEKit
import de.robv.android.xposed.XC_MethodHook
import kotlinx.io.core.BytePacketBuilder
import kotlinx.io.core.readBytes
import kotlinx.io.core.writeFully
import kotlinx.serialization.encodeToByteArray
import kotlinx.serialization.protobuf.ProtoBuf
import moe.fuqiuluo.e... | Kotlin |
void {
for(let i = 0; i < 9; i++){
if(game.grid[i] == " "){
game.grid[i] = aiChar;
return;
}
}
}
static createNewGame(): any {
const grid: string[] = [];
for(let i = 0; i < 9; i++){
grid.push(' ');
}
const dateNow = Date.now().toString();
return {... | Typescript |
essages_fi_fi.messages;
case 'fr_FR':
return messages_fr_fr.messages;
case 'he_IL':
return messages_he_il.messages;
case 'hu_HU':
return messages_hu_hu.messages;
case 'it_IT':
return messages_it_it.messages;
case 'ja_JP':
return messages_ja_jp.messages;
case 'kk_KZ'... | Dart |
uerte de su columna.
Dada una matriz strength, devuelva el eslabón más débil si existe; de lo contrario, retornega -1. Si existe un eslabón más débil, siempre es exactamente uno, y se puede probar que ningún otro vínculo satisfará ambas condiciones simultáneamente.
"""
# def eslabon_mas_debil(matriz):
# m = len(ma... | Python |
d, of The University of Texas at Austin. */
/*********************************************************************/
#define ASSEMBLER
#include "common.h"
#define M ARG1
#define X ARG2
#define INCX ARG3
#define RET %rax
#define I ARG4
#define NUM %r10
#ifndef USE_MIN
#define FMOV fcmovbe
#define IMOV... | Assembly |
d<Xc @ sq d d l Z d d l m Z d d l Z d d l m Z e j j Z d d d YZ d e f d YZ
d S( iN( t log( t mapt Installerc B sV e Z d Z d Z d Z d Z d Z d Z d Z d
Z e
d Z RS( s
-nspkg.pthc C ... | Python |
echo printf("%2$*3$.*1$d", 1, 2, 3)
< 2 >vim
echo printf("%3$*1$.*2$d", 1, 2, 3)
< 03 >vim
echo printf("%1$*2$.*3$g", 1.4142, 2, 3)
< 1.414
You can mix specifying the width and/or precision directly
and via positional arguments: >vim
echo printf("... | Lua |
_.isra.219, .-_ZN5boost6detail46make_future_deferred_continuation_shared_stateINS_6futureIiEEiZ4mainEUlT_E1_EENS2_IT0_EERNS_11unique_lockINS_5mutexEEEOS4_OT1_.isra.219
.section .text._ZN5boost16exception_detail19error_info_injectorINS_20future_uninitializedEEC2ERKS3_,"axG",@progbits,_ZN5boost16exception_detail19error_... | Assembly |
, callback) {
var stringBuffer, line,
encoding = "utf-8",
file = new java.io.File(url),
lineSeparator = java.lang.System.getProperty("line.separator"),
input = new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream... | JavaScript |
.
- `trait` - Define una `trait` (característica).
- `true` - Literal booleano verdadero.
- `type` - Define un `type alias` (alias de un tipo) o asocia un tipo.
- `union` - Define una union; es solo una `keyword` (palabra clave) cuando se usa en una `union declaration`.
- `unsafe` - Denota código, funciones, caracterís... | Markdown |
6665; op2val:0xb505; immval:0x400; align:0
TEST_BRANCH_OP(bne, x4, x10, x11, 0x66666665, 0xb505, 0x400, 3f, x1, 1992,0)
inst_520:
// rs1_val==46339 and rs2_val==3,
// opcode: bne, op1:x10; op2:x11; op1val:0xb503; op2val:0x3; immval:0x8; align:0
TEST_BRANCH_OP(bne, x4, x10, x11, 0xb503, 0x3, 0x8, 1b, x1, 1996,0)
inst... | Assembly |
;
const SEG_KDATA: u32 = 2;
global_asm!(
r#"
# vectors.S sends all traps here.
.globl alltraps
alltraps:
# Build trap frame.
pushl %ds
pushl %es
pushl %fs
pushl %gs
pushal
# Set up data segments.
movw ${ds}, %ax
movw %ax,... | Rust |
{
background-color: #C7CBD6;
bottom: 0px;
content: "";
left: 50%;
position: absolute;
top: 0;
width: 2px;
z-index: 0;
}
h3.timeline-title {
margin: 0;
color: #C8CCD7;
font-size: 20px;
font-weight: 400;
margin: 0 0 5px;
text-transform: uppercase;
}
.t-info {
... | CSS |
'刁境瓶'},
{'22606', '刁境缾', '刁境缾'},
{'22607', '刁禁苹', '刁禁苹'},
{'22608', '刁禁蘋', '刁禁蘋'},
{'22609', '刁芹苹', '刁芹苹'},
{'22610', '刁芹蘋', '刁芹蘋'},
{'22611', '刁晋凭', '刁晋凭'},
{'22612', '刁晉憑', '刁晉憑'},
{'22613', '习釿苹', '习釿苹'},
{'22614', '習釿蘋', '習釿蘋'},
{'22615', '习津品', '习津品'},
{'22616', '習津品', '習津品'},
{'22617', '习中熏', '习中熏'},
{'22618', '習... | Lua |
R xor %r8, %r9, %r5
.word 0x833a0009 ! 813: SRA_R sra %r8, %r9, %r1
.word 0x86b22978 ! 814: ORNcc_I orncc %r8, 0x0978, %r3
.word 0xb4ba0009 ! 814: XNORcc_R xnorcc %r8, %r9, %r26
.word 0x88822ec0 ! 814: ADDcc_I addcc %r8, 0x0ec0, %r4
.word 0x8a0a2d84 ! 814: AND_I and %r8, 0x0d84, %r5
.word 0x832a1009 !... | Assembly |
= LocalAlloc(LPTR, pHardKey->cbSecret))
{
if(ReadMemory((ULONG_PTR) hKey.key + offset + FIELD_OFFSET(KIWI_HARD_KEY, data), bufferHardKey, pHardKey->cbSecret, NULL))
{
__try
{
status = NT_SUCCESS(BCryptGenerateSymmetricKey(pGenKey->hProvider, &pGenKey->hKey, pGenKey->pKey, pGenKey... | C |
0..=b.len()).collect();
let mut t_last = 0;
for (i, sc) in a.chars().enumerate() {
let mut current = i;
dcol[0] = current + 1;
for (j, tc) in b.chars().enumerate() {
let next = dcol[j + 1];
if sc == tc {
dcol[j + 1] = current;
} else ... | Rust |
out_depth);
}
}
global.PoolLayer = PoolLayer;
})(convnetjs);
(function(global) {
"use strict";
var Vol = global.Vol; // convenience
// Volume utilities
// intended for use with data augmentation
// crop is the size of output
// dx,dy are offset wrt incoming volume, of the shift
// fliplr is boo... | JavaScript |
.ui.datetime.formatTimeAmPm
import com.sadellie.unitto.core.ui.datetime.formatTimeHours
import com.sadellie.unitto.core.ui.datetime.formatTimeMinutes
import com.sadellie.unitto.core.ui.datetime.formatZone
import com.sadellie.unitto.core.ui.squashable
import java.time.ZonedDateTime
@Composable
internal fun UserTimeZone... | Kotlin |
{
Address: "strideAddrUserA",
Receiver: "strideAddrUserA",
Amount: sdkmath.NewInt(2000),
Denom: "ustrd",
EpochNumber: uint64(101),
ClaimIsPending: false,
UnbondingEstimatedTime: "2024-01-11 00:00:0... | Go |
item {
CommonItem("Special Arg, Type = 1") {
schemeBuilder(SchemeConst.SCHEME_ACTION_SCHEME_SPECIAL_ARG)
.arg("type", 1)
.runQuietly()
}
}
item {
CommonItem("Special Arg, Type = 2") {
scheme... | Kotlin |
|lua)$]])
local function normalize_paths(path)
-- Ensure path starts with "/"
if path:sub(1, 1) ~= "/" then
path = "/" .. path
end
-- If empty, it's just the root
if path == "/" then
return { "/" }
end
-- Return both with and without trailing slash
if path:sub(-1) == "/" then
return { path,... | Lua |
istener
{
public Action<BillingResult, IList<SkuDetails>> SkuDetailsResponseHandler { get; set; }
public void OnSkuDetailsResponse(BillingResult result, IList<SkuDetails> skuDetails)
=> SkuDetailsResponseHandler?.Invoke(result, skuDetails);
}
internal class InternalProductDetai... | C# |
ja', ''),
const Locale('nb', ''),
const Locale('ms', ''),
const Locale('pl', ''),
const Locale('pt', ''),
const Locale('pt', 'BR'),
const Locale('ro', ''),
const Locale('ru', ''),
const Locale('tr', ''),
const Locale('uk', ''),
const Locale('zh', 'Hans'),
];
static String ge... | Dart |
tc.msg, clone)
})
}
}
func TestECSFromMsg(t *testing.T) {
ipv4Net := netip.MustParsePrefix("1.2.3.0/24")
ipv6Net := netip.MustParsePrefix("2001:0:0102:0304::/64")
msgNoOpt := dnsservertest.NewReq(testFQDN, dns.TypeA, dns.ClassINET)
testCases := []struct {
msg *dns.Msg
wantECS netip.Prefix
nam... | Go |
Transaction())
{
var subClass = new SubClass();
var referencing = new ReferencingClass() { SubClass = subClass };
session.Save(subClass);
session.Save(referencing);
transaction.Commit();
}
using (var session = OpenSession())
using (var transaction = session.BeginTransaction())
{
... | C# |
tType::Linear{axis: Vector3::z_axis()})
/// .limits(Some((0.0..=2.0).into()))
/// .into_node();
/// j1.set_mimic_parent(&j0, k::joint::Mimic::new(1.5, 0.1));
/// assert_eq!(j0.joint_position().unwrap(), 0.0);
/// assert_eq!(j1.joint_position().unwrap(), 0.0);
/// assert!(j0.set_joint_pos... | Rust |
1.16-2.412-1.4-4.51-.788-6.895.597-2.33 1.556-3.88 3.407-5.51 2.862-2.52.88-2.37 31.663-2.47 19.077-.064 27.955.012 29.348.25 4.27.733 8.29 3.674 10.38 7.593.83 1.556 6.15 16.138 13.595 37.267.982 2.79 3.854 10.88 6.382 17.978 2.528 7.098 4.692 13.345 4.81 13.88.48 2.206-1.046 4.933-3.347 5.978-1.58.717-3.063.716-4.622... | Typescript |
: Exception) {
uiState.value = UiState.Error(DataSource.NETWORK, "Something went wrong!")
}
}
}
fun clearDatabase() {
viewModelScope.launch {
database.clear()
}
}
}
enum class DataSource(val dataSourceName: String) {
DATABASE("Database"),... | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.