content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
pert-pr{position:relative}#SOHUCS #SOHU_MAIN #list_sohu .expert-window{width:300px;position:absolute;border:1px solid #dee4e9;background:#FFF;display:none;z-index:100}#SOHUCS #SOHU_MAIN #list_sohu .expert-window .icon-arrow{width:10px;height:6px;position:absolute;top:-6px;left:20px;background:url(../../src/css/imgs/exp... | CSS |
.2itF7YmMYIP4b9NNtKMhIx2axGi6aI50RcwGBiFq-VA='
const expected = ''
const cipher = await encryptString(expected, key)
const received = await decryptString(cipher, key)
expect(received).toEqual(expected)
})
test('Decrypt known message (empty string)', async () => {
const key = 'k1.aesgcm256.2itF7... | Typescript |
boost::swap(x.get(), y.get());
if( !hasX )
y = boost::none ;
else if( !hasY )
x = boost::none ;
}
};
#ifdef BOOST_OPTIONAL_DETAIL_MOVE
# undef BOOST_OPTIONAL_DETAIL_MOVE
#endif
#ifndef BOOST_OPTIONAL_DETAIL_NO_RVALUE_REFERENCES
# define BOOST_OPTIONAL_DETAIL_MOVE(EXPR_... | C++ |
}.fc-time-grid .fc-bgevent-container{position:relative;z-index:2}.fc-time-grid .fc-highlight-container{z-index:3;position:relative}.fc-time-grid .fc-event-container{position:relative;z-index:4}.fc-time-grid .fc-now-indicator-line{z-index:5}.fc-time-grid .fc-mirror-container{position:relative;z-index:6}.fc-time-grid .fc... | CSS |
),
'likes': int(video['statistics'].get('likeCount', 0)),
'published_at': video['snippet']['publishedAt'],
'url': f"https://youtube.com/watch?v={video['id']}"
}
videos.append(processed_video)
result = {
'success': True,... | Python |
8, 0x1c
/* 800765A4 000734E4 2C 1B 00 FF */ cmpwi r27, 0xff
/* 800765A8 000734E8 38 84 20 E0 */ addi r4, r4, c2r$1298@l
/* 800765AC 000734EC 54 CB 91 9A */ rlwinm r11, r6, 0x12, 6, 0xd
/* 800765B0 000734F0 7C 84 28 AE */ lbzx r4, r4, r5
/* 800765B4 000734F4 57 EA 78 20 */ slwi r10, r31, 0xf
/* 800765B8 000734F8 5... | Assembly |
/vf/t0/gf_61.woff2') format('woff2 supports variations');
unicode-range: U+6d79, U+6d7c, U+6d7f, U+6d81-6d82, U+6d85, U+6d87, U+6d8e-6d8f, U+6d91-6d9b, U+6d9d, U+6d9f, U+6da1, U+6da4-6dac, U+6db1, U+6db3-6db4, U+6db7-6db9, U+6dbe-6dc0, U+6dc2, U+6dc4-6dc5, U+6dc8-6dca, U+6dcc-6dcd, U+6dcf-6dd0, U+6dd2-6dd3, U+6dd5-6d... | CSS |
鉮䤾轁𨰜𦯀堒埈㛖𡑒烾𤍢𤩱𢿣𡊰𢎽梹楧𡎘𣓥𧯴𣛟𨪃𣟖𣏺𤲟樚𣚭𦲷萾䓟䓎"], ["9840", "𦴦𦵑𦲂𦿞漗𧄉茽𡜺菭𦲀𧁓𡟛妉媂𡞳婡婱𡤅𤇼㜭姯𡜼㛇熎鎐暚𤊥婮娫𤊓樫𣻹𧜶𤑛𤋊焝𤉙𨧡侰𦴨峂𤓎𧹍𤎽樌𤉖𡌄炦焳𤏩㶥泟勇𤩏繥姫崯㷳彜𤩝𡟟綤萦"], ["98a1", "咅𣫺𣌀𠈔坾𠣕𠘙㿥𡾞𪊶瀃𩅛嵰玏糓𨩙𩐠俈翧狍猐𧫴猸猹𥛶獁獈㺩𧬘遬燵𤣲珡臶㻊県㻑沢国琙琞琟㻢㻰㻴㻺瓓㼎㽓畂畭畲疍㽼痈痜㿀癍㿗癴㿜発𤽜熈嘣覀塩䀝睃䀹条䁅㗛瞘䁪䁯属瞾矋売砘点砜䂨砹硇硑硦葈𥔵礳栃礲䄃"], ["9940", "䄉禑禙辻稆込䅧窑䆲窼艹䇄竏竛䇏両筢筬筻簒簛䉠䉺类粜... | JavaScript |
locking enabled"]
ENABLED,
}
impl AUTOBLOCKR {
#[doc = r" Returns `true` if the bit is clear (0)"]
#[inline]
pub fn bit_is_clear(&self) -> bool {
!self.bit()
}
#[doc = r" Returns `true` if the bit is set (1)"]
#[inline]
pub fn bit_is_set(&self) -> bool {
self.bit()
}
... | Rust |
st) filter by class, i.e. = [0, 15, 16] for COCO persons, cats and dogs
max_det = 1000 # maximum number of detections per image
amp = False # Automatic Mixed Precision (AMP) inference
results = model(im, size=320) # custom inference size
```
### Device
Models can be transferred to any device after cre... | Markdown |
al bd=_c[bc[ad[#ad][1]]]
for j=1,#bd do local cd=bd[j]for i=1,#ad-1 do if
ad[i][1]==cd then return i end end end;return 1 end
local function _d(ad,bd)
if not bd then local dd={}bd={}for i=1,6 do local __a=ad[i]local a_a=bd[__a]
bd[__a],dd[i]=a_a and(a_a+1)or 1,__a end;ad=dd end;local cd={}for dd,__a in pairs(bd)do cd[#... | Lua |
operator ==(Object other) {
if (identical(this, other)) return true;
if (other is! MapTypeRestriction<Type>) return false;
if (keyType != other.keyType || valueType != other.valueType) {
return false;
}
if (keys.length != other.keys.length) return false;
return keys.containsAll(other.keys)... | Dart |
or(
// {
// and(
// activeDidState("PIN"),
// activeDidState(
// "TAKey",
// PaceAclQualifier(+"7F4C12060904007F00070301020253050000000010"),
// ),
// activeDidState(
// "TAKey",
// PaceAclQualifier(taKey2),
// ),
// activeDidStat... | Kotlin |
mple thing,
* I'll need to think about what API makes the most sense for this.
* I think the most user-friendly option would be if there was some sort of
* "oscillator system" (e.g. a synth) that took both an x and y input and
* did this kind of "magic" itself.
*/
grid(0, width,... | Kotlin |
String topText = texts.pollLast();
String bottomText = texts.pollFirst();
double textsStep = (double) (height - 2) / (double) (texts.size() + 1);
for (int y = startY; y < lastY; y++) {
String text = null;
if (y == startY) {
text = topText;
} else if (y == lastY - 1) {
text = bottomTex... | Java |
.0[0].0);
}
#[test]
fn t2() {
let mut slice = Byte::vec(10);
let mut bit_arr = BitArrMut(&mut slice);
// safe because test run in debug
unsafe {
bit_arr.set_unchecked(0);
bit_arr.set_unchecked(2);
bit_arr.set_unchecked(4);
bit_... | Rust |
itempty"` // 省份/州地址Code码
CountryCode *string `json:"country_code,omitempty"` // 国家地址Code码
DistrictNameInfo *LocationNameInfo `json:"district_name_info,omitempty"` // 区/县地址名称信息聚合
}
type LocationDistrictBuilder struct {
districtCode string // 区/县Code码
districtCodeFlag bool
cityCode string // 市地址Code码
ci... | Go |
}
#[cargo_test]
fn rustc_bench() {
full_project()
.cargo("rustc -v --bench 'be*1'")
.with_stderr_contains("[RUNNING] `rustc --crate-name bench1 [..]`")
.with_stderr_contains("[RUNNING] `rustc --crate-name bin2 [..]`")
.with_stderr_contains("[RUNNING] `rustc --crate-name bin1 [..]`"... | Rust |
zmm4, %zmm27, %zmm5
vfnmadd231pd %zmm12, %zmm27, %zmm13
vfnmadd231pd %zmm20, %zmm27, %zmm21
#if defined(OS_LINUX) | defined(OS_WINDOWS)
vbroadcastsd .LC05+6*8(%rip), %zmm27
#elif defined(OS_MAC)
vbroadcastsd LC05+6*8(%rip), %zmm27
#endif
vpermpd %zmm4, %zmm27, %zmm27
vfnmadd231pd %zmm4, %zmm27, %zmm6
vfnmadd23... | Assembly |
,201,202,203,204,205,206,207,208,209, //80
210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225, //90
81,226,227,228,229,230,105,231,232,233,234,235,236, 45,237,238, //a0
31, 32, 35, 43, 37, 44, 55, 47, 40, 59, 33, 46, 38, 36, 41, 30, //b0
39, 28, 34, 51, 48, 49, 53, 50, 54, 57, 61,239, 67,240, 60, 56... | C++ |
1d
/* 801AE5EC 001AA24C 7C 92 00 2E */ lwzx r4, r18, r0
/* 801AE5F0 001AA250 7C 1E 20 40 */ cmplw r30, r4
/* 801AE5F4 001AA254 41 82 00 24 */ beq lbl_801AE618
/* 801AE5F8 001AA258 7F A3 EB 78 */ mr r3, r29
/* 801AE5FC 001AA25C 7F C6 F3 78 */ mr r6, r30
/* 801AE600 001AA260 38 A0 00 DE */ li r5, 0xde
/* 801AE604 0... | Assembly |
line_and_indent (this, -2);
pp_cxx_ws_string (this, CLEANUP_EH_ONLY (t) ? "catch" : "finally");
pp_newline_and_indent (this, 2);
statement (CLEANUP_EXPR (t));
pp_newline_and_indent (this, -2);
break;
case STATIC_ASSERT:
declaration (t);
break;
case OMP_DEPOBJ:
p... | C++ |
unsigned(value);
const UnitDefinition& def = c_defs[unit_index];
const WCHAR* unit = mini ? def.mini_unit : (n == 1) ? def.normal_unit : def.normal_units;
s.Printf(mini ? L"%3u %s" : L"%u %s", n, unit);
}
static void FormatRelativeTime(StrW& s, const FILETIME& ft, bool mini=false)
{
const ULONGLONG no... | C++ |
c)
local ray_can_go = on_nav_mesh and GwNavQueries.raycango(nav_world, wanted_position_on_nav_mesh, start_position, traverse_logic)
if ray_can_go then
return wanted_position_on_nav_mesh
else
return nil
end
end
local Vector3_dot, Vector3_distance, Vector3_distance_sq = Vector3.dot, Vector3.distance, Vector3.di... | Lua |
//
// GADInterstitialDelegate.h
// Google Mobile Ads SDK
//
// Copyright 2011 Google Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@class GADInterstitial;
@class GADRequestError;
/// Delegate for receiving state change messages from a GADInterstitial such as interstitial ad
/// requests succeedin... | C |
-color);
@include x-frame('window-header', '#{$ui-label}-bottom', 0 0 bottom($ui-border-radius) left($ui-border-radius), $window-border-width, 0 5px 5px, $ui-background-color);
@include x-frame('window-header', '#{$ui-label}-left', top($ui-border-radius) 0 0 left($ui-border-radius), $window-border-wid... | CSS |
rgin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leafle... | CSS |
== debug.upvalueid(a1,'..j..')', debug.upvalueid(a2,i) == debug.upvalueid(a1,j))
print('debug.upvalueid(a2,'..i..') == debug.upvalueid(a2,'..j..')', debug.upvalueid(a2,i) == debug.upvalueid(a2,j))
end
end | Lua |
/*! -*-c++-*-
@file EyeIO.h
@author David Hirvonen
@brief Declaration of internal routines related to eye model conversion.
\copyright Copyright 2014-2016 Elucideye, Inc. All rights reserved.
\license{This project is released under the 3 Clause BSD License.}
This file contains declarations of various r... | C |
q .L_8033C968
/* 8033C91C 0033985C 3C 60 80 4E */ lis r3, "__vt__Q210JADUtility6Prm<s>"@ha
/* 8033C920 00339860 38 03 AC B4 */ addi r0, r3, "__vt__Q210JADUtility6Prm<s>"@l
/* 8033C924 00339864 90 1E 00 00 */ stw r0, 0(r30)
/* 8033C928 00339868 41 82 00 30 */ beq .L_8033C958
/* 8033C92C 0033986C 3C 60 80 4A */ lis ... | Assembly |
ialization and used
//when calling Invoke for speed.
private Dictionary<int, UnityEvent> _entryMap = new Dictionary<int, UnityEvent>();
public bool HasUnityEvent(int enumValue)
{
UnityEvent callback;
if (_entryMap.TryGetValue(enumValue, out callback))
... | C# |
assert!(g1.is_in_correct_subgroup_assuming_on_curve());
assert_eq!(g1, G1Affine::prime_subgroup_generator());
break;
}
}
i += 1;
x.add_assign(&Fq::one());
}
}
#[test]
fn test_g1_addition_correctness() {
let mut p = G1Projective::new(
... | Rust |
l r4, r2, #4
str r0, [sp, #8]
add r0, #0x4c
lsl r1, r1, #2
str r0, [sp, #8]
str r5, [r0, r4]
mov r0, #0x4e
lsl r0, r0, #2
ldr r3, [r5, r0]
add r2, r5, r4
str r3, [r2, #0x50]
add r1, r5, r1
add r0, r0, #4
ldr r0, [r1, r0]
mov r1, #0
str r0, [r6, r4]
mov r0, #1
str r0, [r2, #0x58]
ldr r0, [r6, r4]
bl s... | Assembly |
,此参数仍返回,但不具备参考意义。
*/
Emotion?: AttributeItem;
/**
* 眼睛相关信息,可识别是否戴眼镜、是否闭眼、是否双眼皮和眼睛大小。
FaceAttributesType 不含Eye 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
*/
Eye?: Eye;
/**
* 眉毛相关信息,可识别眉毛浓密、弯曲、长短信息。
FaceAttributesType 不含Eyebrow 或检测超过 5 张人脸时,此参数仍返回,但不具备参考意义。
*/
Eyebrow?: Eyebrow;
/*... | Typescript |
.util.List;
public class TestVoterWorker extends AbstractTestWorker<VoterBenchmark> {
@Override
public List<Class<? extends Procedure>> procedures() {
return TestVoterBenchmark.PROCEDURE_CLASSES;
}
@Override
public Class<VoterBenchmark> benchmarkClass() {
return VoterBenchmark.class;
}
}
/*******... | Java |
utomatic
this[privDimension] = undefined;
} else {
var parsedVal = parseFloat(value);
if (isNaN(parsedVal)) {
_utilsLogJs2['default'].error('Improper value "' + value + '" supplied for for ' + _dimension);
return this;
}
this[privDimension] = parsedVal;
}
thi... | JavaScript |
2c0.55,0,1-0.45,1-1s-0.45-1-1-1H6 C5.45,18,5,18.45,5,19z\"/></g>";
public const string i_file_download_done = "<g><rect fill=\"none\" height=\"24\" width=\"24\"/></g><g><g><path d=\"M19.42,4.71L19.42,4.71c-0.39-0.39-1.02-0.39-1.41,0l-8.48,8.49L5.99,9.66c-0.39-0.39-1.02-0.39-1.41,0l0,0 c-0.39,0.39-0.39,1.02,... | C# |
on(t)
return type(t) == 'string' and lines(t) or t
end)
end
T.box = function()
local l = lines(
'1 3 5 7 9\n'
..' 2 4 6\n'
..'a c d e f g h')
T.eq({'1 3', ' 2 ' }, lines.box(l, 1,1, 2,3))
T.eq({' 3 ', '2 4' }, lines.box(l, 1,2, 2,4))
T.eq({'7 9', '', 'e f g'}, lines.box(l, 1,7, 3,... | Lua |
cipher.decrypt(nonce, ciphertext.as_ref())
//! .expect("decryption failure!"); // NOTE: handle this error to avoid panics!
//!
//! assert_eq!(&plaintext, b"plaintext message");
//! ```
//!
//! ## In-place Usage (eliminates `alloc` requirement)
//!
//! This crate has an optional `alloc` feature which can be disabl... | Rust |
OREDVALS->QDIRSAVE[ IYR ] + G_STOREDVALS->QDIRSAVE[ IYRP ] ) / 2.0;
//F6272 ENDIF
}
//F6273 QQQIND = QQQSO2-QQQDIR
//UNUSED const float QQQIND = QQQSO2 - QQQDIR;
//F6274 DELQFOC = (QFOC(IYR)+QFOC(IYRP))/2.-QQQFOCR
const float DELQFOC = ( G_JSTART->QFOC[ IYR ] + G_JS... | C++ |
.0.1:**' --dist-backend 'hccl' --multiprocessing-distributed --world-size 1 --batch-size 2048 --epochs 90 --rank 0 --amp
```
- --dist-url:为多卡训练时使用的端口号,配置为任一空闲端口号即可。
- --amp:代表开启混合精度,仅多卡训练时需要显示开启,单卡训练时已默认开启。
2.查看训练后是否生成权重文件,生成了如下图模型文件则说明迁移训练成功。

for (var sx = 0; sx < links.Size.X; sx++)
if (((DirectionMask)links[sx, sy]).ToDirection() != Direction.None)
TracePoints(new int2(sx, sy), 0);
// All non-loops have been removed, leaving only loops left.
for (var sy = 0; sy < links.Size.Y; sy++)
for (var sx = 0; sx < links.Size.X; sx++)... | C# |
using System;
using LBPUnion.ProjectLighthouse.Configuration;
using Org.BouncyCastle.Asn1.X9;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Parameters;
using Org.BouncyCastle.Math;
using Org.BouncyCastle.Math.EC;
namespace LBPUnion.ProjectLighthouse.Tickets.Signature;
public class UnitTestSignatureVer... | C# |
.sequencek.applicative.just
*
* fun main(args: Array<String>) {
* val result =
* //sampleStart
* "Hello".just().map({ "$it World" })
* //sampleEnd
* println(result)
* }
* ```
*/
@JvmName("map")
@Suppress(
"UNCHECKED_CAST",
"USELESS_CAST",
"EXTENSION_SHADOWED_BY_MEMBER",
"UNUSED_PARAMETER"... | Kotlin |
]
//
// The resulting JSON document:
//
// { "foo": "bar" }
JSONPatchOverrideOpRemove JSONPatchOverrideOperator = "remove"
// JSONPatchOverrideOpReplace replaces the value at the target location with a new value.
// An example target JSON document:
//
// {
// "baz": "qux",
// "foo": "bar"
// ... | Go |
@media (max-width: 576px) {
.book-container:after {
content: '';
position: absolute;
bottom: 0;
right: 8px;
width: 40px;
height: 100%;
background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 100%);
pointer-events: none;
... | CSS |
args.output_json}")
repo: Optional[SQLiteRepository] = None
if config.storage.enabled:
repo = persist_summary(config, summary)
if repo and args.history > 0:
print(f"\n最近 {args.history} 期历史概览:")
for stored in repo.fetch_recent_summaries(limit=args.history):
revenue_str =... | Python |
Options: SPXMLRESULTOPTIONS,
pResult: *mut BSTR,
) -> HRESULT,
fn GetXMLErrorInfo(
LineNumber: *mut c_long,
ScriptLine: *mut BSTR,
Source: *mut BSTR,
Description: *mut BSTR,
ResultCode: *mut c_long,
IsError: *mut VARIANT_BOOL,
) -> HRESULT,
}}... | Rust |
// Seek to beginning for repeat (this will start a new tracking session)
playbackCallback.seekTo(0)
return playbackCallback.getCurrentSong()
}
// Try to move to next song
val nextSong = queue.next()
if (nextSong != null) {
Lo... | Kotlin |
ogMessage.String()
require.NoError(t, err)
require.Equal(t, "<13>1 2010-11-10T23:00:00Z testhost Telegraf - testmetric -", str, "Wrong syslog message")
}
func TestSyslogMapperWithHostnameSourceFallback(t *testing.T) {
s := newSyslog()
s.initializeSyslogMapper()
// Init metrics
m1 := metric.New(
"testmetric",
... | Go |
{
t.Fatal(terr)
}
if tresp.Succeeded != tt.wSucceeded {
t.Errorf("#%d: expected succeeded %v, got %v", i, tt.wSucceeded, tresp.Succeeded)
}
if len(tresp.Responses) != tt.wResponses {
t.Errorf("#%d: expected %d responses, got %d", i, tt.wResponses, len(tresp.Responses))
}
}
}
func TestLeasingTxnCan... | Go |
loading: 'Đang tải',
noMatch: 'Dữ liệu không phù hợp',
noData: 'Không tìm thấy dữ liệu',
placeholder: 'Chọn'
},
cascader: {
noMatch: 'Dữ liệu không phù hợp',
loading: 'Đang tải',
placeholder: 'Chọn',
... | JavaScript |
,
size_t r ,
size_t i_z ,
const addr_t* arg ,
const Base* parameter ,
size_t cap_order ,
Base* taylor )
{
// This routine is only for documentation, it should not be used
CPPAD_ASSERT_UNKNOWN( false );
}
/*!
Prototype for zero order for... | C++ |
.Prefix, name, now, t.Rate1(), shortHostname)
fmt.Fprintf(w, "put %s.%s.five-minute %d %.2f host=%s\n", c.Prefix, name, now, t.Rate5(), shortHostname)
fmt.Fprintf(w, "put %s.%s.fifteen-minute %d %.2f host=%s\n", c.Prefix, name, now, t.Rate15(), shortHostname)
fmt.Fprintf(w, "put %s.%s.mean-rate %d %.2f host=%s... | Go |
AndHolds("sanctuary"));
EXPECT_THAT(MakeRpc("istio"), IsOkAndHolds("sail"));
EXPECT_THAT(MakeRpc("kubernetes"), IsOkAndHolds("helmsman"));
ASYLO_ASSERT_OK(DestroyGrpcClientEnclave());
}
TEST_F(GrpcServerTest, Isvprodid3AuthorizationFailure) {
ASSERT_NO_FATAL_FAILURE(
StartServer(absl::GetFlag(FLAGS_acl_... | C++ |
}
return bucket
}
func (r *topicRadius) targetForBucket(bucket int) common.Hash {
min := math.Pow(2, 64-float64(bucket+1)/radiusBucketsPerBit)
max := math.Pow(2, 64-float64(bucket)/radiusBucketsPerBit)
a := uint64(min)
b := randUint64n(uint64(max - min))
xor := a + b
if xor < a {
xor = ^uint64(0)
}
prefix :... | Go |
true;
_lastPostDocument = null;
_lastContentDocument = null;
_totalPostsCount = 1000;
_totalContentCount = 0;
_postsViewedInSession.clear();
_visibilityTimers.forEach((key, timer) => timer.cancel());
_visibilityTimers.clear();
});
_loadAdditionalData();
await _lo... | Dart |
Id(yonghu.getId());
}
//修改对应字典表字段
dictionaryService.dictionaryConvert(view, request);
return R.ok().put("data", view);
}else {
return R.error(511,"查不到数据");
}
}
/**
* 后端保存
*/
@RequestMapping("/save")
public R save(@... | Java |
, 0, 0] + [0] * 128)
fig, ax = plt.subplots()
ax.plot(x + 1, y + 1)
ax.plot(x + 1, y + 1, 'ro')
@image_comparison(['clipping_with_nans'])
def test_clipping_with_nans():
x = np.linspace(0, 3.14 * 2, 3000)
y = np.sin(x)
x[::100] = np.nan
fig, ax = plt.subplots()
ax.plot(x, y)
ax.se... | Python |
al == key)
return forwardMap.remove(key)
}
override val entries: MutableSet<MutableMap.MutableEntry<L, R>>
get() = forwardMap.entries
override val keys: MutableSet<L>
get() = forwardMap.keys
override val values: MutableCollection<R>
get() = backwardMap.keys
}/*
* T... | Kotlin |
_code[[y, x]] == HEX_4_CODE {
HEX_4_SYMB
} else if symbol_code[[y, x]] == HEX_5_CODE {
HEX_5_SYMB
} else if symbol_code[[y, x]] == HEX_6_CODE {
HEX_6_SYMB
} else if symbol_code[[y, x]] == HEX_7_CODE {
HEX_7_SYMB
} else if symbol_code[[y, x]] == HEX_8_CODE {
... | Rust |
apply p-2;
}
.revise-modal-header {
@apply px-2 p-2 text-xs text-gray-400 bg-gray-50 dark:bg-gray-700;
}@font-face {
src: url("OpenSans-Regular.ttf");
}
@font-face {
src: url("SourceSansPro-Regular.ttf");
}
@font-face {
src: url("SourceSansPro-Semibold.ttf");
}
@font-face {
src: url("SourceSansPro-SemiBoldIt... | CSS |
unction t_end_buffers()
io.output(stdout_orig)
io.stderr = stderr_orig
stdout_io:seek("set")
stderr_io:seek("set")
local out, err = stdout_io:read("*all"), stderr_io:read("*all")
stdout_io:close()
stderr_io:close()
return out, err
end
--- Runs the test subject and returns the recorded stdout and st... | Lua |
rn if (MinecraftVersion.isHigherOrEqual(MinecraftVersion.V1_12) && source.startsWith('{') && source.endsWith('}')) {
// 1.16+
// ChatSerializer.a 的返回值由 IChatBaseComponent 变为 IChatMutableComponent
try {
if (MinecraftVersion.majorLegacy >= 12005) {
C... | Kotlin |
PF,CNPJ)
*/
export class AppDocumentoUtil {
public static readonly OPCAO_PESSOA_FISICA: string = 'PF';
public static readonly OPCAO_PESSOA_JURIDICA: string = 'PJ';
public static readonly MSG_ERRO_OPCAO_PESSOA_FISICA = 'Campo obrigatório e deve conter 11 dígitos.';
public static readonly MSG_ERRO_OPCAO_PESSOA... | Typescript |
#region Copyright
//=======================================================================================
// Microsoft Azure Customer Advisory Team
//
// This sample is supplemental to the technical guidance published on my personal
// blog at http://blogs.msdn.com/b/paolos/.
//
// Author: Paolo Salvatori
//=====... | C# |
(mv_cesa_req_dma_iter_next_transfer(dma_iter, sgiter, len));
return 0;
}
size_t mv_cesa_sg_copy(struct mv_cesa_engine *engine,
struct scatterlist *sgl, unsigned int nents,
unsigned int sram_off, size_t buflen, off_t skip,
bool to_sram)
{
unsigned int sg_flags = SG_MITER_ATOMIC;
struct s... | C |
value);
}
/// Wasm typed function reference.
@pragma("wasm:entry-point")
class WasmFunction<F extends Function> extends WasmFuncRef {
/// Create a typed function reference referring to the given function.
///
/// The argument must directly name a static function with no optional
/// parameters and no type para... | Dart |
Opts = Opts::parse();
let date: SystemTime;
if opts.key_sig_time == None {
date = SystemTime::UNIX_EPOCH;
} else {
date = SystemTime::UNIX_EPOCH
+ Duration::from_secs(opts.key_sig_time.unwrap().parse::<u64>().unwrap());
}
date
}
fn get_key_expiration_time() -> Option<Sys... | Rust |
.text_input("总累计收益率", f"{total_return:.2%}")
st.text_input("夏普比率", f"{sharpe_ratio:.2f}")
with col2:
st.text_input("成功率", f"{success_rate:.2%}")
st.text_input("年化收益率", f"{annual_return:.2%}")
st.text_input("最大回撤", f"{max_drawdown:.2%}")
st.text("") # Em... | Python |
oResource;
#[read_all]
fn read_all() {
// your handler
}
fn main() {
let cors = CorsConfig {
origin: Origin::Copy,
headers: Headers::List(vec![CONTENT_TYPE]),
max_age: 0,
credentials: true
};
let (chain, pipelines) = single_pipeline(new_pipeline().add(cors).build());
gotham::start("127.0.0.1:8080", build... | Rust |
same ; don't print */
i++;
}
} else
notsame = 1;
if (notsame) {
printf("%d %g %g %g", i+1, pair[i].tsnap, pair[i].e,pair[i].p);
for (j=0; j<pair[i].n; j++)
printf(" %d",pair[i].nlist[j]);
printf("\n");
} ... | C |
这曾经是一个内核模式组件,但是有了新的"v4"模型,这些都是在用户模式下完成的,到现在已经超过十年
由于以Spooler实施的服务Spoolsv.exe具有SYSTEM特权,并且可以通过网络访问,因此这两个要素吸引了人们执行各种有趣的攻击。
为了使标准用户帐户更容易使用,并且由于这些帐户现在以用户模式运行,只要驱动程序是一个 预先存在的,内置驱动程序,不需要任何特权就可以安装一个打印驱动程序。
```
Add-PrinterDriver` `-Name ``"Generic / Text Only"
```
)
{
result.Append (fTimeZone.Encode_ISO_8601 ().Get ());
}
}
}
}
return result;
}
/*****************************************************************************/
void dng_date_time_info::Decode_IPTC_Date (const char *s)
{
i... | C++ |
mount * 2);
UIWidgetBaseStatusBarTemplateMixin.Setup(self, widgetContainer, widgetInfo, widgetInfo.tooltipLoc);
self:Layout();
end
function UIWidgetTemplateUnitPowerBarMixin:SetMinMaxValues(barMin, barMax)
if self.flashMomentType == Enum.WidgetUnitPowerBarFlashMomentType.FlashWhenMax then
self.flashValue = barM... | Lua |
bls .1c
move.l #256*1024,d0
.1c
if DEBUG
move.l d0,d7
pushm all
bsr startMeasure
popm all
endif
moveq #0,d1 * seed
jsr XXH32
move.l d0,uslMD5(a5) * first 32 bits
if DEBUG
bsr stopMeasure
move.l d0,d2 * ms
move.l d7,... | Assembly |
.collect();
assert_eq!("dark", find_profile(0, &thresholds));
assert_eq!("dark", find_profile(4, &thresholds));
assert_eq!("dark", find_profile(5, &thresholds));
assert_eq!("dark", find_profile(9, &thresholds));
}
#[test]
#[should_panic]
fn test_find_profile... | Rust |
u[end_date.month - 1]}"
else:
return f"{start_date.day} {months_ru[start_date.month - 1]} - {end_date.day} {months_ru[end_date.month - 1]}"
async def create_digest(messages, start_date, end_date):
if not messages:
logging.error("No messages to create digest from")
return "No messages we... | Python |
Icono en la parte final del textbox
*/
@Input() iconMatSuffix = '';
/**
* texto en la parte final del textbox
*/
@Input() spanMatSuffix = '';
/**
* Icono en la parte inicial del textbox
*/
@Input() iconMatPrefix = '';
/**
* texto en la parte inicial del textbox
*/
@Input() spanMatPr... | Typescript |
});
describe('GET /bookings/:userId', () => {
it('Should correctly return user bookings', async() => {
const addUserRequestBody = {
name: "testUser3",
login: "testLogin3",
password: "testPassword3"
};
const addUserRespons... | Typescript |
href='%23D'/%3E%3Cuse transform='scale(0)' xlink:href='%23E'/%3E%3Cuse transform='matrix(.5 -.764295 .981296 .5 -122.80377 63.920586)' xlink:href='%23A'/%3E%3C/g%3E%3Chead/%3E%3C/svg%3E");
}
#markdownBody a[href*='erowid.org']:hover::after {
opacity: 0.3;
}
#markdownBody a[href*='erowid.org']::after {
content: ... | CSS |
, virtual or auto",
commands = [
"analyze-profile", "aquery", "build", "canonicalize-flags", "clean", "config", "coverage",
"cquery", "dump", "fetch", "help", "info", "license", "mobile-install", "mod", "print_action",
"query", "run", "shutdown", "sync", "test", "vendor", "version",
],
)
@... | Kotlin |
option: chalk.bold.cyan,
optionWithArg: chalk.cyan,
pipe: chalk.blueBright,
program: chalk.bold.redBright,
stickyOption: chalk.cyan,
subcommand: chalk.bold.magenta,
sudo: chalk.bgRed.bold,
word: chalk.gray,
};
class Decorator {
static decorate(
word: string,
token:
| OptionNodeAST
... | Typescript |
{
tx.Rollback()
return err
}
tx.Commit()
return nil
}
func (srv *categoryService) GetCategoriesByTag(tagTitle string, blogID uint64) (ret []*model.Category) {
if err := db.Where("blog_id = ? AND tags LIKE ?", blogID, tagTitle).Find(&ret).Error; nil != err {
logger.Errorf("get categories failed: " + err.Er... | Go |
`sampleSourceWorker.js?buster=${Math.random().toFixed(6)}`);
const worklet = new AudioWorkletNode(this.audioCtx, 'sample-source');
let workerStartTime = this.audioCtx.currentTime;
let workerElapsedFrames = 0;
worklet.port.onmessage = (event) => {
setTimeout(() => {
workerElapsedFrame... | Typescript |
state(nvml_handle *nvmlh, int dev_id);
int nvml_set_clocks(nvml_handle *nvmlh, int dev_id);
int nvml_reset_clocks(nvml_handle *nvmlh, int dev_id);
/* api functions */
unsigned int gpu_fanpercent(struct cgpu_info *gpu);
unsigned int gpu_fanrpm(struct cgpu_info *gpu);
float gpu_temp(struct cgpu_info *gpu);
unsigned in... | C |
ager localization issue
* Fixed Deadwood/Palm wood recipes using Forge Tags
### [Better Biome Blend](https://www.curseforge.com/minecraft/mc-mods/better-biome-blend) ([betterbiomeblend-1.16.4-1.2.3-forge.jar](https://www.curseforge.com/minecraft/mc-mods/better-biome-blend/files/3398525)⟶[betterbiomeblend-1.16.4-1.2.7-... | Markdown |
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using IdentityServer.Areas.Identity.Data;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCo... | C# |
": internal.MatchAnything,
"traceId": internal.MatchAnything,
},
UserAttributes: map[string]interface{}{
"grpcStatusLevel": "info",
"grpcStatusCode": "OK",
"grpcStatusMessage": internal.MatchAnything,
},
AgentAttributes: map[string]interface{}{
"httpResponse... | Go |
{ Column, getConnection, UpdateDateColumn } from 'typeorm';
import { Err } from '../entities/Error';
@InputType()
class ErrorCreateInput {
@Field()
@Column()
type!: string;
@Field()
@Column()
message!: string;
}
@InputType()
class ErrorWhereUniqueInput {
@Field({ nullable: true })
@Column({ unique: ... | Typescript |
forTarget(this);
void appendChild(AccessibleNode child) {}
}
abstract class AccessibleNodeList {
factory AccessibleNodeList([List<AccessibleNode>? nodes]) {
throw UnimplementedError();
}
int get length;
void add(AccessibleNode node, AccessibleNode before) {
throw UnimplementedError();
}
Acces... | Dart |
com/r/computerforensics/comments/124r591/2018_mus_ctf_image/)
- [ ] [Using velociraptor for yara scanning](https://www.reddit.com/r/computerforensics/comments/124ehj6/using_velociraptor_for_yara_scanning/)
- ICT Security Magazine
- [ ] [Quantum Hacking – Hackerare la crittografia quantistica](https://www.ictsecurit... | Markdown |
/*
* Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* 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. Redistributi... | C |
decoded_len(1) , 1);
assert_eq!(max_decoded_len(2) , 2);
assert_eq!(max_decoded_len(3) , 3);
assert_eq!(max_decoded_len(255), 255);
}
fn codec() -> Codec {
Config::default().to_codec()
}
// A test payload.
const PAYLOAD: [u8; PAYLOAD_LEN] = [0, 1, 2, 3];
cons... | Rust |
"sync"
"time"
"github.com/stretchr/testify/assert"
"www.velocidex.com/golang/velociraptor/http_comms"
"www.velocidex.com/golang/velociraptor/logging"
"www.velocidex.com/golang/velociraptor/vtesting"
)
func (self *TestSuite) TestWebSocketRetry() {
ws_connections_factory := http_comms.NewWebSocketConnectionFactor... | Go |
可以再次启动整理程序。
### 3. 整理:使用细分类目
随着笔记数量的增多,基础文件夹必然会不够用(假设我们对混乱的容忍度为每个文件夹有 30 个未经整理的文件,那么 22 个基本文件夹最多容纳 22 * 30 = 660 条笔记)。这时候,我们就有必要设置子一级文件夹了。
设置子一级文件夹的方法也很简单,参照《中图法》的子一级类目即可。
比如,我后续的笔记增加了许多社会学和管理学的内容,由于这些内容都属于社会科学,因此都放在 “C 社会科学总论”文件夹下。此时,我只需要在 “C 社会科学总论”文件夹中设置“C91 社会学”和“C93 管理学”两个文件夹,然后再把相应主题的笔记归入其中即可。
![图片9](https:/... | Markdown |
*
*
* <pre>
* Histogram showing a distribution of memory sizes.
* </pre>
*
* <code>
* .google.cloud.migrationcenter.v1.ReportSummary.HistogramChartData memory_bytes_histogram = 9;
* </code>
*/
com.google.cloud.migrationcenter.v1.ReportSummary.HistogramChartDataOrBu... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.