content
stringlengths
2
6.21k
label
stringclasses
16 values
,r1 mov.l r0,V_Counter mov.w .n262,r3 cmp/hi r3,r0 bf .L161 mov.w .n312,r3 cmp/hi r3,r0 mov.l Settings,r1 bt .ntsc_tv mov.b PAL,r0 tst r0,r0 bf .L161 .ntsc_tv: mov.l PPU,r1 mov.w SavedOAMAddr,r0 mov #0,r4 mov.l Flags,r3 mov.w r0,OAMAddr mov r4,r0 mov.b r0,OAMFlip mov.b r0,NMIActive mov #16,r0 or r...
Assembly
希算法中的循环旋转操作来实现数据的累加。具体来说,函数先将当前数据块的字节序列分成四个字节序列,并对每个字节序列分别进行一次旋转操作,然后将这四个序列按照一定的顺序合并成一个32位整数,最终将这个整数和累加器做异或操作得到新的累加值。 通过实现这种高效的哈希计算操作,slicingUpdate可以大幅度提高CRC32哈希算法的计算性能,同时也增强了算法的安全性和鲁棒性,使其可以应用于多种不同的数据处理场景。 # File: crc32_amd64.go crc32_amd64.go是Go语言中hash/crc32包中的一个文件,它是用来提供高效的CRC32校验和计算的。 CRC32(Cyclic Redundancy C...
Markdown
expected.index = 0 expected.input = source expect(result.length).toBe(expected.length) expect(result.index).toBe(expected.index) expect(result).toEqual(expected) }) export const regName = /^([-_.a-zA-Z0-9\u4e00-\u9fa5]{1,32})$/; // 支持中英文字母、大小写、数字、下划线、点、短横线。32位限制 export const regProducerName = /^[\s\...
Typescript
ar.RadarLogType?, message: String, createdAt: Date ) { synchronized(lock) { val radarLog = RadarLog(level, message, type, createdAt) logBuffer.put(radarLog) if (persistentLogFeatureFlag) { if (logBuffer.size > MAX_MEMORY_BUFFER_SIZE) { ...
Kotlin
/* * Low-level CPU initialisation * Based on arch/arm/kernel/head.S * * Copyright (C) 1994-2002 Russell King * Copyright (C) 2003-2012 ARM Ltd. * Authors: Catalin Marinas <catalin.marinas@arm.com> * Will Deacon <will.deacon@arm.com> * * This program is free software; you can redistribute it and/or modify * i...
Assembly
ecuteAction("CREATE_NAMED_ON_TEAM_AT_OBJECTTYPE_WITH_ORIENTATION",CoordinateHelperTable["ObjectRef"],CoordinateHelperTable["object"],CoordinateHelperTable["team"],"FinalCoordAnchor2",CoordinateHelperTable["orientation"]) end delete(self) end -----------------------------------------------------------------------...
Lua
forms .bar-primary > .bar { background-color: #f00; } .themesaller-forms .bar-blue > .bar { background-color: #00acee; } .themesaller-forms .bar-black > .bar { background-color: #505558; } .themesaller-forms .bar-green > .bar { background-color: #0E993C; } .themesaller-forms .bar-purple > .bar { background...
CSS
clicking on it then run as administrator. It will reverse the work of "Windows 10 Update Disabler.bat", however it doesn't recover the windows update files it deleted. # Warnings! - Do NOT Run this tool while installing any program or game. If you run it during any installation, the installation will most likely to f...
Markdown
m mục đích xấp xỉ thứ tự tối ưu cho cặp đó. Thông thường, cách tiếp cận cặp phù hợp hơn với nhiệm vụ xếp hạng vì dự đoán thứ tự tương đối gợi nhớ đến bản chất của bảng xếp hạng. Listwise tiếp cận gần đúng thứ tự của toàn bộ danh sách các mặt hàng, ví dụ, tối ưu hóa trực tiếp các biện pháp xếp hạng như Đạt được tích lũy...
Markdown
details = {} try: t = await TicketCRUD.get_ticket_by_id(db, ticket_id, load_user=True) if t and t.user: details.update({ "target_telegram_id": t.user.telegram_id, "target_username": t.user.username, ...
Python
F ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,...
Typescript
#pragma once #include "rapidcheck/Gen.h" #include "rapidcheck/Compat.h" namespace rc { namespace gen { /// Returns a generator based on the given generator but mapped with the given /// mapping function. template <typename T, typename Mapper> Gen<Decay<typename rc::compat::return_type<Mapper,T>::type>> map(Gen<T> ge...
C
"coerce"); else i = n(i, t, e.typeAnnotation || "assert"); } if (!(i instanceof oi) && "resolvedImage" !== i.type.kind && function t(e) { if (e instanceof Ui) return t(e.boundExpression); if (e instanceof bi && "error" === e.name) ...
JavaScript
he total number of seasons available for the series. """ if not self.seasons_manager.seasons: self.collect_info_title() return len(self.seasons_manager.seasons) def getEpisodeSeasons(self, season_number: int) -> list: """ Get all episodes for a s...
Python
/**************************************************************************** Copyright 2017, Cognitics Inc. 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...
C
int local3; late int local4; FutureOr<int> local5; late FutureOr<int> local6; late T local7 = value; if (b) { local1 = value; local2 = value; local3 = 0; local4 = 0; local5 = 0; local6 = 0; local7; // ok } local1; // error local2; // ok local3; // error local4; // ok ...
Dart
', 'loc': [-117.715018, 33.681287], 'pop': 8078, 'state': 'CA' }, { '_id': '92714', 'city': 'IRVINE', 'loc': [-117.798928, 33.68764], 'pop': 60654, 'state': 'CA' }, { '_id': '92715', 'city': 'IRVINE', 'loc': [-117.821251, 33.650884], 'pop': 30690, 'state': 'CA...
Dart
= validate(uri.as_ref())?; Ok(MxcUri { media_id: media_id.into(), server_name: <ServerNameBox>::try_from(server_name)? }) } impl FromStr for MxcUri { type Err = crate::Error; fn from_str(uri: &str) -> Result<Self, Self::Err> { try_from(uri) } } impl TryFrom<&str> for MxcUri { type Error ...
Rust
paramset2 = { "parama": 1, "paramb": "foo", "paramc": 42, "experiment": AnotherExperiment("another_experiment_params"), } return [paramset1, paramset2] # this method can, if required, use: # class properties (e.g., inherited); par...
Python
ltStatus = await runCli(argv, { initializationRunner, output, mainRunner }); // Assert expect(output.stderr).toHaveBeenLastCalledWith(expect.stringMatching(message)); expect(resultStatus).toEqual(ResultStatus.Failed); }); it("logs help and the error when a configuration error is report...
Typescript
#include "cs.h" /* find nonzero pattern of Cholesky L(k,1:k-1) using etree and triu(A(:,k)) */ CS_INT cs_ereach (const cs *A, CS_INT k, const CS_INT *parent, CS_INT *s, CS_INT *w) { CS_INT i, p, n, len, top, *Ap, *Ai ; if (!CS_CSC (A) || !parent || !s || !w) return (-1) ; /* check inputs */ top = n = A->n...
C
𝑥 ] f(x)= ​ sin(x) cos(x) ln(x) e x ​ ​ 로 본다면, 이의 도함수(야코비안)는 대각행렬 형태로 아주 간단하게 쓸 수 있습니다: 𝑑 𝑓 𝑑 𝑥 = ( cos ⁡ ( 𝑥 ) 0 0 0 0 − sin ⁡ ( 𝑥 ) 0 0 0 0 1 𝑥 0 0 0 0 𝑒 𝑥 )    =    d i a g ( cos ⁡ ( 𝑥 ) ,   − sin ⁡ ( 𝑥 ) ,   1 / 𝑥 ,   𝑒 𝑥 ) . dx df ​ = ​ cos(x) 0 0 0 ​ 0 −sin(x) 0 0 ​ 0 0 x 1 ...
Markdown
t = (<jsx a1 a3 />);`); }); it("should remove the attribute at the end", () => { doTest(`var t = (<jsx a1 a2 />);`, 1, `var t = (<jsx a1 />);`); }); it("should remove the attribute at the end when on a new line", () => { doTest(`var t = (<jsx a1\n a2 />);`, 1, `var t = (<jsx a1 />);`);...
Typescript
; ================================================================================================== ; INTERAC_SMOG_BOSS ; ; Variables: ; subid: The index of the last enemy spawned. Incremented each time "@spawnEnemy" is ; called. This should start at $ff. ; var03: Phase of fight ; var18/19: Poi...
Assembly
ectItem }); var result13 = builder.AppendJoin(s, objectItems); var result21 = builder.AppendJoin(s, (int[])[intItem, intItem]); var result22 = builder.AppendJoin(s, new[] { intItem, intItem }); var result23 = builder.AppendJoin(s, intItems); var result31 = b...
C#
id, out localArray[3]) == false || localArray[3].count == 0) return new LocalFasterReadOnlyList<ExclusiveGroupStruct>( FasterReadOnlyList<ExclusiveGroupStruct>.DefaultEmptyList); localgroups.Value.groups.Clear(); var localGroups = localgroups.Value.groups; ...
C#
-teal{background:rgba(32,201,151,.9)!important}.toast.bg-teal .close,.toast.bg-teal .mailbox-attachment-close{color:#fff;text-shadow:0 1px 0 #000}.toast.bg-teal .toast-header{background:rgba(32,201,151,.85);color:#fff}.toast.bg-cyan{background:rgba(23,162,184,.9)!important}.toast.bg-cyan .close,.toast.bg-cyan .mailbox-...
CSS
: 56px; /* Inside auto layout */ flex: none; order: 2; align-self: stretch; flex-grow: 1; /* GSDS */ width: 36px; height: 18px; font-family: 'Roboto Mono'; font-style: normal; font-weight: 400; font-size: 13px; line-height: 18px; /* identical to box height, or 138% */ display: flex; align-items: center; /* Gray/...
CSS
} export type SocialAccion = { type:String, social:ISocial[] }import { IsNotEmpty, IsString, MinLength } from 'class-validator' export class ChangePasswordDto { @IsString() @IsNotEmpty() oldPassword?: string @IsString() @MinLength(5) @IsNotEmpty() newPassword?: string } const personName = 'John'...
Typescript
) : Thesis that explains Pivy in detail - [High Level 3D Graphics Programming in Python](http://ftp.ntua.gr/mirror/python/pycon/dc2004/papers/47/) : Pivy example from Pycon 2004 - [Introducing Pivy into studierstube](https://www.semanticscholar.org/paper/Integrating-Pivy-into-Studierstube-4.2-Gruber/08c9a89c8326c87...
Markdown
ne() { return this.uniforms.verticalLine; } /** * Opacity/intensity of the noise effect between `0` and `1` * * @member {number} * @default 0 */ set noise(value) { this.uniforms.noise = value; } get noise() { return this.uniforms.noise; } /*...
Typescript
.libsdl.org/SDL3/SDL_MessageBoxColor type MessageBoxColor struct { R, G, B byte } // An enumeration of indices inside the colors array of // [MessageBoxColorScheme]. // // https://wiki.libsdl.org/SDL3/SDL_MessageBoxColorType type MessageBoxColorType uint32 const ( MessageboxColorBackground MessageBoxColorType = iot...
Go
#889FC3; --accent2-lite: #9DB2CF; --dark-accent: #333A49; --deep-dark-accent: #222731; --table: #242b3d; --graph-lines: #323946; --sphd-pre-1: var(--lite-accent); --sphd-pre-2: var(--code-text); --sphd-pre-3: var(--accent); --sphd-pre-4: var(--inactive); --sphd-pre-5: var(--table); --sphd-pre-6: v...
CSS
ring(path.lastIndexOf("/") + 1) else "Unknown" val deletedFlag = if (libName.contains(Regex("\\(deleted\\)"))) "deleted" else "notdeleted" val memoryInfoMap = mapOf( "memory_region_start" to memoryRegionStart, "memory_region_end" to memoryRegionEn...
Kotlin
ONE'); $('#editZSetMemberForm').trigger('submit'); } function removeHashField () { $('#hashFieldValue').val('REDISCOMMANDERTOMBSTONE'); $('#editHashFieldForm').trigger('submit'); } function removeXSetElement (connectionId, key, timestamp) { $.ajax({ url: 'apiv2/xset/member', method: 'DELETE', data...
JavaScript
ig_site["site"]["solar"] = True hopp_config_site["site"].update({"solar_resource":solar_resource}) else: hopp_config_site["site"]["solar"] = False if "solar_resource" in hopp_config_site["site"]: hopp_config_site["site"].pop("solar_resource") if wind_capacity_mw>0: ho...
Python
ort cz.mroczis.netmonster.core.INetMonster import cz.mroczis.netmonster.core.db.NetworkTypeTable import cz.mroczis.netmonster.core.db.model.NetworkType import cz.mroczis.netmonster.core.feature.merge.CellSource import cz.mroczis.netmonster.core.model.annotation.Experimental import cz.mroczis.netmonster.core.model.annot...
Kotlin
el".* FROM "test_model" JOIN "m2" ON "test_model"."id" = "m2"."id" WHERE "m2".id = 2 AND "test_model"."name" = "test2"; func() { db := newTestDB(t) defer db.Close() var actual []testModel t1 := &testModel{} t2 := &M2{} if err := db.Select(&actual, db.Join(t2).On("id").Where(t2, "id", "=", 2).And(t1, "name"...
Go
t infinite;animation:loading-dash 1.5s ease-in-out infinite;stroke-dasharray:90,150;stroke-dashoffset:0;stroke-width:2;stroke:var(--ti-tree-node-loading-icon-color);stroke-linecap:round}.tiny-tree-node>.tiny-tree-node__children{overflow:hidden;background-color:transparent}.tiny-tree-node.is-expanded>.tiny-tree-node__ch...
CSS
content div.onebox_users{display:none;padding-bottom:20px;}#content .onebox_users h2{float:left;width:350px;color:#333;font:normal 18px "Helvetica Neue",Helvetica,Arial,sans-serif;padding-bottom:3px;}#content .onebox_users p.seeall{text-align:right;font-size:10px;position:relative;top:6px;}#content .onebox_users ul{bor...
CSS
interrupt" ] Dcmi, # [ doc = "FPU interrupt" ] Fpu, } unsafe impl Nr for Interrupt { fn nr(&self) -> u8 { match *self { Interrupt::Wwdg => 0, Interrupt::Pvd => 1, Interrupt::TampStamp => 2, Interrupt::RtcWkup => 3, Interrupt::Rcc => 5,...
Rust
/* 80091AF0 0008D030 7F C3 F3 78 */ mr r3, r30 /* 80091AF4 0008D034 E0 5E 80 08 */ psq_l f2, 8(r30), 1, 0 /* 80091AF8 0008D038 10 00 08 28 */ ps_sub f0, f0, f1 /* 80091AFC 0008D03C C0 22 94 C4 */ lfs f1, lbl_806A4744-_SDA2_BASE_(r2) /* 80091B00 0008D040 F0 1E 00 00 */ psq_st f0, 0(r30), 0, 0 /* 80091B04 0008D044 ...
Assembly
n_param_size(ins, outs)) assert(dev == 0 or parms:getDevice() == dev) end assert_on_dev_with_size(params_by_dev[0], 0, 5, 5) assert_on_dev_with_size(grads_by_dev[0], 0, 5, 5) if cutorch.getDeviceCount() >= 2 then assert_on_dev_with_size(params_by_dev[1], 1, 100, 5) assert_on_dev...
Lua
Ability_Seal'}, ['Invocation d\'un chat (tigré argent)']={t=1000,icon='Ability_Seal'}, ['Invocation d\'un chat (tigré orange)']={t=1000,icon='Ability_Seal'}, ['Invocation d\'un chaton blanc']={t=1000,icon='Ability_Seal'}, ['Invocation d\'un chaton commun']={t=2000,icon='INV_Box_PetCarrier_01'}, ['Invocation d...
Lua
0x0127,0x00fe,0x004c,0xffe9,0x0043,0x0007,0x012a,0x00bb, 0x01a0,0x00c3,0x0127,0xfff5,0x0006,0xffb0,0xff8c,0xffee, 0xff41,0xff99,0xfe26,0xfed1,0xfdc4,0xfe59,0xfdbf,0xfdfc, 0xfde6,0xfd07,0xfcc7,0xfb72,0xfc1e,0xfb8f,0xfd1e,0xfce4, 0xfd98,0xfcb7 ]; var ZH0 = [ 0xfede,0x0030,0xfe52,0xfa8e,0xf8c8,0xfa22,0xfdfe,0xffb8, ...
JavaScript
[TMP4, PF_OFFS] vld1.32 {d4}, [TMP4], STRIDE vmull.u8 q10, d18, d22 vmull.u8 q11, d19, d22 vld1.32 {d5}, [TMP4] pld [TMP4, PF_OFFS] vmull.u8 q3, d2, d28 ...
Assembly
118875 0LHRg9GC 118876 IGFjaGlldmFibGU= 118877 INC80YPQt9GL0Lo= 118878 IGJ1bnQ= 118879 IG1hZ2s= 118880 IE1lbWI= 118881 4K+B4K6q4K+N 118882 IOCmueCmr+CmvOCnhw== 118883 IOCkl+Ckh+Cksg== 118884 IGFwcmVzZW50YWRv 118885 IGNodXZh 118886 LW5vdw== 118887 IGxhbms= 118888 IOGDoeGDkOGDlQ== 118889 IGNhY2hlcw== 118890 TGVlcg== 1188...
Kotlin
/// <param name="order">optional object order</param> /// <param name="period">optional object period</param> /// <param name="forward">optional object forward</param> /// <param name="backward">optional object backward</param> /// <param name="intercept">optional object intercept</param> /// <param name="dis...
C#
ve heartbeat: [29159]: info: Other node completed standby takeover of foreign resources. ``` 现在尝试停止主库的MySQL服务 ```bash pkill mysqld ``` 查看日志并无变化,所以得出结论heartbeat只检测心跳也就是只检测设备是否宕机,不会检测MySQL服务,所以我们同样要有一个脚本来检测MySQL服务,如果mysql服务宕掉,则尝试启动服务,若启动服务失败则kill掉heartbeat进程实现故障转移(和上一遍nginx+keepalived原理一致),脚本内容如下: ```bash #!/bin/bash #...
Markdown
AD_CONSOLE_WAIT_FOR_CONSOLE_CHARACTER_INFO_TITLE, "キャラクター情報を受信中", 0) SAS(SI_GAMEPAD_CONSOLE_WAIT_FOR_NAME_VALIDATION_TEXT, "お待ち下さい…", 0) SAS(SI_GAMEPAD_CONSOLE_WAIT_FOR_NAME_VALIDATION_TITLE, "名前を認証中", 0) SAS(SI_GAMEPAD_CONTACTS_ADD_FRIEND_BUTTON_LABEL, "フレンドを追加", 0) SAS(SI_GAMEPAD_CONTACTS_ADD_FRIEND_NOTE_INSRUCTIONS,...
Lua
d `val' when the option is found, but left unchanged if the option is not found. To have a long-named option do something other than set an `int' to a compiled-in constant, such as set a value from `optarg', set the option's `flag' field to zero and its `val' field to a nonzero value (the equivalent sin...
C
Volatility)) // Step 7: Update the rating and RD to the new values, µ' and φ' var newDeviation = 1.0 / Math.sqrt(1.0 / Math_sq(preRatingDeviation) + 1.0 / v) var newRating = player.rating + Math_sq(newDeviation) * DSum // Step 8: Convert ratings and RD’s back to original scale: return toGl...
Typescript
// sha3(data[128:]) // ) // tests = append(tests, &test{ from: 161, to: 192, expected: func(data []byte) []byte { return sha3(sha3(sha3(data[:64]), sha3(data[64:128])), sha3(data[128:])) }, }) // all lengths in [193,224] should be: // // sha3( // sha3( // sha3(data[:64]) // ...
Go
address will be zerod out. For 3B mode, the value in the upper byte /// does not matter, as the controller will automatically pick the /// correct bits (0x0560 => virtual_addr_filter: ReadWrite<u32>), /// Debug register that tracks how many rising edges of CSB has been /// seen...
Rust
letter-spacing: 0.01em; font-weight: 400; opacity: 0.87; top: auto; bottom: 0; left: 0; width: 100%; padding: 16px; display: table; vertical-align: bottom; height: auto; line-height: 1.45; max-width: 185px; & > .card__subtitle { display: block; font-size:...
CSS
r2 */ DEC_L ( ESI ) /* decrement vertex counter */ JNZ ( LLBL( G3TPIR_1 ) ) /* cnt > 0 ? -> process next vertex */ LLBL( G3TPIR_2 ): FEMMS POP_L ( EDI ) POP_L ( ESI ) RET #endif
Assembly
EMm4+TaFnJIHrSgZX5TFIZNPo7e1Fj9QOs9kMlUqFaw9pCASCnzwe7x15xG6/rUQiAZ/Px9/5XyhZOMVGKlOdAAAAAElFTkSuQmCC") no-repeat scroll left bottom} .ltr #content h2~p a[href*="&table="]{padding-left:22px} .rtl #content h2~p a[href*="&table="]{background-position:right;padding-right:22px} #content h2~p a[href*="&create="]:not([href$=...
CSS
.5 0 48-21.4 48-48V836.5c0-26.5-21.4-48-48-48z" fill="#333333" ></path></symbol><symbol id="pear-iconfangdajing" viewBox="0 0 1024 1024"><path d="M580 827.8z" fill="#1F78F8" ></path><path d="M802.4 671.8c-61.8 61.8-142.9 92.7-224.1 92.7S416 733.6 354.2 671.8c-123.6-123.6-123.6-324.6 0-448.2 59.8-59.8 140-92.8 225.8-92....
JavaScript
/* * Copyright (c) 2018 Samsung Electronics Co., Ltd. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your optio...
C
Stream of `selectstart` events handled by this [Element]. ElementStream<Event> get onSelectStart; ElementStream<Event> get onStalled; /// Stream of `submit` events handled by this [Element]. ElementStream<Event> get onSubmit; ElementStream<Event> get onSuspend; ElementStream<Event> get onTimeUpdate; ...
Dart
namespace Divstack.Company.Estimation.Tool.Reminders.Priorities.DeadlineClose.Scheduler; using Configuration; using NServiceBus; using Reminder; using Shared.Abstractions.BackgroundProcessing; using Tool.Priorities.IntegrationsEvents.ExternalEvents; internal sealed class PriorityCloseToDeadlineScheduler : IHandleMes...
C#
DFU_DEV_NAND; st = strsep(&s, " "); if (!strcmp(st, "raw")) { dfu->layout = DFU_RAW_ADDR; dfu->data.nand.start = simple_strtoul(s, &s, 16); s++; dfu->data.nand.size = simple_strtoul(s, &s, 16); } else if ((!strcmp(st, "part")) || (!strcmp(st, "partubi"))) { char mtd_id[32]; struct mtd_device *mtd_dev; ...
C
exp_commander = 0, time_limit = 120, exp_commander_ratio = 30, dungeon_id = 301110, exp = 225, icon = "qz1", difficulty = 1, level = 26, map_id = 10003, limit_type = 1, icon_type = 1, name = "伏擊艦隊", effect_prefab = "", plot_type = 0, id = 302210, scale = 100, award_display = { { ...
Lua
is.http.post(this.service_api_end_point +'users/', userObject, options) .map((response: Response) => { if (String(response.status) == "201") { console.log(response); this.getRegisteredStatus.emit(true); //localStorage.setItem('currentUser', JSON.st...
Typescript
[]*fp.Fp absorbed, spongeWidth, spongeRate, fullRounds int sBox SBox pType Permutation spongeIv [][]*fp.Fp roundKeys [][]*fp.Fp mdsMatrix ...
Go
the local // temporary "dist" folders. Defining these outputs gives the build enough awareness to avoid running this // task if it"s already been executed, the outputs are where they are expected, and there have been no changes to // inputs. outputs.files(fileTree(projectOutput)) } tasks { proces...
Kotlin
.dart'; import 'package:flutter_hbb/models/model.dart'; import 'package:flutter_hbb/models/peer_model.dart'; import 'package:flutter_hbb/models/platform_model.dart'; import 'package:get/get.dart'; import 'dart:convert'; import '../utils/http_service.dart' as http; class GroupModel { final RxBool groupLoading = false...
Dart
'python':'Python', 'ruby':'Ruby', 'scala':'Scala', 'sql':'Sql', 'vb':'Vb', 'xml':'Xml' }); /** * 插入代码 * @command insertcode * @method execCommand * @param { String } cmd 命令字符串 * @param { String } lang 插入代码的语言 ...
JavaScript
t3.label AS c6 FROM hltrfv t1 LEFT JOIN eoxfauxk t2 ON t2.scvkxq = t1.id LEFT JOIN ircglgzd t3 ON t3.xtbfolusqqklrxxmr = t1.id`); const response = [ { c1: 22947, c2: "Vatjjocbuyji", c3: 15314, c4: "Teh", c5: 28894, c6: "Niydal...
Typescript
tRect(rectA, rectB)).toStrictEqual(res); rectA = { x1: 2, y1: 2, x2: 6, y2: 6 }; rectB = { x1: 3, y1: 4, x2: 4, y2: 7 }; res = [ { x1: 2, y1: 2, x2: 3, y2: 4 }, { x1: 3, y1: 2, x2: 4, y2: 4 }, { x1: 4, y1: 2, x2: 6, y2: 4 }, { x1: 4, y1: 4, x2: 6, y2: 6 }, { x1: 2, y1: 4, x2: 3, y2: 6 }, ]; ex...
JavaScript
bol-network or address. * Iterates over all the supported networks if needed * @param symbolOrAddress e.g. 'DAI', 'FAU', 'FAU-rinkeby' or '0xFab46E002BbF0b4509813474841E0716E6730136' * @returns an ICurrency object */ static from(symbolOrAddress: string): Currency { if (!symbolOrAddress) { throw ...
Typescript
ThreadPriority(_hthreadWorker, iPriority); ResumeThread(_hthreadWorker); } else { // Release my refcount in case of failure Release(); // If we can't create the background thread, don't bother with the window DestroyWindow(_hwndWorker)...
C++
pt += J8*J4; pt+=4; *pt += J5*J5; pt+=4; *pt += J6*J5; pt+=4; *pt += J7*J5; pt+=4; *pt += J8*J5; pt+=4; *pt += J6*J6; pt+=4; *pt += J7*J6; pt+=4; *pt += J8*J6; pt+=4; *pt += J7*J7; pt+=4; *pt += J8*J7; pt+=4; *pt += J8*J8; pt+=4; num++; numIn1++; shiftUp(false); } inli...
C
r1) lwz r5,_XER(r1) REST_NVGPRS(r1) mtctr r4 mtxer r5 REST_GPR(0, r1) REST_GPRS(3, 12, r1) b 1b #ifdef CONFIG_44x .L44x_icache_flush: li r7,0 iccci r0,r0 stw r7,icache_44x_need_flush@l(r4) b .L44x_icache_flush_return #endif /* CONFIG_44x */ .globl ret_from_fork ret_from_fork: REST_NVGPRS(r1) bl schedul...
Assembly
et identityResult = await instance.identify('right'); identity = identityResult.get(); expect(identity.access('read').get()).equal('ok'); expect(identity.access('write').get()).equal('demo'); expect(identity.access('writeln').isFailure).to.be.true; }); }); })...
Typescript
not //! thread-safe. Please request the lock using unique_lock() if needed. void register_notifier(Notifier notifier); //! Request exclusive access to this register array. This method needs to be //! called when the target needs to read or write a register. Note that it is //! never necessary to call this m...
C
Expression(i int) ILogicalExpressionContext { var t antlr.RuleContext j := 0 for _, ctx := range s.GetChildren() { if _, ok := ctx.(ILogicalExpressionContext); ok { if j == i { t = ctx.(antlr.RuleContext) break } j++ } } if t == nil { return nil } return t.(ILogicalExpressionContext) } ...
Go
) highlight_size = mouse_settings.value("highlight_size", 50, type=int) # 鼠标轨迹历史 trail_points = [] last_mouse_pos = None click_effects = [] # 存储点击效果的位置和时间 with mss.mss() as sct: # 如果没有指定区域,使用主显示器 if region is None: ...
Python
]; } EXPECT_FLOAT_EQ(expected, it->second); } } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TEST(CompMathTests, Sum) { CompMap v; v[1] = 1.0; v[2] = 2.0; v[3] = 3.0; EXPECT_FLOAT_EQ(6.0, cm::Sum(v)); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - -...
C++
射到任何硬件上的SIMD向量。 这是Mojo的`SIMD`类型定义的简化(非功能性)版本: ```mojo struct SIMD[type: DType, size: Int]: var value: … # 这里有一些底层的MLIR内容 # 从一些标量创建新的SIMD fn __init__(inout self, *elems: SIMD[type, 1]): ... # 用重复的标量值填充SIMD @staticmethod fn splat(x: SIMD[type, 1]) -> SIMD[type, size]: ... # 将SIMD的元素转换为不...
Markdown
ount, recipient_id)) sent_at = datetime.utcnow().isoformat() await db._conn.execute( """ INSERT INTO transfers (from_user_id, to_user_id, amount, fee, sent_at) VALUES (?, ?, ?, ?, ?) """, (sender_id, recipient_id, net_amount, commission, sent_at) ) await db._con...
Python
.dataTable(); * * // Sort immediately with columns 0 and 1 * oTable.fnSort( [ [0,'asc'], [1,'asc'] ] ); * } ); */ this.fnSort = function( aaSort ) { this.api( true ).order( aaSort ).draw(); }; /** * Attach a sort listener to an element for a given column * @param {nod...
JavaScript
rr error, errs ...error) bool { for _, exactErr := range errs { if errors.Is(err, exactErr) { return true } } return false } // ErrorRespToObjectError converts MinIO errors to minio object layer errors. func ErrorRespToObjectError(err error, params ...string) error { if err == nil { return nil } bucket...
Go
scripts","accessAlways":"Sempre","accessNever":"Mai","accessSameDomain":"El mateix domini","alignAbsBottom":"Abs Bottom","alignAbsMiddle":"Abs Middle","alignBaseline":"Baseline","alignTextTop":"Text Superior","bgcolor":"Color de Fons","chkFull":"Permetre la pantalla completa","chkLoop":"Bucle","chkMenu":"Habilita menú...
JavaScript
containsKey('NOME_EXPEDIDOR')) { context.handle( _nomeExpedidorMeta, nomeExpedidor.isAcceptableOrUnknown( data['NOME_EXPEDIDOR']!, _nomeExpedidorMeta)); } if (data.containsKey('LOGRADOURO')) { context.handle( _logradouroMeta, logradouro.isAccepta...
Dart
"Systems with more than 4 memory slots not supported yet, not instantiating SPD\n"); return; } switch (common_mem_type) { case 0x13: /* DDR2 */ case 0x18: /* DDR3 */ case 0x1C: /* LPDDR2 */ case 0x1D: /* LPDDR3 */ name = "spd"; break; case 0x1A: /* DDR4 */ case 0x1E: /* LPDDR4 */ name = "ee1004"; bre...
C
to change the password, you must use the WebInterface or ESPXXX commands. In web interface the passwords are replaced by `*******` so any modification must be complete not partial. All passwords and sensitive informations are sent using plain text. So if you want to use ESP3D in a public network or outside of your lo...
Markdown
troke:#333,stroke-width:2px; classDef orange fill:#f96,stroke:#333,stroke-width:4px; class sq,e green class di orange ``` ::: [client-config]: https://vuejs.press/guide/configuration.html#client-config-file --- icon: image --- # markdown-image <NpmBadge package="@vuepress/plugin-markdown-image" /> 向...
Markdown
io/v2/swagger.json"\ndom_id: "#swagger-ui"\nvalidatorUrl: "https://validator.swagger.io/validator"\n')}};function c(){return{statePlugins:{spec:{actions:a,selectors:u},configs:{reducers:s.default,actions:o,selectors:i}}}}},function(e,t,n){"use strict";(function(e,r){var o,a=n(504);o="undefined"!=typeof self?self:"undef...
JavaScript
ці'}},button:{title:'Властивості кнопки',text:'Значення',type:'Тип',typeBtn:'Кнопка (button)',typeSbm:'Надіслати (submit)',typeRst:'Очистити (reset)'},checkboxAndRadio:{checkboxTitle:'Властивості галочки',radioTitle:'Властивості кнопки вибору',value:'Значення',selected:'Обрана'},form:{title:'Властивості форми',menu:'Вл...
JavaScript
(1, ore_t) local index = table.binary_search(total_ore_weights, i) if (index < 0) then index = bit32.bnot(index) end ore_data = ores[index] shape = ore_data.transform(shape) shape = b.rotate(shape, degrees(d)) shape = b.translate(shape, x, y) ...
Lua
.94c.29 0 .53.24.53.53Zm3 0v.97c0 .29-.24.53-.53.53h-.94c-.29 0-.53-.24-.53-.53v-.97c0-.29.24-.53.53-.53h.94c.29 0 .53.24.53.53Zm3 0v.97c0 .29-.24.53-.53.53h-.94c-.29 0-.53-.24-.53-.53v-.97c0-.29.24-.53.53-.53h.94c.29 0 .53.24.53.53Zm-6 2.98v.97c0 .3-.24.53-.53.53h-.94c-.29 0-.53-.24-.53-.53v-.97c0-.29.24-.53.53-.53h.9...
Dart
= 20230522073118L /** * Create the [Storage] to be used for tests. This is a test storage, so the stored data can be inspected. */ private fun createStorage(): Storage { val storageType = "test" val configMap = mapOf(storageType to mapOf("name" to StorageProviderFactoryForTesting.NAME)) val config = Con...
Kotlin
ndCapture__Q24Game8CreatureFv .4byte isAtari__Q24Game8CreatureFv .4byte setAtari__Q24Game8CreatureFb .4byte isAlive__Q24Game8CreatureFv .4byte setAlive__Q24Game8CreatureFb .4byte isCollisionFlick__Q24Game8CreatureFv .4byte setCollisionFlick__Q24Game8CreatureFb .4byte isMovieActor__Q24Game8CreatureFv .4byte isMo...
Assembly
hljs-built_in, .sql .hljs-aggregate, .django .hljs-template_tag, .django .hljs-variable, .smalltalk .hljs-class, .hljs-javadoc, .ruby .hljs-string, .django .hljs-filter .hljs-argument, .smalltalk .hljs-localvars, .smalltalk .hljs-array, .hljs-attr_selector, .hljs-pseudo, .hljs-addition, .hljs-stream, .hljs-envvar, .apa...
CSS
88f", null != n ? n.tooltipMessage : n, { name: "formatMessage", hash: { "default": "{0} 상품에 \x3cem\x3e자동 적용\x3c/em\x3e됩니다." }, data: r })) ? i : "") + "\x3c/div\x3e" }, compiler: [8, "\x3e\x3d 4.3.0"], main: function (e, n, a, o, r, i, l) { ...
JavaScript
, vp); JSBool ok = JS_TRUE; JSObject *obj = JS_THIS_OBJECT(cx, vp); js_proxy_t *proxy = jsb_get_js_proxy(obj); cocos2d::LayerGradient* cobj = (cocos2d::LayerGradient *)(proxy ? proxy->ptr : NULL); JSB_PRECONDITION2( cobj, cx, JS_FALSE, "js_cocos2dx_LayerGradient_setStartColor : Invalid Native Object"); if (argc =...
C++
om 'mongoose'; const Schema = mongoose.Schema; export interface IUserModel extends IUser, Document { verifyPassword(password: string): boolean; } export const userSchema = new Schema({ fullName: { type: String, required: 'Full name can\'t be empty' }, username: { type: String...
Typescript
= new FormGroup({ value1: new FormControl(0, [ service.greaterThan(otherFormControlName, [formControlPlaceholder]), ]), value2: new FormControl(0), }); }); it('should have greatherThan error when value1 is smaller', () => { formGroup.get(formControlName).setValue(0); formGrou...
Typescript
/* Copyright 2019 Google LLC 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
C