content
stringlengths
2
6.21k
label
stringclasses
16 values
oo() { defer func() { println("recover 1") if err := recover(); err != nil { // 可以捕获到 panic fmt.Printf("[1] recovered %d\n", err) } }() defer func() { println("recover 2") if err := recover(); err != nil { // 可以捕获到 panic fmt.Printf("[2] recovered %d\n", err) panic(err) // 捕获的同时继续抛出 } }() def...
Markdown
return false; }else { return true; } } function acceptPrivacy() { var privacyCheckbox = document.getElementById("privacyCheckbox"); if (!privacyCheckbox.checked) { alert("Devi accettare la privacy per procedere."); var redirectUrl = get...
HTML
2_val, zp_loss_val, d_loss1_val, d_loss2_val) x_hat_batch_val, total_loss_batch_val = sess.run([x_hat_batch, total_loss_batch], feed_dict=feed_dict) best_keeper.re...
Python
SyncerNet Unity </a> <button class="btn btn-lg d-md-none border-0" type="button" data-bs-toggle="collapse" data-bs-target="#navpanel" aria-controls="navpanel" aria-expanded="false" aria-label="Toggle navigation"> <i class="bi bi-three-dots"></i> </button> <div class=...
HTML
DWU+UWq2bjuhBu6DdmyEOv5lOk6OpMqS4hlxpzQK4"></script> </head> <body> <div id="__blum"> <head> <style> html { background: #000000; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } h...
HTML
Expect(sortedQuotes).To(Equal(expected)) }) }) When("user sorter", func() { It("should return no quotes", func() { sorter := NewSorter("user") sortedQuotes := sorter([]*c.Asset{}) expected := []*c.Asset{} Expect(sortedQuotes).To(Equal(expected)) }) }) }) }) }) package unary...
Go
uqy8dS2G/d+MiWKvy9vZw8u7qPnXrI7QsjIKZ/44O57ArE+jclZ3edTMAq8sq3bmR7PoifZahGqrWVt30QsWfuehq9vIZnmkRXfE185++30Wo6Ek+gtQR2gl/T7E/AKne2XoV8MH1HO7/wcxyFhX4y9QcIiCU10FUdN8uh0XtUckYQ+U489ouKeViZDfefMZ5ljmKCr6ZMpR8Rnm1OU5X6Dj/AygRV6otyj+4lN3taioHv+Yxb8xPWF66+WRldVtVsWNnnp1JFdd2X4ahJ4lpZf/nLEfQa1Xt790AKHa5pcoox3trNSiJps+TYp5C1E9...
Markdown
1.wp.com/blog.lerner.co.il/wp-content/uploads/2016/08/zipper3.png) 我喜欢Python的"[zip](https://docs.python.org/3/library/functions.html#zip)"函数。我不大确定我喜欢zip什么,但是我常常发现它非常有用。在我描述"zip"做了什么之前,先让我告诉你一个例子: ```python >>> s = 'abc' >>> t = (10, 20, 30) >>> zip(s,t) [('a', 10), ('b', 20), ('c', 30)] ``` 正如你所看到的,"zip"的结果是一个元组序列。...
Markdown
1).map(function (s) { return s.trim(); }).join('\n'); // pretty-print again return pretty(code); } window.onload = function () { [].forEach.call(document.querySelectorAll('.group'), function (group) { var name = group.getAttribute('data-name'); var button = group...
HTML
x movl %edx, 12(%rbx) movq (%rdi), %rax call *16(%rax) movl $-1, %eax lock xaddl %eax, 12(%rbx) cmpl $1, %eax movq (%rbx), %rax movq %rbx, %rdi popq %rbx movq 24(%rax), %rax jmp *%rax pushq %r14 pushq %r13 movl $96, %edi pushq %r12 pushq %rbp pushq %rbx subq $48, %rsp movq %rax, %rbx movabsq $429496...
Assembly
ть полезно &#171;почувствовать&#187; то, как работает эта программа. Для этого давайте посмотрим, как создаётся главная страница журнала для воображаемой выставки Рембрандта. Для повторения шагов, описанных далее, вам понадобятся: </p> <ul><li>Установленные шрифты <a href="http://scripts.sil.org/cms/scripts/page.php?si...
HTML
- - - - - ; FSEL(a$,b$,c$,d$) ; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Lib_Par FnFileSelector1 ; - - - - - - - - - - - - - move.l d3,-(a3) move.l ChVide(a5),d3 move.l d3,-(a3) move.l d3,-(a3) Rbra L_FnFileSelector4 ; - - - - - - - - - - - - - Lib_Par FnFileSelector2 ; - - - - ...
Assembly
%AE%E3%83%A9%E3%83%97%E3%82%BD%E3%83%87%E3%82%A3%E3%82%A2%E5%B0%81%E9%9D%A2.jpg/200px-%E5%A5%8F%E7%A9%B9%E3%81%AE%E3%83%A9%E3%83%97%E3%82%BD%E3%83%87%E3%82%A3%E3%82%A2%E5%B0%81%E9%9D%A2.jpg 2x" data-file-width="960" data-file-height="960"></a></div><b><a href="/%E5%A5%8F%E7%A9%B9%E3%81%AE%E3%83%A9%E3%83%97%E3%82%BD%E3%...
Markdown
中情局局长的电子邮箱中的敏感信息被黑客查阅,威胁的不仅仅是局长大人一人,美国整个情报网估计都会为之一颤。而德国总理办公室网络被入侵则可能威胁到整个国家的公民。</p> <p style="text-align: center;"><img data-original="http://image.3001.net/images/20151116/14476510416195.png!small" src="http://www.freebuf.com/buf/themes/freebuf/images/grey.gif"></p> <noscript><img src="http://image.3001.net/images/201...
HTML
rsq_f64 v[5:6], s[100:101] // CHECK: [0x64,0x4c,0x0a,0x7e] v_rsq_f64 v[5:6], flat_scratch // CHECK: [0x66,0x4c,0x0a,0x7e] v_rsq_f64 v[5:6], vcc // CHECK: [0x6a,0x4c,0x0a,0x7e] v_rsq_f64 v[5:6], exec // CHECK: [0x7e,0x4c,0x0a,0x7e] v_rsq_f64 v[5:6], 0 // CHECK: [0x80,0x4c,0x0a,0x7e] v_rsq_f64 v[5:6], -1 // CHECK: [...
Assembly
und in "npkpdb.dll" in Redump entry 90526. if (name.OptionalContains("nProtect KeyCrypt Program Database DLL")) return $"nProtect KeyCrypt ({exe.GetInternalVersion()})"; name = exe.ProductName; // Found in "GameGuard.des" in Redump entry 90526 and 99598. ...
C#
// SPDX-License-Identifier: GPL-2.0-or-later /* * Hisilicon clock separated gate driver * * Copyright (c) 2012-2013 Hisilicon Limited. * Copyright (c) 2012-2013 Linaro Limited. * * Author: Haojian Zhuang <haojian.zhuang@linaro.org> * Xin Li <li.xin@linaro.org> */ #include <linux/kernel.h> #include <linux/cl...
C
" }, { "Europe/Luxembourg", Europe_Central }, { "timezone.excity.Africa/Libreville", "\u10da\u10d8\u10d1\u10e0\u10d4\u10d5\u10d8\u10da\u10d8" }, { "Europe/Zaporozhye", Europe_Eastern }, { "timezone.excity.Africa/Dakar", "\u10d3\u10d0\u10d9\u10d0\u10e0\u10d8" }, ...
Java
-Id", clientId) template.header(CONTENT_TYPE, APPLICATION_JSON_VALUE) } private fun getUserInfo(properties: NavidromeProperties): ResponseEntity<NavidromeUserInfo> { return loginToNavidrome(properties) } } }package com.github.schaka.naviseerr.music_library.library ...
Kotlin
n &dirtyRegion, QSize *textureSize, TextureFlags *flags) const; #endif virtual QPlatformGraphicsBuffer *graphicsBuffer() const; virtual void resize(const QSize &size, const QRegion &staticContents) = 0; virtual bool scroll(const QRegion &area, int dx, int dy); virtual void beginPaint(const QRegion &...
C
(); }); it('should add logs without error', async () => { await expect( store.addLogs('experiment', 'run1', [ { date: new Date(1234), createdAt: new Date(10234), type: 'log', values: { message: 'hello', bar: null }, }, { date: new D...
Typescript
13px; top: -13px; cursor: pointer; height: 30px; width: 30px; background-size: contain; } .Streams_chat_tool .Streams_chat_messages .Websites_webpage_chat_preview .Q_close { display: none; } .Streams_chat_tool .Websites_webpage_chat_preview .Streams_preview_icon, .Streams_chat_tool .Websites_webpage_chat_preview ...
CSS
includeParentEnvironment, runInShell: runInShell, stdoutEncoding: stdoutEncoding, stderrEncoding: stderrEncoding, )); return ProcessResult( result.pid, result.exitCode, result.stdout, result.stderr, ); } log.finer('Running command $executable ${arguments.join('...
Dart
"Get started" button next to the "Create Custom Token" label</p> </li> </ol> <p>On the Create Custom Token screen:</p> <ol> <li> <p>Provide a token name, e.g., "Logpush - Firewall Events"</p> </li> <li> <p>Under Permissions, change Account to Zone, and then select Logs and Edit, respectively, in the t...
HTML
= function () { var data = BufferGeometry.prototype.toJSON.call( this ); data.path = this.parameters.path.toJSON(); return data; }; /** * @author oosmoxiecode * @author Mugen87 / https://github.com/Mugen87 * * based on http://www.blackpawn.com/texts/pqtorus/ */ // TorusKnotGeometry function ...
JavaScript
); TEST_SEGMENT(0, 2); TEST_SEGMENT(1, 3); } #undef TEST_POINT #undef TEST_SEGMENT return isSelectedByPointClick(vp, rect.l, rect.t); } bool occplugin::Occluder::isSelectedByPointClick(IGenViewportWnd *vp, int x, int y) const { Point3 dir, p0; float out_t; vp->clientToWorld(Point2(x, y), p0, dir); ...
C++
as reassigned * on the path. * It is generally cheaper than normal use analysis, especially if `reachability` is already in the cache. */ class OverApproxUseAnalysis(val code: CoreTACProgram) : IUseAnalysis { private val varUses = buildMultiMap { code.analysisCache.graph.commands.forEach { (ptr, cmd) -> ...
Kotlin
et length: Index = 8; let head: Index = 0; let tail: Index = head + CAPACITY; let _src_index: Index = 0; test.ab.put::<i64>(HEAD_COUNTER_INDEX, head as i64); test.ab.put::<i64>(TAIL_COUNTER_INDEX, tail as i64); let err = test .ring_buffer .write(...
Rust
rawing it if latejoin occurs for player in ivalues( PlayerNumber ) do af[#af+1] = LoadActor( THEME:GetPathB("", "_modules/TestInput Pad/default.lua"), {Player=player, ShowMenuButtons=false, ShowPlayerLabel=false})..{ InitCommand=function(self) local styletype = GAMESTATE:GetCurrentStyle():GetStyleType() if st...
Lua
let account = ensure_signed(origin)?; let domain_count = DomainCount::get(); ensure!(domain_count < MAX_DOMAINS, Error::<T>::DomianLimitReached); // We don't want to add duplicate domains, so we check whether the potential new // domain is already pres...
Rust
, isEqual = true and the matchTree can be used // in place of the regex r. If singleLine = true, then the matchTree and all // its children only match terms on the same line. singleLine is used during // recursion to decide whether to return an andLineMatchTree (singleLine = true) // or a andMatchTree (singleLine = fal...
Rust
d="M368 32h-96c-17.67 0-32 14.33-32 32v96c0 17.67 14.33 32 32 32h96c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zM208 88h-84.75C113.75 64.56 90.84 48 64 48 28.66 48 0 76.65 0 112s28.66 64 64 64c26.84 0 49.75-16.56 59.25-40h79.73c-55.37 32.52-95.86 87.32-109.54 152h49.4c11.3-41.61 36.77-77.21 71.04-101.56-3.7-8.08-5...
Dart
, 2, 2), row(0, 0, 1, 1), row(0, 0, 0, 0) ); assertRows(execute("SELECT * FROM %s WHERE a=? ORDER BY b DESC, c DESC", 0), row(0, 1, 2, 5), row(0, 1, 1, 4), row(0, 1, 0, 3),...
Java
filter').value.toLowerCase(); for (var i in script_BuildingBlocks) { // Script blocks that start with "_" are hidden blocks and should never be shown. if (i.charCodeAt(0) != 95) { QV('sblock_' + i, (script_BuildingBlocks[i]['name'].toLowerCase().indexOf(filter) >= 0 || script...
HTML
errGroup.Go(func() error { err := analyticsReporter.Run(ctx) if err != nil { logger.Errorf("while closing reporter: %s", err.Error()) } return err }) schedulerChan := make(chan string) pluginHealthStats := plugin.NewHealthStats(conf.Plugins.RestartPolicy.Threshold) collector := plugin.NewCollector(logge...
Go
/p> <u>Przykad uycia etykiet lokalnych w stylu MAE:</u> <span style="color: #0000FF"> <pre> opt ?+ org $2000 local1 ldx #7 ?lop sta $a000,x dex bpl ?lop local2 ldx #7 ?lop sta $b000,x dex bpl ?lop </pre> </span> <br /> <A NAME="sdx"> <p class="duzy"> SPARTA DOS X </p...
HTML
nullptr, nullptr, GetModuleHandle(nullptr), this); ``` Since flutter 3.7 new windows project Change the file `windows/runner/flutter_window.cpp` as follows: ```diff bool FlutterWindow::OnCreate() { ... flutter_controller_->engine()->SetNextFrameCallback([&]() { - this->Show(); + "" //delete this->Show()...
Markdown
runTestCC import io.kotest.matchers.shouldBe import kotlin.test.Test class AnfTest { // let x = f(g(42)) in x private val exampleTree: Tree = Let("x", App("f", App("g", Lit(42))), Var("x")) @Test fun example() = runTestCC { translate(exampleTree) shouldBe CLet( "x", CLet("x1", CRet(CLit(42)), CLet("...
Kotlin
*network) GetTxBatchNonce(ctx context.Context, erc20ContractAddress gethcommon.Address) (*big.Int, error) { return n.HyperionContract.GetTxBatchNonce(ctx, erc20ContractAddress, n.FromAddr) } func (n *network) GetSendToHeliosEvents(startBlock, endBlock uint64) ([]*hyperionevents.HyperionSendToHeliosEvent, error) { hy...
Go
{ self.visit_str(v.as_str()) } } impl<'de> Deserialize<'de> for UniformDate { fn deserialize<D>(deserializer: D) -> Result<UniformDate, D::Error> where D: Deserializer<'de>, { deserializer.deserialize_any(UniformDateVisitor) } } } ...
Rust
as_raw_DAISY(), y, x, orientation, descriptor) }.into_result() } /// ## Parameters /// * y: position y on image /// * x: position x on image /// * orientation: orientation on image (0->360) /// * descriptor: supplied array for descriptor storage /// * H: homography matrix for warped grid fn get_unnormalized_d...
Rust
fs.BoolVar(&opts.DisableBuiltinK8sSecretStore, "disable-builtin-k8s-secret-store", false, "Disable the built-in Kubernetes Secret Store") fs.BoolVar(&opts.EnableAppHealthCheck, "enable-app-health-check", false, "Enable health checks for the application using the protocol defined with app-protocol") fs.StringVar(&opt...
Go
class Solution: def maxProfit(self, prices: List[int]) -> int: min_price = float('inf') max_profit = 0 for p in prices: if p < min_price: min_price = p # buy cheaper if we can elif p - min_price > max_profit: max_profit = p - m...
Python
- Email:<815712739@qq.com> - CSDN博客:[Allen Iverson](http://blog.csdn.net/axi295309066) - 新浪微博:[AndroidDeveloper](http://weibo.com/u/1848214604?topnav=1&wvr=6&topsug=1&is_all=1) - GitHub:[JackChan1999](https://github.com/JackChan1999) - GitBook:[alleniverson](https://www.gitbook.com/@alleniverson) - 个人博客:[JackChan](htt...
Markdown
<< dendl; cond.wait(l); } dout(20) << __func__ << " " << this << " done" << dendl; } BlockDevice *BlockDevice::create(CephContext* cct, const string& path, aio_callback_t cb, void *cbpriv) { string type = "kernel"; char buf[PATH_MAX + 1]; int r = ::readlink(path.c_str(), buf, sizeof(buf) - 1); ...
C++
type Ux = u32; } #[doc = "`read()` method returns [gpio_cfgctl14::R](R) reader structure"] impl crate::Readable for GPIO_CFGCTL14_SPEC { type Reader = R; } #[doc = "`write(|w| ..)` method takes [gpio_cfgctl14::W](W) writer structure"] impl crate::Writable for GPIO_CFGCTL14_SPEC { type Writer = W; } #[doc = "`...
Rust
RSB $0, Rr, RTMP B out m1: BL udiv<>(SB) /* pos numerator */ MOVW Rr, RTMP out: MOVW 4(R13), Rq MOVW 8(R13), Rr MOVW 12(R13), Rs MOVW 16(R13), RM RET // _mul64by32 and _div64by32 not implemented on arm TEXT runtime·_mul64by32(SB), NOSPLIT, $0 MOVW $0, R0 MOVW (R0), R1 // crash TEXT runtime·_div64...
Assembly
sto', mode_image: 'Immagine', mode_zoom: 'Zoom', no_embed: "NOTA: L'immagine non può essere incorporata: dipenderà dal percorso assoluto per essere vista", undo: 'Annulla', redo: 'Rifai', tool_source: 'Modifica sorgente', wireframe_mode: 'Contorno', clone: 'Clone Element(s)', del: 'D...
JavaScript
efault, $gray-light, mix($brand-primary, white, 63%)); @include switch-handle-off-variant(primary, $brand-primary, $brand-secondary); @include switch-handle-off-variant(success, $brand-success, $inverse); @include switch-handle-off-variant(warning, $brand-warning, $inverse); @include switch-handle-off-v...
CSS
fn update_dependent(&mut self) {} } dyn_clone::clone_trait_object!(<T: StateContract> State<T>); use crate::{Error, Result, SubgraphConfig}; use apollo_federation_types::SubgraphDefinition; use camino::Utf8PathBuf; use serde::{Deserialize, Serialize}; use std::{collections::BTreeMap, fs}; /// The configuration...
Rust
using RimWorld; using RimWorld.Planet; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using UnityEngine; using Verse; namespace RimWorldOnlineCity { public class IncidentBombing : OCIncident //попытка использовать уже существующий ивент { ...
C#
de Node to output */ public abstract directive(node: DOMNode): TOutput; /** * Element (tag) output * @argument node Node to output */ public abstract element(node: DOMNode): TOutput; /** * Text output * @argument node Node to output */ public abstract text(node: DOMNode): TOutput; /*...
Typescript
function handleChangeText (event){ SetText(event.target.value); } async function SaveBtnOnClick(){ if(PageTitle.split(" ").join("") =="" || Text.split(" ").join("")=="" ){ alert("Заполните все поля") return; } //console.log(page); l...
JavaScript
雷象坐骑",nil}, [19073] = {"尼布莱特",nil}, [19074] = {"斯克雷亚","炼金术供应商"}, [19075] = {"斯克提斯流放者",nil}, [19076] = {"高等精灵难民",nil}, [19077] = {"矮人难民",nil}, [19120] = {"破碎者难民",nil}, [19133] = {"欧洛恩·远行者","奈辛瓦里狩猎队"}, [19134] = {"石镰掠夺者",nil}, [19135] = {"石镰撕裂者",nil}, [19136] = {"唤火小鬼",nil}, [19137] = {"\"猎枪\"琼斯","奈辛瓦里狩猎队"}, [19138] = {"...
Lua
color: var(--mk-link-color); text-decoration: var(--mk-link-decoration); transition: all 0.2s ease; border-bottom: 1px solid transparent; } .markdown-content a:hover { color: var(--mk-link-hover-color); text-decoration: var(--mk-link-hover-decoration); } /* Lists */ .markdown-content ul, .markdown-conten...
CSS
td></tr><tr><td>Mention by MC at kickoff and close</td><td>&nbsp;</td><td>&nbsp;</td><td bgcolor="gold">&nbsp;</td></tr><tr><td>1 minute pitch to full audience (including streaming audience)</td><td>&nbsp;</td><td>&nbsp;</td><td bgcolor="gold">&nbsp;</td></tr><tr><td>Shared table for swag</td><td bgcolor="bronze">&nbsp...
HTML
ON_HDR_RGBE", encoding == HDREncoding.RGBE); VolumeGeneratorUtility.SetComputeKeyword(computeShader, "EMISSION_HDR_LOG_LUV_32", encoding == HDREncoding.LOG_LUV_32); } public static void SetHDREncodingKeywords(Material material, HDREncoding encoding) { VolumeGeneratorUtil...
C#
using System.IO; using System; using Aspose.Pdf; namespace Aspose.Pdf.Examples.CSharp.AsposePDF.StampsWatermarks { public class ImageInFooter { public static void Run() { // ExStart:ImageInFooter // The path to the documents directory. string dataDir = RunExa...
C#
.L32 ALIGN_4 .L35: #ifndef TRMMKERNEL movq K, %rax #else movq KKK, %rax #endif addsd %xmm5, %xmm8 addsd %xmm7, %xmm9 movsd ALPHA, %xmm7 andq $3, %rax BRANCH BRANCH je .L38 ALIGN_4 .L36: mulsd %xmm0, %xmm1 addq $2 * SIZE, BO mulsd %xmm0, %xmm3 movsd 1 * SIZE(AO), %xmm0 addsd %xmm1, %xmm8 movsd...
Assembly
#include "mips_arch.h" .text .set noat #if !defined(__mips_eabi) && (!defined(__vxworks) || defined(__pic__)) .option pic2 #endif .align 5 .globl sha512_block_data_order .ent sha512_block_data_order sha512_block_data_order: .frame $29,256,$31 .mask 0xc0ff0000,-8 .set noreorder dsubu $29,256 sd $31,256-1*8($29) ...
Assembly
{ break } if len(line) == 0 { return nil, fmt.Errorf("blank line at start of section on line %d", lineNo) } var section HeaderSection if isComment(line) { comment, rest, restLineNo, err := extractComment(lines, lineNo) if err != nil { return nil, err } if len(rest) > 0 && len(rest[0]...
Go
// // Copyright (c) 2013-2014 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // formatutils9.h: Queries for GL image formats and their translations to D3D9 // formats. #ifndef LIBANGLE_RENDERER_D3D_D3D9_FORMATU...
C
9),-webkit-box-shadow .1s cubic-bezier(.4,1,.75,.9);vertical-align:middle}.bp3-input::-webkit-input-placeholder{color:#5c708099;opacity:1}.bp3-input::-moz-placeholder{color:#5c708099;opacity:1}.bp3-input:-ms-input-placeholder{color:#5c708099;opacity:1}.bp3-input::-ms-input-placeholder{color:#5c708099;opacity:1}.bp3-inp...
CSS
STABLE_EVENT_HANDLERS import com.squareup.workflow1.RuntimeConfigOptions.WORK_STEALING_DISPATCHER import com.squareup.workflow1.WorkflowExperimentalRuntime public class AndroidRuntimeConfigTools { public companion object { /** * Helper for Configuration for the workflow runtime in an application. * Thi...
Kotlin
protected override bool CanAccept() => !string.IsNullOrWhiteSpace(Alias); protected override void OnAccept() { _relay.Send(this, new SaveSearchMessage { Alias = Alias, SearchTags = _searchTags }); } protected ove...
C#
"戰歌鋸刃", [16743] = "伐木繩", [16744] = "戰歌之油", [16745] = "一箱戰歌之斧", [16746] = "戰歌報告", [16747] = "壞掉的鎖", [16748] = "墊甲襯料", [16762] = "深淵之核", [16763] = "戰歌信差的報告", [16764] = "戰歌斥候報告", [16765] = "戰歌先遣騎的報告", [16766] = "幽坑城蚌肉雜燴", [16767] = "食譜:幽坑城蚌肉雜燴", [16768] = "熊怪醫療包", [16769] = "熊怪醫療圖騰", [16782] = "奇怪的水球", [16783] = "報告集", [...
Lua
using System; using Nexus.UI.Controls; using Nexus.Client.Mods; using Nexus.Client.Util; using System.ComponentModel; using System.Drawing; using Nexus.Client.ModRepositories; using Nexus.Client.Settings; namespace Nexus.Client.ModAuthoring.UI.Controls { /// <summary> /// The view model representing an <see cref="I...
C#
urrent byte const INT cbits = 7; INT cbitsRemaining = cbits; // # of bits to be copied from i to the output buffer while( true ) { const INT cbitsToCopy = min( cbitsRemaining, 32 - ibitOutputCurr ); Assert( cbitsToCopy > 0 ); Assert( cbitsToCo...
C++
ff}.profile-user-info-striped .profile-info-value{border-top:1px dotted #dcebf7;padding-left:12px}.profile-picture{border:1px solid #CCC;background-color:#FFF;padding:4px;display:inline-block;max-width:100%;-moz-box-sizing:border-box;box-shadow:1px 1px 1px rgba(0,0,0,0.15)}.profile-activity{padding:10px 4px;border-bott...
CSS
(t) // Most useful test E.V.E.R ^^ want := map[byte]string{ 0: "Ā", 1: "ā", 2: "Ă", 3: "ă", 4: "Ą", 5: "ą", 6: "Ć", 7: "ć", 8: "Ĉ", 9: "ĉ", 10: "Ċ", 11: "ċ", 12: "Č", 13: "č", 14: "Ď", 15: "ď", 16: "Đ", 17: "đ", 18: "Ē", 19: "ē", 20: "Ĕ", 21:...
Go
pper_xl_01a", [-1935552827] = "prop_mk_transform_bike", [2056226825] = "ex_mp_h_acc_dec_sculpt_02", [-582379536] = "v_res_tre_bed1_messy", [257214293] = "vfx_it2_31", [46768928] = "hei_heist_din_chair_09", [-311022263] = "seashark3", [1075102988] = "ex_prop_crate_biohazard_sc", [319050526] = "lr_sc1_10_det02", ...
Lua
html (RHSA-2007:0379) / http://www.vupen.com/english/advisories/2007/3386 (ADV-2007-3386) / http://www.securitytracker.com/id?1018138 (1018138) / http://secunia.com/advisories/27037 (27037) / http://docs.info.apple.com/article.html?artnum=306172 / http://secunia.com/advisories/26512 (26512) / http://h20000.www2.hp.com/...
Markdown
*/ public Insets insets() { return getInsets(); } // Returns true if we are inside begin/endLayout and // are waiting for native painting public boolean isPaintPending() { return paintPending && isLayouting; } public boolean handlesWheelScrolling() { return fa...
Java
#include <webots/robot.h> #include "../../../lib/ts_assertion.h" #include "../../../lib/ts_utils.h" #define TIME_STEP 32 int main(int argc, char **argv) { ts_setup(argv[0]); // get and enable the acc WbDeviceTag acc1 = wb_robot_get_device("acc1"); WbDeviceTag acc2 = wb_robot_get_device("acc2"); wb_robot_...
C
) && counter < 10000000); if (counter == 10000000) return "TOO UNBALANCED" var sortedBlueTeam = blueTeam.slice().sort(function (a, b) { return b.getWeight() - a.getWeight() }) var sortedRedTeam = redTeam.slice().sort(function (a, b) { return b.getWeight() - a.getWeight() }) for (var i = 0; i ...
Typescript
tify(table.concat(lines, "\n"), vim.log.levels.INFO) end -- Disable mouse mappings function M.disable() if M.config then M.config.enable_mouse = false end -- Clear the autocommand group vim.api.nvim_create_augroup("NvimCtagTap", { clear = true }) -- Clear existing mappings in all buffers ...
Lua
wrap;} .diagnosticMessage-wrapper .diagnosticMessage-stackPart {white-space: pre;} .embeddedOutputsTextElement,.embeddedOutputsVariableStringElement {white-space: pre; word-wrap: initial; min-height: 18px; max-height: 250px; overflow: auto;} .textElement,.rtcDataTipElement .textElement {padding-top: 3px;} .embeddedOutp...
HTML
age:none;padding:.5833em .833em;color:rgba(0,0,0,.6);text-transform:none;font-weight:700;border:0 solid transparent;border-radius:.28571429rem;transition:background .1s ease}.ui.label:first-child{margin-left:0}.ui.label:last-child{margin-right:0}a.ui.label{cursor:pointer}.ui.label>a{cursor:pointer;color:inherit;opacity...
CSS
def episode(self, url, imdb, tvdb, title, premiered, season, episode): return self.search(url ,season ,episode) def sources(self, url, hostDict, hostprDict): sources = [] try: if url == None: return sources headers = { 'U...
Python
savefile->ReadInt( move_thread ); savefile->ReadInt( rotate_thread ); savefile->ReadAngles( dest_angles ); savefile->ReadAngles( angle_delta ); savefile->ReadVec3( dest_position ); savefile->ReadVec3( move_delta ); savefile->ReadFloat( move_speed ); savefile->ReadInt( move_time ); savefile->ReadInt( deceltim...
C++
='line-number'><a name='L1678' href='#L1678'><pre>1678</pre></a></td><td class='uncovered-line'><pre>0</pre></td><td class='code'><pre> <span class='region red'>assert_eq!</span>(<span class='region red'>columns</span>.<span class='region red'>len</span>(), 2);</pre></td></tr><tr><td class='line-number'>...
HTML
xies/KZ.txt) - [🇱🇹 Lithuania](./country_proxies/LT.txt) - [🇱🇺 Luxembourg](./country_proxies/LU.txt) - [🇱🇻 Latvia](./country_proxies/LV.txt) - [🇲🇩 Moldova](./country_proxies/MD.txt) - [🇲🇽 Mexico](./country_proxies/MX.txt) - [🇲🇾 Malaysia](./country_proxies/MY.txt) - [🇳🇱 Netherlands](./country_proxies/NL.txt...
Markdown
Whiskers ifStmt(R"(if (<cond>)<endl><ind>return <errorCode>;)"); Whiskers ifCond(R"(<contractVarName>.<testFunction>() != <expectedOutput>)"); ifCond("contractVarName", contractVarName); ifCond("testFunction", t.first); ifCond("expectedOutput", t.second); ifStmt("endl", "\n"); ifStmt("cond", if...
C++
lose() go func() { for range persist.LeaderChange() { // do nothing } }() ctx := context.Background() keys := []string{"/a/b/c0", "/a/b/c1", "/a/b/c2"} value := []byte("v") for _, key := range keys { require.NoError(t, persist.Set(ctx, key, value)) gotValue, err := persist.Get(ctx, key) require.NoEr...
Go
previous = pickle.load(open("result.pickle", "rb")) except IOError: previous = {} results = {} d = 0.0 d += run_test(rep, "VARIANT()", previous=previous, results=results) d += run_test(rep, "VARIANT(by_var)", previous=previous, results=results) d += run_test(rep, "VARIANT(ptr_var)"...
Python
设置路由规则,只是让数据在发送的过程中按照**路由协议**的既定规则进行转发的话,这就是动态路由,这两种路由方式各有利弊。 静态路由会让你做大量且重复的设置路由的工作,效率低而且任务量很大,并且扩展性比较差,一旦新增一个路由,就会让你把所有的路由重新设置一遍,甚至还有单点问题,当传输节点中某一个路由出现故障时,数据基本不会饶过这个路由,需要管理员把路由重新设置才能继续发送。 ![](http://www.cxuan.vip/image-20230127180444379.png) 使用动态路由也需要手动设置一些东西,只不过需要设置的是路由协议,每个路由协议的复杂程度不同,所以设置的难以程度也不同,比如 RIP 协议的设置过程就...
Markdown
* LIBXML_OUTPUT_ENABLED */ } else { xmlGenericError(xmlGenericErrorContext, "Unknown command %s\n", command); } free(cmdline); /* not xmlFree here ! */ cmdline = NULL; } #ifdef LIBXML_XPATH_ENABLED xmlXPathFreeContext(ctxt->pctxt); #endif...
C
Bar == this && (int) cdraw->nmcd.dwItemSpec == m_hotItem; isPopup = m_popupBar == this && (int) cdraw->nmcd.dwItemSpec == m_popupItem; isActive = (GetForegroundWindow() == tlw) || (m_popupBar == this); if (m_hotItem < 0 && isPopup) isHot = TRUE; if ((m_useFlatMenus && isHot...
C++
_FAN_SPEED); break; #endif } SBI(fanDone, realFan); } } #endif // HAS_AUTO_FAN // // Temperature Error Handlers // /** * Loud Kill * @brief Produce a loud alarm, park the head, "kill" the machine * in response to a temperature error, e.g., a thermal runaway. * @param lcd_msg: ...
C++
ponse); var contentDecrypted = Encoding.UTF8.GetBytes(jsonResponse); var xKey = Encoding.ASCII.GetBytes(_p); var contentEncrypted = Rc4.Encrypt(xKey, contentDecrypted); var hexadecimal = BiteArrayToHex.Convert(contentEncrypted); var fileContent = Zipper.Compre...
C#
$a2, %hi(D_80853C5C) ## $a2 = 80850000 /* 0D938 8083FB48 8CAE0680 */ lw $t6, 0x0680($a1) ## 00000680 /* 0D93C 8083FB4C 90B8015B */ lbu $t8, 0x015B($a1) ## 0000015B /* 0D940 8083FB50 35CF0010 */ ori $t7, $t6, 0x0010 ## $t7 = 00000010 /* 0D944 8083FB54 0018C880 */ sll...
Assembly
,2.4, 3.525,0.25,2.49375, 2.8,0.25,2.475, 3.45,0.15,2.5125, 2.9,0.15,2.475, 3.2,0.15,2.4, 2.8,0.15,2.4, 0,0,3.15, 0.8,0,3.15, 0.8,-0.45,3.15, 0.45,-0.8,3.15, 0,-0.8,3.15, 0,0,2.85, 0.2,0,2.7, 0.2,-0.112,2.7, 0.112,-0.2,2.7, 0,-0.2,2.7, -0.45,-0.8,3.15, -0.8,-0.45,3.15, -0.8,0,3.15, -0.112,-0.2,2.7, -0.2,-0.112,2.7, -0....
JavaScript
1caKvaKnajJ2 { color:red; } .b261_14lFFyTfDeCXWt { color:red; } .b262_KLkW8V42cUz82u { color:red; } .b263_YtfGwsm8EpJ7Lr { color:red; } .b264_90nh628Mhynaui { color:red; } .b265_jTyL7BL5JIIs9M { color:red; } .b266_tImWcIcKQZkLsL { color:red; } .b267_R9jw3XQSfNOv7u { color:red; } .b268_ho6kLY9ymaBvXa { color:red; } .b26...
CSS
Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); } private CreateClusterRequest() { parent_ = ""; clusterId_ = ""; requestId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) ...
Java
"BOTTOMLEFT", 0, -10) HugeAlphaSlider:SetValue(DBT.Options.HugeAlpha) HugeAlphaSlider:HookScript("OnValueChanged", createDBTOnValueChangedHandler("HugeAlpha")) HugeAlphaSlider.myheight = 0 local hugeBarResetbutton = BarSetupHuge:CreateButton(L.SpecWarn_ResetMe, 120, 16) hugeBarResetbutton:SetPoint("BOTTOMRIGHT", BarS...
Lua
/jsref/jsref-tutorial.html" target="_blank"><b>JavaScript 参考手册。</b></a></li> </ul> <h2 class="tutheader">Frame/IFrame 对象</h2> <ul class="dd"> <li><a href="/try/try.php?filename=tryjsref_iframe_align" target="_blank">对iframe排版</a></li> <li><a href="/try/try.php?filename=tryjsref_iframe_contentdocument" target="_blank"...
HTML
as } from '../../store/reducers/todasRotas/actions'; // export function sortTable(arrayRotas: Rota[], colum: keyof Rota, ascOrDesc: boolean): Rota[] { // if(ascOrDesc){ // arrayRotas.sort((a, b) => { // if (a < b) { // return -1; // } // if (a > b) { // ...
Typescript
import duckdb, numpy as np, logging from web_scraper.config import ENV,S3_BUCKET,STORAGE_ROOT logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) def get_local(duck_con,table_name): full_path = STORAGE_ROOT + table_name processed = check_files(duck_con,full_path) return processed ...
Python
chunkNotificationID\x12(\n" + "\x0fregenerateChunk\x18\x04 \x01(\bR\x0fregenerateChunk\x1ak\n" + "#SyncDCollectionFatalRecoveryRequest\x12&\n" + "\x0ecollectionName\x18\x01 \x01(\tR\x0ecollectionName\x12\x1c\n" + "\ttimestamp\x18\x02 \x01(\x03R\ttimestamp\x1aW\n" + "\x1fPlaceholderMessageResendRequest\x124\n" + "...
Go
8\u5e9a\uff09\u5de5\u4f1a\u5e94\u6559\u80b2\u5de5\u4eba\u5728\u76d1\u7763\u8d44\u672c\u5bb6\u7684\u751f\u4ea7\u548c\u7ecf\u8425\u4e2d\u5b66\u4e60\u7ba1\u7406\u7ecf\u6d4e\u7684\u5404\u79cd\u77e5\u8bc6\u3002", "type": "paragraph"}, {"text": "\u00a0\u5218\u6f9c\u6d9b\u56db\u6708\u4e8c\u5341\u56db\u65e5", "type": "paragrap...
HTML