content
stringlengths
2
6.21k
label
stringclasses
16 values
--end; return _dio.download( url, "$savePath$TEMP$chunkNum", onReceiveProgress: (c, t) async { if (c == t) { File file = File("$savePath$TEMP$chunkNum"); await file.rename("$savePath$CHUNK$chunkNum"); } chunksProgress[chunkNum] = c; _callbac...
Dart
/* SPDX-License-Identifier: GPL-2.0 */ /* * Statistics for NFS server. * * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de> */ #ifndef _NFSD_STATS_H #define _NFSD_STATS_H #include <uapi/linux/nfsd/stats.h> #include <linux/percpu_counter.h> int nfsd_percpu_counters_init(struct percpu_counter *counters, int ...
C
/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commerci...
C
creature->GetInstanceScript(); } uint32 uiGushingWoundTimer; uint32 uiHowlingScreechTimer; uint32 uiStrikeTimer; InstanceScript* instance; void Reset() override { uiStrikeTimer = urand(4000, 8000); ui...
C++
Ref> NewToLinkageName; // TODO: Remember the distinct subprogram we created for a given linkage name, // so that we can continue to unique whenever possible. Map <newly created // node, old linkage name> to the first (possibly distinct) mdsubprogram // created for that combination. This is not strictly needed ...
C++
ma MVP 块有很大不同。每个 Plasma Cash 块都有一个用于存在的每个代币的插槽。每当使用令牌时,该交易的记录都会放置在相应的插槽中。这是具有四个代币的 Plasma Cash 链的样子。</p> <p><img alt="" src="https://github.com/guoshijiang/layer2/blob/main/images/17.png" /></p> <p>在此示例中,令牌#4是从用户A发送给用户B的。请注意#1、#2和#3没有被花费,所以我们没有在这些插槽中放置任何东西!这种特殊的结构给了我们一些非常酷的东西。除了能够显示代币已在特定区块中花费外,我们还可以显示代币在该区块中没有易手。</p> ...
HTML
ordType.full.toString().equals(word.getAttributeValue(TYPE_ATR))){ throw new StructureBuildingException("Bug in word rule for potentialAlcoholEster"); } resolveWordOrBracket(state, word); } int ateWords = words.size() -1; if (ateWords < 1){ throw new StructureBuildingException("Bug in word rule for p...
Java
#User function Template for python3 class Solution: def customSort(self, arr): # code here s=len(arr)//2 first=arr[:s] second=arr[s:] first.sort() second.sort(reverse=True) return first+second
Python
si128(b, imm2)); } #endif }; template <int imm> inline __m128i v_sse_palignr_u8(const __m128i& a, const __m128i& b) { CV_StaticAssert((imm >= 0) && (imm <= 16), "Invalid imm for v_sse_palignr_u8."); return v_sse_palignr_u8_class<imm>()(a, b); } } template<int imm, typename ...
C++
*bitmapPixelPtr = packFunc(b, g, r, 65535); } if (isLastRow || cancellationToken.IsCancellationRequested) break; Array.Clear(srcRow, 0, rowStride); } }); } // complete return new ImageRenderingResult(); } /// <inheritdoc/> public override Task<Bitma...
C#
x2F;twitter.com&#x2F;AdingApkgg"><i class="fab fa-twitter fa-fw"></i>Twitter</span> </span><span class="links-of-author-item"><a href="/atom.xml" title="Feed → &#x2F;atom.xml" rel="noopener me"><i class="fa fa-rss fa-fw"></i>Feed</a></span></div></div></div><div class="back-to-top animated" role="button" aria-label="返回...
HTML
"""Mergers and Acquisitions (M&A) API endpoints.""" MA_RSS_FEED_ENDPOINT = "v4/mergers-acquisitions-rss-feed" SEARCH_MA_ENDPOINT = "v4/mergers-acquisitions/search" class MergersAndAcquisitions: """ A class to retrieve information about mergers and acquisitions (M&A) activities. Explanation: This clas...
Python
paw")) { filename = filename + ".paw"; } QString orgFile; /* filename = filename.remove(getProjectPath()); qDebug() << getProjectPath() << filename; QString fn = getProjectPath() + filename;*/ QString fn = filename; if (QFile::exists(fn)) QFile::remove(fn); QFile fi...
C++
Challenge](https://github.com/Connected-Data/cdkg-challenge).  The goal is to make our collective knowledge easy to discover, explore, digest, combine and reuse. To do that, we will combine our greatest strengths: community, knowledge, and technology. ## The Problem - There are 150+ expert and practical...
Markdown
rwater.png")) tintColor(tint) canConvertToSource(false) canDrown(true) canExtinguish(true) canHydrate(false) canPushEntity(true) canSwim(true) viscosity(1500) density(1500) } renderType(RenderType::translucent) block(::BotariumLiquidBlo...
Kotlin
v r5, pc adr r5, buffer /* r5 is ptr to buffer */ mov r1, r5 mov r0, r9 /* sockfd */ mov r7, #3 svc 1 /* read(int fd, void *buf, size_t count) */ mov r12, r0 cmp r0, #0 blt exit setup: adr r1, key ldr r1, [r1] /* r1 holds the key */ mov r2, r5 /* r2 is ptr to buffer */ mov r3, #0 /* r3 ...
Assembly
"f82d9.json", "bug863.json", // Unable to resolve reserved keyword use, "description" ], allowMissingNull: true, features: ["enum", "union", "no-defaults", "date-time"], output: "quicktype.swift", topLevel: "TopLevel", skipJSON: [ // Swift only supports top-level arrays and objects "no-clas...
Typescript
ful.Response) { var err error pHeader := req.Request.Header rid := httpheader.GetRid(pHeader) defErr := s.engine.CCErr.CreateDefaultCCErrorIf(httpheader.GetLanguage(pHeader)) param := metadata.ParamSearchNetcollectReport{} if err := json.NewDecoder(req.Request.Body).Decode(&param); err != nil { blog.Errorf("[N...
Go
+ 2 - cnt; let arrLen = allCards.length; for (let i = 0; i < arrLen; i++) { egret.log(allCards[i][0].realValue, startValue) if (allCards[i][0].realValue >= startValue) { let endValue = allCards[i][0].realValue + cnt - 1; if (endValue > REAL_CARD_VALUE.VALUE_A) {//如果结束的牌值大于A的话,后面的都成不了顺子的,没必要继续遍历下...
Typescript
config.secret), param = baseParam }; ThirdPlatformOrder.branchInfo(baseReq); } /// <summary> /// 电子面单取消接口 /// </summary> static void testLabelCancel() { var timestamp = DateUtils.GetTimestamp(); var baseParam = new CancelPrint() { ...
C#
QgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3...
CSS
#include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <sys/random.h> /* a 128 bit data structure consisting of either 8, 16, 32, or 64 bit chunks; */ typedef union { uint8_t b[16]; uint16_t w[8]; uint32_t d[4]; uint64_t q[2]; } __attribute__((packed, aligned(8))) bitstring_u_t; /* expect str to have...
C
kteto(options []SelectorItem, initialPosition int) (string, error) } // OktetoSelector implements the OktetoSelectorInterface type OktetoSelector struct { Templates *promptui.SelectTemplates Keys *promptui.SelectKeys OktetoTemplates *oktetoTemplates Label string Items []Select...
Go
/wp-content/uploads/2017/03/xbk12p15-8.png 554w, http://www.mottoin.com/wp-content/uploads/2017/03/xbk12p15-8-300x199.png 300w" sizes="(max-width: 554px) 100vw, 554px" /></p> <p><img class="alignnone size-full wp-image-99488 j-lazy" src="http://www.mottoin.com/wp-content/themes/JustNews/themer/assets/images/lazy.png" d...
HTML
/* ix87 specific implementation of arcsinh. Copyright (C) 1996-2019 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Les...
Assembly
Endpoint '{name}'"] + lines[1:] endpoint = "\n".join(lines) return endpoint def _list_variables_used_by_fns(fns): trainable_variables = [] non_trainable_variables = [] trainable_variables_ids = set() non_trainable_variables_ids = set() for fn in fns: if hasattr(fn, "concrete_functi...
Python
) { if (index > 0) { data.push({start, stop, text}); } start = line.split(' --> ')[0]; stop = line.split(' --> ')[1].trim(); text = ""; } else { text += line.trim() + "\n"; } }); populateCaptionEditor(data); if (...
HTML
media/docusign-scam-targeted-more-than-10000-inboxes-report/) - [ ] [La guerra informatica è qui: una sfida crescente](https://www.securityinfo.it/2023/02/01/la-guerra-informatica-e-qui-una-sfida-crescente/?utm_source=rss&utm_medium=rss&utm_campaign=la-guerra-informatica-e-qui-una-sfida-crescente) - [ ] [Cyberwar, ...
Markdown
0 hsla(210,4%,10%,.05) inset; } @media (-moz-os-version: windows-xp), (-moz-os-version: windows-vista), (-moz-os-version: windows-win7) { #downloadsPanel:not([keyfocus]) > #downloadsListBox > richlistitem[type="download"][state="1"][exists]:hover { border-radius: 3px; outline: 0; border-to...
CSS
적인 측면에서 개인정보보호는 군중에 숨는 것과 같습니다. 군중이 크고 균일할수록 개인정보보호가 더 강력해집니다. 반대로 군중이 작거나 커도 모두가 개성있고 서로서로 다르다면, 그 중에서 한 개인을 찝어내는 것은 쉬울 것입니다.</p>\n\n<p>비트코인은 군중에 숨기 위해 따로 노력을 들이게 하기 때문에, 많은 이들이 이를 하지 않을 것이고 하더라도 형편없이 할 것입니다. 결과적으로는 작은 군중이 될 것이며 거기서 한 명을 찾는 것은 쉬울 것입니다. 하지만 여기서 끝이 아닙니다. 군중이 작은 것에 추가로 어떤 개인정보보호 프로토콜을 쓰느냐에 따라 구성원은 서로서로 구...
Dart
: border-box; } .wysi-editor textarea { height: 280px; border: 1px solid #dee2e6; font-family: inherit; font-size: 1rem; } .wysi-editor textarea:focus { color: black; border: 1px solid #dee2e6; } .wysi-editor .wysihtml-action-active, .wysi-editor .wysihtml-command-active { font-weight: bold; } .wysi-edito...
CSS
epoint_t glyph_id, float *x, float *y) const { hb_font_t *font = c->font; #ifdef HB_NO_HINTING *x = font->em_fscale_x (xCoordinate); *y = font->em_fscale_y (yCoordinate); return; #endif unsigned int x_ppem = font->x_ppem; unsigned int y_ppem = font->y_ppem; hb_position_t cx = 0, cy ...
C++
, unless an # optional 7th argument is pushed over it. In that case the # 7th argument is on the top of the stack and the return address # is just below it. # # so... # # First we compute the address of the top of the stack of the # previous stack frame. Since there's only one 64-bit word # on our ...
Assembly
33, 15, 35, manaCost = 60, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, 1, 1, 1, }, }, [30] = { 11800, 15, -59, 100, 34, 15, 35, manaCost = 61, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, 1, 1, 1, }, }, [31] = { 11900, 15, -59, 100, 34, 15, 35, manaCost = 63, levelRequirement = 91, statInt...
Lua
struct cinfo; jpeg_error_mgr jerr; // Step 1: allocate and initialize JPEG decompression object cinfo.err = jpeg_std_error(&jerr); jpeg_create_decompress(&cinfo); // Step 2: specify data source (eg, a file) jpeg_stdio_src(&cinfo, file); // Step 3: read file parameters with jpeg_read_header() jpeg_sa...
C++
IhvcNAQEFBQADggEBAMucN6pIExIK+t1EnE9SsPTfrgT1eXkIoyQY/Esr hMAtudXH/vTBH1jLuG2cenTnmCmrEbXjcKChzUyImZOMkXDiqw8cvpOp/2PV5Adg 06O/nVsJ8dWO41P0jmP6P6fbtGbfYmbW0W5BjfIttep3Sp+dWOIrWcBAI+0tKIJF PnlUkiaY4IBIqDfv8NZ5YBberOgOzW6sRBc4L0na4UU+Krk2U886UAb3LujEV0ls YSEY1QSteDwsOoBrp+uvFRTp2InBuThs4pFsiv9kuXclVzDAGySj4dzp30d8tbQk CA...
Go
lize(t, db, req) initialPassword := "nuozxby98523u89bdfnkjl" newUserReq := dbplugin.NewUserRequest{ UsernameConfig: dbplugin.UsernameMetadata{ DisplayName: "test", RoleName: "test", }, Statements: dbplugin.Statements{ Commands: []string{createUserStatements}, }, Password: initialPassword, E...
Go
.owl-dots .owl-dot { display: inline-block; zoom: 1; *display: inline; } .owl-theme .owl-dots .owl-dot span { width: 10px; height: 10px; margin: 5px 7px; background: #D6D6D6; display: block; -webkit-backface-visibility: visible; transition: opacity 200ms ease; ...
CSS
300 dark:border-gray-600 text-gray-900 dark:text-white"/> </div>--> <!-- </div> --> <!-- Categories and Symptoms --> {% for system_name, systems_in_cat in categories.items %} <h2 class="mt-8 mb-4 text-xl font-semibold dark:text-white underline">{{ system_name }}</h2> <div class="overflow-x-auto mb-6"...
HTML
Exp, upExp); goog.vec.Vec3.add(eyeExp, fwdExp, centerExp); // Compute the expected modelview matrix from a set of valid random vectors. goog.vec.Mat4.makeLookAt(viewExp, eyeExp, centerExp, upExp); var eyeRes = [0, 0, 0]; var fwdRes = [0, 0, 0]; var upRes = [0, 0, 0]; var centerRes = [0, 0, 0]; goog.ve...
JavaScript
nt); simulatedEvent.stop(); }); }; var onClick = function (component, simulatedEvent) { simulatedEvent.stop(); emitExecute(component); }; var onMousedown = function (component, simulatedEvent) { simulatedEvent.cut(); }; var pointerEvents = Pl...
JavaScript
ip first node. parents_cache.store_consumer(1); let mut i = 1; while i < num_nodes { // Ensure next buffer is ready let mut counted = false; let mut producer_val = cur_producer.load(SeqCst); while producer_val < i { if !counted { ...
Rust
-- Copyright (C) 2012 by Yichun Zhang (agentzh) local ffi = require "ffi" local ffi_new = ffi.new local ffi_str = ffi.string local C = ffi.C local setmetatable = setmetatable local error = error module(...) _VERSION = '0.08' local mt = { __index = _M } ffi.cdef[[ typedef unsigned long MD5_LONG ; enum { MD5...
Lua
ETHOD(Applies)(VARIANT unkArray, VARIANT_BOOL * Applies); STDMETHOD(CreateCompatibleObject)(VARIANT kind, VARIANT * pNewObject); STDMETHOD(QueryObject)(VARIANT theObject); STDMETHOD(GetHelpFile)(LONG controlID, BSTR * HelpFile); STDMETHOD(GetHelpId)(LONG controlID, LONG * helpID); STDMETHOD(Cancel)(); // ISymbolP...
C
rtedMap = new LinkedHashMap .fromIterable(mapSortedInMatchedOrder, key: (k) => k, value: (k) => mapOfClubAndMatch[k]); //print('map tri&é peut etre --------------------'); //print(sortedMap); if (mapSortedInMatchedOrder.isNotEmpty) { int lengthMap = mapSortedInMatchedOrder.length; ...
Dart
: Protocol Exception is enabled. (rw) (01) TIMER_SRC - [15:15] - Timer Source 0 - TIMER_SRC_0 : The Free Running Timer is clocked by the CAN bit clock, which defines t he baud rate on the CAN bus. 0x1 - TIMER_SRC_1 : The Free Running Timer is clocked by an ...
Markdown
+ "MRUwEwYDVQQKDAxELVRydXN0IEdtYkgxJzAlBgNVBAMMHkQtVFJVU1QgUm9vdCBD\n" + "bGFzcyAzIENBIDIgMjAwOTAeFw0wOTExMTIxMjQ2NTVaFw0yOTExMDUwODM1NTha\n" + "MEwxCzAJBgNVBAYTAkRFMRUwEwYDVQQKDAxELVRydXN0IEdtYkgxJjAkBgNVBAMM\n" + "HUQtVFJVU1QgU1NMIENsYXNzIDMgQ0EgMSAyMDA5MIIBIjANBgkqhki...
Java
AX (255) #define INT16_MAX 0x7fff #define INT16_MIN (-INT16_MAX - 1) # define UINT16_MAX (65535) #define INT32_MAX 0x7fffffffL #define INT32_MIN (-INT32_MAX - 1L) # define UINT32_MAX (4294967295U) #define INT64_MAX 0x7fffffffffffffffLL #define INT64_MIN (-INT64_MAX - 1LL) #define UINT64_MAX (__CONCAT(INT64_MAX, U) *...
C
word 0x22DF01A2,0x67050320,0x726B05A2,0x776F0585,0x01A77777,0x035077E3,0xB00F00FF,0xF05FF303 .word 0xF101F001,0xF001F0FF,0x01F0FF01,0x01F001F0,0x1DD201F0,0x0C126B7A,0x127E6461,0xF9096401 .word 0x3FF0ABF0,0xCFB8AF9A,0xB058F722,0xB781EA38,0x63724930,0x11FB483F,0x5501B2D2,0x11590172 .word 0x9177775D,0x723C77DF,0x009201...
Assembly
证明</a>需要由宠主提供航班号或者列车车次的。</p><div style="text-align:center;"><img style="max-width: 100%;" alt="销售动物疫苗需要什么资质证书 " src="https://img2.baidu.com/it/u=990757267,1206617911&fm=253&fmt=auto&app=138&f=JPEG?w=640&h=224"></div><div><div style="color:#999;text-align:center;">(图片来源网络,侵删)</div></div><p>2.检疫证明是有<a href="http://www.to...
HTML
// // Generated by class-dump 3.5 (64 bit). // // class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard. // #import "IBDateTokenizer.h" @class NSArray; @interface IBSTRFTimeTokenizer : IBDateTokenizer { NSArray *dayYearOptions; NSArray *percentOptions; NSArray *weekdayOption...
C
mediaType, query, sort, genreIn, genreNotIn, tagIn, tagNotIn, formatIn, statusIn, startYear, endYear, season, onList, isLicensed, isAdult, ...
Kotlin
cement then storageAmount.cement = 1 elseif con.cargoTypesLookup.cash then storageAmount.cash = 1 end end for _, filter in ipairs(filterSets) do filter.noContainers = nil if filter.value == "parcel" and storageAmount.parcel == 0 then filter.noContainers = true elseif filter.val...
Lua
bgColor":"Barva ozadja","borderColor":"Barva obrobe","data":"Podatki","header":"Glava","yes":"Da","no":"Ne","invalidWidth":"Širina celice mora biti število.","invalidHeight":"Višina celice mora biti število.","invalidRowSpan":"Razpon vrstic mora biti celo število.","invalidColSpan":"Razpon stolpcev mora biti celo števi...
JavaScript
hift_ids', 'phone', 'employer', 'occupation', 'addr1', 'addr2', 'addr3', 'city', 'comment', // 'firstname', // not sure why first and last name don't work, but they're also not immediately necessary 'guests', 'is_potential_volunteer', 'is_reminder_sent', // 'lastname'...
JavaScript
ls.TUMLiveContext{User: &LecturerAllCourses} TUMLiveContextStudentNoCourseSearch = tools.TUMLiveContext{User: &StudentNoCourse} TUMLiveContextStudentAllCoursesSearch = tools.TUMLiveContext{User: &StudentAllCourses} ) var ( // users LecturerNoCourse = model.User{ Model: gorm.Model{ID: 610}, Ro...
Go
ruleId) { ReadOnlyCollection<SqlRuleProblem> problems = new ReadOnlyCollection<SqlRuleProblem>(new List<SqlRuleProblem>()); using (var test = new BaselineSetup(TestContext, testCases, new TSqlModelOptions(), SqlVersion)) { try { ...
C#
ase+48(FP), R12 MOVQ (R12), R13 MOVQ 24(R12), R12 MOVQ start+72(FP), R14 // Add start offset to output ADDQ R14, R13 ADDQ R14, R12 // Add start offset to input ADDQ R14, BX ADDQ R14, SI ADDQ R14, DI ADDQ R14, R8 ADDQ R14, R9 ADDQ R14, R10 ADDQ R...
Assembly
a33 - a13*a32) - a02*(a11*a33 - a13*a31) + a03*(a11*a32 - a12*a31); final float b21 = -( + a00*(a12*a33 - a13*a32) - a02*(a10*a33 - a13*a30) + a03*(a10*a32 - a12*a30)); final float b22 = + a00*(a11*a33 - a13*a31) - a01*(a10*a33 - a13*a30) + a03*(a10*a31 - a11*a30); final float b23 = -( + a00*(a1...
Java
/containerizers/)。 ### requirePorts 是不是自动分配任务的主机端口。 - `"requirePorts": false` 端口将自动分配。 - `"requirePorts": true` 提前手动指定端口。Marathon 将仅安排有指定端口可用的主机上的相关任务。 ### residency 设置有状态的应用程序。如需更多信息,请参阅 [本地持久卷](/mesosphere/dcos/cn/2.1/storage/persistent-volume/). **Deprecated**。 - **taskLostBehavior** 指示 Marathon 是否会在收到 `TASK_LOS...
Markdown
.2.4-.5.4H219c-.2 0-.2-.1-.4-.2s-.2-.2-.2-.4v-.1c.7-3 2.2-5.4 4.6-7.3 2.3-1.9 5-2.8 8-2.8 1.7 0 3.2.3 4.8.9s2.9 1.5 4.1 2.6l2.2-2.2c.2-.2.5-.3.8-.3s.6.1.8.3c.2.3.3.5.3.8z"/><path class="ayst2" d="M233 36.1h-3.9c-4.1 0-7.4 3.1-7.4 7.1V53.6c.2 1.7 1.6 3.1 3.3 3.1h.1V43.5c0-.6.2-1.2.5-1.7V73c0 1.4 1 2.4 2.4 2.4 1.3 0 2.4-...
HTML
_base_ = [ '../../../rtmpose/coco-wholebody/rtmpose-m_8xb64-270e_coco-wholebody-256x192.py' # noqa: E501 ] # model settings find_unused_parameters = False # config settings fea = True logit = True # method details model = dict( _delete_=True, type='DWPoseDistiller', teacher_pretrained='https://downl...
Python
values for time, item, location and supplier. Data Warehouses contain huge volumes of data, yet aim to answer queries in interactive query time time-frames. One way to deliver fast response times is to pre-compute all the aggregate measures required, at a much increased storage cost. Data Warehouses must support...
Markdown
ReservationStatus /** * Type of reservation. * May be unset if none of the type options is applicable. */ type?: ReservationType /** * Time range that is acceptable to the user. */ userAcceptableTimeRange?: Time /** * Required: User visible label/string for the status. * Max allowed leng...
Typescript
().trim(), menyebar: modalContext.find('select[name=menyebar]').val(), skala_nyeri: modalContext.find('select[name=skala_nyeri]').val(), durasi: modalContext.find('input[name=durasi]').val().trim(), nyeri_hilang: modalContext.find('select[name=nyeri_hilang]').val(), ket_nyeri: modalContext...
HTML
d. * @param sortOrder Sort order. */ public sort(sortField, sortOrder: boolean): void { this.displayBooks.sort((a, b) => { const s1: string = a[sortField] === undefined ? '' : a[sortField]; const s2: string = b[sortField] === undefined ? '' : b[sortField]; if (sortOrd...
Typescript
// 保存新的下载器配置 await prefs.setString(StorageKeys.downloaderConfigs, jsonEncode(downloaderConfigs)); // 迁移默认下载器ID final defaultQbId = prefs.getString(StorageKeys.legacyDefaultQbId); if (defaultQbId != null) { await prefs.setString(StorageKeys.defaultDownloaderId, defau...
Dart
type="button" (click)="reset()" [mTooltip]="available.length > 0 ? 'Reset ' + typeName : null" [disabled]="selected.length === 0" class="grid size-7 rounded bg-white bg-opacity-10 p-0.5 text-white opacity-50 transition-colors [&:not(:disabled)]:hover:bg-opacity-20 [&:not(:disabled)]:hover:opacity-8...
HTML
n(contract.VendorListings) > 0 && contract.VendorListings[0].Item != nil && len(contract.VendorListings[0].Item.Images) > 0 { thumbnailTiny = contract.VendorListings[0].Item.Images[0].Tiny thumbnailSmall = contract.VendorListings[0].Item.Images[0].Small if order.BuyerID != nil { buyer = order.BuyerID.PeerID ...
Go
_inode: &Inode, _path: &str) -> Option<BoundEndpoint> { return None; } fn GetFile(&self, task: &Task, _dir: &Inode, _dirent: &Dirent, flags: FileFlags) -> Result<File> { let i = self.lock(); if flags.Read && !flags.Write { // O_RDONLY let r = i.p.Open(task, &flags); ...
Rust
{ get { return cteLocalEntrega; } set { cteLocalEntrega = value; if (value != null) { cteLocalEntrega.CteCabecalho = this; } } } private CteRemetente cteRemetente; public CteRemetente CteRemetente { get { return cteRemetente; } set { cteRemetent...
C#
0; i < baseIter*batch_size; i++) { #pragma HLS PIPELINE II=1 if (inp < IFMPadDimSqrt) { ap_uint<InpWidth> inElem [256]; #pragma HLS RESOURCE variable=inElem core=RAM_S2P_LUTRAM if ((inp_i < 0) || (inp_j < 0) || (inp_i >= IFMDim_curr) || (inp_j >= IFMDim_curr)) { // inElem = padValue; for(unsigne...
C++
- persistedPhoto + persistedPhoto } else photos + persistedPhoto } } data class PersistedPhoto( val storedTimeMillis: Long, val photo: Photo ) { override fun equals(other: Any?): Boolean = other is PersistedPhoto && photo == other.photo override fun hashCode(): Int { var result = storedTi...
Kotlin
q=%s ")) assertFalse(URLStringUtils.isValidSearchQueryUrl("htps://example.com/search/?q=%s")) } } /** * Custom [TextDirectionHeuristicCompat] used only in tests to make possible testing of RTL checks. * Overcomes the limitations not allowing Mockito to mock platform implementations. * * The return of b...
Kotlin
Fios-13-beta-3-facetime-attention-correction-eye-contact" data-analytics-social="facebook"> <svg role="img" class="p-svg-icon c-social-buttons__svg"><use xlink:href="#icon-facebook"></use></svg> <span class="sr-only">Share this on Facebook</span> </a> </li> <li> <a class="c-soc...
HTML
pse-read-more-less" aria-label="Toggle full review text" aria-expanded="false" role="button" data-action="a-expander-toggle" class="a-declarative" data-a-expander-toggle="{&quot;allowLinkDefault&quot;:true, &quot;expand_prompt&quot;:&quot;Read more&quot;, &quot;collapse_prompt&quot;:&quot;Read less&quot;}" data-csa-c-i...
HTML
ist of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND C...
C
, modifyBudgetRequestNo); } /** * Current max coupons busi favor budget params. * * @param currentMaxCoupons the current max coupons * @return the busi favor budget params */ public FavorBudgetParams currentMaxCoupons(Integer currentMaxCoupons) { this.currentMaxCoupons = cu...
Java
ds.Width) - x; var height = Screen.AllScreens.Max(s => s.Bounds.Y + s.Bounds.Height) - y; bitmap = new Bitmap(width, height, PixelFormat.Format24bppRgb); captureTime = DateTime.Now; format = settings.ImageFormat; this.height = height; this.width = width; using (var graphics = Graphics.FromImage(b...
C#
} }, laposte: { desktop-webmail: { "2022-08": "y" } }, free-fr: { desktop-webmail: { "2023-01": "n" } }, gmx: { desktop-webmail: { "2023-01": "n" } }, t-online-de: { desktop-webmail: { ...
Markdown
-19"/><line x1="89.0293" x2="79.0293" y1="-9" style="clip-path:url(#clipPath2_3707034f-30b3-41f4-b643-ea2dd2b5ded2); fill:none; stroke:black;" y2="-9"/><line x1="79.0293" x2="79.0293" y1="-9" style="clip-path:url(#clipPath2_3707034f-30b3-41f4-b643-ea2dd2b5ded2); fill:none; stroke:black;" y2="-19"/></g><g style="font-f...
HTML
educed to a form that can be shared with other processes.r)globalsgetrs rreducerzBaseContext.reducersy}}[))r c|td<y)Nr)r)rrs rrzBaseContext.reducers!* +r cy...
Python
duration: const Duration(seconds: 3), mainButton: TextButton( onPressed: () { _showFileLocation(filePath); }, child: Text(S.current.viewLocation), ), )); break; } } catch (e) { log('打开文件异常: ...
Dart
-- HunterSurvival.lua -- August 2025 -- Patch 11.2 if UnitClassBase( "player" ) ~= "HUNTER" then return end local addon, ns = ... local Hekili = _G[ addon ] local class, state = Hekili.Class, Hekili.State local spec = Hekili:NewSpecialization( 255 ) ---- Local function declarations for increased performance -- Strin...
Lua
f)))?([^/]+)\/(?:-|download)\/\1-[^/]+\.tgz(?:#|$)/,t=>`npm:${t}`],[/^https:\/\/npm\.pkg\.github\.com\/download\/(?:@[^/]+)\/(?:[^/]+)\/(?:[^/]+)\/(?:[0-9a-f]+)(?:#|$)/,t=>`npm:${t}`],[/^https:\/\/npm\.fontawesome\.com\/(?:@[^/]+)\/([^/]+)\/-\/([^/]+)\/\1-\2.tgz(?:#|$)/,t=>`npm:${t}`],[/^https?:\/\/[^/]+\/.*\/(@[^/]+)\...
JavaScript
arter); break; } renderer->set_primitive_type(PrimitiveType::Polygon); Vertex vertices[3] = { { p0x, p0y, p0w, c0, t0x, t0y }, { p1x, p1y, p1w, c1, t1x, t1y }, { p2x, p2y, p2w, c2, t2x, t2y }, }; renderer->draw_triangle(vertices); } void rsx_vulkan_push_quad( float p0...
C++
ft" ], "extensions": { "website": "https://solible.com/" } }, { "chainId": 101, "address": "91fSFQsPzMLat9DHwLdQacW3i3EGnWds5tA5mt7yLiT9", "symbol": "Unlimited Energy", "name": "Unlimited Energy", "decimals": 9, ...
Kotlin
mage over Time types KeywordFlag.PhysicalDot=0x01000000 KeywordFlag.LightningDot=0x02000000 KeywordFlag.ColdDot = 0x04000000 KeywordFlag.FireDot = 0x08000000 KeywordFlag.ChaosDot = 0x10000000 -- Active skill types, used in ActiveSkills.dat and GrantedEffects.dat -- Had to reverse engineer this, not sure what all of th...
Lua
toolchain { languageVersion.set(JavaLanguageVersion.of(17)) } } tasks.withType<JavaCompile>().configureEach { options.release.set(8) options.encoding = "UTF-8" options.compilerArgs.add("-parameters") options.isFork = true } tasks.withType<KotlinCompile>().configureEach { compilerO...
Kotlin
local SharedDropout, Parent = torch.class('nn.SharedDropout', 'nn.Dropout') SharedDropout_noise = {} SharedDropout_ps = {} function SharedDropout:__init(p, id, inplace) Parent.__init(self, p, false, inplace) SharedDropout.init(id, p) -- self.noise = SharedDropout_noise[id] self.id = id end function Sha...
Lua
********** f_create: move.w #0,-(sp) pea filename move.w #$3c,-(sp) trap #1 add.l #8,sp move.w d0,handle rts f_write: move.l #buffer,a0 move.l a0,-(sp) sub.l a0,a6 move.l a6,-(sp) move.w handle,-(sp) move.w #$40,-(sp) trap #1 add.l #12,sp rts f_close: move.w handle,-(sp) move.w #$3e,-(sp) trap #1 ...
Assembly
l %vla-init.cont, label %vla-init.loop // PATTERN: vla-init.cont: // PATTERN: call void @{{.*}}used void test_struct_vla(int size) { // Same as above, but with a struct that doesn't just memcpy. struct { float f; char c; void *ptr; } vla[size]; void *ptr = static_cast<void*>(vla); used(ptr); } /...
C++
ResourcePositionResponse(); factory UpdateResourcePositionResponse.fromJson(Map<String, dynamic> _) { return UpdateResourcePositionResponse(); } Map<String, dynamic> toJson() { return {}; } } class UpdateWirelessDeviceImportTaskResponse { UpdateWirelessDeviceImportTaskResponse(); factory UpdateW...
Dart
used to boost your productivity and you can perform heavy task without any worries. # Iam Google Colab button 👇 `नीचे तो देखो` 👇 <img src="https://github.com/SudoR2spr/SudoR2spr/raw/main/assets/line-neon.gif" width="100%"></p> <p align="center"> <a href="https://colab.research.google.com/github/SudoR2spr/RDP-Cola...
Markdown
4, 245, 144, 245, 184, 245, 224, 245, 8, 246, 48, 246, 88, 246, 128, 246, 168, 246, 208, 246, 248, 246, 32, 247, 72, 247, 112, 247, 152, 247, 192, 247, 232, 247, 16, 248, 56, 248, 96, 248, 136, 248, 176, 248, 216, 248, 0, 249, 40, 249, 80, 249, 120, 249, 160, 249, 200, 249, 240, 249, 24, 250, 64, 250, 104, 250, 144, 25...
Java
dress, the directed * advertising mode will not be run. * * @param[in] p_peer_addr Pointer to a peer address. * * @retval @ref NRF_SUCCESS Successfully stored the peer address pointer in the advertising module. * @retval @ref NRF_ERROR_INVALID_STATE If a reply was not expected. */ uint32_t ble_advertis...
C
// North .element() .from(6, 6, 4).to(10, 10, 6) .rotation().angle(0).axis(Direction.Axis.Y).origin(8, 8, 8).end() .allFaces((direction, faceBuilder) -> { if (direction == Direction.NORTH) { faceBuilder.texture(TextureSlot.TEXTUR...
Java
in alignment */ static int qcow_write_compressed(BlockDriverState *bs, int64_t sector_num, const uint8_t *buf, int nb_sectors) { BDRVQcowState *s = bs->opaque; z_stream strm; int ret, out_len; uint8_t *out_buf; uint64_t cluster_offset; if (nb_sectors != s->clus...
C
mm2, %xmm2 vpslldq $4, %xmm9, %xmm4 vpslldq $8, %xmm9, %xmm5 vpxor %xmm5, %xmm4, %xmm4 vpslldq $12, %xmm9, %xmm5 vpxor %xmm5, %xmm4, %xmm4 vpxor %xmm4, %xmm9, %xmm4 vpshufd $255, %xmm0, %xmm11 vaesenclast %xmm10, %xmm11, %xmm11 vpxor %xmm4, %xmm11, %xmm11 #NO_APP vbroadcastss .LCPI2_10(%rip), %xmm4 vmovdqa ...
Assembly
src, outputDir, writeAssembly = false, errors=errors) shouldBe null errors.errors.size shouldBe 2 errors.warnings.size shouldBe 0 errors.errors[0] shouldContain "converted to float" errors.errors[1] shouldContain "converted to float" } test("out of range number assignments") { ...
Kotlin