content
stringlengths
2
6.21k
label
stringclasses
16 values
} } if (missingRuleNames.length > 0) { log(''); missingRuleNames.forEach(missingRuleName => { warn(`Missing rule '${missingRuleName}'`); }); } } export function lintTypeScript(): void { log('Linting TypeScript files.'); // eslint-disable-next-line @ty...
Typescript
.column-2-4 { width: var(--layout-width-2-4); } .column-3-4 { width: var(--layout-width-3-4); } .column-4-4 { width: 100%; } .column-1-6 { width: var(--layout-width-1-6); } .column-2-6 { width: var(--layout-width-2-6); } .column-3-6 { width: var(--layout-width-3-6); } .column-4-6 { w...
CSS
when (evt.midi2CCIndex) { MidiCC.OMNI_MODE_OFF -> omniMode = false MidiCC.OMNI_MODE_ON -> omniMode = true MidiCC.MONO_MODE_ON -> monoPolyMode = false MidiCC.POLY_M...
Kotlin
j_joy_fish_deepbeyond = { name = "{C:joy_synchro}最远方的魊影", text = { { "此牌和所有非「魊影」小丑牌", "回合结束时{C:attention}除外{}", "直到选择{C:attention}盲注{}", }, }, ...
Lua
k) \ prvTraceStoreEvent1(prvGetStreamBufferType(xStreamBuffer) > 0 ? PSF_EVENT_MESSAGEBUFFER_RECEIVE_FAILED: PSF_EVENT_STREAMBUFFER_RECEIVE_FAILED, (uint32_t)xStreamBuffer); #undef traceSTREAM_BUFFER_SEND_FROM_ISR #define traceSTREAM_BUFFER_SEND_FROM_ISR( xStreamBuffer, xReturn ) \ if (TRACE_GET_OBJECT_FILTER(STRE...
C
>', desc = 'Replay the last request', ft = 'http' }, { '<C-e>', '<cmd>lua require("kulala").run()<cr>', desc = 'Send the request', ft = 'http' }, { '<leader>RS', '<cmd>lua require("kulala").show_stats()<cr>', desc = 'Show stats', ...
Lua
/* * Copyright (C) 2017 Inria * * This file is subject to the terms and conditions of the GNU Lesser * General Public License v2.1. See the file LICENSE in the top level * directory for more details. */ /** * @ingroup drivers_veml6070 * @{ * * @file * @brief Device driver implementation for the VE...
C
, pub command: Option<String>, } #[derive(Serialize, Deserialize)] pub struct Storage { pub projects: Vec<Project>, } impl Storage { fn new() -> Self { Self { projects: vec![] } } pub fn init() -> Result<Self, Error> { Ok(match File::open(PathBuf::from(&*FILE_PATH)) { ...
Rust
token list. List<HashMap<DatanodeInfo, Byte>> locToIndexList = new ArrayList<>(); List<HashMap<DatanodeInfo, Token<BlockTokenIdentifier>>> locToTokenList = new ArrayList<>(); prepareBlockIndexAndTokenList(lbs, locToIndexList, locToTokenList); dm.sortLocatedBlocks(null, lbs); assertDecommnN...
Java
, entgql.SkipMutationUpdateInput), ). Optional(), field.JSON("profiles", &objects.APIKeyProfiles{}). Default(&objects.APIKeyProfiles{}). Optional(). Annotations( entgql.Skip(entgql.SkipMutationCreateInput, entgql.SkipMutationUpdateInput), ), } } func (APIKey) Edges() []ent.Edge { return []ent...
Go
ن خلال أجهزة الكمبيوتر. يتم كتابة الرمز الجيد أيضًا حتى يتمكن الآخرون، إذا كانوا مهرة ومتعلمين في مجال البرامج، من فهمه؛ ويكون هذا صحيح فقط إذا تمكن برنامج التحويل البرمجي من فهمه. سيقوم هذا المحول البرمجي، بدوره، من خلال تسلسلات معقدة موصوفة في Tech Tree، بتحويل كود المصدر إلى تسلسلات من الأحاد والأصفار التي تعمل على...
Markdown
AS HandCapsuleFB { public: //! Empty constructor for a type that is marked as "returnonly" HandCapsuleFB() {} //! Default copy constructor HandCapsuleFB(const HandCapsuleFB& rhs) = default; //! Default copy assignment HandCapsuleFB& operator=(const HandCapsuleFB& rhs) = default; //! Copy construct fro...
C++
{ expect(getLength({ length: 0.5 })).equal(0); expect(getLength({ length: 5.1 })).equal(5); }); }); describe('queryString()', () => { it('returns empty string for empty object', () => { expect(queryString({})).equal(''); }); it('returns empty string for null or undefined', () => { expect(queryString(null...
Typescript
string.char(0x0A), -- Return --string.char(0x08), -- Backspace '\\', string.char(0x1B)}; -- ESC print('Press h for Help menu'); function update() local str = getch.get(); if #str > 0 then local byte = string.byte(str,1); local index = 0; l...
Lua
resource.customizations.health.tkex.tencent.com_ImageLoader: | hs = {} if obj.status ~= nil then if obj.status.observedGeneration == nil then hs.status = "Progressing" hs.message = "Waiting for ImageLoader to finish: observed generation is empty" return hs end if obj.st...
Lua
e_of_internal_member // ignore_for_file: unnecessary_null_comparison // ignore_for_file: no_leading_underscores_for_library_prefixes import 'package:serverpod/serverpod.dart' as _i1; import 'package:serverpod_auth_core_server/serverpod_auth_core_server.dart' as _i2; abstract class LegacyExternalUserIdentifier ...
Dart
rks.0.name: (( concat meta.net "-prod" )) - jobs.job1.networks.real-prod.static_ips: (( static_ips 1 2 3 4 )) --- meta: net: real environment: prod size: 4 networks: - name: real-prod subnets: - static: [ 10.0.0.5 - 10.0.0.100 ] jobs: - name: job1 instances: 4 networks...
Go
}) export class DataService { URL: string; constructor(private http: HttpClient) { this.URL = 'https://randomuser.me/api'; } getUser() : Observable<IGetResponse>{ return this.http.get<any>(this.URL, {}).pipe( map((data: IResponse) => ({ users: data.results, firstUser: data.re...
Typescript
inal message = serializers.deserialize(jsonDecode(data as String)); controller.add(message); }); return client; } void _requestBuild(IOWebSocketChannel client, BuildTarget target) { client.sink.add( jsonEncode( serializers.serialize(BuildTargetRequest((b) => b.target = target)), ), ); clien...
Dart
Option<Box<ListNode>>> for Solution { fn solution(head: Option<Box<ListNode>>) -> Option<Box<ListNode>> { let mut fake = Some(Box::new(ListNode::new(0))); fake.as_mut().unwrap().next = head; let mut cur = &mut fake; while let Some(ref mut _cur) = cur { match _cur.next.ta...
Rust
IAL( PORTALGUN_PORTAL2_FIRED_LAST_GLOW ) CLIENTEFFECT_MATERIAL( PORTALGUN_PORTAL_MUZZLE_GLOW_SPRITE ) CLIENTEFFECT_MATERIAL( PORTALGUN_PORTAL_TUBE_BEAM_SPRITE ) CLIENTEFFECT_REGISTER_END() CPortalgunEffectBeam::CPortalgunEffectBeam( void ) : m_pBeam( NULL ), m_fBrightness( 255.0f ) {} CPortalgunEffectBeam::~CP...
C++
0x1800]; p.nattrib = p.vram[(p.lcdc << 7 & 0x400) + ((p.scy + p.lyCounter.ly()) & 0xF8) * 4 + 0x3800]; } inc(f1_, p); } static void f1(PPUPriv &p) { inc(f2_, p); } static void f2(PPUPriv &p) { p.reg0 = loadTileDataByte0(p); inc(f3_, p); } static void f3(PPUPriv &p) { inc(f4...
C++
_panel.dart'; export 'src/components/button/collection/brn_text_button_panel.dart'; export 'src/components/button/collection/brn_multiple_bottom_button.dart'; //卡片标题 export 'src/components/card_title/brn_action_card_title.dart'; export 'src/components/card_title/brn_common_card_title.dart'; //卡片内容 export 'src/compone...
Dart
int rtn = 0; // 'could not detect' int display_num = 0; FILE *fp; char *display_env = getenv("DISPLAY"); // e.g. :0 or :0.0 or :1.0 etc // parse DISPLAY number so we can go grab the right log file if (display_env[0] == ':' && display_env[1] >= '0' && display_env[1] <= '9') { display_num = display_env[1] -...
C++
::<{ NeuralBot::LENGTH }> {}, Box::new(transformations::select)); for g in 1..5 { // Evolution steps... best_genome = evolver.evolve_step(); // Test against Random Bot let results = arena::play_games::<RandomBot, NeuralBot, _, _, _>(100, &game::evaluate_win, || RandomBot {},...
Markdown
ntrol Message Protocol (ICMP). /// /// RFC 792. pub const InternetControlMessageProtocol: u8 = 1; /// Transmission Control Protocol (TCP). /// /// RFC 793. pub const TransmissionControlProtocol: u8 = 6; /// User Datagram Protocol (UDP). /// /// RFC 768. pub const UserDatagramProtocol: u8 = 17; } //! Cros...
Rust
ULayerConst for PtrOfELULayer { #[inline] fn as_raw_ELULayer(&self) -> *const c_void { self.inner_as_raw() } } impl crate::dnn::ELULayer for PtrOfELULayer { #[inline] fn as_raw_mut_ELULayer(&mut self) -> *mut c_void { self.inner_as_raw_mut() } } impl core::AlgorithmTraitConst for PtrOfELULayer { #[inline]...
Rust
tant;padding-right:0!important;width:16px!important} /* AgenticGoKit Chat Interface - Modern Chat UX Styles */ :root { /* Soft and Natural Color Palette */ --primary-50: #f0f9ff; --primary-100: #e0f2fe; --primary-200: #bae6fd; --primary-300: #7dd3fc; --primary-400: #38bdf8; --primary-500: #...
CSS
链路状态型协议。这种协议还能够有效的解决网络环路问题。 81. `MPLS`:它是一种标记交换技术,标记交换会对每个 IP 数据包都设定一个标记,然后根据这个标记进行转发。 82. `节点`:一般指链路层协议中的设备。 83. `链路`:一般把沿着通信路径连接相邻节点的通信信道称为链路。 84. `MAC 协议`:媒体访问控制协议,它规定了帧在链路上传输的规则。 85. `奇偶校验位`:一种差错检测方式,多用于计算机硬件的错误检测中,奇偶校验通常用在数据通信中来保证数据的有效性。 86. `向前纠错`:接收方检测和纠正差错的能力被称为向前纠错。 87. `以太网`:以太网是一种当今最普遍的局域网技术,它规...
Markdown
Helpers: dom', () => { it('#isSvg', () => { expect(isSvg('https://my-site.com/path/my.svg')).toBeTruthy(); expect(isSvg('/path/my.png')).toBeFalsy(); expect(isSvg('/path/svg')).toBeFalsy(); expect(isSvg('/path/my.svgo')).toBeFalsy(); expect(isSvg('/path/my.SVG')).toBeTruthy()...
Typescript
.flush(); // Ensure the value is displayed before the API call const response = UrlFetchApp.fetch(apiUrl, options); const result = JSON.parse(response.getContentText()); console.log(`Finished call: ${row}`) const answer = result.message.content.trim(); const retrievalContents = JSON.stringify(result...
JavaScript
!= NULL ) { ++iWrotePolyhedrons; } } } } return iWrotePolyhedrons; } void CStaticCollisionPolyhedronCache::ReleaseStaticPropPolyhedrons( ICollideable *pStaticProp, const CPolyhedron **pPolyhedrons, int iPolyhedronCount ) { if( pStaticProp->GetCollisionModel() != NULL ) { vcollide_t *pCollide ...
C++
ReasonCode() { // if out-of-range, return UNSPECIFIED if (reasonCode > 0 && reasonCode < values.length) { return values[reasonCode]; } else { return CRLReason.UNSPECIFIED; } } } /* * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved....
Java
.711-14.333-.01-1.44-.185-2.173-1.77-1.498-2.992.652-1.18 1.543-2.906 2.103-4.436a68.78 68.78 0 01-3.244-.778 3 3 0 111.526-5.803c3.597.946 6.215 1.39 8.75 1.402 2.524.01 5.13-.41 8.689-1.392Zm1.762 2.626a1 1 0 00-1.23-.698c-3.66 1.01-6.459 1.476-9.23 1.464-2.775-.012-5.577-.502-9.25-1.467a1 1 0 10-.508 1.934c1.51.397 ...
Dart
, MPI_COMM_WORLD, RLIMIT, msgfmt)); slic::addStreamToTag( new slic::LumberjackStream(&slic::internal::test_tag_stream, MPI_COMM_WORLD, RLIMIT, msgtagfmt), "myTag"); } if(stream_type == "Synchronized") { slic::addStreamToAllMsgLevels( new slic::SynchronizedStream(&slic::...
C++
ustom({ Expression<int>? coreId, Expression<String>? args, Expression<int>? assetId, }) { return RawValuesInsertable({ if (coreId != null) 'core_id': coreId, if (args != null) 'args': args, if (assetId != null) 'asset_id': assetId, }); } CoreExecCompanion copyWith({ Valu...
Dart
def test_invalid_kafka_config_should_fail(mini_sentry, relay_with_processing): options = { "processing": { "topics": { "__unknown": "foobar", "profiles": { "name": "profiles", "config": "does_not_exist", }, ...
Python
.3 0l128-128z"],"anchor-circle-xmark":[640,512,[],"e4ac","M320 96a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zm21.1 80C367 158.8 384 129.4 384 96c0-53-43-96-96-96s-96 43-96 96c0 33.4 17 62.8 42.9 80L224 176c-17.7 0-32 14.3-32 32s14.3 32 32 32l32 0 0 208-48 0c-53 0-96-43-96-96l0-6.1 7 7c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L97...
JavaScript
main>.section>.article>.meta.learn_more p:after,#taxon_detail #main>.section>.article>.meta.learn_more form:after{content:"\2022\0000a0";margin:0 10px 0 0}#taxon_detail #main>.section>.article>.meta.learn_more p.last:after,#taxon_detail #main>.section>.article>.meta.learn_more form.last:after{content:""}#taxon_detail #...
CSS
/* * Copyright 2010-2011 Freescale Semiconductor, Inc. * * SPDX-License-Identifier: GPL-2.0 */ #include <common.h> #include <asm/fsl_lbc.h> #ifdef CONFIG_MPC85xx /* Boards should provide their own version of this if they use lbc sdram */ static void __lbc_sdram_init(void) { /* Do nothing */ } void lbc_sdram_init...
C
track1", Instant.EPOCH)); maker.accept(newPoint("track1", Instant.EPOCH.plus(TIME_LIMIT.plusSeconds(1)))); maker.accept(newPoint("differentTrack", Instant.EPOCH.plus(TIME_LIMIT.multipliedBy(5)))); assertTrue( consumer.numCallsToAccept == 2, "there should be two \"track1\...
Java
[ebp-1328h] BYREF int srcWidth; // [esp+24h] [ebp-1324h] float radiusX; // [esp+28h] [ebp-1320h] BYREF int dstWidth; // [esp+2Ch] [ebp-131Ch] int srcHeight; // [esp+30h] [ebp-1318h] int dstHeight; // [esp+34h] [ebp-1314h] GfxImageFilter filter; // [esp+38h] [ebp-1310h] BYREF RB_VirtualToSc...
C++
yibai.github.io/wzry-material/image/btn.png);background-size:calc(14rem * var(--btn-rate)) calc(10.5rem * var(--btn-rate))}.spirit_btn-info[data-v-45d4e930]{background-position:0 0}.spirit_btn-warning[data-v-45d4e930]{background-position:0 calc(-3.5rem * var(--btn-rate))}.spirit_btn-error[data-v-45d4e930]{background-po...
CSS
if x > 768 { break } } for i := 0; i < 57; i++ { txt := fmt.Sprint(i) + ".png" if i < 10 { txt = "0" + txt } txt = "img/raylib_logo/" + txt raylibAnim = append(raylibAnim, rl.LoadTexture(txt)) } } // MARK: CORE CORE CORE CORE CORE CORE CORE CORE CORE CORE CORE CORE CORE CORE CORE CORE CORE func...
Go
01', { id: '02', visibility: false }] }], { groups: [{ id: '02', visibility: true }] } ), true).toEqual([ { id: '01', visibility: false, nodes: [ 'layer01', { id: '02', visibility: false } ] } ]); }); it('test findGroupById: should return null for empty groups array', () => { expect(...
JavaScript
ingは既に実行中です") return print(f"[HealthServer] セルフpingを開始: {interval_minutes}分間隔") async def ping_loop(): while True: try: await asyncio.sleep(interval_minutes * 60) # 分を秒に変換 await self.self_ping() ...
Python
de] } ` // Define operation operationSDL := ` query ProcessTree($node: RecursiveNode!) { processNode(node: $node) } ` // Parse schema and operation definitionDoc, report := astparser.ParseGraphqlDocumentString(schemaSDL) require.False(t, report.HasErrors(), "schema parsing failed") opera...
Go
if (extension == next_extension) { return true; } if (next_pos == extensions.npos) { break; } extensions.remove_prefix(next_pos + 1); } return false; } void Channel::writeUTF8(uint32_t code) { auto v = _utf8.encode(code); for (auto const& b :...
C++
}, autofocus: true, decoration: InputDecoration(hintText: 'Allergy Name'), ), actions: <Widget>[ TextButton( child: Text('Cancel'), onPressed: () => Navigator.of(context).pop(), ), TextButton( child...
Dart
VideoType.SCREEN_TYPE_16_9); } else if (mType == 2) { mMoreScale.setText("4:3"); GSYVideoType.setShowType(GSYVideoType.SCREEN_TYPE_4_3); } else if (mType == 3) { mMoreScale.setText("全屏"); GSYVideoType.setShowType(GSYVideoType.SCREEN_TYPE_FULL); } e...
Java
(), this.repository, this.slackWebhook, this.ciUrl ); return { success: true, result: `Queue has been created` }; } catch (err) { console.log(`ERROR: ${err.toString()}`); if (err.toString().indexOf("QueryAlreadyExists") > -1) { return { success: fals...
Typescript
<C> String.colGroup(property: KProperty<DataRow<C>>): ColumnAccessor<DataRow<C>> = columnGroup(this).ensureIsColumnGroup().columnGroup(property).ensureIsColumnGroup() /** * @include [ColGroupKPropertyDocs] {@set [CommonColGroupDocs.RECEIVER] "myColumnGroup".} */ @Deprecated(DEPRECATED_ACCESS...
Kotlin
; text-align:center;} .loginreg_main a.layer_login:hover, .loginreg_main a.layer_reg:hover { background-position:0 -35px;} .loginreg_main li{ position:relative; left:0; top:0;} .loginreg_main li span.line{ color:#176246;} .loginreg_main li a.link{ color:#176246; height:26px; line-height:26px; text-decoration:none;} .lo...
CSS
local Highlight = require("gruber-darker.highlight") local vim_hl = require("gruber-darker.highlights.vim").highlights local gruber_hl = require("gruber-darker.highlights.colorscheme").highlights ---@type HighlightsProvider local M = { highlights = {}, } function M.setup() for _, value in pairs(M.highlights) do v...
Lua
l</a></li> <li><a href="https://gitlab.com/WeSuckLess/Reactor/-/blob/master/Atoms/com.FredrikMellbin.VapourSynth/Windows/Bin/VapourSynth/vsedit-job-server-watcher.exe?ref_type=heads">Bin/VapourSynth/vsedit-job-server-watcher.exe</a></li> <li><a href="https://gitlab.com/WeSuckLess/Reactor/-/blob/master/Atoms/com.Fredrik...
Markdown
ities = severities?.convert(), ).writeTo(irOptionsFile) CodegenOptions( targetLanguage = targetLanguage, useSemanticNaming = useSemanticNaming, generateFragmentImplementations = generateFragmentImplementations, generateMethods = generateMethods?.map { GeneratedMethod.fromName(it) ?: error("...
Kotlin
TYPE_ENDURANCE = "Widerstandsmedium"; CONDUIT_TYPE_FINESSE = "Finessemedium"; CONDUIT_TYPE_MISMATCH_ENDURANCE = "Dieser Platz erfordert ein Widerstandsmedium"; CONDUIT_TYPE_MISMATCH_FINESSE = "Dieser Platz erfordert ein Finessemedium"; CONDUIT_TYPE_MISMATCH_POTENCY = "Dieser Platz erfordert ein Potenzmedium"; CONDUIT_T...
Lua
.3667605,23.5291977 37.5821037,24.4474817 36.790607,23.7670228 C34.3395063,21.6597833 30.8587163,20.3437884 26.9975803,20.3437884 C23.2572061,20.3437884 19.8737584,21.5787519 17.4375392,23.5716412 C16.5467928,24.3002944 15.6201012,23.5583844 16.1601674,22.4473116 Z' id='Squint' /> <path ...
Dart
ate::uri_ref!("") }; } /// Creates a `&'static RelRef` from a string literal. /// /// Accepts only string constants and literals. The given string *MUST* be well-formed. /// /// Example: /// /// ``` /// # use async_coap_uri::prelude::*; /// let x = rel_ref!("a/b/c?q=foobar#frag"); /// assert_eq!(x.raw_path(),"a/b/...
Rust
Values[row][i * 2 + 1]; if (rawSheetPrice !== '' && date.getTime() === sheetDate.getTime()) { row += 1; prevPrice = assetMod.conversionFn(rawSheetPrice); return prevPrice; } return prevPrice; }); ...
Typescript
(memberFeatureCallElements.getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_1_0(), typeArguments.get(0), 0); for (int i = 1; i < typeArguments.size(); i++) acceptor.accept(memberFeatureCallElements.getTypeArgumentsJvmArgumentTypeReferenceParserRuleCall_1_1_1_2_1_0(), typeArguments.get(i), i); } ...
Java
= "저주받은 땅의 불꽃", [181345] = "동부 내륙지의 불꽃", [181346] = "혈투의 전장 불꽃", [181347] = "검은바위 첨탑 불꽃", [181348] = "스트라솔름 불꽃", [181349] = "스칼로맨스 불꽃", [181350] = "모닥불", [181351] = "모닥불", [181352] = "모닥불", [181354] = "수면 장식", [181355] = "한여름 화로", [181356] = "사피론의 탄생", [181357] = "연기", [181358] = "네모난 거대 입식 장식", [181359] = "나이트 엘프 달의 수...
Lua
505] = {"联盟需要紫莲花!", nil, {"把20朵紫莲花交给丹莫罗飞机场的艾文·夜歌。"}}, [8507] = {"战地任务", nil, {"向佐拉虫巢外的铁炉堡军团报到,从布莱卡维尔上尉那里拿到签过字的战地任务文件,把它交给希利苏斯塞纳里奥要塞的唤风者卡尔东。\n\n注意:给铁炉堡军团的士兵治疗或者施放增益法术会打开你的PvP标志。"}}, [8509] = {"联盟需要阿尔萨斯之泪!", nil, {"把20棵阿尔萨斯之泪交给铁炉堡军事区的士官长戈麦恩。"}}, [8511] = {"联盟需要轻皮!", nil, {"把10块轻皮交给丹莫罗飞机场的波尼·碎石。"}}, [8512] = {"联盟需要更多轻皮!",...
Lua
= styler.GetLine(startPos); if (options.backQuotedStrings == BackQuotedString::TemplateLiteral) { // code copied from LexPython auto it = interpolatingAtEol.find(lineCurrent - 1); if (it != interpolatingAtEol.end()) { interpolatingStack = it->second; } it = interpolatingAtEol.lower_bound(lineCurrent); ...
C++
; import java.awt.image.ComponentColorModel; import java.awt.image.DataBuffer; import java.awt.image.DataBufferByte; import java.awt.image.IndexColorModel; import java.awt.image.WritableRaster; import java.io.File; import java.io.IOException; import java.net.URL; import com.scratchdisk.util.IntegerEnumUtils; import co...
Java
Hash: String, relativePath: String): File { val commitFolder = File(storageFolder, "snapshots/$commitHash") return File(commitFolder, relativePath) } @JvmStatic fun getPointerPathParent(storageFolder: File?, sha: String): File { return File(storageFolder, "snapshots/$sha") } ...
Kotlin
this.canvas.setAttribute('height', `${Game.GAME_SIZE}`); this.context = this.canvas.getContext('2d'); document.body.appendChild(this.canvas); this.direction = 'right'; this.handlerLock = false; this.drawSnake = this.drawSnake.bind(this); this.keysHandler = this.keysHandler.bind(th...
Typescript
'address group create ' + '--description aaaa ' + '--address 10.0.0.1 --address 2001::/16 ' + name, parse_output=True, ) self.addCleanup(self.openstack, 'address group delete ' + newname) self.assertEqual(name, cmd_output['name']) self.ass...
Python
// Copyright 2023 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
C
", placeholder: "Enter film poster URL", + value: "{draft_film.get().poster}", + oninput: move |evt| { + draft_film.set(Film { + poster: evt.value.clone(), + ...
Markdown
} }) playerWindow.title = "正在读取字幕列表" playerWindow.isAlwaysOnTop = false playerWindow.toBack() playerWindow.size = Dimension(10, 10) playerWindow.location = Point(0, 0) playerWindow.layout = null playerWindow.contentPane.add(mediaPlayerComponent)...
Kotlin
.id == id)?; let menu = gio::Menu::new(); for artist in song.artists.iter() { menu.append( Some(&format!("{} {}", *labels::MORE_FROM, artist.name)), Some(&format!("song.view_artist_{}", artist.id)), ); } menu.append(Some(&*labels:...
Rust
e case of old-style instances: The result of Py_TYPE is going to be the global shared <type instance> that all old-style classes have, while the return of Instance_Class() will be the Python-level class object. The two are unrelated. */ ...
C++
* @param {Number} iVal * @returns {Number} * @private */ function _sAssign(sVal, iVal) { if (sVal > 0 && sVal < iVal) { return sVal; } else { return iVal; } } /** * Draw an image to the main canvas of the p5js sketch * * @method image * @param {p5.Image} img the image to display * @param ...
JavaScript
t32_t shorts) { periph_enable_shorts(i2c, shorts); } /** @brief Disable shortcuts. * * Because this peripheral only supports two mutually exclusive * shortcuts, the second argument is ignored and all shortcuts are * cleared. * * @param[in] i2c uint32_t i2c peripheral base. * @param[in] shorts uint32_t Short...
C
/////////////////////////////////////////////////////////////////////////////// // Name: wx/unix/stackwalk.h // Purpose: declaration of wxStackWalker for Unix // Author: Vadim Zeitlin // Modified by: // Created: 2005-01-19 // RCS-ID: $Id$ // Copyright: (c) 2005 Vadim Zeitlin <vadim@wxwindows....
C
args[0] _ = v12 v13 := args[1] _ = v13 tmp14 := checkDerefVar(var_clojure_DOT_core_print_DASH_meta) tmp15 := lang.Apply(tmp14, []any{v12, v13}) _ = tmp15 tmp16 := lang.Apply(lang.WriteWriter, []any{v13, "#"}) _ = tmp16 tmp17 := checkDerefVar(var_clojure_DOT_core_class) tmp18 := lang.Apply...
Go
if (!item.bindGroup) { return false; } if (item.disabled && skipDisabled) { return value.contains(item.name); } return checked ?? !value.contains(item.name); }).toList(); final List<T> names = checkedChildren.map((FlanCheckbox<T> e) => e.name!).toList(); ...
Dart
/* * Copyright 2008-2015 Arsen Chaloyan * * 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 ag...
C
.0 + invGamma1pm1(t - 1.0)); } else { /* * From the recurrence relation * Gamma(x) = Gamma(x + n + 1) / [x * (x + 1) * ... * (x + n)] * then * Gamma(x + n + 1) = 1 / [1 + invGamma1pm1(x + n)], * which requir...
Java
िज वर्य वृत्तम् । नृपम् विना राज्यम् अरण्य भूतम् ।कुमारम् इक्ष्वाकु सुतम् वदान्यम् ।त्वम् एव राजानम् इह अभिषिन्चय ॥२-६७-३८॥ अयोध्याकाण्डम् =============================== ## Chapter 12 / सर्गः १२## ###Slōka 1 / श्लोक १### ततः श्रुत्वा महाराजः कैकेय्या दारुणम् वचः । चिन्तामभिसमापेदे मुहूर्तम् प्रतता...
Markdown
} } if (p == this->segment_list_.end() || os->is_unique_segment()) { Output_segment* oseg = this->make_output_segment(elfcpp::PT_LOAD, seg_flags); if (os->is_large_data_section()) oseg->set_is_large_data_segment(); oseg->add_output_section_to_load(this, os, seg_flags);...
C++
Grilletes rúnicos de gólems", [12551] = "Capa escudo de piedra", [12552] = "Herreruelo Aterrabojas", [12553] = "Botas Caminapresto", [12554] = "Manos del Heraldo exaltado", [12555] = "Grebas Belicutor", [12556] = "Botas de Suma Sacerdotisa", [12557] = "Bufas de acero de ébano", [12558] = "Collar de plumas azules", [125...
Lua
_v2 .txp_barrage_title{color:#eee;font-size:14px;font-weight:700;text-align:center}.page_video .txp_popup_barrage_v2 .txp_barrage_title .text,.page_video .txp_popup_barrage_v2 .txp_barrage_title .txp_text{display:inline-block;position:relative}.page_video .txp_popup_barrage_v2 .txp_barrage_title .text:after,.page_video...
CSS
// This file is part of KWIVER, and is distributed under the // OSI-approved BSD 3-Clause License. See top-level LICENSE file or // https://github.com/Kitware/kwiver/blob/master/LICENSE for details. /// \file /// \brief Definition for PDAL point cloud writer #ifndef KWIVER_ARROWS_PDAL_POINTCLOUD_IO_H_ #define KWIVER_...
C
rerDid': return 'DID recomandator'; case 'pleaseEnterTheReferrersDid': return 'Te rugăm să introduci un Identificator Descentralizat (DID) valid al recomandatorului'; case 'thisDidIsInvalid': return 'Acest DID este invalid'; case 'nicknameFormatTips': return 'porecla nu poate fi goală și lungimea nu poate depă...
Dart
.config.JvmTarget.JVM_13 import org.jetbrains.kotlin.config.JvmTarget.JVM_14 import org.jetbrains.kotlin.config.JvmTarget.JVM_15 import org.jetbrains.kotlin.config.JvmTarget.JVM_16 import org.jetbrains.kotlin.config.JvmTarget.JVM_17 import org.jetbrains.kotlin.config.JvmTarget.JVM_1_6 import org.jetbrains.kotlin.config...
Kotlin
ee; } .theme-base16-atelier-seaside .hljs-emphasis { color: #ad2bee; font-style: italic; } .theme-base16-atelier-seaside .hljs-meta, .theme-base16-atelier-seaside .hljs-meta .hljs-keyword, .theme-base16-atelier-seaside .hljs-meta .hljs-string { color: #e619c3; } .theme-base16-atelier-seaside .hljs-meta .hljs-keyword...
CSS
ling mode with uniform eights n = k * 10; sk = createUnweightedSketch(k, n); assertFalse(sk.isEmpty()); assertEquals(sk.getN(), n); assertEquals(sk.getCumulativeWeight(), n); assertEquals(sk.getC(), k, EPS); assertEquals(sk.getResult().size(), sk.getK()); for (final Integer val : sk.getR...
Java
-- OPENTOMB GLOBAL SOUND ID MAPPER SCRIPT -- by Lwmte, May 2014 -------------------------------------------------------------------------------- -- All TR games shared some sound sample indexes. Mostly, it's generic and menu -- sounds. While sound samples themselves may have changed, index always remain -- the same. H...
Lua
_unknown = input.read_u16().context("Can’t read mystery word")?; let meta_size = input.read_u16().map(u32::from).context("Can’t read cast metadata size")?; let info_size = input.read_u16().map(u32::from).context("Can’t read cast info size")?; let kind = { let value = input.read_u8()...
Rust
other tools with TAB key. You should notice the focused element has a ${ansi.format('red', [ 'red' ])} border. If it's a button you can press enter to "click" it. Also, in general you can also use the mouse to active stuff. Some tools open in a modal (like this help). For closing the modal, press 'q' or 'E...
Typescript
rSize(imageCacheDir); fileSize += FileUtils.getDirSize(sectionCacheDir); if(fileSize > 0) cacheSize = FileUtils.formatFileSize(fileSize); clearCachePref = findPreference("pref_clearCache"); clearCachePref.setSummary(cacheSize); clearCachePref.setOnPreferenceClickListener(new OnPreferenceClickListener() ...
Java
setterName, value); @pragma("vm:external-name", "LibraryMirror_members") external List<dynamic> _computeMembers(reflectee); } class _LibraryDependencyMirror extends Mirror implements LibraryDependencyMirror { final LibraryMirror sourceLibrary; var _targetMirrorOrPrefix; final List<CombinatorMirror> com...
Dart
op (seen on Nexus 5 and emulator), SoundPool slows down // significantly after loading ~6 sounds, taking several seconds for each additional call to // load(). To avoid blocking the main thread (and delaying the app launch), this method is // called in an async thread from the main activity. // See http...
Java
"Failed to delete %(name)s and %(amount)s other items.": "Mist\u00f3kst a\u00f0 ey\u00f0a %(name)s og %(amount)s \u00f6\u00f0rum atri\u00f0um.", "Failed to delete %(name)s and 1 other item.": "Mist\u00f3kst a\u00f0 ey\u00f0a %(name)s og einu \u00f6\u00f0ru atri\u00f0i.", "Failed to delete %(name)s.": "Mis...
JavaScript
.0f }, // { "sp", strlen("sp"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_SP, 1.0f }, // { "pt", strlen("pt"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_PT, 1.0f }, // { "in", strlen("in"), Res_value::TYPE_DIMENSION, Res_value::COMPLEX_UNIT_IN, 1.0f }, // { "mm", strlen("mm"), Res_...
Java
e import forpdateam.ru.forpda.model.data.remote.IWebClient import forpdateam.ru.forpda.model.data.remote.api.NetworkRequest import forpdateam.ru.forpda.model.data.remote.api.NetworkResponse import forpdateam.ru.forpda.model.data.remote.api.RequestFile import forpdateam.ru.forpda.model.data.remote.api.attachments.Attach...
Kotlin
}] {$2} {$3} Gets Statue of Ehekatl", fire = "[Palmia Times {$1}] Noyel Big Fire, Someone Releases Giant", }, alias = { message = "Your favorite alias♪1", title = "Voting Box", hint = "Enter [Vote] ", choice = "Choice", vote = "Vote", submit ...
Lua
::new(None), destructor: None, } } } pub(crate) unsafe extern "C" fn resource_dispatcher<I: Interface>( _implem: *const c_void, resource: *mut c_void, opcode: u32, _msg: *const wl_message, args: *const wl_argument, ) -> c_int where I: Interface + From<Resource<I>> + AsRe...
Rust