content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
@extend .icon-lg;
}
&-orange {
@extend .icon-orange;
@extend .icon-lg;
}
&-party {
@extend .icon-party;
@extend .icon-lg;
}
}
.icon-xl {
border-radius: #{$border-radius-lg};
width: 80px;
height: 80px;
padding: 16px;
&-party {
@... | CSS |
GetPpuModel());
}
else if ((profile.system.type) == Profile::System::VS_DUALSYSTEM)
{
throw RESULT_ERR_UNSUPPORTED_VSSYSTEM;
}
if (Cartridge::QueryExternalDevice( EXT_DIP_SWITCHES ))
Log::Flush( "Cartridge: DIP Switches present" NST_LINEBREAK );
}
catch (...)
{
Destroy();
... | C++ |
es[i].key, testValues[i].spec);
c.updateAAD(testValues[i].aad);
byte[] ctPlusTag = c.doFinal(testValues[i].plainText);
c.init(Cipher.DECRYPT_MODE, testValues[i].key, testValues[i].spec);
c.updateAAD(testValues[i].aad);
byte[] pt = c.doFina... | Java |
kground: url(@path) @extras;
background-size: @size;
/*
* Create an @2x-ish media query.
*/
@media @lowretina {
background : url(@2xpath) @extras;
background-size : @size;
}
/*
* Create media queries for all environments that the user has
* provided images for.
*/
.create-queri... | CSS |
Info: &info.PacOpts{
Settings: settings.Settings{
BitbucketCloudCheckSourceIP: false,
BitbucketCloudAdditionalSourceIP: "",
},
},
}
req := &http.Request{Header: map[string][]string{}}
req.Header.Set("X-Event-Key", tt.eventType)
req.Header.Set("X-Forwarded-For", tt.sourceIP)
... | Go |
ndl $255,%ebx
shrl $16,%edx
xorl %eax,%eax
movb %dh,%al
andl $255,%edx
movl CAST_S_table0(,%ecx,4),%ecx
movl CAST_S_table1(,%ebx,4),%ebx
xorl %ebx,%ecx
movl CAST_S_table2(,%eax,4),%ebx
subl %ebx,%ecx
movl CAST_S_table3(,%edx,4),%ebx
addl %ebx,%ecx
xorl %ecx,%esi
movl 32(%ebp),%edx
movl 36(%ebp),%ecx
xor... | Assembly |
devices`() {
val currentSessionCrossSigningInfo = givenCurrentSessionVerified(true)
val filteredDeviceList = filterDevicesUseCase.execute(currentSessionCrossSigningInfo, devices, DeviceManagerFilterType.VERIFIED, emptyList())
filteredDeviceList.size shouldBeEqualTo 2
filteredDeviceList... | Kotlin |
t/6.0).
Once the .NET 6 SDK is installed, you can open a Command Prompt and install the MonoGame templates by typing the following command:
```sh
dotnet new --install MonoGame.Templates.CSharp
```
**Next up:** [Creating a new project](2_creating_a_new_project_vs.md)
**This package only works if you are targeting .NE... | Markdown |
(var i = 0, l = a.length; i < l; i++) {
zipped.push([a[i], b[i]])
}
return zipped
}
/**
compareArrays(left, right) assumes that `left` and `right` are both Arrays.
*/
function compareArrays<L, R>(left: L[], right: R[]): boolean {
if (left.length !== right.length) {
return false
}
return zip(left, rig... | Typescript |
xFFu)<<16)|((uint(v.a)&0xFFu)<<24))");
if (opt.use_int8_storage)
{
custom_defines.append("i8buffer_ld1(buf,i)", "int(buf[i])");
custom_defines.append("i8buffer_st1(buf,i,v)", "{buf[i]=int8_t(v);}");
custom_defines.append("i8buffer_cp1(buf,i,sbuf,si)", "{buf[i]=sbuf[si];}");
}
el... | C++ |
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Navigation;
using AppStudio.DataProviders.Twitter;
namespace AppStudio.Uwp.Samples
{
public sealed partial class TwitterSample : Page
{
... | C# |
;font-size:16px}.checkout-buttons .checkout-submit b{position:absolute;left:0;top:0;width:135px;height:36px;background:url(../images/btn-submit.jpg) no-repeat;cursor:pointer;overflow:hidden}.checkout-buttons .checkout-submit:hover{background-color:#EF494D}.checkout-buttons .checkout-submit:hover b{background-position:0... | CSS |
lyException>(() => Preferences.ContainsKey("anything"));
Assert.Throws<NotImplementedInReferenceAssemblyException>(() => Preferences.ContainsKey("anything", "shared"));
}
[Fact]
public void Preferences_Remove_Fail_On_NetStandard()
{
Assert.Throws<NotImplementedInReferenceAssemblyException>(() => Preferen... | C# |
ع کرے",
},
{
"surah_number": 42,
"verse_number": 14,
"content":
"لوگوں میں جو تفرقہ رو نما ہوا وہ اِس کے بعد ہوا کہ اُن کے پاس علم آ چکا تھا، اور اس بنا پر ہوا کہ وہ آپس میں ایک دوسرے پر زیادتی کرنا چاہتے تھے اگر تیرا رب پہلے ہی یہ نہ فرما چکا ہوتا کہ ایک وقت مقرر تک فیصلہ ملتوی رکھا جائے گا تو ... | Dart |
, method.sizeCDParameters());
assertEquals("stereoinfo", method.getCDParameter(0).getName());
assertDeepEquals(
mcTypeFacade.createMapTypeOf(
mcTypeFacade.createQualifiedType(I_STEREOTYPE_REF),
mcTypeFacade.createOptionalTypeOf(VALUE)
),
method.getCDParameter(0).getMCType()
... | Java |
src1[i] * src2[i];
}
// compiler can not optimize this code
// because of the pointer aliasing scenario
// there might be a chance that those pointers
// are pointing to the same object.
// so compiler can not done SIMD optimization.
// ---------------------------------------------------
void multipl... | C |
we should see this", e);
}
byte[] bytes = byteArrayOutputStream.toByteArray();
return bytes;
}
/**
* unpack an array packed by pack()
*
* @param packedArray
* @return
* @see #pack(byte[]...)
*/
public static byte[][] unpack(byte[] packedArray) {
try {
DataInput input = ... | Java |
.dropzone-previews .dz-preview .dz-progress{position:absolute;top:118px;left:8px;right:8px;height:4px;background-color:#eee;display:none;border-radius:2px}.dropzone .dz-preview .dz-progress .dz-upload,.dropzone-previews .dz-preview .dz-progress .dz-upload{display:block;position:absolute;top:0;bottom:0;left:0;width:0;he... | CSS |
tilo","ok":"CONFIRMAR","cancel":"Cancelar","close":"Fechar","preview":"Pré-visualização","resize":"Redimensionar","generalTab":"Geral","advancedTab":"Avançado","validateNumberFailed":"Este valor não é um numero.","confirmNewPage":"Irão ser perdidas quaisquer alterações não guardadas. Tem a certeza que deseja carregar a... | JavaScript |
/*************************************************************************
* Copyright (c) 2011 AT&T Intellectual Property
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availab... | C |
te str;
call String_Append_INT(&str, 0, _);
call String_Append_INT(&str, 10, 2);
escape $str as int;
]],
wrn = true,
opts_pre = true,
_opts = { ceu_features_trace='true' },
run = 6,
}
Test { [[
#include "string.ceu"
var[30] byte str;
call String_Append_INT(&str, 0, _);
call String_Append_STR(&str, " 0... | Lua |
using Warehouse.Api.Core.Commands;
namespace Warehouse.Api.Products;
internal class HandleRegisterProduct(
Func<Product, CancellationToken, ValueTask> addProduct,
Func<SKU, CancellationToken, ValueTask<bool>> productWithSKUExists)
: ICommandHandler<RegisterProduct>
{
public async Task Handle(Register... | C# |
ut labore et dolore magna aliqua'
},
{
title: 'Mon second post',
content: '2Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua'
},
{
title: 'Encore un post',
content: '3Lorem ipsum dolor sit amet, consectetur... | Typescript |
= adapterFactory;
}
public bool TryVisit(
ref object target,
#if !NETSTANDARD2_0
[NotNullWhen(true)]
#endif
out IAdapter? adapter,
out string? errorMessage
)
{
if (target == null)
{
adapter = null;
errorMessage = null;
return false;
}
adapter = SelectAdapter(target);
// Traverse until... | C# |
�니라 시각적 교차-어텐션 계층들 모두가 일반적인 텍스트-이미지 데이터세트들에 대해 트레이닝되기 때문에, 추론은 임의의 타겟 실수 단어들을 사용함으로써 임의의 카테고리들에 일반적으로 적용될 수 있어서, 우수한 오픈-도메인 커스터마이징 능력을 가능하게 한다.\n' +
'\n' +
'## 4 Experiments\n' +
'\n' +
'### Experimental Setups\n' +
'\n' +
'**구현.**_RealCustom_는 Stable Diffusion 상에서 구현되고, 1e-5 학습률을 갖는... | HTML |
S_10ColorModelEhhhhhhNS_10AlphaUsageENS_13AlphaPositionENS_18AlphaPremultipliedENS_18TypeInterpretationENS_9ByteOrderEh", qtrt.FFI_TYPE_POINTER, colorModel, firstSize, secondSize, thirdSize, fourthSize, fifthSize, alphaSize, alphaUsage, alphaPosition, premultiplied, typeInterpretation, byteOrder, subEnum)
qtrt.ErrPrin... | Go |
*/ private static final char QUOTE = '\'';
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ private static DateFormat formatHelper(Calendar cal, ULocale loc, int dateStyle, int timeStyle)
/* */ {
/* 3270 */ PatternData patternData = PatternData.make(cal, lo... | Java |
--Gross Michael (Uncommon) - Creates Gros Michel at end of shop (must have room).
--Gains x0.25 Mult for each Gros Michel held at end of round.
--Destroyed with Gros Michel. (Ew! Just DIE already!)
--kidnaps gros michel, credit https://github.com/Steamodded/examples/blob/master/Mods/ExampleJokersMod/ModdedVanilla.lu... | Lua |
2HSjWlhzbaw.ttf',
'ZillaSlab-SemiBold',
);
return font.getFont();
}
/// @nodoc
/// Zilla Slab 600italic
static Future<Font> zillaSlabSemiBoldItalic() {
const font = PdfGoogleFonts._(
'https://fonts.gstatic.com/s/zillaslab/v11/dFanZfeM_74wlPZtksIFaj8CIHCpXnp2fazkfg.ttf',
'ZillaSlab... | Dart |
AIMove() {x = 1, y = 3, direction = 1},
"0 0 0 0\n" +
"0 1 0 0\n" +
"0 1 0 0\n" +
"2 1 2 2"
);
}
[Test]
public void TestInternalFunctions()
{
TestGetHighestY("1 1 1 0", 0);
TestGetHighestY("2 0 2 0\n1 1 1 0", 1);
TestGetHighestY("2 0 0 0\n1 0 0 0\... | C# |
transform coordinates from the lamp frame of reference to the world
Scale parameter should generally only be used for photometric_coords
"""
coords = self.inverse_rotation_matrix @ coords.T
coords = (coords / scale).T + self.position
if which == "polar":
retu... | Python |
);
}
}
/* Copyright 2016 Ling Zhang
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | Typescript |
= uni.requireNativePlugin('Fvv-UniSerialPort')
```
#### API
//获取设备信息
**[getAllDeviceList(callback)](#getAllDeviceList)**
**[getAllDevicePath(callback)](#getAllDevicePath)**
//设置串口连接信息
**[setPath(path)](#setPath)**
**[setBaudRate(baudRate)](#setBaudRate)**
**[setStopBits(stopBits)](#setStopBits)**
**[s... | Markdown |
" media="screen">
<link rel="stylesheet" href="/css/moztw.css" media="screen">
<link rel="stylesheet" href="/css/cavendish/narrow.css" title="Cavendish" media="screen and (max-width: 500px)">
<link rel="alternate" type="application/rss+xml" title="RSS" href="/xmlnews.rdf">
<meta name="facebook-domain-verificati... | HTML |
--> B1(outbound);
D --> B2(outbound);
D --> B3(outbound);
D --> B4(outbound);
</div>
<p>Notes:</p>
<ul>
<li>You have to configure at least one inbound and one outbound to make V2Ray work properly.</li>
<li>The inbound proxy communicates with client software such as browser.</li>
<li>The outbound proxy comm... | HTML |
ifdef CONFIG_ACPI
pm->acpi_nb.notifier_call = nouveau_pm_acpi_event;
register_acpi_notifier(&pm->acpi_nb);
#endif
return 0;
}
void
nouveau_pm_fini(struct drm_device *dev)
{
struct drm_nouveau_private *dev_priv = dev->dev_private;
struct nouveau_pm_engine *pm = &dev_priv->engine.pm;
if (pm->cur != &pm->boot)
... | C |
OR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
package org.openspcoop2.core.protocolli.trasparente.testsuite.connettori.redirect;
im... | Java |
/* Copyright (c) 2011-2016, 2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed ... | C |
;
struct kxcjk1013_data *data = iio_priv(indio_dev);
int ret = 0;
mutex_lock(&data->mutex);
ret = kxcjk1013_set_mode(data, OPERATION);
if (ret == 0)
ret = kxcjk1013_set_range(data, data->range);
mutex_unlock(&data->mutex);
return ret;
}
#endif
#ifdef CONFIG_PM
static int kxcjk1013_runtime_suspend(struct dev... | C |
U+6790, U+6838, U+68d2, U+68ee, U+6982, U+69ae, U+69cb, U+6a39, U+6b66, U+6bba, U+6c5f, U+6ce1, U+6d0b, U+6d3e, U+6d6a, U+6e1b, U+6ed1, U+6f22, U+6f54, U+6f6e, U+6fc0, U+6fdf, U+719f, U+71c8, U+71d2, U+7259, U+72c2, U+7389, U+73e0, U+745e, U+751a, U+751c, U+7530, U+7533, U+7562, U+7591, U+75c5, U+75db, U+7642, U+7686,... | CSS |
else if (activeChar.isFestivalParticipant())
{
requestedPointType = 4;
}
if (activeChar.isPhoenixBlessed())
{
activeChar.stopPhoenixBlessing(null);
}
switch (requestedPointType)
{
case 1: // to clanhall
if (activeChar.getClan() != null)
{
... | Java |
if (onClick === null) {
if (type === 'user') {
onClick = { location: 'user/home', args: { userID: id }, preload: true };
} else if (type === 'group') {
onClick = { location: 'group/home', args: { id: id }, preload: true };
} else if (type === ... | JavaScript |
ce3cf072aa10ec8509c801.bindPopup(popup_f831bb7445fb081cf6986ab4a9e5aa32)
;
var marker_6d52f0637a3545e4d253a828197663a6 = L.marker(
[-12.30296, -76.84808],
{}
).addTo(map_f703685615a79fc8ba49f3f1c045a01c);
var popup... | HTML |
,
1, 0, 0,
1, 0, 0,
1, 0, 0,
1, 0, 0,
// under top rung
0, -1, 0,
0, -1, 0,
0, -1, 0,
0, -1, 0,
0, -1, 0,
0, -1, 0,
// between top rung and middle
1, 0, 0,
1, 0, 0,
1, ... | HTML |
#pragma once
#include <rocksdb/db.h>
#include <rocksdb/slice.h>
#include <string>
#include "lintdb/constants.h"
#include "lintdb/invlists/Iterator.h"
#include "lintdb/invlists/KeyBuilder.h"
namespace lintdb {
class ContextIterator {
public:
ContextIterator(
const std::shared_ptr<rocksdb::DB> db,
... | C |
t msg_str;
if tx_hash_opt.is_none() {
msg_str = json!({
"script_hash": scripthash,
"status_hash": new_statushash
}).to_string();
} else {
let tx_id = hash_from_value(Some(&Value::String(tx_hash_opt.unwrap().to_string()))).chain_err(|| ... | Rust |
if n.modules.WAL != nil {
if err := n.processWAL(); err != nil {
n.workErrNotifier.Fail(err)
n.workErrNotifier.SetExitStatus(nil, fmt.Errorf("node not started"))
return fmt.Errorf("could not process WAL: %w", err)
}
}
// Submit the Init event to the modules.
if err := n.workItems.AddEvents((&events.Eve... | Go |
0020 ÷ 2024 ÷ # × [0.3] PERCENT SIGN (PO) × [7.01] SPACE (SP) ÷ [18.0] ONE DOT LEADER (IN) ÷ [0.3]
× 0025 × 0308 × 2024 ÷ # × [0.3] PERCENT SIGN (PO) × [9.0] COMBINING DIAERESIS (CM1_CM) × [22.0] ONE DOT LEADER (IN) ÷ [0.3]
× 0025 × 0308 × 0020 ÷ 2024 ÷ # × [0.3] PERCENT SIGN (PO) × [9.0] COMBINING DIAERESIS (CM1_C... | Dart |
PlaceId*' style 'TouchButtonImageFamily'
widget '*.buttonOrderId*' style 'TouchButtonImageArticle'
widget '*.buttonTableId*' style 'TouchButton_Grey'
widget '*.buttonUserId*' style 'TouchButton_Grey'
#Color TouchButtons
widget '*.touchButton*_Red' style 'TouchButton_Red'
widget '*.touchButton*_DarkGrey' style 'TouchBu... | C# |
size));
} catch (ArgumentException) {
broken = true;
}
} else {
dc.DrawImage(bi, new Rect(_offset, _size));
}
}
if (broken && ShowBroken && _broken) {
dc.DrawImage... | C# |
using FluentAssertions;
using Runly.Diagnostics;
using Runly.Testing;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
namespace Runly.Tests.Scenarios.Execution
{
public class Handling_exceptions
{
readonly TestHost<DiagnosticJob> testHost;
readonly DiagnosticConfig config;
public Handling_excep... | C# |
/*
* Copyright (c) 2002-2013 Balabit
* Copyright (c) 2013 Viktor Juhasz
* Copyright (c) 2013 Viktor Tusa
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of ... | C |
"""
Read sensor values using I2C bus
This script demonstrates using I2C to read values from
DHT12 temperature and humidity sensor.
Components:
- ESP32-based board
- DHT12 temperature and humidity sensor
"""
from machine import I2C
from machine import Pin
import time
SENSOR_ADDR = 0x5c # DHT12
# Init I2C using pin... | Python |
0a0: 00 00 00
804f0a3: 48 01 c8 add %rcx,%rax
804f0a6: 8b 4d f4 mov -0xc(%rbp),%ecx
804f0a9: 48 63 c9 movslq %ecx,%rcx
804f0ac: 48 89 ca mov %rcx,%rdx
804f0af: 48 c1 e2 03 shl $0x3,%rdx
804f0b3: 48 8b 08 mov (%rax),%rcx
80... | Assembly |
습니다.</li>
</ul>
<div class="alert note">
작업자 노드 수를 급격하게 줄이는 것은 권장하지 않습니다. 예를 들어 클러스터에 5개의 데이터 노드가 있는 경우, 서비스 가용성을 보장하기 위해 한 번에 하나의 데이터 노드를 줄이는 것이 좋습니다. 첫 번째 스케일 인 시도 후 서비스를 사용할 수 있게 되면 계속해서 데이터 노드 수를 더 줄일 수 있습니다.</div>
<h2 id="Prerequisites" class="common-anchor-header">전제 조건<button data-href="#Prerequisites" class="an... | Markdown |
),
child: SvgPicture.asset(
'$assetsPath/others/round_question_mark.svg',
colorFilter: ColorFilter.mode(
Theme.of(context).textTheme.bodySmall?.color ??
Colors.white,
BlendMode.srcIn,
),... | Dart |
assert_eq!(parse_mode(Some("-4".to_owned())).unwrap(), 0o662);
assert_eq!(parse_mode(None).unwrap(), 0o666);
}
use std::prelude::v1::*;
quickcheck! {
fn check_against_baseline(init: u32, chunks: Vec<(Vec<u8>, usize)>) -> bool {
let mut baseline = crc32fast::baseline::State::new(init);
let m... | Rust |
64[1], f64@imm[2]).k[3]
//
TEXT bccmpgef64imm(SB), NOSPLIT|NOFRAME, $0
BC_CMP_OP_F64_IMM($VCMP_IMM_NLT_UQ)
NEXT_ADVANCE(BC_SLOT_SIZE*3 + BC_IMM64_SIZE)
//
// k[0] = cmpeq.i64(i64[1], i64[2]).k[3]
//
TEXT bccmpeqi64(SB), NOSPLIT|NOFRAME, $0
BC_CMP_OP_I64($VPCMP_IMM_EQ)
NEXT_ADVANCE(BC_SLOT_SIZE*4)
//
// k[0] =... | Assembly |
1 - uv2 >= 0
SetActive(uv0.completeEffectTF, slot2)
if slot2 then
slot1.material = uv0.material1
slot1.material:SetFloat("_LineDensity", 7)
uv3(slot1)
else
slot1.material = uv0.material
slot1.material:SetFloat("_Range", 16)
slot1.material:SetFloat("_Degree", 7)
end
end
end)
s... | Lua |
83A2 */ sb $v1, 0x3C($s4)
/* 402A34C 80080584 A6DF000C */ jal func_80037E98
/* 402A350 80080588 3E0085A2 */ sb $a1, 0x3E($s4)
.Llevel_44_8008058C:
/* 402A354 8008058C 21200002 */ addu $a0, $s0, $zero
/* 402A358 80080590 794A010C */ jal func_800529E4
/* 402A35C 80080594 04000524 ... | Assembly |
UnitLabel = new JLabel("degress", JLabel.LEFT);
layout.gridx = 2;
gpsPanel.add(gpsLatitudeUnitLabel, layout);
JLabel gpsAltitudeLabel = new JLabel("GPS Altitude: ", JLabel.LEFT);
layout.gridwidth = 1;
layout.gridx = 0;
layout.gridy++;
gpsPanel.add(gpsAltitudeLabel, layout);
layout.gridx = 1;
gpsPane... | Java |