content
stringlengths
2
6.21k
label
stringclasses
16 values
?query=workflow%3Abuild) # The Idea <img src="zip.png" name="zip" /> ... Some day, I was looking for zip library written in C for my project, but I could not find anything simple enough and lightweight. Everything what I tried required 'crazy mental gymnastics' to integrate or had some limitations or was too heavy. I...
Markdown
Call) goja.Value { notifIDs := f.Argument(0) if notifIDs == goja.Undefined() || notifIDs == goja.Null() { panic(r.NewTypeError("expects an array of ids")) } notifIDsArray, err := exportToSlice[[]string](notifIDs) if err != nil { panic(r.NewTypeError("expects an array of strings")) } for _, userID ...
Go
pdateDirFlags(path string, flags uint32) bool { w.mu.Lock() defer w.mu.Unlock() fd, ok := w.path[path] if !ok { // Already deleted: don't re-set it here. return false } info := w.wd[fd] info.dirFlags = flags w.wd[fd] = info return true } func (w *watches) remove(fd int, path string) bool { w.mu.Lock() de...
Go
),{project:s,locator:a}=await Rt.find(r,this.context.cwd);return await s.restoreInstallState(),await In.executePackageShellcode(a,this.commandName,this.args,{cwd:this.context.cwd,stdin:this.context.stdin,stdout:this.context.stdout,stderr:this.context.stderr,project:s})}};Ve();Wt();Ul();var mC=class extends ft{construct...
JavaScript
Expect.equals(var4, 100); Expect.equals(fnVal1, 200); Expect.equals(fnVal2, 100); Expect.equals(var5, 300); Expect.equals(fnVal3, 300); Expect.equals(var6, 100); Expect.equals(fnVal4, 200); Expect.equals(var7, "string"); Expect.equals(fnVal5, "string"); Expect.equals(var8, "string"); Expect.equals...
Dart
Enable = getCfgVal(EnvKafkaSASLEnable, k, kv.Get(KafkaSASL)) == config.EnableOn kafkaArgs.SASL.User = getCfgVal(EnvKafkaSASLUsername, k, kv.Get(KafkaSASLUsername)) kafkaArgs.SASL.Password = getCfgVal(EnvKafkaSASLPassword, k, kv.Get(KafkaSASLPassword)) kafkaArgs.SASL.Mechanism = getCfgVal(EnvKafkaSASLMechanism, k,...
Go
_wallet/flutter_flow/theme_paddings.dart'; import 'package:qubic_wallet/models/qubic_list_vm.dart'; import 'package:qubic_wallet/stores/application_store.dart'; import 'package:qubic_wallet/styles/textStyles.dart'; enum CardItem { delete, rename } class IdListItemSelect extends StatelessWidget { final QubicListVm i...
Dart
uint32 OJDLKJNDJAH = 3;</code> * @return The count of oJDLKJNDJAH. */ public int getOJDLKJNDJAHCount() { return oJDLKJNDJAH_.size(); } /** * <code>repeated uint32 OJDLKJNDJAH = 3;</code> * @param index The index of the element to return. * @return The oJDLKJ...
Java
le. */ buffer = 0; alGenBuffers(1, &buffer); if(splblockalign > 1) alBufferi(buffer, AL_UNPACK_BLOCK_ALIGNMENT_SOFT, splblockalign); alBufferData(buffer, format, membuf, num_bytes, sfinfo.samplerate); free(membuf); sf_close(sndfile); /* Check if an error occured, and clean up ...
C
, " + "login_count, create_time, update_time FROM users WHERE id = #{id}") @Results({ @Result(property = "id", column = "id"), @Result(property = "username", column = "username"), @Result(property = "email", column = "email"), @Result(property = "nickname", column = "nick...
Java
., ]; let diff = matrix.iter().zip(expected.iter()).fold(0.0, |acc, (&m, &e)| acc+(m-e)*(m-e)); assert!(diff < 1e-6, "{:?} {:?}", matrix, expected); } { let matrix = upscale_matrix(&vec![2]); let expected = vec![ // col major 0.75, 0.25, 0.25, 0.75, ]; let diff = matrix.iter().zip(expected.ite...
Rust
KGSRVCStatusReq u16 QMIWDSGetPKGSRVCStatusReqSize( void ); // Get size of buffer needed for QMUX + QMIDMSGetMEIDReq u16 QMIDMSGetMEIDReqSize( void ); /*=========================================================================*/ // Fill Buffers with QMI requests /*======================================================...
C
eview .docos-mark-done-button.jfk-button-focused{background:none;border:1px solid transparent!important;border-radius:100%;height:32px;width:32px;background-color:rgba(68,71,70,.12)}.docos-xeditor .docos-streamdocoview-content .docos-streamdocoview-assigneecontainer{padding-bottom:8px}.docs-grille-gm3 .docos-assignee-y...
CSS
T_lookBitsFast(bitD, nbBits); BIT_skipBits(bitD, nbBits); return value; } /*! BIT_reloadDStream() : * Refill `bitD` from buffer previously set in BIT_initDStream() . * This function is safe, it guarantees it will not read beyond src buffer. * @return : status of `BIT_DStream_t` internal register. if statu...
C
, 178, 0.5); } .k-button-link-primary:active, .k-button-link-primary.k-active { color: #5cd7cb; } .k-button-link-primary.k-selected { color: #5cd7cb; } .k-button-link-secondary { color: #6c757d; } .k-button-link-secondary:hover, .k-button-link-secondary.k-hover { color: #9ba1a7; } .k-button-link-se...
CSS
*/ /* None */ /* */ /* OUTPUT */ /* ...
Assembly
TempoTrainer.instance() { return _tempoTrainer; } Timer? _timer; SliderRangeValues tempoRange = SliderRangeValues(80, 200); int tempoStep = 5; TempoChangeMode changeMode = TempoChangeMode.beat; //this how much beats or seconds to the next change int changeUnits = 8; bool _enable = false; DateT...
Dart
mount_component(switchselect, target, anchor); current = true; }, p(ctx2, dirty) { const switchselect_changes = {}; if (dirty[0] & /*$i18n*/ 2048) switchselect_changes.label = /*$i18n*/ ctx2[11].t("views.table.hide-fields"); if (dirty[0] & /*columns*/ 5...
JavaScript
SQL("ALTER TABLE accounts RENAME to accounts_old") execSQL("CREATE TABLE accounts (_id integer primary key autoincrement, label text not null, opening_balance integer, description text, currency text not null references currency(code), type integer references account_types(_id), color integer default -3355444,...
Kotlin
ecify the fields you want to preload (preload parameter's value should also be "true") /// ex: getById(preload:true, preloadFields:['plField1','plField2'... etc]) -> Loads only certain fields what you specified /// bool loadParents: if true, loads all parent objects until the object has no parent /// <returns>r...
Dart
/* * Copyright 2011, 2012, DFKI GmbH Robotics Innovation Center * * This file is part of the MARS simulation framework. * * MARS 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 versio...
C
review_form .comment-respond .comment-form .comment-form-rating p.stars a::before { font-size: 17px; } .single-product div.product .woocommerce-tabs .woocommerce-Reviews #review_form_wrapper #review_form .comment-respond .comment-form .comment-form-comment textarea { background-color: #fff; } .single-pr...
CSS
using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Text; using NetOffice.Tools; using NetOffice.OfficeApi.Enums; using NetOffice.OutlookApi.Tools; namespace Sample.Addin { /// <summary> /// The main addin for MS-Word. The Addin use the base class COMAddin from N...
C#
epochTS + o.msO) - self.epochInit ; else self.setToNow(o); end return o; end, setToNow = function(self) self.epochTS = time(); self.uTS = GetTime() - self.upTimeInit; -- store the millisecond offset self.msO = self.uTS - (self.epochTS - self.epochInit); end, -- now return value is not to be us...
Lua
le = element.elements[1] element.toggle.debugChannel = tonumber(channel) table.insert(self.debugElements, element) end function ADDebugSettingsPage:update(dt) ADDebugSettingsPage:superClass().update(self, dt) if self.lastDebugChannelMask ~= AutoDrive.currentDebugChannelMask then self:updateDebu...
Lua
.withSubstring(backend.displayName))) .perform(ViewActions.scrollTo()) .check(ViewAssertions.matches(ViewMatchers.isCompletelyDisplayed())) SystemClock.sleep(100) // Espresso thinks we're idle before the scroll has finished :-( Screengrab.screenshot(screenshotName) } com...
Kotlin
StartShootOlcAppPrivate() THUMB_FN(0xe03dafca, LiveViewApp_handler) // in StartLiveViewApp() //THUMB_FN(0xe018bcf8, LiveViewShutterApp_handler) // in StartLiveViewShutterApp() THUMB_FN(0xe0385fe6, PlayMovieGuideApp_handler) // in StartPlayMovieGuideApp() /** * Code that creates...
Assembly
state->has_uint32 = 0; return state->uinteger; } next = pcg64_dxsm_random_r(state->pcg_state); state->has_uint32 = 1; state->uinteger = (uint32_t)(next >> 32); return (uint32_t)(next & 0xffffffff); } void pcg64_set_seed(pcg64_state_t *state, uint64_t *seed, uint64_t *inc, int cheap...
C
le() public stores: Store[]; } const JWT = '__JWT__' type JwtMap = { __currentUser__: string, [username: string]: string } type JwtUser = { username: string, jwt: string } const getMapping = (): JwtMap => { const stored = localStorage.getItem(JWT) return stored ? JSON.parse(stored) : { __currentUser_...
Typescript
ibute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warra...
Kotlin
容 Amazon Rekognition 已经识别出数十亿张图像和视频,并使用它们不断变得越来越好。 深度学习在图像识别领域的应用可以说是过去几年中最成功的机器学习应用,而 Amazon Rekognition 利用深度学习来提供令人印象深刻的结果。 要使用它,不需要具有高水平的机器学习专业知识。 Amazon Rekognition 提供了一个简单的 API。 要使用它,将图像和一些参数一起传递到服务,就是这样。 Amazon Rekognition 只会继续变得更好。 它使用得越多,收到的输入就越多,并且从这些输入中学到的越多。 此外,Amazon 继续增强服务并向该服务添加新功能。 Amazon Rekognition 最...
Markdown
Dimen.largePadding) ) val favoriteChipData = arrayListOf( ChipData(stringResource(id = R.string.all)), ChipData(stringResource(id = R.string.favorite)), ) ChipGroup( favoriteChipData, favoriteIndex, modifier = Modifier.padding(...
Kotlin
.include "macros.inc" .section .text, "ax" # 0x80006980 - 0x803E1E60 .global __ct__Q44nw4r3snd6detail10BasicSoundFv __ct__Q44nw4r3snd6detail10BasicSoundFv: /* 8036CFE4 00368C44 C0 02 A5 B0 */ lfs f0, lbl_80642BB0-_SDA2_BASE_(r2) /* 8036CFE8 00368C48 3C A0 80 45 */ lis r5, lbl_8044C930@ha /* 8036CFEC 00368C4C 38 8...
Assembly
et_mut(aon_ent).expect("where did it go?"); score.set(crate::evaluators::clamp(sum, 0.0, 1.0)); } } #[derive(Debug, Clone)] pub struct AllOrNothingBuilder { threshold: f32, scorers: Vec<Arc<dyn ScorerBuilder>>, } impl AllOrNothingBuilder { /** Add another Scorer to this [`ScorerBuilder`]. ...
Rust
]! cmp r4, lr movne r3, #0 andeq r3, r3, #1 cmp r2, r6 bne .L2265 .L2262: ldrb ip, [r1, #19] @ zero_extendqisi2 ldrb lr, [r5, #19] @ zero_extendqisi2 ldr r0, [r5, #3944] ldr r4, [r1, #3944] ldr r2, [r5, #3948] cmp lr, ip cmpeq r0, r4 ldr r7, [r1, #3948] ldr r6, [r5, #3952] ldr r4, [r1, #3952] moveq ip, ...
Assembly
/// <param name="lightOn">True to enable the light, false otherwise.</param> public void SetOn(bool lightOn) { var uvLightClues = FindObjectsByType<UvLightClue>(FindObjectsInactive.Exclude, FindObjectsSortMode.None); foreach (var clue in uvLightClues) { ...
C#
override val support: Set<TACSymbol.Var> get() = treapSetOf(partitionVariable) + fields.flatMapTo(treapSetBuilderOf()) { it.value.support }.build() } /** * Indicates that a "scalar" value exists on the stack, but is associated with several abstract fields...
Kotlin
$26,$31,$25 dc.w $14 dc.w $10,$11,$12 dc.w $21 dc.w $2,$3,$4,$5,$6,$7,$8,$9,$a,$b ; waffenauswahl dc.w $1f,$20,$1c ; items bs
Assembly
highlights */ display: inline-block; min-width: 100%; z-index: 1; white-space: pre-wrap; padding: 0 var(--code-block-side-padding); } code.sourceCode::selection { /* Prevent bug where far right edge of text box shows as selected. */ background: transparent; } .wide > pre, .wide > div.sourceCode { /...
CSS
h:h(1P){c[1P||c.r.1P]();k c.1d([c.B.1R(c.2I).2G(),c.2z.1R(c.4S).2G()],[0,c.1x])},9g:h(1P){c[1P||c.r.1P]();k c.1d([c.B.1R(c.2I).2G(),c.2z.1R(c.4S).2G()],[-c.1x,0])},4U:h(1P){c[1P||c.r.1P]();c.4O=V;k c.1U([-c.1x,0])},7a:h(1P){c[1P||c.r.1P]();c.4O=1a;k c.1U([0,c.1x])},cH:h(1P){o(c.2z.3D==0||c.2z.3M==0)k c.9h(1P);k c.9g(1P...
JavaScript
artQuickToInterpreterBridge @ (Method* method, Thread*, SP) ldr r2, [r9, #THREAD_EXCEPTION_OFFSET] @ load Thread::Current()->exception_ // Tear down the callee-save frame. Skip arg registers. add sp, #(FRAME_SIZE_REFS_AND_ARGS_CALLEE_SAVE - FRAME_SIZE_REFS_ONLY_CALLEE_SAVE) .cfi_adjust_cfa_o...
Assembly
canRequest create() => DishActivateRssiScanRequest._(); DishActivateRssiScanRequest createEmptyInstance() => create(); static $pb.PbList<DishActivateRssiScanRequest> createRepeated() => $pb.PbList<DishActivateRssiScanRequest>(); @$core.pragma('dart2js:noInline') static DishActivateRssiScanRequest getDefault() =...
Dart
import com.watabou.glwrap.Quad; import com.watabou.input.PointerEvent; import com.watabou.noosa.Camera; import com.watabou.noosa.ColorBlock; import com.watabou.noosa.Game; import com.watabou.noosa.Group; import com.watabou.noosa.Image; import com.watabou.noosa.NoosaScript; import com.watabou.noosa.PointerArea; import ...
Java
H | +3.3V | | 3 (black) | CAN L | +3.3V | | 4 (black) | GND | GND | #### CAP & ADC IN port | Pin | Signal | Volt | | ----------------------------- | -----------------------------------...
Markdown
.node); }).forEach(function (child) { conductDown(child.key); }); // Conduct up if (parent) { conductUp(parent.key); } } (keyList || []).forEach(function (key) { conduct(key); }); var checkedKeyList = []; var halfCheckedKeyList = []; // Fill checked list var _iterat...
JavaScript
'; Future<void> setCanvasConfig( SessionID sessionId, double xCursor, double yCursor, double xCanvas, double yCanvas, double scale, int currentDisplay) async { final p = <String, dynamic>{}; p['xCursor'] = xCursor; p['yCursor'] = yCursor; p['xCanvas'] = xCanvas; p['yCanvas'] = yCa...
Dart
建列表项目 if type(v)=="table" then if view.adapter then view.adapter.addAll(v) else local adapter=ArrayListAdapter(context,android_R.layout.simple_list_item_1, String(v)) view.setAdapter(adapter) end elseif type(v)=="function" then if view.adapter then view....
Lua
em.Runtime.Serialization; namespace Nakama { /// <summary> /// Follow one or more other users for status updates. /// </summary> internal class StatusFollowMessage { [DataMember(Name = "user_ids"), Preserve] public List<string> UserIds { get; set; } [DataMember(Name = "usernames"),...
C#
ba(66, 165, 245, 0.2); } /* src/Components/ResizableGrid/ResizableGrid.css */ .ResizableGrid { --pad: 2px; --panel-gap: 3px; --sizer-margin-offset: calc(-1 * var(--panel-gap)); --expansion-scale: 3; height: 100%; width: 100%; min-height: 80px; min-width: 400px; display: grid; padding: 0; gap: var...
CSS
iPlatform( int value, Function nativeValue) => IOSSafariDismissButtonStyle._internal(value, nativeValue()); ///Makes the button title the localized string "Cancel". static const CANCEL = IOSSafariDismissButtonStyle._internal(2, 2); ///Makes the button title the localized string "Close". static...
Dart
unsigned value in the destination register a2. lbu a2, buf_size # Store the system call number in register a7. li a7, WRITE # Switch to RISC-V supervisor mode (the Linux kernel runs in this mode) and # make a request using the value stored in a7 as the system call number. ecall li a0,...
Assembly
Navigator.of(context).pop(), child: Text(localizations.cancel)), ], ); }); } //拉取桌面配置 pullConfig() { var desktopModel = widget.remoteDevice.value; HttpClients.get('http://${desktopModel.host}:${desktopModel.port}/config').then((response) { if (response.status.isSucces...
Dart
NArg_fdimf) { test_na_n_arg(&LIBC_NAMESPACE::fdimf); } TEST_F(LlvmLibcFDimTest, InfArg_fdimf) { test_inf_arg(&LIBC_NAMESPACE::fdimf); } TEST_F(LlvmLibcFDimTest, NegInfArg_fdimf) { test_neg_inf_arg(&LIBC_NAMESPACE::fdimf); } TEST_F(LlvmLibcFDimTest, BothZero_fdimf) { test_both_zero(&LIBC_NAMESPACE::fdimf); } T...
C++
le", rate_limited: false, authentication: ServerSignatures, added: 1.0, } request: { /// User ID to query. #[ruma_api(query)] pub user_id: &'a UserId, /// Profile field to query. #[serde(skip_serializing_if...
Rust
one thing is missing" sentence2 := "It's like comparing oranges to apples" input := []tokenizer.EncodeInput{ tokenizer.NewSingleEncodeInput(tokenizer.NewInputSequence(sentence1)), tokenizer.NewSingleEncodeInput(tokenizer.NewInputSequence(sentence2)), } var encodings []tokenizer.Encoding for _, i := range inp...
Go
} }); return moreComments; } void checkNoDuplicates(Submission submission) { final Set ids = <String?>{}; final comments = submission.comments!.toList(); for (dynamic comment in comments) { if (ids.contains(comment.fullname)) { fail('Multiple comments with the same ID are in...
Dart
60 002F49A0 81 83 00 00 */ lwz r12, 0(r3) /* 802F7A64 002F49A4 81 8C 00 10 */ lwz r12, 0x10(r12) /* 802F7A68 002F49A8 7D 89 03 A6 */ mtctr r12 /* 802F7A6C 002F49AC 4E 80 04 21 */ bctrl /* 802F7A70 002F49B0 80 7F 01 04 */ lwz r3, 0x104(r31) /* 802F7A74 002F49B4 81 83 00 00 */ lwz r12, 0(r3) /* 802F7A78 002F49B8 ...
Assembly
// Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 using System.Diagnostics; using System.Text; namespace IntegrationTests.Helpers; /// <summary> /// Drains the standard and error output of a process /// </summary> public class ProcessHelper : IDisposable { private readonly ManualReset...
C#
const BranchCoverage::NodeCoverageStats& actual = arg; *result_listener << "\n"; *result_listener << "Expected: " << FormatNodeStats({true, 0, 0, 0, 0}); *result_listener << "\n"; *result_listener << "Got: " << FormatNodeStats(actual); return actual.is_boolean == true; } TEST(BranchCoverage, DefaultsForUnt...
C++
: AssetRef.ImageAtlas): LoadedAsset.ImageAtlas { val refCopy = AssetRef.BufferedImage2d(ref.path, ref.format, ref.resolveSize) val result = loadBufferedImage2d(refCopy).result.mapCatching { imageAtlasTextureData(it, ref.tilesX, ref.tilesY) } return LoadedAsset.ImageAtlas(ref,...
Kotlin
AreaPostalCode { grid-area: postalCode; } .gridAreaState { grid-area: state; } .gridAreaCountry { grid-area: country; } .customAttributesForm { display: grid; row-gap: 30px; column-gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; } .customAttributeControl { grid-c...
CSS
using System.Windows.Input; using MenuTrayIconSample.Commands; namespace MenuTrayIconSample.ViewModels; /// <summary> /// Handles all the app-level commands and others. /// </summary> public sealed class AppViewModel : ViewModelBase { private ICommand _sampleDialogCommand; private ICommand _clearCommand; ...
C#
_1062); // return; return; } IL_22fa: { // switch (m_overflowMode) int32_t L_1063 = ((TMP_Text_t86179C97C713E1A6B3751B48DC7A16C874A7B262 *)__this)->get_m_overflowMode_116(); V_121 = L_1063; int32_t L_1064 = V_121; switch (L_1064) { case 0: { goto IL_232a; } case 1: { goto IL_23...
C++
java.time.Duration import java.time.ZoneOffset @TestInstance(TestInstance.Lifecycle.PER_CLASS) @ExtendWith(MockKExtension::class) class AppConfigTest { @Test fun `default values are correct`(@RelaxedMockK env: Environment) { env.answerWithDefaultValues() AppConfig(env).apply { asse...
Kotlin
1 => write!(f, "{:>8}/(N{}ᴺ) ", per_iter, self.exponential), 2 => write!(f, "{:>8}/(N²{}ᴺ) ", per_iter, self.exponential), 3 => write!(f, "{:>8}/(N³{}ᴺ) ", per_iter, self.exponential), 4 => write!(f, "{:>8}/(N⁴{}ᴺ) ", per_iter, self.exponential), ...
Rust
s, v4.4s, v31.4s fdiv v13.4s, v5.4s, v31.4s fdiv v14.4s, v6.4s, v31.4s st1 {v8.4s, v9.4s, v10.4s}, [x1], #48 st1 {v12.4s, v13.4s, v14.4s}, [x2], #48 //fdiv v4.8h, v31.8h, v0.8h //fdiv v5.8h, v31.8h, v1.8h //fdiv v6.8h, v0.8h, v31.8h //fdiv v7.8h, v1.8h, v31.8h //st1 {v4.8h}, [x1], #16 //st1 {v5.d}[0], [x1], #8 //st1...
Assembly
st_id, subnet_test_id, NODE_1, NODE_2, NODE_3, NODE_4, SUBNET_0, SUBNET_1, SUBNET_2, SUBNET_3, SUBNET_4, SUBNET_5, }, messages::RequestBuilder, }, }; use ic_types::{ messages::CallbackId, xnet::{CertifiedStreamSlice, StreamIndex, StreamIndexedQueue}, Height, NumBytes, Registr...
Rust
/// </summary> /// <param name="ruleExecutionContext">Contains the schema model and model element to analyze</param> /// <returns> /// The problems detected by the rule in the given element /// </returns> public override IList<SqlRuleProblem> Analyze(SqlRuleExecutionCont...
C#
/* 80209CDC 0020593C D0 41 00 34 */ stfs f2, 0x34(r1) /* 80209CE0 00205940 D0 21 00 38 */ stfs f1, 0x38(r1) /* 80209CE4 00205944 D0 01 00 3C */ stfs f0, 0x3c(r1) /* 80209CE8 00205948 48 01 9D 25 */ bl func_80223A0C lbl_80209CEC: /* 80209CEC 0020594C C0 21 00 20 */ lfs f1, 0x20(r1) /* 80209CF0 00205950 C0 01 00 28...
Assembly
ody(mockito::Matcher::Json(json!({ "offset": poll_id, "count": 1, "discard_previous": true, }))) .with_header("content-type", "text/json") .with_body( json!({ "offset": poll_id, "e...
Rust
d50066,0xc8088028}}, // _woch_, rtan_, prze, _mở_, {{0x27e967f9,0x212b063c,0x7bdd6792,0x7bc9ae70}}, // stan_, _toch_, lusu, _sveu, {{0x27e967fa,0x29190e3b,0x613581d2,0x27ff811a}}, // ptan_, _unsa_, _válk, ywun_, {{0x7bdd392f,0x9f9a8008,0x27ff0086,0xc8088106}}, // nusu, nään_, _èun_, _nở_, {{0xfb...
C++
rome and Safari on OS X allow very limited // styling of `select`, unless a `border` property is set. // // // 1. Correct color not being inherited. // Known issue: affects color of disabled elements. // 2. Correct font properties not being inherited. // 3. Address margins set differently in Firefox 4+, Safari 5, a...
CSS
2, #5 vshr.s32 q0, q2, #5 vshr.u32 q0, q2, #5 vshrnb.i16 q0, q2, #5 vshrnb.i32 q0, q2, #5 vshrnt.i16 q0, q2, #5 vshrnt.i32 q0, q2, #5 vsli.8 q0, q2, #5 vsli.16 q0, q2, #5 vsli.32 q0, q2, #5 vsri.8 q0, q2, #5 vsri.16 q0, q2, #5 vsri.32 q0, q2, #5 vsub.i8 q0, q2, q1 vsub.i16 q0, q2, q1 vsub.i32 q0, q2, q1 vsub.i8 q0,...
Assembly
left:3rem}.bklist__row-section{margin-left:6rem}.bklist__vr-contents{left:6px;border-color:#ddd}.bk__stats--narrow{max-width:640px;margin:0 auto}.bk__contents-header{color:inherit;display:flex;align-items:center;overflow:hidden;margin-top:-1px;padding:1px 0 1px 5px;text-decoration:none;border-bottom:1px solid #ccc;bord...
CSS
lancerTargetGroupsResultType(); } Map<String, dynamic> toJson() { return {}; } } class DetachLoadBalancersResultType { DetachLoadBalancersResultType(); factory DetachLoadBalancersResultType.fromXml( // ignore: avoid_unused_constructor_parameters _s.XmlElement elem) { return DetachLoadBal...
Dart
#!/usr/bin/python3 -B # Copyright 2023 mjbots Robotic Systems, LLC. info@mjbots.com # # 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 # # Un...
Python
&TStructIdentifier::new("foo"))); assert_success!(o_prot.write_field_begin(&TFieldIdentifier::new("foo", TType::Bool, 1))); o_prot.write_struct_end().unwrap(); } #[test] #[should_panic] fn must_fail_if_write_struct_end_without_any_fields() { let (_, mut o_prot) = test_objects();...
Rust
/* 1E03D18 8007C750 EC775226 */ addiu $s2, $s2, %lo(D_800777E8 + 0x4) /* 1E03D1C 8007C754 0000448E */ lw $a0, 0x0($s2) /* 1E03D20 8007C758 00000000 */ nop /* 1E03D24 8007C75C 66008228 */ slti $v0, $a0, 0x66 /* 1E03D28 8007C760 95014010 */ beqz $v0, .Llevel_22_8007CDB8 /* 1E03D2C 8007C764 A...
Assembly
from aiogram import Bot from aiogram.types import BotCommand async def set_default_commands(bot: Bot): user_commands = [ BotCommand(command='start', description='Запустить бота') ] await bot.set_my_commands(user_commands)
Python
Encoder hd = new HexDumpEncoder(); srcBB.limit(srcPos + len); ByteBuffer bb = srcBB.duplicate(); // Use copy of BB System.out.println("[Raw read (bb)]: length = " + len); hd.encodeBuffer(bb, System.out); } catch (IOException e) { } } ...
Java
ifier)) => ExprKind::QualifiedMultiPartIdentifier { qualifier, parts: callee_parts, }, (false, None) => ExprKind::MultiPartIdentifier { parts: callee_parts, }, }; Some(CallNode { pos: (callee_start, call_end), callee: Box::new(ExprNode { pos: (callee_start, callee_end), kind: cal...
Rust
m ftec_tuning_attrs_enum { #define FTEC_TUNING_ATTR(id, addr, desc, conv_to, conv_from, min, max) \ id, FTEC_TUNING_ATTRS FTEC_TUNING_ATTR_NONE #undef FTEC_TUNING_ATTR }; int ftecff_init(struct hid_device*); void ftecff_remove(struct hid_device*); int ftecff_raw_event(struct hid_device*, struct hid_report*, u8*, in...
C
core.canvas.ui.moveTo(moveStep[m].x * 32 + 27, moveStep[m].y * 32 + 16); core.canvas.ui.lineTo(moveStep[m].x * 32 + 16, moveStep[m].y * 32 + 16); core.canvas.ui.lineTo(moveStep[m].x * 32 + 16, moveStep[m].y * 32 + 27); } else if (tempStep == 'lef...
JavaScript
] = {"Retorno a Thrallmar", nil, {"Volte a Thrallmar e fale com Nazgrel."}}, [10389] = {"A agonia e a escuridão", nil, {"O Magíster Falcossangre quer que você mate 10 Terríferos nos Poços de Aggonar."}}, [10390] = {"Campo-forja: Megido", nil, {"Nazgrel, em Thrallmar, quer que você ataque o Campo-forja: Megido, mate 10 ...
Lua
setButtonSubBackgroud(buttonSubBackground); a.recycle(); } } private void initView(){ View view = mInflater.inflate(R.layout.widet_num_add_sub,this,true); mEtxtNum = (TextView) view.findViewById(R.id.etxt_num); mEtxtNum.setInputType(InputType.TYPE_N...
Java
ان', ); return '$_temp0'; } @override String puzzlePuzzlesFoundInUserGames(int count, String param2) { String _temp0 = intl.Intl.pluralLogic( count, locale: localeName, other: '$count معما در بازی‌های $param2 پیدا شد', one: 'یک معما در بازی‌های $param2 پیدا شد', ); ret...
Dart
message when the provided URL is invalid or malformed. * * This provides immediate user feedback for cases where a shared or intercepted * link cannot be processed (e.g., missing scheme, unsupported protocol). * * Behavior: * - Vibrates briefly to notify the user. * - Displays a predefined invalid URL me...
Kotlin
odSignature key) => key.GetHashCode(); protected override int GetValueHashCode(DynamicInvokeMethodThunk value) => value.TargetSignature.GetHashCode(); protected override DynamicInvokeMethodThunk CreateValueFromKey(MethodSignature key) { return new DynamicInvokeMethodT...
C#
frame->tmpl->prgname, (char *)v1->val.ptr); } } delete v1; delete v2; delete v3; delete v4; delete v5; delete v6; delete v7; delete v8; } /* pagestring */ void dilfi_pgstr(dilprg *p) { dilval *v2 = p->stack.pop(); dilval *v1 = p->stack.pop(); ...
C++
--<< ====================================================================== >>-- -- Setup Module -- --<< ====================================================================== >>-- AceTimerPriest = AceTimer:AddModule() function AceTimerPriest:Initialize() ...
Lua
ND_ASYNC | SND_NODEFAULT); } } // BEGIN EPIC MOD - Custom hooks for finishing compile switch (updateError) { case LiveModule::ErrorType::NO_CHANGE: GLiveCodingServer->GetCompileFinishedDelegate().ExecuteIfBound(ELiveCodingResult::Success, L"No changes detected."); break; case LiveModule::ErrorType::CO...
C++
ilinx/Vivado/2023.2/settings64.sh vivado -mode batch -source TimeCard_NoVendIPs.tcl ``` ​ Bitstream will be built at `TimeCard_NoVendIPs/TimeCard_NoVendIPs.runs/impl_1/TimeCardTop.bit` ​ Program bitstream with Hardware Manager, OpenFPGALoader, or program it to QSPI Flash on board. **b.** Kernel driver. Clone the r...
Markdown
end if mylink then if not myTip:IsVisible() and frame:IsVisible() then myTip:SetParent(frame) myTip:SetOwner(frame, "ANCHOR_NONE") myTip:SetTemplate("Transparent") local side = "left" local rightDist = 0 local leftPos = frame:GetLeft() local rightPos = frame:GetRight() if not r...
Lua
/*********************************************************************************** Filename: crc.h ***********************************************************************************/ #ifndef CRC_H #define CRC_H #include "mbus/mbus_defs.h" // for uint16, uint8 //------------------------------------...
C
void factory_from_TemporalAccessor_invalid_noDerive() { ZonedDateTime.from(LocalTime.of(12, 30)); } @Test(expectedExceptions=NullPointerException.class) public void factory_from_TemporalAccessor_null() { ZonedDateTime.from((TemporalAccessor) null); } //----------------------------...
Java
nline;} .attention_mid_left .medal{position: relative;width: 24px;padding-right: 18px;padding-left: 4px;cursor: pointer;display: inline-block;} .attention_mid_left .arrow{position: absolute;right: 5px;top: 8px;width: 0px;height: 0px;border-width: 4px;border-style: solid;border-color: #666 transparent transparent;font-s...
CSS
则,由产权登记一方对另一方进行补偿。 第十一条 一方未经另一方同意出售夫妻共同共有的房屋,第三人善意购买、支付合理对价并办理产权登记手续,另一方主张追回该房屋的,人民法院不予支持。 夫妻一方擅自处分共同共有的房屋造成另一方损失,离婚时另一方请求赔偿损失的,人民法院应予支持。 第十二条 婚姻关系存续期间,双方用夫妻共同财产出资购买以一方父母名义参加房改的房屋,产权登记在一方父母名下,离婚时另一方主张按照夫妻共同财产对该房屋进行分割的,人民法院不予支持。购买该房屋时的出资,可以作为债权处理。 第十三条 离婚时夫妻一方尚未退休、不符合领取养老保险金条件,另一方请求按照夫妻共同财产分割养老保险金的,人民法院不予支持;婚后以夫妻共同财...
Markdown
laimRV, it's probably safe to skip over even opaque function calls // here since OptimizeInlinedAutoreleaseRVCall will confirm that they // have the same RCIdentityRoot. However, what really matters is // skipping instructions or intrinsics that the inliner could leave behind; // be conservative for no...
C++
frame.setLocation(x, y); } public class textFieldListener implements ActionListener { JSliderControl slider; public textFieldListener(JSliderControl slider) { this.slider = slider; } @Override public void actionPerformed(ActionEvent e) { try...
Java
crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about avaliable fields see [pre_fir0_coef](pre_fir0_coef) module"] pub type PRE_FIR0_COEF = crate::Reg<u32, _P...
Rust