content
stringlengths
2
6.21k
label
stringclasses
16 values
7); var popup_186559a98e708b760a2b66a8813bb6bf = L.popup({"maxWidth": "100%"}); var html_58c3f89b0dc6303b94d40100a9b79715 = $(`<div id="html_58c3f89b0dc6303b94d40100a9b79715" style="width: 100.0%; height: 100.0%;"><ul><li><a href="https://www.google.com/maps/...
HTML
oveToNextBlock(); final finalNfts = await fullNodeSimulator.getNftRecordsByHint( takeTargetPuzzlehash, ); expect(finalNfts, isNotEmpty); await offerMaker.refreshCoins(); await offerTaker.refreshCoins(); await artist.refreshCoins(); final offerTakerEndingStandardBalance = offerTaker...
Dart
} .MomentCapsuleSummary--portrait .MomentCapsuleSummary-details { width: 291px; } .MomentCapsuleSummary--portrait .MomentMediaItem { width: 165px; height: 220px; } .MomentCapsuleSummary--card { background: rgb(255, 255, 255); border-radius: 5px; border: 1px solid rgb(230, 236, 240); border-image: none; width: 100%; ...
CSS
0x1000) assertEquals(0, map[3200, 3200, 0]) } @Test fun `remove separate flags`() { val map = CollisionFlagMap() map.allocateIfAbsent(3200, 3200, 0) check(map[3200, 3200, 0] == 0) map.add(3200, 3200, 0, 0x1000) map.add(3200, 3200, 0, 0x400) check(map...
Kotlin
// Copyright 1998-2019 Epic Games, Inc. All Rights Reserved. #pragma once #include "CoreMinimal.h" #include "Widgets/DeclarativeSyntaxSupport.h" #include "Input/Reply.h" #include "Widgets/SCompoundWidget.h" #include "Widgets/SWindow.h" #include "Async/AsyncResult.h" #include "IPluginWardenModule.h" #include "PluginWar...
C
.help("Format output for usage with bot")) .get_matches(); let mut b = false; if matches.is_present("bot output"){b = true}; let val = matches.value_of("INPUT").unwrap(); let fname = matches.value_of("NAME").unwrap(); if !b { println!("{} {}...", "Opening ".color(TermColor::Cyan).bold(), val)} let file = File:...
Rust
Intent intent = appContext.registerReceiver( null /* receiver */, new IntentFilter(Intent.ACTION_BATTERY_CHANGED)); int batteryLevel = 0; int batteryScale = intent.getIntExtra(BatteryManager.EXTRA_SCALE, 100); if (batteryScale > 0) { batteryLevel = (int) (100f * intent.getIntExtr...
Java
content { height: auto; position: relative; top: 50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); background-color: transparent; color: rgba(245, 245, 245, 1); font-size: 32px; text-align: center; line-height: 43px; } .ui-popup.ui-...
CSS
) aav.Params.Index1().SetValue(1) aav.Func.Call() require.NoError(t, ctx.Err) require.EqualValues(t, "life", aav.Results.Value().Value()) } func TestArrayOfStringArrayClear(t *testing.T) { ctx := setupTest(t) aap := testwasmlib.ScFuncs.ArrayOfStringArrayAppend(ctx) aap.Params.Index().SetValue(0) aap.Params.Va...
Go
d) == -1) { /* We failed. Dump the region to avoid a mem leak. */ saved_errno = errno; saved_toolerr = _toolErr; DisposeHandle(datahand); _toolErr = saved_toolerr; errno = saved_errno; return -1; } /* * Busy wait until we no longer own the memory block. Use the * COP 0x7F instruction to force a ...
C
id_ladder_unit_id ladder_character_state_component.ladder_cooldown = ladder_cooldown if is_server then GameSession.set_game_object_field(game_session, player_unit_game_object_id, "ladder_unit_id", invalid_ladder_unit_id) end end Ladder.time_in_ladder_anim = function (unit, ladder_unit, breed) local bottom_node ...
Lua
[] sTempClass=new String[1250]; String[] sTempBookingDate=new String[1250]; String[] sTempTime=new String[1250]; Integer[] iTempAdult=new Integer[1250]; Integer[] iTempChildren=new Integer[1250]; Integer[] iTempInfant=new Integer[1250]; Integer[] iTempPrice=new Integer[1250]; try { //read from data ...
Java
fPpkd-Jh9lGc::before,.VOBzC .VfPpkd-IkaYrd:disabled.VfPpkd-ksKsZd-XxIAqe-OWXEXe-ZmdkE .VfPpkd-Jh9lGc::before{opacity:0;opacity:var(--mdc-ripple-hover-opacity,0)}.VOBzC .VfPpkd-IkaYrd:disabled.VfPpkd-ksKsZd-mWPk3d-OWXEXe-AHe6Kc-XpnDCe .VfPpkd-Jh9lGc::before,.VOBzC .VfPpkd-IkaYrd:disabled:not(.VfPpkd-ksKsZd-mWPk3d):focus...
HTML
*:first-child { margin-top: 1.3333333em; } .md\:prose-lg > ol > li > *:last-child { margin-bottom: 1.3333333em; } .md\:prose-lg ul ul, .md\:prose-lg ul ol, .md\:prose-lg ol ul, .md\:prose-lg ol ol { margin-top: 0.8888889em; margin-bottom: 0.8888889em; } .md\:prose-lg hr { margin-top:...
CSS
驻长军事院校“六红”在市体育馆举办《高举革命的文艺批判旗帜,彻底砸烂反革命修正主义文艺黑线,让毛泽东思想占领一切文艺阵地》文艺演出大会。 </p> <p> 六月二十一日,吉林省红色造反者砸烂文艺黑线联络站在市体育馆召开了《誓死保卫无产阶级专政,批判反革命修正主义文艺黑线大会》。师大造大《革命大批判》专栏第六期发表师大造大《红遍全球》文章《不许“红买办”为蒋买办树碑立传》以及和《砍头不要紧》战斗队合写的批判文章《反动影片<武训传>镜头剖视》。 </p> <p> 六月二十三日,二总部发表了《陶铸在教育部抓权、保权、失权现形记》揭露了党内走资派大叛徒陶铸大耍两面手法,抓权,为复辟资本主义进行的阴谋活动。 <...
HTML
<script> var cat ='business'; var related_Ids =["2906065","2906009","2905919"]; var related_Urls =["https:\/\/www.news18.com\/news\/business\/ipos-head-for-banner-year-on-stock-markets-strength-2906065.html","https:\/\/www.news18.com\/news\/business\/cbdt-chairman-pramod-chandra-mody-tests-positive-for-covid-19-29...
HTML
dBuyOrderId(t *testing.T) { tests := []struct { name string id string wantValid bool }{ { name: "pass - positive number", id: "101", wantValid: true, }, { name: "pass - positive number", id: "201", wantValid: true, }, { name: "fail - reject...
Go
|殺|蔱|脎|挱|灭|蔑|篾|瀎|滅).0,3(暿|歙|熺|熻|熹|螅|螇|窸|羲|錫|貕|蹊|豯|蟋|谿|豀|瞦|燨鏭|鐊|隵|酅|巇|嚱|犧|曦|爔|饎|觽|鼷|鸂|蠵|觿|鑴|習|郋|蓆|覡|習|襲|喺|媳|蓆|蒵|椺|嶍|漝|趘|槢|褶|薂|隰|檄|謵|鎴|鰼|霫|飁|騱|騽|鰼|襲|驨|洗|枲|璽|銑|徙|喜|葸|葈|鈢|鉨|鉩|蓰|漇|屣|憘|歖|禧)'}, {'67694', '(沙|殺|莎|砂|紗|剎|煞|鯊|痧|裟|鎩|歃|挱|剎|摋|粆|唦|樧|殺|蔱|脎|挱|灭|蔑|篾|瀎|滅).0,3(憙|諰|謑|縰|壐|蟢|蹝|璽|鱚|矖|囍|躧|匸|卌|戲|餼|屭|係|呬|細|郤|怬|忥|盻|恄|郤|係|咥|屓|綌|欯|...
Lua
f, 6.406f, 20.655f, 6.742f, 20.241f, 6.742f) horizontalLineTo(8.241f) curveTo(7.827f, 6.742f, 7.491f, 6.406f, 7.491f, 5.992f) close() } path(fill = SolidColor(Color(0xFF000000)), stroke = null, strokeLineWidth = 0.0f, strokeLine...
Kotlin
} if message.FrequencyID != nil { frequency, err := queries.GetFrequencyById(ctx, *message.FrequencyID) if err != nil { slog.ErrorContext(ctx, "database error", "error", err) return &ErrInternalError } network, err := queries.GetNetworkById(ctx, frequency.NetworkID) if err != nil { slog.ErrorCon...
Go
ns which are being added back to the // memory pool from blocks that have been disconnected during a reorg // are exempted. if isNew && !mp.cfg.Policy.DisableRelayPriority && txFee < minFee { currentPriority := mining.CalcPriority(tx.MsgTx(), utxoView, nextBlockHeight) if currentPriority <= mining.MinHighPrio...
Go
n int_of_op_result(tup["n_bytes"]) >= 500; }, groupby_n_bytes); Join* join = new Join([](Tuple tup) { return std::make_pair(filterGroups({"ipv4.dst"}, tup), filterGroups({"n_conns"}, tup)); }, [](Tuple tup) { return std::make_pair(filterGroups({"ipv4.dst"}, tup), filterGroups({"n_bytes"}, tup)); }, next_op); Map* map =...
Markdown
%default { "isrange":"0", "routine":"NoRange" } %verify "executed" %verify "null object" /* * Handle an optimized virtual method call. * * for: [opt] invoke-virtual-quick, invoke-virtual-quick/range */ # op vB, {vD, vE, vF, vG, vA}, class /* CCCC */ # op vAA, {vCCCC..v(CCCC+AA-1)}, met...
Assembly
target = target.to(device=device).view(-1) predict = model(data, feature) loss = criterion(predict, target) _, predict_index = torch.max(predict.detach().to(device='cpu'), dim=1) valid_predict_labels.append(predict_index) v...
Python
BytePtr_3_forAlignmentOnly; }; #pragma pack(push, tp, 1) struct { // System.Func`2<System.Object,System.Object> PtrReflection.UnsafeTool::func Func_2_tE9A60F007AC624EA27BF19DEF4242B7DA2F1C2A4 * ___func_4; }; #pragma pack(pop, tp) struct { Func_2_tE9A60F007AC624EA27BF19DEF4242B7DA2F1C2A4 * ___fu...
C++
7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12....
HTML
2.5-9.5h64q13 0 22.5 9.5t9.5 22.5zm256 0v64q0 13-9.5 22.5t-22.5 9.5h-64q-13 0-22.5-9.5t-9.5-22.5v-64q0-13 9.5-22.5t22.5-9.5h64q13 0 22.5 9.5t9.5 22.5zm-256 1376h384v-1536h-1152v1536h384v-224q0-13 9.5-22.5t22.5-9.5h320q13 0 22.5 9.5t9.5 22.5v224zm512-1600v1664q0 26-19 45t-45 19h-1280q-26 0-45-19t-19-45v-1664q0-26 19-45t...
JavaScript
L; new_slot.user_data = NULL; new_slot.destroy = NULL; } slot = NULL; num_slots = array->num_elements; slots = _cairo_array_index (array, 0); for (i = 0; i < num_slots; i++) { if (slots[i].key == key) { slot = &slots[i]; if (slot->destroy && slot->user_data) slot->destroy (slot->user...
C
: -webkit-gradient(linear, left top, left bottom, from(#1BBC9B), to(#18aa8c)); /* Saf4+, Chrome */ background-image: -webkit-linear-gradient(top, #1BBC9B, #18aa8c); /* Chrome 10+, Saf5.1+, iOS 5+ */ /* FF3.6 */ /* IE10 */ /* Opera 11.10+ */ background-image: linear-gradient(top, #1BBC9B, #18aa8c); filter: progi...
CSS
// keep the two '>''s separate tokens. We don't *have* to do this in // C++0x, but it's still good hygiene. if (needSpace) OS << ' '; OS << '>'; } std::string Qualifiers::getAsString() const { LangOptions LO; return getAsString(PrintingPolicy(LO)); } // Appends qualifiers to the given string, separa...
C++
slate(-rect.left, -rect.top).transform(matrix4); _drawPoints(canvas, _rect, rect); canvas.restore(); // if (null != plotImage) { // canvas.drawImage(plotImage, Offset.zero, _paint); // } if (null != selectedRect) { canvas.drawRect( selectedRect!, _paint! ...
Dart
local T, C, L, G = unpack(select(2, ...)) StaticPopupDialogs[G.uiname.."incorrect itemID"] = { text = L["不正确的物品ID"], button1 = ACCEPT, hideOnEscape = 1, whileDead = true, preferredIndex = 3, } StaticPopupDialogs[G.uiname.."incorrect spellID"] = { text = L["不是一个有效的法术ID"], button1 = ACCEPT, hideOnEscape = 1,...
Lua
G3E32_V_M1_MASK", LIEF::assembly::riscv::OPCODE::PseudoVLSEG3E32_V_M1_MASK) .value("PseudoVLSEG3E32_V_M2", LIEF::assembly::riscv::OPCODE::PseudoVLSEG3E32_V_M2) .value("PseudoVLSEG3E32_V_M2_MASK", LIEF::assembly::riscv::OPCODE::PseudoVLSEG3E32_V_M2_MASK) .value("PseudoVLSEG3E32_V_MF2", LIEF::assembly::riscv::OPCOD...
C++
reak {white-space:nowrap} span.nolinebreak {white-space:nowrap} span.roman {font-family:serif; font-weight:normal} span.sansserif {font-family:sans-serif; font-weight:normal} ul.no-bullet {list-style: none} --> </style> </head> <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#F...
HTML
%l7 sethi %hi(0x10000), %o5 or %o5, %lo(0x10000), %o5 add %i3, %l7, %l7 add %l7, %o5, %l7 ld [%l7], %l3 st %l3, [%l7] add %l7, %o5, %l7 ld [%l7], %l3 st %l3, [%l7] add %l7, %o5, %l7 ld [%l7], %l3 st %l3, [%l7] add %l7, %o5, %l7 ld [%l7], %l3 st %l3, [%l7] P14998: !PREFETCH [3] (Int) prefetch [%i0 + 32], 1 P14999: !C...
Assembly
repo: &Repository, m: &ArgMatches) -> Result<()> { let mut internals = Internals::read(repo)?; let (working_cover_id, working_cover_content) = match internals.working.get("cover")? { None => (Oid::zero(), String::new()), Some(entry) => (entry.id(), std::str::from_utf8(repo.find_blob(entry.id())...
Rust
, 1), NF, MT.Creosote.liquid( U , F), ingot .mat(MT.CoalCoke, 2)); RM.CokeOven.addRecipe1(T, 0, 3600, crushed .mat(MT.Coal , 1), NF, MT.Creosote.liquid( U2, F), ingot .mat(MT.CoalCoke, 1)); RM.CokeOven.addRecipe1(T, 0, 3600, crushedTiny .mat(MT.Coal , 9), NF, MT.Creosot...
Java
glabel func_80095974 /* B0CB14 80095974 27BDFFC0 */ addiu $sp, $sp, -0x40 /* B0CB18 80095978 AFBF0014 */ sw $ra, 0x14($sp) /* B0CB1C 8009597C 00802825 */ move $a1, $a0 /* B0CB20 80095980 3C068014 */ lui $a2, %hi(D_8013EF10) # $a2, 0x8014 /* B0CB24 80095984 24C6EF10 */ addiu $a2, %lo(D_8013EF10) # addiu $a2, ...
Assembly
// This Source Code Form is subject to the terms of the MIT License. // If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT. // This Source Code is partially based on the source code provided by the .NET Foundation. // Copyright (C) Leszek Pomianowski and ...
C#
align: Align {fx: 0.0, fy: 0.5}, walk: Walk { width: Width::Computed, height: Height::Fixed(40.0), }, padding: Padding { l: 10.0, t: 2.0, r: 15.0, b: 0.0, }, }...
Rust
store has more than 100 category items "enableLargeCategories": false, "deepLevel": 3, }, /// Example: "pinnedProductTags": ["feature", "new"], /// will show the tag before product title in the product list. "pinnedProductTags": [], /// Enable WooCommerce Wholesale Prices "EnableW...
Dart
lf, w, h ) if ( !self.bSetup ) then self.bSetup = self:Setup() end end function PANEL:SetupTree() local name = self.m_strName if ( !name ) then name = string.Trim( string.match( self.m_strBaseFolder, "/.+$" ) || self.m_strBaseFolder, "/" ) end local children = self.Tree.RootNode.ChildNodes if ( IsValid( ch...
Lua
=965&quality=85&auto=format&fit=max&s=e00fd6766ca4f9332c0c5b34ddd4a54d 965w, https://i.guim.co.uk/img/media/416800b8d06039780c3e6de28564e6f277b4e7b7/0_0_4800_3200/master/4800.jpg?width=725&quality=85&auto=format&fit=max&s=0834e3fd8c1051250f7e01014cb4b496 725w, https://i.guim.co.uk/img/media/416800b8d06039780c3e6de28564...
HTML
ion(A0_2) local L1_2 end L68_1 = _ENV["CBDE60C0367067915"]["prototype"] L69_1 = _ENV["CBDE60C0367067915"] L68_1.__class__ = L69_1 L68_1 = _ENV["CBDE60C0367067915"] L69_1 = "__super__" L69_1 = _ENV["CBDE60C0367067915"]["prototype"] L70_1 = {} L71_1 = "__index"
Lua
ktorfit.http.GET import de.jensklingenberg.ktorfit.http.Path import de.jensklingenberg.ktorfit.http.Query import dev.dimension.flare.data.network.xqt.model.AudioSpaceByIDResponse import dev.dimension.flare.data.network.xqt.model.Other200Response internal interface OtherApi { /** * * This is not an actual...
Kotlin
import numpy as np from numba import cuda, float64, void from numba.cuda.testing import unittest, CUDATestCase from numba.core import config # NOTE: CUDA kernel does not return any value if config.ENABLE_CUDASIM: tpb = 4 else: tpb = 16 SM_SIZE = tpb, tpb class TestCudaLaplace(CUDATestCase): def test_lap...
Python
using System.Management.Automation; using Microsoft.SharePoint.Client; using PnP.PowerShell.CmdletHelpAttributes; using PnP.PowerShell.Commands.Base.PipeBinds; using System.Linq.Expressions; using System; using System.Linq; using System.Collections.Generic; using PnP.PowerShell.Commands.Base; namespace PnP.PowerShell...
C#
="-714,930,-557,946" href="#getLastLocation()" alt=""><area shape="rect" coords="-714,946,-517,963" href="#getLastTransaction()" alt=""><area shape="rect" coords="-714,963,-526,980" href="#getLoteDeImportacao()" alt=""><area shape="rect" coords="-714,980,-603,996" href="#getMisc()" alt=""><area shape="rect" coords="-71...
HTML
list { max-height: 150px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05); } .nmd-queue-list::-webkit-scrollbar { width: 6px; } .nmd-queue-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radi...
HTML
argument_list.append({"opts": ("-gui", "--gui"), "action": "store_true", "dest": "redirect_gui", "default": False, "help": argparse.SUPPRESS}) return argument_list class GuiArgs(FaceSwap...
Python
&[ColumnStatsOutput], config: &config::Config, ) -> Vec<GridItem> { let autogrid = &config.train.autogrid; let (train_linear, train_tree) = match autogrid { Some(ag) => match &ag.model_types { Some(vec) => ( vec.contains(&config::ModelType::Linear), vec.contains(&config::ModelType::Tree), ), None...
Rust
@link GL11C#GL_TEXTURE_2D TEXTURE_2D}</td><td>{@link GL12#GL_TEXTURE_3D TEXTURE_3D}</td><td>{@link GL30#GL_TEXTURE_1D_ARRAY TEXTURE_1D_ARRAY}</td></tr><tr><td>{@link GL30#GL_TEXTURE_2D_ARRAY TEXTURE_2D_ARRAY}</td><td>{@link GL31#GL_TEXTURE_RECTANGLE TEXTURE_RECTANGLE}</td><td>{@link GL13#GL_TEXTURE_CUBE_MAP_POSITIVE_X ...
Java
ew_category": "Ny Kategori", "update_category": "Uppdatera Kategori", "no_custom_categories": "Inga anpassade kategorier", "all_items": "Alla Objekt", "tags": "Taggar", "favorites": "Favoriter", "favorite": "Favorit", "unfavorite": "Inte Favorit", "archived": "Arkiverad", "archive": "Arkivera", "tra...
Dart
License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package chip.devicecontroller.cluster.structs import chip.devicecontroller.clust...
Kotlin
o_endpoint().map_to_response().boxed(), )?; Ok(self) } } #[async_trait::async_trait] impl Endpoint for RouteDomain { type Output = Response; async fn call(&self, req: Request) -> Result<Self::Output> { let host = req .headers() .get(header::HOST) ...
Rust
.AreEqual(arr1, new byte[] { 10, 11, 0, 0 }); var arr2 = new int[] { 10, 11, 12, 13 }; Array.Clear(arr2, 0, 4); Assert.AreEqual(arr2, new int[] { 0, 0, 0, 0 }); var arr3 = new string[] { "A", "B", "C", "D" }; Array.Clear(arr3, 3, 1); Assert.AreEqual(arr3, new string[] { "A", "B", "C", null }); } ...
C#
_pow; use crate::util::MoreNumCast; pub trait PrimeTester<T> where T: Eq + Clone + Zero + One, { fn is_prime(&self, x: &T) -> bool; fn is_composite(&self, x: &T) -> bool { if x == &Zero::zero() || x == &One::one() { false } else { !self.is_prime(x) } } }...
Rust
tr> <tr class="cont"><td class="cont" width="40%"><a name="FMENU_REVERSEAUTOHIGHLIGHT">FMENU_REVERSEAUTOHIGHLIGHT</a></td> <td class="cont" width="60%">If specified, item hot keys will be assigned automatically, beginning from the last item.</td></tr> <tr class="cont"><td class="cont" width="40%"><a n...
HTML
meta ctrl f18', '33;8~': 'shift meta ctrl f19', '34;8~': 'shift meta ctrl f20', 'M': 'mouse', '0n': 'status ok' }; // GENERATED CODE - DO NOT MODIFY BY HAND part of 'welcome_home.dart'; // ************************************************************************** // JsonSerializableGenerator // **************...
Dart
ng åpnes', [ApiErrorCode.ATTESTANT_OG_SAKSBEHANDLER_KAN_IKKE_VÆRE_SAMME_PERSON]: 'Kan ikke attestere egen saksbehandling', [ApiErrorCode.ATTESTANT_SAMME_SOM_SAKSBEHANDLER]: 'Attestant er samme som saksbehandler', [ApiErrorCode.AVKORTING_UTENLANDSOPPHOLD_ER_UFULLSTENDIG]: 'Tilgjengelig restbeløp ette...
Typescript
', }) { for (String path in paths) { if (path.endsWith('/')) { newFolder(path.substring(0, path.length - 1)); } else { newFile(path, ''); } } var config = PackageConfigFileBuilder(); config.add(name: 'project', rootPath: '/workspace'); newPackageConfigJsonFile( ...
Dart
page load events view:add_signal("load-status", function(v, status) if status ~= "finished" then return end -- Only proceed when the page is fully loaded msg.info("URI: %s", v.uri) -- DEBUG -- Hide onscreen keyboard (if enabled) after page (re)load -- NOTE: this is needed since 'on...
Lua
none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-select{display:inline-flex;position:relative}.mdc-select:not(.mdc-sele...
JavaScript
import os import pickle import time import json from nonebot import get_driver from typing import Any, Optional, Set, Dict, List, Tuple, overload from typing_extensions import Self, override from dataclasses import dataclass, field from .logger import logger from .singleton import Singleton from .config import config...
Python
weight: inherit !important; line-height: inherit !important; color: inherit !important; text-decoration: none !important; } /** * Fix centering issues in Android 4.4. */ div[style*='margin: 16px 0;'] { margin: 0 !important; } body { width: 100% !important; height: ...
HTML
0x6f, 0x75, 0x64, 0x2e, 0x44, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x2e, 0x43, 0x78, 0x2e, 0x56, 0x33, 0xea, 0x02, 0x21, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x44, 0x69, 0x61, 0x6c, 0x6f, 0x67, 0x66, 0x6c, 0x6f, 0x77, 0x3a, 0x3a, 0x43, 0x58, 0x3a...
Go
from_be_bytes(buf[1..3].try_into().unwrap()); let body = buf[3..].to_vec(); if parameter_length as usize != body.len() { return Err(Error::InvalidMessage); } Ok(Self { pdu_id, parameter_length, body }) } } impl Encodable for BrowsePreamble { fn encoded_len(&self) -...
Rust
puzzleId: id); if (puzzle != null) return puzzle; return ref.withClient((client) => PuzzleRepository(client).fetch(id)); } @riverpod Future<Puzzle> dailyPuzzle(Ref ref) { return ref.withClientCacheFor( (client) => PuzzleRepository(client).daily(), const Duration(hours: 6), ); } @riverpod Future<IList<...
Dart
t; use anyhow::{Context, Result}; use lambda_runtime::{handler_fn, Context as LambdaContext, Error}; use log::{debug, info}; type Response = Result<SuccessResponse>; #[tokio::main] async fn main() -> Result<(), Error> { setup_logging(); system_a::do_stuff_from_system_a(); system_b::do_stuff_from_system_...
Rust
shopBtn = slot0:findTF("Window/button_container/ShopBtn") slot0.confirmBtn = slot0:findTF("Window/button_container/ConfirmBtn") end function slot0.addListener(slot0) onButton(slot0, slot0.bg, function () uv0:exit() end, SFX_CANCEL) onButton(slot0, slot0.btnBack, function () uv0:exit() end, SFX_CANCEL) onButt...
Lua
<a href="/wiki/Brazil_national_football_team" title="Brazil national football team"><img alt="Brazil" src="//upload.wikimedia.org/wikipedia/en/thumb/0/05/Flag_of_Brazil.svg/22px-Flag_of_Brazil.svg.png" decoding="async" width="22" height="15" class="thumbborder" srcset="//upload.wikimedia.org/wikipedia/en/thumb/0/05/Fla...
HTML
ag, None).unwrap(); main_loop(&mut events_loop, &program, &display); } #[cfg_attr(feature="cargo-clippy", allow(clippy::single_match))] fn main_loop( events_loop: &mut glium::glutin::EventsLoop, program: &glium::Program, display: &glium::Display) { use glium::glutin::{ Event, WindowEvent, dp...
Rust
ynomial, d *fft.Domain) *Polynomial { _p := p.Clone() _p.Basis = Canonical _p.Layout = BitReverse return _p } // LAGRANGE REGULAR func fromCanonical2(p *Polynomial, d *fft.Domain) *Polynomial { _p := p.Clone() _p.Basis = Lagrange _p.Layout = Regular d.FFT(_p.Coefficients(), fft.DIF) utils.BitReverse(_p.Coeffi...
Go
</mat-card-content> </mat-card> </div> <!-- Angular material card for TypeDoc --> <div> <mat-card class="card"> <mat-card-header> <img mat-card-avatar src='https://www.sitepen.com/blog/wp-content/uploads/2017/04/typedoc.png'> <mat-card-title><a href="/typedo...
HTML
import ssl import socket import argparse def detect_ssl_verification_bypass(target_host, target_port): """ 檢測目標 Apache HTTP Server 是否存在 CVE-2024-40898 (SSL 驗證繞過) 漏洞 :param target_host: 目標伺服器的主機名或 IP 地址 :param target_port: 目標伺服器的端口號 """ context = ssl.create_default_context(ssl.Purpose.CLIENT_AU...
Python
adow); } .progress-bar { display: flex; flex-direction: column; justify-content: center; color: $progress-bar-color; text-align: center; background-color: $progress-bar-bg; @include transition($progress-bar-transition); } .progress-bar-striped { @include gradient-striped(); background-size: $progres...
CSS
.y = 0.9999949;\n xlat_mutableuv2 = ((uv_1 * (\n (q13 * tmpvar_20)\n * tmpvar_21)) * aspect.yx);\n xlat_mutableneu = (3.0 * texture (sampler_main, fract((\n (xlat_mutableuv2 + 0.5)\n + ofs_2)))).xyz;\n ret1_3 = max (ret1_3, (xlat_mutableneu * (1.0 - \n (tmpvar_20 * tmpvar_20)\n )));\n vec2 tmpvar_22;\...
JavaScript
btn-primary" id="detbutton" role="button" style="float: right;">re-direct now</a> </div> </div> </body> </html>{% load static %} <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://...
HTML
x02; PIF_Ram[38] = 0x3F; break; case CIC_NUS_6103: PIF_Ram[37] = 0x02; PIF_Ram[38] = 0x78; break; case CIC_NUS_6105: PIF_Ram[37] = 0x02; PIF_Ram[38] = 0x91; break; case CIC_NUS_6106: PIF_Ram[37] = 0x02; PIF_Ram[38] = 0x85; break; }*/ } } void CN64System::ExecuteCPU() { ...
C++
exit code on Python script error`() = runTest { val workflowYaml = """ do: - errorExit: run: script: language: python code: | import sys print('Something w...
Kotlin
// downvote only if user has voted let nStart = found.voters.length; _.remove(found.voters, (voter) => { return voter == param.voter; }); if (nStart != found.voters.length) { response.success(new S.VoteResponseParam(param.noteId, param.voter)); ...
Typescript
id="container"></div> <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1350780">Mozilla Bug 1350780</a> </body> </html> <!doctype html> <html> <!-- https://bugzilla.mozilla.org/show_bug.cgi?id=1292001 --> <head> <meta charset=utf-8> <title>Test for bug 1292001</title> <script src="/tests/Sim...
HTML
기 다음과 같이 고루틴 함수에 `num int`을 인자로 받아서 사용하도록 수정하자: ```go package main import ( "fmt" ) func main() { done := make(chan bool) for i := 0; i < 5; i++ { go func(num int) { fmt.Printf("%d ", num) // 예상한 대로 출력됨 done <- true }(i) } for i := 0; i < 5; i++ { <-done } } ``` > 실습 코드 확인하기: [05_goroutine_with_cl...
Markdown
/// /// let map: BpMap<u32, u64> = BpMap::new("example_bp_map_is_empty", 4, 8)?; /// assert!(map.is_empty()); /// # fs::remove_file("example_bp_map_is_empty")?; /// # Ok(()) /// # } /// # foo().unwrap(); /// ``` pub fn is_empty(&self) -> bool { self.pager.get_len() == 0 ...
Rust
um0.uw += vrmpy(b7b6b5b4.ub, dprd.ub) //[1,5] maxe.ub = vmax(maxe.ub, d3d2d1d0.ub) //[P,1] mine.ub = vmin(mine.ub, d3d2d1d0.ub) //[P,1] d3d2d1d0 = vmem(in_data1++#1) //[P,1]b3 b2 b1 b0 } { pr1.u...
Assembly
} HRESULT Library_spot_hardware_native_Microsoft_SPOT_Hardware_Watchdog::set_Log___STATIC__VOID__MicrosoftSPOTNativeMicrosoftSPOTILog( CLR_RT_StackFrame& stack ) { NATIVE_PROFILE_CLR_HARDWARE(); TINYCLR_HEADER(); TINYCLR_SET_AND_LEAVE(stack.NotImplementedStub()); TINYCLR_NOCLEANUP(); } HRESULT Libr...
C++
// Fill peers shuffle() var pending peersPendingNotifications for _, p := range ps { peers.addByShortID(p, &pending) } // Check invariants counts := make([]int, 1<<peerShortIDBits) saw := func(p *Peer) { if p != peers.ourself.Peer { counts[p.UID]++ } } for shortID, entry := range peers.byShortID { ...
Go
let messagesReadByFile: Message[] = []; var errorsHandler = (req: Request, res: Response, next: NextFunction) => { var errors = validationResult(req); if (!errors.isEmpty()) { return res.status(400).json({ errors: errors.array() }); } next(); } let reloadFile = (_: Request, __: Response, next...
Typescript
NewAuthRequest("GET", dstore.Path("disco", alice.ID(), charlie.ID(), "offer"), nil, "", env.clock.Now(), charlie) require.NoError(t, err) code, _, body = srv.Serve(req) require.Equal(t, http.StatusNotFound, code) require.Equal(t, `{"error":{"code":404,"message":"resource not found"}}`, string(body)) // PUT /disco...
Go
nput: Vec<Pair<'a>>, result: i64, } fn fuel_to_ore(formulae: &Formulae<'_>, fuel: i64) -> i64 { let mut need = HashMap::new(); need.insert("FUEL", fuel); loop { let mut updates = HashMap::<&str, i64>::new(); for (chem, amount) in need.iter().filter(|&(_, &a)| a > 0) { if let...
Rust
map->cap_bits); if (!hashmap_find_entry(map, key, h, NULL, &entry)) return false; if (value) *value = entry->value; return true; } bool hashmap__delete(struct hashmap *map, const void *key, const void **old_key, void **old_value) { struct hashmap_entry **pprev, *entry; size_t h; h = hash_bits(map->...
C
count+bitno) + // " bits to date"); bitcount += bitno; // System.out.println("packing tag " + index + " of length " + bitno + "bits from byte " + // buffer_pos + "/" + // buffer.length + " at " + pos + "th bit"); /* Clear the bits before starting in a new byte */ if (pos == 0) { buffer[buffer_pos] =...
Java
ow-cols:type")) && frame.contentDocument.location.href.includes(encodeURIComponent("hide-cols:line")), "URL is updated"); is(query.value, "field-layout:'field_layout::field_type::S' show-cols:type hide-cols:line", "Query is updated"); TestUtils.clickCheckbox(lineCheckbox); is(TestUtils.isShown(n...
JavaScript
<img src="images/Draft_Upgrade.svg" width=16px> Ulepsz kształt** i **<img src="images/Draft_Downgrade.svg" width=16px> Rozbij kształt**, aż otrzymasz coś o nazwie: `Face<numer>`. : Wynik końcowy powinien wyglądać następująco: : ![bez ramki](images/Svgfaces.png ) ### Tworzenie operacji Wycięcie V ...
Markdown
探討了組織如何安全地利用 Gemini 和 Google Workspace,同時確保符合法規和保障資料安全。核心觀點包括: * **安全優先的 AI 部署:** 強調在利用生成式 AI 的同時,不應犧牲安全性,並提供可配置的治理措施。 * **隱私保護設計:** 保證使用者內容不會未經許可被分享到組織外部,也不會用於其他客戶或模型訓練。 * **合規性:** Google Workspace 投入大量資源,提供全面的合規性認證,包括成為首批獲得 FedRAMP High 授權的生成式 AI 助理之一。 * **資料治理:** Gemini 不會改變 Google Workspace 中資料的存取權限,而是提供工具...
Markdown
o1 mov %o1, %l6 ! move %l6(lower) -> %o1(upper) sllx %l6, 32, %o1 mov %l4, %l3 cas [%l7], %l6, %l3 ! move %l3(lower) -> %o1(lower) srl %l3, 0, %l7 or %l7, %o1, %o1 add %l4, 1, %l4 P7102: !ST [10] (maybe <- 0x3000227) (Int) stw %l4, [%i2 + 32 ] add %l4, 1, %l4 P7103: !LD [13] (Int) lduw [%i3 + 64], %o2 ! move %o...
Assembly
7, r8, r9, r10, fp, ip, lr, pc} UNWIND(.pad #4) UNWIND(.save {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr}) UNWIND(.setfp fp, ip, #-4) sub fp, ip, #4 UNWIND(.pad #156) sub sp, sp, #156 subs r7, r0, #0 beq .L782 ldr r3, .L814 mov r2, #136 mov r1, #0 sub r0, fp, #180 ldr r3, [r3, #48] blx r3 ldr lr, [r7, #2552...
Assembly
' as any, url : 'https://accounts.spotify.com/api/token', headers: { 'Authorization' : 'Basic ' + (new Buffer(process.env.SPOTIFY_CLIENT_ID + ':' + process.env.SPOTIFY_CLIENT_SECRET).toString('base64')), 'Content-Type' : 'application/x-www-form-urlencoded' }, params: { ...
Typescript
fpgaRevision() { return bb.getInt(bb_pos + 4); } public void mutateFpgaRevision(int fpga_revision) { bb.putInt(bb_pos + 4, fpga_revision); } public int serialNumberSize() { return bb.getShort(bb_pos + 8) & 0xFFFF; } public void mutateSerialNumberSize(int serial_number_size) { bb.putShort(bb_pos + 8, (short) seri...
Java
"VU": {"🇻🇺", "U+1F1FB U+1F1FA"}, "WF": {"🇼🇫", "U+1F1FC U+1F1EB"}, "WS": {"🇼🇸", "U+1F1FC U+1F1F8"}, "XK": {"🇽🇰", "U+1F1FD U+1F1F0"}, "YE": {"🇾🇪", "U+1F1FE U+1F1EA"}, "YT": {"🇾🇹", "U+1F1FE U+1F1F9"}, "ZA": {"🇿🇦", "U+1F1FF U+1F1E6"}, "ZM": {"🇿🇲", "U+1F1FF U+1F1F2"}, "ZW": {"🇿🇼", "U+1F1FF U+1F1FC"...
Go