content
stringlengths
2
6.21k
label
stringclasses
16 values
: This will make the code for the initial subscription (above this line) run on the main thread. You probably want observeOn(AndroidSchedulers.mainThread()). [SubscribeOnMain] completable.subscribeOn(AndroidSchedulers.mainThread()) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...
Kotlin
using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using AutoMapper; using DNTCaptcha.Core; using DNTCaptcha.Core.Providers; using Frapper.Common; using Frapper.Entities.Usermaster; using Frapper.Repository; using Frapper.Repository.Usermaster.Queries; using Frapper.Servic...
C#
ess: # Return a handle. a = tf.constant(10) b = tf.constant(5) c = tf.mul(a, b) h = tf.get_session_handle(c) h = sess.run(h) # Delete using a raw tensor handle. raw_h = h.get_raw_handle() f, x = tf.delete_session_tensor(raw_h) sess.run(x, feed_dict={f: raw_h}...
Python
志,使用方法见下: 选择iap_config.h文件中的`define USE_BKP_SAVE_FLAG 1 //1:使用后备寄存器存储flag标志,0:使用flash存储flag标志(之前的版本就是这样)` 注意app部分的USE_BKP_SAVE_FLAG值要和boot保持一致 # Havit.Bootstrap ## General notes 1. The file structure as well as the build scripts are taken over from Bootstrap so the update process is straightforward 2. Do not ...
Markdown
using System; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; namespace Microsoft.Reporting.WinForms { internal class AlphaPanel : Panel { private IRenderable m_background; private double m_opacity = 0.5; private Brush m_alphaFillBrush; public AlphaPanel(IRenderable backg...
C#
::Create, _ => { tracing::info!(?action, "Unhandled container action."); return None; } }; Some(ContainerEvent { event, name }) } } fn make_exposed_ports(port: u16) -> Option<HashMap<String, HashMap<(), ()>>> { let dummy: HashMap<(), ()> ...
Rust
of 2024, when writing in capital letters, ⟨ẞ⟩ or '\u1e9e' is preferred // input = input.replaceAll('ß', '\u1e9e').toUpperCase(); input = input.toUpperCase(); } if (substitutions.keys.where((key) => key.isNotEmpty).isEmpty) return input; List<String> keys = []; //Copy map to keep the original one M...
Dart
body .le-mobile[data-v-4a7351d4]{min-width:380px;height:680px;background:#fff;border:1px solid #dcdfe6;border-radius:40px;margin-right:24px;padding:38px 20px;box-sizing:border-box;margin-bottom:25px;position:relative}.le-body .le-mobile .le-mobile__img[data-v-4a7351d4]{width:340px;height:603px;border:1px solid #dcdfe6}...
CSS
", "backup": "Бэкап", "letsStrart": "Давайте начнём...", "processFiles": "Обработка файлов...", "gesture": "Жест", "playerUi": "Интерфейс плеера", "playerUiDes": "Выберите интерфейс плеера", "standard": "Стандарт", "shuffleQueue": "Перемешать очередь", "queueLoopNotDisMsg2": "Режим ц...
Dart
ar = aY, bE = ay, b7 = bC, aF = b2, aa = aq, cg = am, a1 = 1 == (0 | cq) ? 3 : 1, a6 = aS, b6 = a0, cn = bM, ak = b1, bY = bV, aM = a8, bh = cb, bZ = cr, az = ck, bK = bi, b3 = bw, ad = al, ct = co, cq = ax, aY = ar, ay = bE, bC = b7, b2 = aF, aq = aa, am = cg; continue ba; case 4: aS = a6, a0 = b6, bM = cn, b1 = ak, b...
JavaScript
ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic) }; static_assert(alignof(DFBaseWeapon_PlayWeaponFireMontage) == 0x000008, "Wrong alignment on DFBaseWeapon_PlayWeaponFireMontage"); static_assert(sizeof(DFBaseWeapon_PlayWeaponFireMontage) == 0x000010, "Wrong size on DFBaseWeap...
C++
/** * A spreadsheet can contain multiple sheets, each sheet has an array of rows. */ export interface WorkbookJSON { [sheetNumber: number]: WorkbookRow[]; } export const isPast = (date?: Date): boolean => { return !!date && date.getTime() < Date.now(); }; export const newDateInXMinutes = (minutes: number): Dat...
Typescript
GFhzCARIf8uVN3J5Heh1VM%2BHlko2y%2FHBxF0NJolfo38eDuJJxbf0ro%2FnMurh8hM%2FupH4tdT8zciOFsTC8SAgQoJfRxKzCuvfw0k%2F8MDx7xqUyez%2BS48ESIN7Ky6OUpfAtrxzhx03UR4m0c%2FZF7tnKW2mma4l9yuthTSIZIvxPi6EcpZW0PM0xtOzjo%2Bf4GPfv4r1qNqAUFYs9diJLBC1CIa7FZx8fUlwI22LuNv%2FfLbKMAOftH9TwRXg6%2FiCDAAAAAElFTkSuQmCC"); }.yui3-skin-night .yui3-dia...
CSS
quest) = HelloReply { message = "Hello ${request.name}" } } } fun main() { val port = System.getenv("PORT")?.toInt() ?: 50051 val server = HelloWorldServer(port) server.start() server.blockUntilShutdown() } /* * Copyright 2020 gRPC authors. * Copyright (c) ...
Kotlin
/***************************************************************************** Copyright 2018 The TensorFlow.NET Authors. All Rights Reserved. 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 Licen...
C#
self._Machine = Machine @property def SpecConfigInfos(self): return self._SpecConfigInfos @SpecConfigInfos.setter def SpecConfigInfos(self, SpecConfigInfos): self._SpecConfigInfos = SpecConfigInfos def _deserialize(self, params): self._Machine = params.get("Machine") ...
Python
*/ public String getYonghuPhoto() { return yonghuPhoto; } /** * 设置: 科研人员头像 */ public void setYonghuPhoto(String yonghuPhoto) { this.yonghuPhoto = yonghuPhoto; } /** * 获取: 年龄 */ public Integer getAge() { return age; } /** * 设置: 年龄 */ public void setAge(Integer age) { this.age...
Java
#!/usr/bin/env python import sys def il(n): return n+1 def ol_den(n): return n # for decode def ol_dec(n): return n+1 def s(n): return n if __name__ == "__main__": mode = sys.argv[1] with open(sys.argv[2]) as f: lines = f.readlines() phone_count = 0 disambig_count = 0 for line in lines: ...
Python
'Right-IntCapsule-Ant': 156, 'Left-IntCapsule-Pos': 157, 'Right-IntCapsule-Pos': 158, 'Left-Cerebral-WM-unmyelinated': 159, 'Right-Cerebral-WM-unmyelinated': 160, 'Left-Cerebral-WM-myelinated': 161, 'Right-Cere...
Python
val locRegistry: LocRegistry, private val locInteractions: LocInteractions, ) : MessageHandler<OpLoc> { private val logger = InlineLogger() private val OpLoc.interactionOp: InteractionOp get() = when (op) { 1 -> InteractionOp.Op1 2 -> InteractionOp.Op2 ...
Kotlin
d_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; #[cfg(any(feature = "v3_24", feature = "dox"))] fn connect_property_space_drawer_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId; fn connect_property_tab_width_notify<F: Fn(&Self) + 'static>(&se...
Rust
tempg[f.x][f.y - 1][f.z] = tempg[f.x][f.y][f.z] + weight; // looking south if (!reached) tmp_front.add(new Frontier(f.x, f.y - 1, f.z, 0)); } ...
Java
le serveur', url : 'URL', protocol : 'Protocole', upload : 'Télécharger', uploadSubmit : 'Envoyer sur le serveur', image : 'Image', flash : 'Animation Flash', form : 'Formulaire', checkbox : 'Case à cocher', radio : 'Bouton radio', textField : 'Champ texte', textarea : 'Zone de t...
JavaScript
PerUnit, lonlat[2] }; } /// <summary> /// Converts coordinates in projected meters to decimal degrees. /// </summary> /// <param name="p">Point in meters</param> /// <returns>Transformed point in decimal degrees</returns> protected override double[] MetersToRadians(double[] p) { var x = p[0...
C#
){padding-top:0}.tab-pane>p:last-child{margin-bottom:0}.tab-pane>pre:last-child{margin-bottom:0}.tab-content>.tab-pane:not(.active){display:none !important}div.sourceCode{background-color:rgba(233,236,239,.65);border:1px solid rgba(233,236,239,.65);border-radius:.25rem}pre.sourceCode{background-color:rgba(0,0,0,0)}pre....
CSS
da204481c10ebbbc49f78310126a0590111a4041a61657980061a6162d90001624145390103a101a4617481a862736374323032312d31302d30395431323a30333a31325a627474684c50363436342d3462746376416c686f736e204f6e6520446179205375726765727962636f624145626369782955524e3a555643493a56313a41453a384b5354305248303537484938584b57334d384b324e41443036626...
Rust
olaroids []*CHILD_POLAROID `protobuf:"bytes,12,rep,name=polaroids" json:"polaroids,omitempty"` Target *uint32 `protobuf:"varint,13,req,name=target" json:"target,omitempty"` Tasks []*CHILD_TASK `protobuf:"bytes,14,rep,name=tasks" json:"tasks...
Go
SDL_WINDOW_FULLSCREEN_DESKTOP); } #if defined(__ANDROID__) || defined(__IPHONEOS__) SDL_GetWindowSize(win, &realWidth, &realHeight); width = (realWidth - 4*charScale*dpiScale) / (charWidth*dpiScale); height = (realHeight - 4*charScale*dpiScale) / (charHeight*dpiScale); this->scre...
C++
GetContainerItemLink(bag, slot) if link then local itemstring, ignore = strmatch(link, "|Hitem:(%d-):"), false for _, exception in pairs(ShestakUIStats.JunkIgnore) do if exception == itemstring then ignore = true break end end local _, _, itemRarity, _, _, _, _, _, _, _, itemSe...
Lua
edit-icon .cm-contentContainer > div > .image-embed:nth-child(1 of div.image-embed)::after { content: "🖼️ banner"; font-size: 12px; color: var(--text-muted); } @media (hover: hover) { .markdown-source-view.banner.banner-edit-icon .cm-contentContainer > div > .image-embed:nth-child(1 of div.image-embed):hover ...
CSS
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Microsoft.SemanticKernel.Connectors.OpenAI; using Microsoft.SemanticKernel; using WebApplication1.Model; using Microsoft.AspNetCore.Http.HttpResults; namespace WebApplication1.Controllers { [Route("api/[controller]")] [ApiController] p...
C#
xternalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(DX||{}),wX=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambien...
JavaScript
"content": "ദാവൂദിന് നാം സുലൈമാനെ (പുത്രന്‍) പ്രദാനം ചെയ്തു. വളരെ നല്ല ദാസന്‍! തീര്‍ച്ചയായും അദ്ദേഹം (അല്ലാഹുവിങ്കലേക്ക്‌) ഏറ്റവും അധികം ഖേദിച്ചുമടങ്ങുന്നവനാകുന്നു." }, { "surah_number": 38, "verse_number": 31, "content": "കുതിച്ചോടാന്‍ തയ്യാറായി നില്‍ക്കുന്ന വിശിഷ്ടമായ കുതിരകള്‍ വൈകുന്...
Dart
anima::Animation>("Animation"); cdAnim2.def(luabind::tostring(luabind::self)); cdAnim2.def(luabind::const_self == luabind::const_self); cdAnim2.scope[luabind::def("create", +[](lua_State *l) { return std::make_shared<panima::Animation>(); })]; cdAnim2.scope[luabind::def( "load", +[](lua_State *l, ::udm::LinkedPr...
C++
rvice(new NetworkServerService()); serverButton.IsVisible = false; this.DiscoverServers(); } catch (Exception exception) { this.ShowErrorMenssage(exception); } } private void OnDiscoverServersClicked(object...
C#
lidate id console.log(id); const user: User | null = await userModel.findById(id); if (!user) { throw new Error('User not found.'); } return user; } // Handle User create on POST. async user_create(newUser: Object) { const user: User = await userModel.create(newUser); if (!user)...
Typescript
M(tx, p[0], zi); M(ty, p[1], zi); pack25519(r, ty); r[31] ^= par25519(tx) << 7; } function scalarmult(p, q, s) { var b, i; set25519(p[0], gf0); set25519(p[1], gf1); set25519(p[2], gf1); set25519(p[3], gf0); for (i = 255; i >= 0; --i) { b = (s[(i/8)|0] >> (i&7)) & 1; cswap(p, q, b); add(...
JavaScript
if cd != nil { items = append(items, *cd) } } return items } func canonicalizeNewConnectionGithubConfigAuthorizerCredential(c *Client, des, nw *ConnectionGithubConfigAuthorizerCredential) *ConnectionGithubConfigAuthorizerCredential { if des == nil { return nw } if nw == nil { if dcl.IsEmptyValueIndir...
Go
transform-origin: 50% 50%; transition: all 0.1s linear; } .c-accordion [aria-expanded="true"] .accordion-icon { -ms-transform: translateY(-50%) rotate(180deg); transform: translateY(-50%) rotate(180deg); } .c-accordion [aria-hidden="true"] { display: none; } .c-accordion [aria-hidden="false"] { display: b...
CSS
.8-14-27.7-14s-18.9 6.2-27.7 14c-4.2 3.7-7.7 7.5-10.2 10.3c-1.2 1.4-2.2 2.6-2.8 3.4c-.3 .4-.6 .7-.7 .9l-.2 .2 0 0 0 0 0 0c-2.1 2.8-5.7 3.9-8.9 2.8s-5.5-4.1-5.5-7.6c0-17.9 6.7-35.6 16.6-48.8c9.8-13 23.9-23.2 39.4-23.2s29.6 10.2 39.4 23.2c9.9 13.2 16.6 30.9 16.6 48.8c0 3.4-2.2 6.5-5.5 7.6s-6.9 0-8.9-2.8l0 0 0 0zm160 0l0 ...
JavaScript
掌控之中。因此指引妳回歸家園是我的榮幸,<name>。","奧格瑞瑪城中的偉大的祭司烏爾庫要妳回去見他,就在精神谷裏。"}, {"與奧格瑞瑪的烏爾庫談壹談。"}}, [5657] = {"虛弱妖術", {"家,回家去,年輕的<race>。","妳的精神領袖烏爾庫要妳回到他那兒,他要與妳談壹談。","到奧格瑞瑪城中的精神谷去找他。"}, {"與奧格瑞瑪的烏爾庫談壹談。"}}, [5658] = {"虛弱之觸", nil, nil}, [5660] = {"虛弱之觸", {"妳已離家很遠了,<class>。妳的那座地下的城市需要妳。妳的女主人,那位召喚妳回家的艾薩萊斯特需要妳回到她身邊。有些東西妳只能從她那兒學到,就像我的部落壹樣。別在...
Lua
select .el-tag__close.el-icon-close{background-color:#C0C4CC;right:-7px;top:0;color:#FFF}.el-select .el-tag__close.el-icon-close:hover{background-color:#909399}.el-table,.el-table__expanded-cell{background-color:#FFF}.el-select .el-tag__close.el-icon-close::before{display:block;-webkit-transform:translate(0,.5px);trans...
CSS
this.morphAttributes[name] = array; } // skinning if (geometry.skinIndices.length > 0) { var skinIndices = new Float32BufferAttribute(geometry.skinIndices.length * 4, 4, null); this.addAttribute('skinIndex', skinIndices.copyVector4sArray(geometry.skinIndices)); ...
Typescript
recover(this, _localctx->exception); } return _localctx; } //----------------- HogqlxTextContext ------------------------------------------------------------------ HogQLParser::HogqlxTextContext::HogqlxTextContext(ParserRuleContext *parent, size_t invokingState) : ParserRuleContext(parent, invokingState) { } ...
C++
/* * armboot - Startup Code for ARM926EJS CPU-core * * Copyright (c) 2003 Texas Instruments * * ----- Adapted for OMAP1610 OMAP730 from ARM925t code ------ * * Copyright (c) 2001 Marius Groger <mag@sysgo.de> * Copyright (c) 2002 Alex Zupke <azu@sysgo.de> * Copyright (c) 2002 Gary Jennejohn <garyj@denx.d...
Assembly
MonthDisplayStyle import dev.darkokoa.datetimewheelpicker.core.format.TimeFormatter import dev.darkokoa.datetimewheelpicker.core.format.dateFormatter import dev.darkokoa.datetimewheelpicker.core.format.timeFormatter import dev.darkokoa.datetimewheelpicker.core.now import kotlinx.datetime.LocalDateTime @Composable fun ...
Kotlin
{ color: yellow; } .ace-gruvbox .ace_marker-layer .ace_active-line { background: #3C3836; } .ace-gruvbox .ace_marker-layer .ace_selected-word { border-radius: 4px; border: 8px solid #3f475d; } .ace-gruvbox .ace_print-margin { width: 5px; background: #3C3836; } .ace-gruvbox .ace_indent-guide { backgro...
CSS
gion --- STATIC METHODS --- public static msdynmkt_journeyevent Read_Record(IOrganizationService serviceAdmin, IOrganizationService service, ITracingService tracing, Guid? recordId) { var fetchData = new { msdynmkt_journeyeventid = recordId ?? Guid.Empty }; var fetchXml = $@" <fetch version='1.0' o...
C#
#pragma once #include <boost/noncopyable.hpp> #if defined(OS_LINUX) /// https://stackoverflow.com/questions/20759750/resolving-redefinition-of-timespec-in-time-h # define timespec linux_timespec # define timeval linux_timeval # define itimerspec linux_itimerspec # define sigset_t linux_sigset_t # inc...
C
operator fun plus(other: Vec4) = Vec4( x + other.x, y + other.y, z + other.z, w + other.w ) operator fun minus(other: Vec4) = Vec4( x - other.x, y - other.y, z - other.z, w - other.w ) operator fun times(scalar: Float) = Vec4( x *...
Kotlin
/* * Copyright (c) 2021 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
C
&& read_dest) requires ipc::capnp::Deserializable<LocalType> { assert(input.has()); auto data = input.get(); SpanReader stream({data.begin(), data.end()}); auto wrapper{ipc::capnp::Wrap(stream)}; return read_dest.construct(::deserialize, wrapper); } //! Overload CustomBuildField and CustomReadField...
C
Matchfunctior("do $X ", syntax_x), // new MParse.Matchfunctior("unless $X as $Y if $Z", unless_xyz), new MParse.Matchfunctior("unless $X as $Y ", unless_xy), new MParse.Matchfunctior("unless $X ", unless_x), new MParse.Matchfunctior("do $X ?.", syntax_x), ...
Typescript
IOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAQIOgAECDoABAg6AAScbd/rEQDAHQ8dAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAIEHQACBB0AAgQdAAI...
Lua
['actuarial', '保険計理士の'], ['actuary', '保険計理士(妥当な保険料などを算出する人)'], ['actuate', '〈機械など〉\'を\'動かす / 《通例受動態で》〈動機などが〉〈人〉\'を\'行動させる,動かす'], ['acuity', '(知覚の)鋭さ,鋭敏'], ['acumen', '明敏,眼識の鋭さ'], ['acupuncture', '(特に中国の)針療法,鍼(しん)術'], ['acute', '(先の)『鋭い』,とがった / (痛み・感情などが)『激しい』,強い / (知力・感覚などが)『鋭い』,鋭敏な / (事態が)重大な / (病気が)急性の / ...
Typescript
(function(override) { var point = override.sketchObject.overridePoint(); symbol.sketchObject.setOverridePoint_editable(point, isAllOverridesDisable); }); if (isAllOverridesDisable) { enableCount ++; } else { disableCount ++; } }); ...
JavaScript
factor: Double) = Vec3( xCoord * factor, yCoord * factor, zCoord * factor ) @EventTarget fun onRender3D(event: Render3DEvent) { val rotation = RotationUtils.targetRotation ?: return val player = mc.thePlayer ?: return val eyePos = Vec3d(player.posX, player.po...
Kotlin
bx / push psw, cs, ip for iret push cs push ax pushf / old psw pop ax iret //////// / / Idle routine. / Enable interupts, and wait for something to / happen. Does not do anything to the 8259, bacause / this will be set up correctly. / //////// .globl _idle_ _idle_: sti / Interupts on. hlt / Wait fo...
Assembly
ionTool.from_defaults( fn=fn, name=self.tool.name, description=self.tool.description, fn_schema=self.tool.args_schema, ) return llama_index_tool def to_autogen_tool(self) -> Callable: """Convert the MotleyTool to an AutoGen tool. An A...
Python
import asyncio import unittest from effectpy import Pipeline, stage from effectpy.channel import Channel from effectpy.context import Context class TestPipelineIntegration(unittest.IsolatedAsyncioTestCase): async def test_pipeline_via_stream_to_channel(self): src: Channel[int] = Channel(maxsize=10) ...
Python
tps://fonts.gstatic.com/s/notosansjp/v40/-F6pfjtqLzI2JPCgQBnw7HFQei0q1xVxjfp_dakBof6Bs-tb3ab2FNISVac.49.woff2) format('woff2'); unicode-range: U+4f57-4f58, U+4f5a-4f5b, U+4f5d-4f5f, U+4f63-4f64, U+4f69-4f6a, U+4f6c, U+4f6e-4f71, U+4f76-4f7e, U+4f81-4f85, U+4f88-4f8a, U+4f8c, U+4f8e-4f90, U+4f92-4f94, U+4f96-4f9a, U+4...
CSS
st_slice(fargs, 2, #fargs) or {} local subcommand = subcommand_tbl[subcommand_key] if not subcommand then vim.notify('Unknown command: ' .. subcommand_key, vim.log.levels.ERROR, { title = 'GH Navigator' }) return end subcommand.call(args, opts) end end vim.api.nvim_creat...
Lua
cpool_add_uint_array(aux_table, m*3) end -- PUTENUMS2I handling -- We assume that several S2I-s may share the same translation table, -- hence the cache. local s2i_cache = {} function il.emit_putenums2i(o, res, varmap) local tab = il.get_extra(o) local emit = s2i_cache[tab] ...
Lua
const InputDecoration(labelText: 'Email'), ), const SizedBox(height: 12), TextField( controller: _codeController, decoration: const InputDecoration(labelText: 'Recovery Code'), ), const SizedBox(height: 20), ElevatedBut...
Dart
.class, new Value(Annotated.class))) .hasSize(1) .allMatch(hint -> hint instanceof Anno); assertThat(hintManager.fetch(Anno.class, new Value(NotAnnotated.class))) .isEmpty(); assertThat(hintManager.fetch(Anno.class, new Value(null))) .isEmpty(); } @Test void onValueTypeWithCustomAnnotation(...
Java
a {@code HashMap} instance for values-to-keys. Null keys are not permitted, * but null values are. An {@code EnumHashBiMap} and its inverse are both * serializable. * * <p>See the Guava User Guide article on <a href= * "http://code.google.com/p/guava-libraries/wiki/NewCollectionTypesExplained#BiMap"> * {@code Bi...
Java
5 0 10-1 0 .5.5 0 001 0Zm2.176 2.737c.206.44.153 1.021.15 1.538-.005.924-.057 1.849-.098 2.773a609.04 609.04 0 01-.125 2.922c-.577-.355-1.037-.605-1.457-.908-.141-.1-.242-.335-.254-.517-.097-1.097-.194-2.2-.226-3.301-.017-.695-.202-1.207-.925-1.405-.383-.1-.58-.367-.726-.735-.614-1.525-1.251-3.047-1.93-4.686 1.163.214 ...
Dart
itingController _replaceControllerFrom; final FocusNode _replaceFocusNodeFrom = FocusNode(); late final TextEditingController _replaceControllerTo; final FocusNode _replaceFocusNodeTo = FocusNode(); late final TextEditingController _semitoneController; final FocusNode _semitoneFocusNode = FocusNode(); late ...
Dart
return this.__data } } import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm"; @Entity("users") class UserEntity { @Index() @PrimaryGeneratedColumn("uuid") public id!: string; @Column({ type: "varchar", length: 64, }) public firstname!: string; @Col...
Typescript
acies)) if flag: break writer.close() print("Train Time Usage:", get_time_dif(start_time)) test(config, model, test_iter) plot_accuracy_loss( config, train_accuracies, dev_accuracies, train_losses, dev_losses ) def test(config, model, test_iter): # test model.l...
Python
={ForbiddenPage} name="forbidden" /> </Router> ``` :::note Note about roles A route is permitted when authenticated and user has **any** of the provided roles such as `"admin"` or `["admin", "editor", "publisher"]`. ::: Redwood uses the `useAuth` hook under the hood to determine if the user is authenticated. Read mor...
Markdown
time_in_secs = (double)(end_time.QuadPart-start_time.QuadPart)/(double)freq.QuadPart; return time_in_secs * 1000.0; } #else double GooTimer::getElapsed() { #warning "no support for GooTimer" return 0; } #endif /* Copyright Krzysztof Kowalczyk 2006-2007 License: GPLv2 */ /* This is a preview support for perf-t...
C++
g `valid:"MaxSize(30)"` Location string `valid:"MaxSize(30)"` Info string `form:"type(textarea)" valid:"MaxSize(255)"` Email string `valid:"Required;Email;MaxSize(100)"` PublicEmail bool `valid:""` GrEmail st...
Go
ress)); bytes.extend_from_slice(&encode_address(input.contract_address)); bytes.extend_from_slice(&input.value.to_bytes()); let methods = MethodAndTypes::parse(&method_def)?; let method_sig = method_signature(&methods); bytes.extend_from_slice(keccak(method_sig.as_bytes()).as_bytes()); let mut...
Rust
que obtuve: los mató a todos.$B$BQuiero vengarme, pero no puedo prescindir de nadie más, $N. Ve a ver a Ag\'tor a Valormok, al norte del Campamento Haldarr. Te dará más información.", ["O"] = "Entrega la carta lacrada a Ag\'tor Puñosangre en Azshara.", ["T"] = "Traición", }, [3505] = { ["D"] = "Esperaba...
Lua
1),(min-device-pixel-ratio:1.5),(min-resolution:138dpi),(min-resolution:1.5dppx) { .dropzone .dz-preview .dz-error-mark, .dropzone-previews .dz-preview .dz-error-mark, .dropzone .dz-preview .dz-success-mark, .dropzone-previews .dz-preview .dz-success-mark { background-image: url("../images/spritemap@2x.png"...
CSS
board .CodeMirror-line::selection, .cm-s-blackboard .CodeMirror-line > span::selection, .cm-s-blackboard .CodeMirror-line > span > span::selection { background: rgba(37, 59, 118, .99); } .cm-s-blackboard .CodeMirror-line::-moz-selection, .cm-s-blackboard .CodeMirror-line > span::-moz-selection, .cm-s-blackboard .CodeMi...
CSS
tom]; } else { return [0, 0, 0, 0]; } } }, 'text-align': { 'key': 'alignment', 'value': (value: string) => { return value; } } }; /** * Removes non-numeric characters from a string and returns value as a number. * For example, if the value is '20.45px', the function re...
Typescript
-edit-content-confirm{position:absolute;right:10px;bottom:8px;color:rgba(0,0,0,.45);pointer-events:none}.ant-typography-edit-content textarea{-moz-transition:none}.ant-typography ol,.ant-typography ul{margin:0 0 1em;padding:0}.ant-typography ol li,.ant-typography ul li{margin:0 0 0 20px;padding:0 0 0 4px}.ant-typograph...
CSS
# -*- coding: utf-8 -*- # Copyright 2025 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
ovrGeometry_DestroyVAO(&pappState->Scene.GroundPlane); //ovrGeometry_CreateStagePlane( // &pappState->Scene.GroundPlane, -halfWidth, -halfDepth, halfWidth, halfDepth); //ovrGeometry_CreateVAO(&pappState->Scene.GroundPlane); } public struct ovrTrackedController ...
C#
/* * Copyright 2009-2017 Alibaba Cloud All rights reserved. * * 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...
C
2rust/#read--modify--write-api).\n\nFor information about available fields see [sensitive_dma_apbperi_uchi0_pms_constrain_1](sensitive_dma_apbperi_uchi0_pms_constrain_1) module"] pub type SENSITIVE_DMA_APBPERI_UCHI0_PMS_CONSTRAIN_1 = crate::Reg<u32, _SENSITIVE_DMA_APBPERI_UCHI0_PMS_CONSTRAIN_1>; #[allow(missing_doc...
Rust
n("osd_backfill_scan_min", Option::TYPE_INT, Option::LEVEL_ADVANCED) .set_default(64) .set_description(""), Option("osd_backfill_scan_max", Option::TYPE_INT, Option::LEVEL_ADVANCED) .set_default(512) .set_description(""), Option("osd_op_thread_timeout", Option::TYPE_INT, Option::LEVEL_ADVANCED...
C++
t] public void PostTick_MoveNextWithoutAllocation() { var list = new List<IPostTickable> { new Ticker(), new Ticker() }; var exceptionHandler = new EntryPointExceptionHandler(exception => { }); var tickableLoopItem = new PostTickableLoopItem(list, exceptionHandler); ...
C#
ExtentsResponse structure represents the QueryExtents operation response type QueryExtentsResponse struct { // That: ORPCTHAT structure that is used to return ORPC extension data to the client. That *dcom.ORPCThat `idl:"name:That" json:"that"` ExtentArray []*vds.DiskExtent `idl:"name:ppExtentArray;...
Go
n; // eventUrl: GroupType extends 'outing' ? string : null; // postalCode: string; // shareUrl: string; // } // Could be used for to improve typing of Conversation // interface ConversationDefaultValues { // description: null; // metadata: {}; // displayCategory: null; // entourageType: 'contribu...
Typescript
2] = 0.0f; observation.orientation[0] = 1.0f; observation.orientation[1] = 0.0f; observation.orientation[2] = 0.0f; observation.orientation[3] = 0.0f; observation.linear_velocity[0] = 0.0f; observation.linear_velocity[1] = 0.0f; observation.linear_velocity[2] = 0.0f; observation.angular_...
C++
/* The '1' in the hint field means procedure return - software convention */ .end lbnMulN1_64 .text .align 4 .globl lbnMulAdd1_64 .ent lbnMulAdd1_64 2 /* * Arguments: $16 = out, $17 = in, $18 = len<32>, $19 = k * Other registers: $0 = product high, $1 = product low, * $2 = product high temp, $3 = input word...
Assembly
#!/usr/bin/env python # # Copyright 2016 Google Inc. All Rights Reserved. # # 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 requir...
Python
* momentumEnabled */, () { return Size(_getViewLength(_container), 1); }, Scroller.FAST_SNAP_DECELERATION_FACTOR); scroller.onDecelStart.listen(_snapToPage); scroller.onScrollerDragEnd.listen(_snapToPage); scroller.onContentMoved.listen(_onContentMoved); return node; } int _getViewLength...
Dart
dofile ("../../../../premake/amd_premake_util.lua") workspace "gu" configurations { "Debug", "Release" } platforms { "x64" } location "../build" filename ("gu" .. _AMD_VS_SUFFIX) startproject "gu" filter "platforms:x64" system "Windows" architecture "x64" project "gu" kind "StaticLib...
Lua
(total > 0) then\n CustomContainer:AddValue (actor, total)\n end\n end\n end\n\n --if not managed inside the loop, get the values of total, top and amount\n total, top = CustomContainer:GetTotalAndHighestValue()\n amount = CustomContainer:GetNumActors()\n\n --return the values\n ret...
Lua
-"+common.Bytes2Hex(address.Bytes())) err := os.MkdirAll(c.Path, os.ModePerm) if err != nil { log.Error(fmt.Sprintf("Error creating root swarm data directory: %v", err)) return } pubkey := crypto.FromECDSAPub(&prvKey.PublicKey) pubkeyhex := common.ToHex(pubkey) keyhex := crypto.Keccak256Hash(pubkey).Hex() ...
Go
} if (Game.GlobalInput.JustPressed(InputMapType.MENU_CONFIRM1) || Game.GlobalInput.JustPressed(InputMapType.MENU_CONFIRM2) || Game.GlobalInput.JustPressed(InputMapType.MENU_CONFIRM3)) { SoundManager.PlaySound("Option_Menu_Select"); ...
C#
bits, uint16_t repeat) { // Protocol uses a constant bit time encoding. sendGeneric(0, 0, // No header. kEliteScreensOne, kEliteScreensZero, kEliteScreensZero, kEliteScreensOne, 0, kEliteScreensGap, data, nbits, 38000, true, repeat, 50); } #endif #if DECODE_ELITESCREENS /...
C++
dinates); info.pos.setX(real_coordinates.x); info.pos.setY(real_coordinates.y); info.pos.setWidth(real_coordinates.width); info.pos.setHeight(real_coordinates.height); wnd_list.push_back(info); g_object_unref(window); } g_list_free(gl); return wnd_list; } static QList<WND_INFO> wi...
C++
1.8h, v1.8h, v9.8h add v2.8h, v2.8h, v10.8h add v3.8h, v3.8h, v11.8h add v4.8h, v4.8h, v12.8h add v5.8h, v5.8h, v13.8h add v6.8h, v6.8h, v14.8h add v7.8h, v7.8h, v15.8h add v8.8h, v8.8h, v16.8h sqdmulh v17.8h, v1.8h, v0.h[2] sqdmulh v18.8h, v2.8h, v0.h[2] sshr v17.8h, v17.8h, #11 sshr v18.8h, v18.8h, #11 ml...
Assembly
列呢? ### 字节序列 ![图片描述](https://doc.shiyanlou.com/courses/uid1190679-20221115-1668495661175) - 看起来是把 ascii 字符的二进制数字存进了列表 - 确认一把 ![图片描述](https://doc.shiyanlou.com/courses/uid1190679-20221115-1668495771784) - 确实如此 - 更通用的数字呢? ### 通用字节 - 任意字节 ![图片描述](https://doc.shiyanlou.com/courses/uid1190679-20221115-1668495955616...
Markdown
tests.Initialize(t)) // assert.NoError(t, tests.DB.Init()) // defer func() { // conn, err := dal.DB.DB() // assert.NoError(t, err) // assert.NoError(t, conn.Close()) // assert.NoError(t, tests.DB.DeInit()) // }() // ctx := log.Logger.WithContext(context.Background()) // userService := dao.NewUserService...
Go