content
stringlengths
2
6.21k
label
stringclasses
16 values
src="http://www.aqniu.com/wp-content/uploads/2016/06/640-45.jpeg" alt="640-4" width="640" height="390" srcset="http://www.aqniu.com/wp-content/uploads/2016/06/640-45.jpeg 640w, http://www.aqniu.com/wp-content/uploads/2016/06/640-45-300x183.jpeg 300w" sizes="(max-width: 640px) 100vw, 640px" /></a></p> <p style="text-al...
HTML
storage[1]; final xDiff = _v4storage[0] - correct._v4storage[0]; return math.sqrt( xDiff * xDiff + yDiff * yDiff + zDiff * zDiff + wDiff * wDiff, ); } /// True if any component is infinite. bool get isInfinite => _v4storage[3].isInfinite || _v4storage[2].isInfinite || _v4stora...
Dart
}.next-form-item-label.next-left>label[required]:before{display:none}.next-form-item-label.next-left>label[required]:after{margin-left:4px;content:"*";color:#ff3000}.next-form-item-help{margin-top:4px;font-size:12px;line-height:1.5;color:#999}.next-form.next-inline .next-form-item{display:inline-block;vertical-align:to...
CSS
> class. /// </summary> /// <param name="type">The type.</param> /// <param name="result">The result.</param> /// <param name="value">The value.</param> public Stind (InternalType type, Register result, Register value) : base ("Stind", null, new Operand [] { result, value }) { this.type = type; } ...
C#
/SaraSofiaGalvisMerizalde702M.jpg', "Sara Sofía Galvis Merizalde ", "7021")); listaRepresentantes.add(BotonCandidato(context, "Representante curso $curso", Colors.deepOrangeAccent, 'assets/images/EiderSantiagoGuzmanWalteros702M.jpg', "Eider Santiago Guzmán Walteros", "7022")); } else { lista...
Dart
等等(1160篇) 7.特殊档案:检查交代和处理结论等等(383篇) 3.中国五十年代初中期的政治运动数据库:从土地改革到公私合营,1949-1956(9781篇) 0.中共中央和各级政府的文件和指示(2913篇) 1.毛泽东的讲话、指示和文稿(949篇) 2.中共党政领导的讲话和指示(1562篇) 3.各主要报刊的社论和重要文章(566篇) 4.其他重要文章和报道(1618篇) 5.中共党内和民间社会的不满、抵制、反抗以及相关的骚乱(417篇) 6.内部档案:调查报告、指示统计等等(1107篇) ...
HTML
d78`](https://github.com/inspect-js/is-equal/commit/3d65d78a50e80d6d2b6909c1c74e7f6bd0bff316) - [lint] add missing 'use strict' directive [`c6e098e`](https://github.com/inspect-js/is-equal/commit/c6e098e859f376c1639a71c71b2b4440bde76546) ## [v1.4.0](https://github.com/inspect-js/is-equal/compare/v1.3.1...v1.4.0) - 201...
Markdown
select { display: none; } select.disabled { display: block; } /*************** Range ***************/ .range-field { position: relative; } input[type=range], input[type=range] + .thumb { @extend .no-select; cursor: pointer; } input[type=range] { position: relative; background-color: transparent; ...
CSS
// row: 1 3 2 for (i in 0 until k) { // For each row: we have number row.get(i). And we need to know // which column we need to assign, which is from map.get(row.get(i)) // known by map.get() res[i][map[row[i]]!!] = row[i] } return res ...
Kotlin
EDICTABLE_LONG_PASS, SE_NO_GOAL_UNPREDICTABLE_MISTAKE, SE_NO_GOAL_UNPREDICTABLE_SPECIAL_ACTION -> this.specialty = Specialty.Unpredictable; } } } } /** * Check if downloaded hattrick skill information contradict calculated values * and adjust calculation accordingl...
Java
printf_fphex+0x11d8> // b.hs, b.nlast 4326c0: 91001022 add x2, x1, #0x4 4326c4: f9001002 str x2, [x0, #32] 4326c8: 528005a0 mov w0, #0x2d // #45 4326cc: b9000020 str w0, [x1] 4326d0: 11000695 add w21, w20, #0x1 4326d4: b940bba0 ldr w0, [x29, #184] 4326d8: 34fff980 cbz w0, 432608 ...
Assembly
.7s13.5-33.5 28.1-33.5zm166.4 33.5c.9 19-12 26.7-26.6 26.7s-25.6-6.9-26.5-25.9c-.9-19 10.3-34.4 25-34.4s27.3 14.6 28.1 33.5zm-42.1 49.6c-9 21.5-30.3 36.7-55.1 36.7s-46.1-15.1-55.1-36.7c-1.1-2.6 .7-5.4 3.4-5.7c16.1-1.6 33.5-2.5 51.7-2.5s35.6 .9 51.7 2.5c2.7 .3 4.5 3.1 3.4 5.7z"] }; var faRedditSquare = faSquareReddit; v...
JavaScript
/****************************************************************************** This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. *******************************************************************************/ #ifndef __COMMANDLINEPARSER_HH__ #defi...
C
of all zeros, we set the * high order bit of x[0] to 1. This function only needs to * be called by seed, since the state transform preserves * this relationship. */ void normalize_state() { const UIntType upper_mask = (~static_cast<UIntType>(0)) << r; const UIntType lower_m...
C++
using System; using System.Collections.Generic; using System.Linq; namespace StorEvil.Core { [Serializable] public class ScenarioOutline : ScenarioBase, IScenario { public ScenarioOutline() { } public ScenarioOutline(string id, string name, Scenario scenario, string[] fiel...
C#
ion.<br> ---* param userInfo A dictionary as UserInfo. ---@param userInfo map_table ---@return self function AnimationFrame:setUserInfo(userInfo) end ---* initializes the animation frame with a spriteframe, number of delay units and a notification user info ---@param spriteFrame cc.SpriteFrame ---@param delayUnits flo...
Lua
tep - Watch SOP Class - Trial (Retired) /// /// - **UID:** 1.2.840.10008.5.1.4.34.4.2 /// - **UID Type:** SOP Class pub static UnifiedProcedureStepWatchSOPClassTrial: UID = UID { ident: "UnifiedProcedureStepWatchSOPClassTrial", uid: "1.2.840.10008.5.1.4.34.4.2", name: "Unified Procedure Step - Watch SOP Cla...
Rust
::string("NextHopId"), nextHopId); } std::string UpdateGatewayRouteTableEntryAttributeRequest::getNextHopType() const { return nextHopType_; } void UpdateGatewayRouteTableEntryAttributeRequest::setNextHopType(const std::string &nextHopType) { nextHopType_ = nextHopType; setParameter(std::string("NextHopType"), ...
C++
/* Copyright (C) 2014, The University of Texas at Austin This file is part of libflame and is available under the 3-Clause BSD license, which can be found in the LICENSE file at the top-level directory, or at http://opensource.org/licenses/BSD-3-Clause */ #include "FLAME.h" #define FLA_ALG_REFEREN...
C
s> { if (this.#processQueue.length < this.#maxLength) { const process = fork(...forkArgs); process.on( "exit", removeProcessFromQueue.bind(null, this.#processQueue, process) ); this.#processQueue.push(process); return Promise.resolve(process); } // if the queue ...
Typescript
957 -3.1094 ZM52.1738 -3.1094 Q52.1738 -1.9219 52.6895 -1.3281 Q53.2207 -0.7344 54.002 -0.7344 Q54.7988 -0.7344 55.3145 -1.3281 Q55.8301 -1.9219 55.8301 -3.1406 Q55.8301 -4.2969 55.2988 -4.8906 Q54.7832 -5.4844 54.002 -5.4844 Q53.2207 -5.4844 52.6895 -4.8906 Q52.1738 -4.3125 52.1738 -3.1094 ZM58.1602 -7.375 L58.1602 -8...
HTML
ern_proc_sigtramp(SYSCTL_HANDLER_ARGS) { /*int *name = (int *)arg1;*/ u_int namelen = arg2; struct kinfo_sigtramp kst; const struct sysentvec *sv; int error; if (namelen > 1) return (EINVAL); /* ignore pid if passed in (freebsd compatibility) */ ...
C
-radius: 0px!important; padding-left: 1rem!important; } pre { border-radius: 0px!important; background-color: white!important; } code span, code a:any-link { color: #1f1c1b!important; }/* Normal */ code span.al, code span.al a:any-link { color: #bf0303!important; background-color: #f7e6e6!impo...
CSS
dispatcher.php?'; // URL to web api private headers = new Headers({ 'content-type': 'application/json' }); constructor(private http: Http) { } public getLivres(): Promise<Livre[]> { return this.http.get(this.LivreURLGET) .toPromise() .then((response) => response.json().data as Livre[]) .c...
Typescript
い。しかし、これは進化生物学が実際に主張していることではなく、間違った説明である。進化生物学が主張しているのは、ヒトとチンパンジーは、何百万年前もさかのぼると、共通の祖先にいきつくということだ。相手のアイディアを間違って説明する方が、そのアイディアの根拠に反論するよりも簡単なのだ。</p> </div> </div> <img src="images/strawman.png?timestamp=2017-03-09" class="right" /> <div class="page-break"></div> ...
HTML
cachedPalette[1] = colors[palette.toInt() ushr 2 and 0x3] cachedPalette[2] = colors[palette.toInt() ushr 4 and 0x3] cachedPalette[3] = colors[palette.toInt() ushr 6 and 0x3] } fun update(cycles: Int, bus: Bus) { if (!isEnabled) return scanlineCounter += cycles ...
Kotlin
} case "ADD_GATE": { // Check user constraint if(self.gates.length >= maxGates) return null const possible = self.possible(method) if (possible) { // Select a random gater node and connection, can't be gated by input | makes ["input", "hidden", "output"] assumption ...
HTML
&$target { &self.$($target_code)+ } } impl $(< $($impl_gen)+ >)? PartialEq for $tp { fn eq(&self, other: &Self) -> bool { self.$($target_code)+$( $($to_handle_code)+ )? == other.$($target_code)+$( $($to_handle_code)+ )? } } impl $(< $($impl_gen)+ >)? Eq for $tp {} impl $(< $($impl_gen)+ >)?...
Rust
/** * ExpansionMarketMedical.c * * DayZ Expansion Mod * www.dayzexpansion.com * © 2022 DayZ Expansion Mod Team * * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. * To view a copy of this license, visit http://creativecommons.org/licenses/by-n...
C
帘石", "xanthorubin":"[医] 血清黄色素(肝切除后血清内所见)", "xanthos":"(xantho 的复数) 扇蟹属", "xanthosarcoma":"[医] 黄肉瘤, 黄髓瘤", "xanthoscillide":"黄海葱苷", "xanthosiderite":"n. 黄针铁矿", "xanthosine":"黄(嘌呤核)苷", "xanthosine (X,Xao)":"[化] 黄苷; 黄嘌呤核苷", "xanthosine monophosphate":"[化] 黄苷酸; 黄苷一磷酸", "xanthosis":"n. 黄肤症, 黄变病", "xanthosis diabetica":"[医] 糖...
Typescript
/* Copyright (C) 2009-2024 Parallel Realities This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in t...
C
l-item"><span class="exturl" data-url="aHR0cHM6Ly92bmRiLm9yZy8=" title="https:&#x2F;&#x2F;vndb.org&#x2F;">vndb - 视觉小说数据库</span></li><li class="links-of-blogroll-item"><span class="exturl" data-url="aHR0cHM6Ly9lcm9nYW1lc2NhcGUub3JnLw==" title="https:&#x2F;&#x2F;erogamescape.org&#x2F;">ErogameScape -エロゲー批評空間-</span></li>...
HTML
} return true } } fun isScrollIng(): Boolean { return flingAnimation.isRunning } private val gestureDetector: GestureDetector by lazy(LazyThreadSafetyMode.NONE) { GestureDetector(context, gestureListener) } private val scaleGestureDetector: ScaleGesture...
Kotlin
listener) { if ( listener instanceof DIDURLListener ) ((DIDURLListener)listener).enterQueryParamName(this); } @Override public void exitRule(ParseTreeListener listener) { if ( listener instanceof DIDURLListener ) ((DIDURLListener)listener).exitQueryParamName(this); } } public final QueryParamNameConte...
Java
HERITED_VALUE", REGULAR: "REGULAR", } as const; /** * @public */ export type CostCategoryRuleType = (typeof CostCategoryRuleType)[keyof typeof CostCategoryRuleType]; /** * @public * @enum */ export const CostCategoryRuleVersion = { CostCategoryExpressionV1: "CostCategoryExpression.v1", } as const; /** * @p...
Typescript
<li>fixed FreeBSD config (Pedro Giffuni) <li>fixed some minor framebuffer object bugs <li>replaced dprintf() with _glu_printf() in GLU (bug 6244) <li>fixed a number of thread safety bugs/regressions <li>fixed a number of GLU tesselator bugs (John Shell, bug 6339) <li>paletted texturing was broken w/ floating point pal...
HTML
, true) store.dispatch(ContentAction.AddFindResultAction("test-tab", result2)).joinBlocking() dispatcher.scheduler.advanceUntilIdle() verify(view).displayResult(result2) } @Test fun `no find results are observed after stop has been called`() { val view: FindInPageView = mock...
Kotlin
e(GL_TEXTURE0) glBindTexture(GL_TEXTURE_2D, texHandle[0]) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST) glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT) ...
Kotlin
Follow = Class(BehaviourNode, function(self, inst, target, min_dist, target_dist, max_dist, canrun, alwayseval, inlimbo_invalid) BehaviourNode._ctor(self, "Follow") self.inst = inst self.target = target if type(min_dist) == "function" then self.min_dist_fn = min_dist self.min_dist = nil else sel...
Lua
y_set_param(g->static_body, PhysicsServer3D::BODY_PARAM_BOUNCE, physics_material->computed_bounce()); } #endif // PHYSICS_3D_DISABLED SceneTree *st = SceneTree::get_singleton(); if (st && st->is_debugging_collisions_hint()) { g->collision_debug = RenderingServer::get_singleton()->mesh_create(); g->collisio...
C++
-- @type NvPluginSpec[] local overrides = require "configs.overrides" local ufo_custom = require "configs.ufo" local linterConfig = vim.fn.stdpath "config" .. "/lint" return { -- Overrides of native plugins { "lukas-reineke/indent-blankline.nvim", enabled = false }, { "nvim-telescope/telescope.nvim", enabled =...
Lua
t java.io.ObjectInputStream import java.net.InetSocketAddress import java.net.ServerSocket /** * @Author: CZY * @Date: 2022/9/26 14:18 * @Desc: */ class FileReceiverViewModel(context: Application) : AndroidViewModel(context) { private val _fileTransferViewState = MutableSharedFlow<FileTransferViewState>()...
Kotlin
ower().endswith(('.jpg', '.jpeg')): converted_file = ytg.convert_jpeg_to_png(first_file) if converted_file and os.path.exists(converted_file): thumb = get_thumbnail_data(converted_file) if thumb: window["-IMAGE_PREVIEW-"].up...
Python
AttributeId, EditorContext, Hoverable, InputPinId, Link, LinkId, MiniMapLocation, NodeId, OutputPinId, PinId, PinShape, }; /// entry point #[doc(alias = "BeginNodeEditor", alias = "EndNodeEditor")] pub fn editor<F: FnOnce(EditorScope)>(context: &mut EditorContext, f: F) -> OuterScope { context.set_as_current_...
Rust
{ includeDoctype: true }, ), { $doctype: { "@type": true, "@quoted attribute": true, }, root: null, }, )); Deno.test("parse: xml syntax doctype with element", () => assertEquals( parse( ` <!DOCTYPE type "quoted attribute" [ <!ELEMENT note (t...
Typescript
Copyright (C) 2003-14 Bradley M. Bell CppAD is distributed under multiple licenses. This distribution is under the terms of the Eclipse Public License Version 1.0. A copy of this license is included in the COPYING file of this distribution. Please visit http://www.coin-or.org/CppAD/ for informat...
C++
server, in less than 100 lines of code, by implementing /callback and /authorize routes.</p> <div class="flex anchor relative"> <h3 id="why-do-mcp-servers-issue-their-own-tokens">Why do MCP servers issue their own tokens?</h3> <a href="https://blog.cloudflare.com/#why-do-mcp-servers-issue-their-own-tokens" aria-h...
HTML
in range(min_num_layers): inputs_or_outputs[f"{name}.{i}.decoder.key"] = {0: "batch", 2: decoder_sequence} inputs_or_outputs[f"{name}.{i}.decoder.value"] = {0: "batch", 2: decoder_sequence} inputs_or_outputs[f"{name}.{i}.encoder.key"] = {0: "batch", 2: encoder_sequence} ...
Python
; --color-checks-ansi-red-bright: #ffaba8; --color-checks-ansi-green: #4ac26b; --color-checks-ansi-green-bright: #6fdd8b; --color-checks-ansi-yellow: #d4a72c; --color-checks-ansi-yellow-bright: #eac54f; --color-checks-ansi-blue: #54aeff; --color-checks-ansi-blue-bright: #80ccff; --color-checks-ansi-magenta: #c297ff; --...
HTML
div> </div> </div> <div class='c-ft-n'><h2>Notes</h2> <p><span id='n1'>1.</span> == Disputed Origins == The Henry Rice who married Elizabeth Frost (who then went on to marry[[Whale-11|Philemon Whale II]]) has been thought to be brother or father of the immigrant [[Rice-52|Edmund Rice]] who settled in Sudbury, Massachus...
HTML
{ Name: "detailed", Type: QueryArgBool{}, Description: "The detailed arg", Optional: false, } // ReportTypeQueryArg allows to get the report type in the URL // Parameters with routes.QueryArgs. This type will be a // string stored in the routes.Arguments map with itself for key. ReportTyp...
Go
pe.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-SendError%3CT%3E" class="impl"><a class="src rightside" href="../../../../src/tokio/sync/mpsc/error.rs.html#7">Source</a><a href="#impl-PartialEq-for-SendError%3CT%3E" class="anchor">§</a><h3 cla...
HTML
porter.export_spans(chunk.to_vec()).await?; } Ok(()) } } } /// ✅ 零成本抽象验证 /// /// 编译时:编译器为每个实现生成特化版本 /// 运行时:直接函数调用,无虚函数表查找 /// 内存:无额外堆分配 /// 性能:与手写异步函数完全相同 ✅ ``` --- ### 1.3 Async Closures **Rust 1.90 改进的异步闭包支持**: ```rust use tokio::task::JoinSet; /// ✅ 异步闭包 - 完全类型推导 async fn ...
Markdown
ns to come, Weave in red blood, weave sinews in like ropes, the senses, sight weave in, Weave lasting sure, weave day and night the wet, the warp, incessant weave, tire not, (We know not what the use O life, nor know the aim, the end, nor really aught we know, But know the work, the need goes on and...
HTML
llback(resultPhotos); } } }); } } else { callback(selectedPhotos); } } else { if (getContext() == null) { return; } ...
Java
(ids, tree) { Err(_) => { trans.set_rollback(); trans.finish().unwrap(); return Err(status::Custom(HTTPStatus::InternalServerError, String::from("Could not format diffResult XML"))); }, Ok(diffres) => diffres }; match delta::modify(&delta_id, &trans, ...
Rust
rray<Action>, }>, [other: string]: any } export function makeAuthorizer(config: AuthConfig) { return function authorize({ip, email, topic, op}: {ip?: string, email?: string, topic: string, op: Op}) { // TODO: handle topic // allow unauthorized clients to receive status messages if (op ===...
Typescript
public pbc::RepeatedField<global::SkyWalking.NetworkProtocol.KeyWithIntegerValue> AddressIds { get { return addressIds_; } } [global::System.Diagnostics.DebuggerNonUserCodeAttribute] public override bool Equals(object other) { return Equals(other as NetworkAddressMappings); } [global...
C#
.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16...
JavaScript
ne0i); addOps(Result, Inst, 0); addOps(Result, Inst, 2); break; // 1,3 SUBInst $Rdd = combine(#0, #$u2) } if (Value == 2) { Result.setOpcode(Hexagon::SA1_combine2i); addOps(Result, Inst, 0); addOps(Result, Inst, 2); break; // 1,3 SUBInst $Rdd = combine(#2, #$u2) }...
C++
0000 */ lw $t6, ($t5) /* 19C1E8 801EE198 000E7880 */ sll $t7, $t6, 2 /* 19C1EC 801EE19C 002F0821 */ addu $at, $at, $t7 /* 19C1F0 801EE1A0 AC2C0490 */ sw $t4, 0x490($at) /* 19C1F4 801EE1A4 8E180088 */ lw $t8, 0x88($s0) /* 19C1F8 801EE1A8 0C068AB7 */ jal func_801A2ADC_ovl9 /* 19C1FC 801EE1AC 8F040010 */ ...
Assembly
TF_RETURN_IF_ERROR(GetWindowedOutputSizeVerboseV2( dim->input_size, dim->filter_size, dim->dilation, dim->stride, padding, &out_size, &padding_before, &padding_after)); if (dim->output_size != out_size) { return errors::InvalidArgument( label, ": Size of out_backprop doesn't match computed: ",...
C++
local CurrencyItem = class("CurrencyItem") function CurrencyItem:ctor() self.currencyVM_ = Z.VMMgr.GetVM("currency") self.itemsVM_ = Z.VMMgr.GetVM("items") end function CurrencyItem:Init(uiBinder) self.uiBinder = uiBinder self.uiBinder.btn_item:AddListener(function() self:OnItemClick() end) self.uiBin...
Lua
.to_str_radix (10))); prop_assert_eq!(perfect_result, BigInt::from (result)) } #[test] fn randomly_test_overflow_checked_shl (input in any::<i32>(), shift in 0u32..40) { let result = overflow_checked_shl (input, shift); let perfect_result = BigInt::from (input) << shift as usize; pr...
Rust
if (fabs(intersectPoint.coords[1]) > 3.7 * panic) intersect = false; else intersect = true; if (intersect) { //SetGreenDebugPilon(intersectPoint); ballBoundForGoal_ycoord = intersectPoint.coords[1]; ballBoundForGoal = true; } else { //SetGreenDebugPilon(Vector3(0, 0, -10)); } ...
C++
s/5f8d3a7f-467b-97f3-062c-13acf203c006/abilities/ultimate/displayicon.png\"\n" + " }\n" + " ]\n" + " }" package com.example.recipeapp.ui.auth import android.content.Intent import android.os.Bundle import android.os.Handler import android.os.Looper import android.util.Log import a...
Kotlin
art'; import 'dart:async'; import '../widgets/backup_progress_dialog.dart'; class WebDAVController { webdav.Client? _client; bool _isConnected = false; final _progressController = StreamController<BackupProgress>.broadcast(); Stream<BackupProgress> get progressStream => _progressController.stream; WebDAVCon...
Dart
jectT, FP_T(NONAME), R, Args...>(method, object, args...); } template <class ObjectT, class R, typename... Args> UnretainedMethodFunctor<const ObjectT, FP_T(NONAME), R, Args...> Bind( FP_T(method), detail::UnretainedWrapper<const ObjectT> object, ...
C
} } import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root' }) export class Product { constructor( public id: number, public title: string, public price: number, public rating: number, public description: string, public categories: string[]) { } } export class Produ...
Typescript
state: PeripheralMutex<'d, Inner<'d, TX, RX>>, pins: [AnyPin; 9], _phy: P, clock_range: Cr, phy_addr: u8, mac_addr: [u8; 6], } impl<'d, P: PHY, const TX: usize, const RX: usize> Ethernet<'d, P, TX, RX> { /// safety: the returned instance is not leak-safe pub unsafe fn new( stat...
Rust
strong emphasis (https://github.github.com/gfm/#example-459)', t => { // const actual = gfmc('*foo *bar baz*') // t.is('<p>*foo <em>bar baz</em></p>', actual) // }) // test('Emphasis and strong emphasis (https://github.github.com/gfm/#example-460)', t => { // const actual = gfmc('*[bar*](/url)') // t.is('<p>*<...
Typescript
arg)*) ); } #[macro_export] macro_rules! warn { ($($arg:tt)*) => ($crate::log!($crate::log::Level::Warn, $($arg)*)); } #[macro_export] macro_rules! info { ($($arg:tt)*) => ($crate::log!($crate::log::Level::Info, $($arg)*)); } #[macro_export] macro_rules! debug { ($($arg:tt)*) => ($crate::log!($crate::log::L...
Rust
} U_CAPI void U_EXPORT2 u_flushDefaultConverter() { UConverter *converter = NULL; if (gDefaultConverter != NULL) { icu::umtx_lock(NULL); /* need to check to make sure it wasn't taken out from under us */ if (gDefaultConverter != NULL) { converter = gDefaultConv...
C++
ssions of our language:<p> <p><p><tt>(*&nbsp;(+&nbsp;23&nbsp;45)&nbsp;(+&nbsp;x&nbsp;9))<br> <br> (define&nbsp;(fact&nbsp;n)&nbsp;(if&nbsp;(=&nbsp;n&nbsp;1)&nbsp;1&nbsp;(*&nbsp;n&nbsp;(fact&nbsp;(-&nbsp;n&nbsp;1)))))<br> </tt><p><p><p> In order to manipulate symbols we need a new element in our language: the ability ...
HTML
p_72925_4_ >> 4; if (!this.chunkExists(var5, var6)) { return p_72925_1_.defaultLightValue; } else if (this.getBlock(p_72925_2_, p_72925_3_, p_72925_4_).func_149710_n()) { int var12 = this.getSavedLightValue(p_72925_1_, p_72925_2_, p_72925_3_ + 1,...
Java
) { for _, testCase := range append(baseCases, testCases...) { t.Run(testCase.name, func(t *testing.T) { log, logHook := test.NewNullLogger() id, err := fn(rpccontext.WithLogger(context.Background(), log), td, testCase.spiffeID) if testCase.expectErr != "" { require.EqualError(t, err, testCase.ex...
Go
====================================== IMPLEMENT_NETWORKCLASS_ALIASED( FFWeaponJumpgun, DT_FFWeaponJumpgun ) BEGIN_NETWORK_TABLE(CFFWeaponJumpgun, DT_FFWeaponJumpgun ) #ifdef GAME_DLL SendPropTime( SENDINFO( m_flTotalChargeTime ) ), SendPropTime( SENDINFO( m_flClampedChargeTime ) ), #else RecvPropTime( RECVINFO(...
C++
-- Start with the english keyboard layout local no_keyboard = dofile("frontend/ui/data/keyboardlayouts/en_keyboard.lua") local keys = no_keyboard.keys -- add ' key next to numeric 0 table.insert( keys[1], { { "*", alt_label = "'", north = "'", }, { "'", alt_label = "*", north = "*", }, ...
Lua
/b>( <a href="ft2-base_interface.html#FT_GlyphSlot">FT_GlyphSlot</a> slot, <a href="ft2-glyph_management.html#FT_Glyph">FT_Glyph</a> *aglyph ); </pre> <p>A function used to extract a glyph image from a slot. Note that the created <a href="ft2-glyph_management.html#FT_Glyph">FT_Glyph</a> object mus...
HTML
{ ({Custom}), (&{SliceCustom}), rev }; /// // NOTE: `std::borrow::Borrow for AsciiString` is required by `Cow`. /// { ({Custom}), (Cow<{SliceCustom}>), rev }; /// /* ... and more pairs! */ /// } /// ``` /// /// ## Core and alloc /// /// For `no_std` use, the macro uses custom `core` and `alloc` crate if g...
Rust
kit-justify-content: space-around; justify-content: space-around; } .grid--justify-space-around .grid__cell, .grid--justify-space-around [class*="grid__col-"] { text-align: left; text-align: start; text-align: initial; -moz-text-align-last: left; -moz-text-align-last: start; -moz-text-align-last: initial;...
CSS
1215 22.5532 24.3744C22.6994 24.6273 23.2025 25.4545 23.9477 26.1243C24.7488 26.8443 25.445 27.1486 25.7979 27.3029C25.8668 27.333 25.9226 27.3574 25.9636 27.378C26.2143 27.5046 26.3605 27.4834 26.5067 27.3148C26.6529 27.1462 27.1334 26.5772 27.3005 26.3244C27.4676 26.0716 27.6347 26.1136 27.8645 26.198Z" fill="white">...
HTML
alse; bool has_transparent_shadow = false; foreach(Shader *shader, scene->shaders) { uint flag = 0; if(shader->use_mis) flag |= SD_USE_MIS; if(shader->has_surface_transparent && shader->use_transparent_shadow) flag |= SD_HAS_TRANSPARENT_SHADOW; if(shader->has_volume) { flag |= SD_HAS_VOLUME; has...
C++
XYZ_Frog provider class declaration ** **===================================================================== */ class XYZ_Frog_Class_Provider { /* @MIGEN.BEGIN@ CAUTION: PLEASE DO NOT EDIT OR DELETE THIS LINE. */ private: Module* m_Module; public: XYZ_Frog_Class_Provider( Module* module); ~XYZ...
HTML
// // DCCollectionHeaderLayout.h // CDDStoreDemo // // Created by apple on 2017/7/13. // Copyright © 2017年 RocketsChen. All rights reserved. // #import <UIKit/UIKit.h> @protocol HorizontalCollectionLayoutDelegate <NSObject> @optional // 用协议传回 item 的内容,用于计算 item 宽度 - (NSString *)collectionViewItemSizeWithIndexPat...
C
, ub, f_ieqcons=problem.inequality_constraint, kwargs={}, swarmsize=pop_size ,\ omega=0.5, phip=0.5, phig=0.5, maxiter=1000, minstep=1e-4, minfunc=1e-4, debug=False) else: outputs = sp.optimize.minimize(wrapper,x,method=solver) return outputs ## @i...
Python
import os from typing import Iterable import torch import torchaudio from loguru import logger from pyannote.audio import Pipeline from pyannote.core import Segment class DiarizationSegment: def __init__(self, segment: Segment, label: str, speaker: str): self.segment = segment self.label = label ...
Python
(0, 100, 50, 30); crc2.stroke(); crc2.beginPath(); crc2.arc(-25, -25, 15, 0, 2 * Math.PI); crc2.stroke(); crc2.beginPath(); crc2.arc(25, -25, 15, 0, 2 * Math.PI); crc2.stroke(); crc2.restore(); } function drawMountains(_position: Vector, _min: n...
Typescript
/***** includes *****/ #include "lfds710_stack_internal.h" /****************************************************************************/ int lfds710_stack_pop( struct lfds710_stack_state *ss, struct lfds710_stack_element **se ) { char unsigned result; lfds710_pal_uint_t backoff...
C
* @param p_point * @param p_quaternion */ static FVector3 RotatePoint(const FVector3& p_point, const FQuaternion& p_quaternion); /** * Rotate a point around a pivot point using a rotation quaternion * @param p_point * @param p_pivot * @param p_quaternion */ static FVector3 RotatePoint(const FVect...
C
flare.com/bye-bye-blackbird">orden de dos páginas</a>, el juez Vince Chhabria sostuvo que "las ideas abstractas no son patentables" y la afirmación de Blackbird de la patente "intenta monopolizar la idea abstracta de monitorear un flujo de datos preexistente entre un servidor y un cliente". Esencialmente, el caso fue r...
HTML
4: ifnonnull +46 -> 50 // 7: aload_0 // 8: monitorenter // 9: new 99 com/estrongs/android/b/a/n // 12: dup // 13: invokespecial 100 com/estrongs/android/b/a/n:<init> ()V // 16: astore 4 // 18: aload 4 // 20: invokevirtual 102 com/estrongs/android/b/a/n:a ()V // 23: ...
Java
output = self.r4(output) output = self.c4(output)# 2 x 224 x 224 return output # sin-cos position encoding # https://github.com/jadore801120/attention-is-all-you-need-pytorch/blob/master/transformer/Models.py#L31 def get_sinusoid_encoding_table(n_position, d_hid): ''' Sinusoid position e...
Python
lude <iostream> ProtoParse::ProtoParse() { } ProtoParse::~ProtoParse() { } int ProtoParse::getOnedata(std::string& input, size_t start_index, std::string &message) { if(input.length() < PROTOHEAD_LEN) { std::cout<<"length is:"<<input.length()<<std::endl; return -1; } uint8_t sync0; ...
C++
is_world = 0, shop_id = -1, replace_item = 0, link_id = 0, icon = "Props/30103", rarity = 3, drop_oil_max = 0, shiptrans_id = 0, virtual_type = 0, id = 30201, display_icon = {}, price = { 1, 100 }, index = {} }, [30202] = { drop_gold_max = 0, name = "지향형 장비 상자·SSR ", display = "사...
Lua
//****************************************************************************** // // Copyright (c) 2016 Microsoft Corporation. All rights reserved. // // This code is licensed under the MIT License (MIT). // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LI...
C
.318 0 0 0 .237.531h1.579v4.3a.159.159 0 0 0 .159.159H11.3a.159.159 0 0 0 .159-.159v-4.3h1.584a.318.318 0 0 0 .237-.531z" transform="translate(-2280.188 -4275)"></path></g></svg></button></span><div class="" style="height: calc(100% + 10px);"></div><div class="Tooltip-container-DIF Tooltip-position-center-CBA Tooltip-r...
HTML
{ vers[i] = buildinfo.Version } return &stores.Stores{ Shards: ips, Vers: vers, } } type Ingestor struct { *proxyapi.Ingestor HTTPAddr string } func MakeIngestors(cfg *TestingEnvConfig, hot, cold [][]string) []*Ingestor { ingestors := make([]*Ingestor, cfg.IngestorCount) coldStores := newNetworkStore...
Go
LoginUserInfo({ num? code, String? message, num? ttl, Data? data, }) { _code = code; _message = message; _ttl = ttl; _data = data; } LoginUserInfo.fromJson(dynamic json) { _code = json['code']; _message = json['message']; _ttl = json['ttl']; _data = json['data'] ...
Dart
ss="line" href="classcutlass_1_1epilogue_1_1warp_1_1TileIteratorSimt_3_01WarpShape___00_01Operator___00_01Elemenf2bd262ed3e202b25d5802d83965bf3b.html#a5c553a18b6215ed1158e863851be631a"> 77</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classcutlass_1_1epilogue_1_1warp_1_1TileIteratorSimt_3...
HTML