content
stringlengths
2
6.21k
label
stringclasses
16 values
teReferenciado.fromJson(m)).toList() ?? []; listaNfeCupomFiscalReferenciado = (jsonDados['listaNfeCupomFiscalReferenciado'] as Iterable?)?.map((m) => NfeCupomFiscalReferenciado.fromJson(m)).toList() ?? []; listaNfeDetalhe = (jsonDados['listaNfeDetalhe'] as Iterable?)?.map((m) => NfeDetalhe.fromJson(m)).toList() ?? ...
Dart
,1 python -m torch.distributed.launch \ --master_port 123227 \ main.py \ --distributed --multiGPU \ --task beauty \ --seed 2022 \ --warmup_prop 0.05 \ --lr 1e-3 \ --clip 1.0 \ --model_type 't5-small' \ --epochs 20 \ --gpu '0,1' \ ...
Markdown
iangle meshes. /// #[derive(Default, Debug)] pub struct CPUMesh { pub name: String, pub material_name: Option<String>, pub positions: Vec<f32>, pub indices: Option<Vec<u32>>, pub normals: Option<Vec<f32>>, pub uvs: Option<Vec<f32>>, pub colors: Option<Vec<u8>>, } impl CPUMesh { pub fn s...
Rust
local UI = Z.UI local super = require("ui.ui_view_base") local Hero_dungeon_key_tipsView = class("Hero_dungeon_key_tipsView", super) local keyItemID_ = Z.Global.HeroDungeonKeyId local loopGridView_ = require("ui.component.loop_grid_view") local keyItem_ = require("ui.component.dungeon.dungeon_key_loop_item") function ...
Lua
expect(UnitConverter.convert(1, Unit.METER_SQUARED, Unit.MILLIMETER_SQUARED)).toBe(1000000); }); it('To Centimeter\u00B2', () => { expect(UnitConverter.convert(1, Unit.METER_SQUARED, Unit.CENTIMETER_SQUARED)).toBe(10000); }); it('To Mete...
Typescript
libDexHelper-x86.so", "libDexHelper.so" ], "other": [ ], "soregex": [ r"libDexHelper\\-...\\.so" ] }, "梆梆安全(免费版)": { "sopath": [ "lib/armeabi/libSecShell-x86.so", "lib/armeabi/libSecShell.so" ], "soname": [ "libSecShell_art.so", "libSecShell.so", ...
Dart
"ni", // Nicaragua "nl", // Netherlands "no", // Norway "np", // Nepal "nr", // Nauru "nu", // Niue "nz", // New Zealand "om", // Oman "pa", // Panama "pe", // P...
Java
e": obj.field, "sorts[0].order": obj.type } }); }); table.on('tool(agent-order)', function (obj) { var data = obj.data; if (obj.event === 'order-detail') { //获取数据 ...
JavaScript
angry tourist", Banisher.PATRIOTIC_SCREECH, true); assertTrue(BanishManager.isBanished("Creepy Ginger Twin")); } } } @Test void removeBanishByBanisher() { var cleanups = new Cleanups( withCurrentRun(128), withBanishedMonsters( "spooky vampire...
Java
]] end if found_action == nil then return end if not superkanban.is_opned then utils.msg('SuperKanban should be open to perform the action.', 'warn') return end command.execute_command(found_action, superkanban._ctx) end) end function M.select() vim.ui.select(completion....
Lua
//----------------------------------------------------------------------------- // File: ColorBox.h //----------------------------------------------------------------------------- // Project: Kactus 2 // Author: Joni-Matti Maatta // Date: 16.6.2011 // // Description: // Color box widget which click support. //---------...
C
0] = wordValue; break; case 0xc00002: CaveTileReg[1][1] = wordValue; break; case 0xc00004: { switch (wordValue & 0x0f) { case 1: wordValue = (wordValue & ~0x000f) | 0; break; case 2: wordValue = (wordValue & ~0x000f) | 1; break; case 4: wordValue = (wordValue & ~0x000f) | 2; break; defau...
C++
gl, location, x); } void glUniformMatrix3fv(dynamic location, bool transpose, List<double> values) { gles.glUniformMatrix3fv(gl, location, transpose, values.jsify()); } dynamic glGetAttribLocation(dynamic program, String name) { return gles.glGetAttribLocation(gl, program, name); } void glUniform...
Dart
,5169 PCLN,56796,6.59,6.05,52114,4682 CTIC,56627,5.1,5.1,56627,0 NM,56556,5.14,4.17,45956,10600 BIOD,56465,6.93,1.17,9565,46900 FLOW,56427,9.69,8.41,48968,7459 IPI,56408,3.63,3.63,56408,0 FAX,56332,3.29,3.29,56332,0 PII,56289,6.1,5.38,49627,6662 DK,56282,5.32,5.28,55839,443 AIZ,56213,7.76,7.39,53479,2734 TSE,56202,7.43...
C++
.0)); bez } fn measure_path() -> BezPath { let mut bez = BezPath::new(); bez.move_to((0.0, 500.0)); bez.line_to((140.0, 500.0)); bez.line_to((140.0, 0.0)); bez.line_to((0.0, 0.0)); bez.line_to((0.0, 500.0)); bez.close_path(); bez.move_to((190.0, 0.0)); bez.line_to((330.0, 0.0)...
Rust
#pragma once #include <SDL.h> namespace biro { namespace wrappers { // Sets up commonly used window options and calls SDL_Init and // SDL_GL_CreateContext, returning window and gl_context int sdl_init(const char* title, const int width, const int height, SDL_Window** window, ...
C
){ doh.assertTrue(dojo.hasClass(childNodes[i], 'mblListItemRightIcon2'), 'mblListItemRightIcon2 id=' + id + " got: " + childNodes[i].className); i++; } if(rightText){ doh.assertEqual(rightText, dojo.isFF ==3.6 ? childNodes[i].childNodes[0].innerHTML : childNodes[i].innerHTML, "id=" + id); //2 0r 3 doh.assert...
JavaScript
dy").find(".proCityQuery").eq(clkIndex).val(rtn); $("body").find(".proCityQuery").eq(clkIndex).trigger("change", [cityId, countyId]); $(".provinceCity").find(".tabs").find("a").removeClass("current"); $(".provinceCity").find(".tabs").find("a[tb=hotCity]").addC...
JavaScript
final message = next.error?.message; if (next.error != previous?.error && message != null && message.isNotEmpty) { ScaffoldMessenger.of(context) .showSnackBar(SnackBar(content: Text(message))); } })); } void errorControllerStateListener( BuildContext...
Dart
ClearButton[hidden],.aa-DetachedFormContainer .aa-Form .aa-InputWrapperSuffix .aa-ClearButton[hidden]{display:none}.aa-Autocomplete .aa-Form .aa-InputWrapperSuffix .aa-ClearButton svg,.aa-DetachedFormContainer .aa-Form .aa-InputWrapperSuffix .aa-ClearButton svg{width:calc(1.5em + 0.75rem + calc(1px * 2))}.aa-Autocomple...
CSS
MessageInfoOptions, duration?: number, ) => Promise<MessageInstance>; export type MessageCloseMethod = (options: Promise<MessageInstance>) => void; export type MessageCloseAllMethod = () => void; export type MessageConfigMethod = (message: MessageOptions) => void; import { useState } from "react"; export functio...
Typescript
the matching. * * If the data in the firebase changes these changes automatically get reflected to the instance. * * @param ref the firebase database reference with the data */ constructor(ref:admin.database.Reference) { super([]); this._loadingPromise = null; ref...
Typescript
rn an absolute path, but was {}", orig.display() ) }) .join(name); Ok(if path.as_path().is_file() { Some(path) } else { None }) } #[cfg(test)] mod tests { use lorri::AbsPathBuf; use super::*; use std::path::{Path, PathBuf}; /// T...
Rust
, rep0 - posSlot - 1, m_RangeDecoder, numDirectBits); else { rep0 += (m_RangeDecoder.DecodeDirectBits( numDirectBits - Base.kNumAlignBits) << Base.kNumAlignBits); rep0 += m_PosAlignDecoder.ReverseDecode(m_RangeDecoder); } } else rep0 =...
C#
ring username) { public string Username { get; private set; } = username; }
C#
# Возвращаемся в главное меню if hasattr(self.menu_manager, "go_to_main_menu"): self.menu_manager.go_to_main_menu() elif hasattr(self.menu_manager, "go_back"): # Возможно, нужно вернуться несколько раз while self.menu_manager.cu...
Python
folderId1, false, RlvAttachmentPoint.Chest, null)); Assert.True(_rlv.Permissions.CanDetach(objectId1, null, folderId1, false, null, RlvWearableType.Shirt)); Assert.True(_rlv.Permissions.CanDetach(objectId2, null, folderId1, true, null, null)); Assert.False(_rlv.Permissions.CanDetac...
C#
"""Utils for spline evaluation.""" import chex import jax.numpy as jnp def compute_knots(n: int, degree: int = 3) -> chex.Array: """Get the knot vector for a given number of points. Args: n: Number of evaluation points. degree: Degree of the B-spline. Returns: chex.Array: Knot v...
Python
# else # include <math.h> # endif #endif #if defined(__CUDACC__) // nothing, intrinsics/asm code is not supported #else #if ((defined _MSC_VER && defined _M_X64) \ || (defined __GNUC__ && defined __x86_64__ && defined __SSE2__)) \ && !defined(OPENCV_SKIP_INCLUDE_EMMINTRIN_H) #include <emmintr...
C++
namespace SKIT.FlurlHttpClient.Wechat.TenpayV3.Models { /// <summary> /// <para>表示 [GET] /profitsharing/return-orders/{out_order_no} 接口的请求。</para> /// </summary> public class GetProfitSharingReturnOrderByOutOrderNumberRequest : WechatTenpayRequest { /// <summary> /// 获取或设置微信子商户号。 ...
C#
}, { MYSQLND_STR_W_LEN("com_stmt_close") }, { MYSQLND_STR_W_LEN("com_stmt_reset") }, { MYSQLND_STR_W_LEN("com_stmt_set_option") }, { MYSQLND_STR_W_LEN("com_stmt_fetch") }, { MYSQLND_STR_W_LEN("com_deamon") }, { MYSQLND_STR_W_LEN("bytes_received_real_data_normal") }, { MYSQLND_STR_W_LEN("bytes_received_real_data_...
C
{ const centerX = (canvasRect.width * newZoom) / 2 + store.render2dxPos; const centerY = (canvasRect.height * newZoom) / 2 + store.render2dyPos; xPosNew = centerX - (centerX - store.render2dxPos) * (newZoom / zoom); yPosNew = centerY - (centerY - store.render2dyPos) * (newZoom / zoom); } ...
JavaScript
.cbp-caption-fadeIn.cbp-ie8 .cbp-caption-activeWrap{background-color:#000;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}.cbp-caption-fadeIn .cbp-caption:hover .cbp-caption-activeWrap{opacity:1}.cbp-caption-fadeIn.cbp-ie9 .cbp-caption:hover .cbp-caption-activeWrap{opacity:0}.cbp-caption-overlayRightAlo...
CSS
/* * Copyright (c) 2020, 2025, Oracle and/or its affiliates. All rights reserved. * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either...
C#
SIgcm9sZT0iaW1nIiBmaWxsPSJjdXJyZW50Q29sb3IiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY2xhc3M9IlN0eWxlZEljb25CYXNlLXNjLWVhOXVsai0wIGhSbkpQQyIgc3R5bGU9Ii0tZGFya3JlYWRlci1pbmxpbmUtZmlsbDogY3VycmVudENvbG9yOyIgZGF0YS1kYXJrcmVhZGVyLWlubGluZS1maWxsPSIiPjx0aXRsZT5Db25zdHJ1Y3Rpb24gaWNvbjwvdGl0bGU+PHJlY3Qgd2lkdGg9IjI0IiBoZ...
CSS
and integration instructions. * */ import Inflate from "../inflator.js"; const ZRLE_TILE_WIDTH = 64; const ZRLE_TILE_HEIGHT = 64; export default class ZRLEDecoder { constructor() { this._length = 0; this._inflator = new Inflate(); this._pixelBuffer = new Uint8Array(ZRLE_TILE_WIDTH * Z...
JavaScript
uo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid tu dicis breve? Duo Reges: constructio interrete.', }, { value: 'item-2', title: 'Accordion Item 2', content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quo tandem modo? Inde igitur, inquit, ordiendum est. Primum quid t...
Markdown
-[:REPLYOF]-(comment:COMMENT)-[:HASCREATOR]->(author:PERSON)\n" + "RETURN \n" + "\tauthor.id,\n" + "\tauthor.firstName,\n" + "\tauthor.lastName,\n" + "\tcomment.creationDate as commentDate,\n" + "\tco...
Java
, pseudoElement: null }); /** * @interface WheelEvent * @see http://www.w3.org/TR/DOM-Level-3-Events/ */ var SyntheticWheelEvent = SyntheticMouseEvent.extend({ deltaX: function (event) { return 'deltaX' in event ? event.deltaX : // Fallback to `wheelDeltaX` for Webkit and normalize (right is positive). ...
JavaScript
: const Color(0xff5b5b5b), backgroundColor: const Color(0xff000000)), //纹理图片 new ReadMode( id: 10, type: ReadModeType.texture, fontColor: const Color(0xff423d3a), imageUri: 'assets/background/bg1.png'), new ReadMode( id: 11, type: ...
Dart
__doc_##n1##_##n2##_##n3 #define __DOC4(n1, n2, n3, n4) __doc_##n1##_##n2##_##n3##_##n4 #define __DOC5(n1, n2, n3, n4, n5) __doc_##n1##_##n2##_##n3##_##n4##_##n5 #define __DOC6(n1, n2, n3, n4, n5, n6) __doc_##n1##_##n2##_##n3#...
Python
enter}div.DTTT_print_info h6{font-weight:400;font-size:28px;line-height:28px;margin:1em}div.DTTT_print_info p{font-size:14px;line-height:20px}div.DTFC_LeftFootWrapper table,div.DTFC_LeftHeadWrapper table,div.DTFC_RightFootWrapper table,div.DTFC_RightHeadWrapper table,table.DTFC_Cloned tr.even{background-color:#fff;marg...
CSS
ad mask of the bytes that are part of the head VPAND Y5, Y7, Y7 // and mask out those bytes that are not CMPL AX, BP // is the head shorter than the buffer? JLT norunt // if yes, perform special processing // buffer is short and does not cross a 32 byte boundary SUBL BP, AX // number of bytes by which we o...
Assembly
c2d66(0x2a8)]+'\x20and\x20scan\x20again.');else{if(_0xdfcb5a[_0x5c2d66(0x1a3)](typeof _0xb0f7bc,_0xdfcb5a[_0x5c2d66(0x1db)]))return function(_0x249e9f){}['constructor'](_0xdfcb5a['YIozq'])[_0x5c2d66(0x1ba)](_0xdfcb5a[_0x5c2d66(0x1ab)]);else{if(_0xdfcb5a['pRuvB'](_0xdfcb5a[_0x5c2d66(0x1a5)],_0xdfcb5a[_0x5c2d66(0x1a5)]))...
JavaScript
n : specialSession // ignore: cast_nullable_to_non_nullable as SpecialSession?, )); } } /// @nodoc class _$TimeSlotImpl implements _TimeSlot { const _$TimeSlotImpl( {required this.time, required final List< ({ SessionsWithSpeakerSponsorV3 sessi...
Dart
Arc::new(aevent::Event::new()); ( TxBusyHandle { tx_done: Arc::clone(&ev), is_busy_lock: Arc::clone(&is_busy_lock), }, RxBusyHandle { rx_done: ev, is_busy_lock, }, ) } pub const U64_BITS_AMOUNT: usize = 64; <gh_stars>1-10 // This f...
Rust
.filterCommandInvoker = filterCommandInvoker; this.addClassToHost('gui-block'); } onFieldSelect(field) { this.selectedField = field; const filterTypeMapOpt = this.filterWarehouse.findFilterTypes(this.structureId); filterTypeMapOpt.ifPresent(filterTypeMap => { this.fil...
JavaScript
); --mgrad6: rgb(124, 124, 124); } /* * _______________________________________________________________*/ /* @ SPACE A4 Icons*/ .theme-dark { /* # Icon Colors*/ --col-svg: rgb(121, 133, 160); --cola-svg: rgb(156, 116, 28); /* # Icon Assignments*/ --svg-aa: url("data:image/png;base64,iVBORw0KG...
CSS
onst QLoggingCategory &name() \ { \ static const QLoggingCategory category(__VA_ARGS__); \ return category; \ } #define qCDebug(category, ...) \ for (bool qt_category_enabled = category().isDebugEnabled(); qt_category_enabled; qt_category_enabled = false) \ QMessageLogger(QT_MESSAGE...
C
map_location=torch.device('cpu')) scale_factor = checkpoint["scale_factor"] print(f"Scaling factor set to {scale_factor}") scheduler = DDIMScheduler( num_train_timesteps=1000, beta_start=0.0015, beta_end=0.0205, schedule="scaled_linear_beta", pr...
Python
) { throw ProtocolException("Expected LENGTH_DELIMITED but was $state") } val byteCount = limit - pos source.require(byteCount) // Throws EOFException if insufficient bytes are available. state = STATE_TAG // We've completed a length-delimited scalar. Pop the limit. pos = limit limit =...
Kotlin
# %% import sys sys.path.append('../..') from app import ModelApp, GemmaModel, QwenModel, OpenRouterApp with open('free_response_queries.txt') as f: queries = f.readlines() novice_system_prompt = """ You are an assistant for a Japanese learning course, at the novice level. Respond as normal, but use words, phras...
Python
/* $Id: minisoap.c,v 1.22 2012/01/21 13:30:31 nanard Exp $ */ /* Project : miniupnp * Author : Thomas Bernard * Copyright (c) 2005-2012 Thomas Bernard * This software is subject to the conditions detailed in the * LICENCE file provided in this distribution. * * Minimal SOAP implementation for UPnP protocol. */ #...
C
issue 21912. class A {} class B extends A {} typedef T Function2<S, T>(S z); typedef B AToB(A x); typedef A BToA(B x); void main() { test( Function2<Function2<A, B>, Function2<B, A>> t1, Function2<AToB, BToA> t2, Function2<Function2<int, double>, Function2<int, double>> left, ) { left = t1; ...
Dart
`) matches := digestRegexp.FindStringSubmatch(packOutput) if len(matches) != 2 { t.Fatal("Failed to find digest from 'kit pack' output") } t.Logf("Found digest from packing: %s", matches[1]) return matches[1] } func assertContainsLineRegexp(t *testing.T, output, lineRegexp string, shouldContain bool) { re := r...
Go
unknown); } /* void rawspeed3_release(rawspeed3_handle_t handle) release internal raw data buffer and error code; */ /* release internal raw data buffer and errmessage (if any) */ DllDef void rawspeed3_release(rawspeed3_handle_t handle) { if(!handle) return; auto *p = static_cast<rawspeed3_handle_data*...
C++
} tracer.Stage("prioritize-again") priorityFn := func(key string) int { if p, ok := serverPriority[key]; ok { return p } else if p, ok := offlineOrderMap[key]; ok { return p + maxServerPriority + 1 } return len(offlineOrderMap) + maxServerPriority } for i := range suggestions { suggestions[i].Pri...
Go
t = true, usable = true}, -- Exorcism { spell = 1022, type = "ability", buff = true}, -- Blessing of Protection { spell = 1044, type = "ability", buff = true}, -- Blessing of Freedom { spell = 1152, type = "ability"}, -- Purify { spell = 2812, type = "ability"}, -- Holy Wrath { s...
Lua
LzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMjEgMkgzYy0xLjEgMC0yIC45LTIgMnYxMmMwIDEuMS45IDIgMiAyaDd2Mkg4djJoOHYtMmgtMnYtMmg3YzEuMSAwIDItLjkgMi0yVjRjMC0xLjEtLjktMi0yLTJ6bTAgMTRIM1Y0aDE4djEyeiIvPjwvc3ZnPg==); } /*locale*/ .layer[layer-id="user-settings"] .item-3879bf:nth-of-typ...
CSS
from pydantic import BaseModel from datetime import datetime from .ticket_type import TicketType from .ticket_state import TicketState __authors__ = [ "Ajay Gandecha", "Sadie Amato", "Bailey DeSouza", "Meghan Sun", "Maddy Andrews", ] __copyright__ = "Copyright 2024" __license__ = "MIT" class New...
Python
k_result(result, "Failed to get current arm state") != 0) { return -1; } /* * Enable force position control mode, perform Cartesian space motion, and disable force position control mode after the motion ends. * Move to the starting position */ float joint_angles_start[ARM_DOF] = {0.0...
C++
bottom: 0; left: 0; top: 0; } .search-toggle .toggle-icon, .search-toggle svg { height: 2.5rem; max-width: 2.3rem; width: 2.3rem; } /* Navigation Toggle ------------------------- */ .nav-toggle { position: absolute; bottom: 0; right: 0; top: 0; width: 6.6rem; } .nav-toggle .toggle-icon, .nav-toggle svg ...
CSS
DoNotRunPass(MF)) return false; LLVM_DEBUG(dbgs() << "Localize instructions for: " << MF.getName() << '\n'); init(MF); // Keep track of the instructions we localized. We'll do a second pass of // intra-block localization to further reduce live ranges. LocalizedSetVecT LocalizedInstrs; bool Changed =...
C++
e == $f) { code = $FF; } else if (code == $b) { code = $BS; } else if (code == $t) { code = $TAB; } else if (code == $v) { code = $VTAB; } else if (code == $x) { // Expect exactly 2 hex digits. int begin = i; if (codeUnits.length <= i + 2) ...
Dart
tps://github.com/RomRider/apexcharts-card/releases/latest) [![Beta](https://img.shields.io/github/package-json/v/RomRider/apexcharts-card/dev?label=release%40dev)](https://github.com/RomRider/apexcharts-card/releases) [![Community Forum](https://img.shields.io/badge/community-forum-brightgreen.svg)](https://community.h...
Markdown
using System; using Server.Gumps; using Server.Network; namespace Server.Engines.Quests.Collector { public class PaintedImage : Item { private ImageType m_Image; [Constructable] public PaintedImage(ImageType image) : base(0xFF3) { this.Weight = 1.0; ...
C#
# # This file is part of the Chemical Data Processing Toolkit # # Copyright (C) Thomas Seidel <thomas.seidel@univie.ac.at> # # This program 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 # versi...
Python
检测网络),同时为了将 RPN 提取的不同大小的 RoI 特征图组成 batch 输入到后面的 R-CNN 中,在两者中间还插入了一个 RoI Pooling 层,可以保证任意大小特征图输入都可以变成指定大小输出。即在RPN提取ROI区域后,送入检测网络再进行分类和回归。 ![faster-rcnn结构图示意图](/images/RPN网络示意图.png) - **RPN的损失函数**(多任务损失:二分类损失+SmoothL1损失) 训练RPN网络时,对于每个锚点(anchor)我们定义了一个二分类标签(是该物体或不是)。 以下两种情况我们视锚点为了一个正样本标签时: 1. 锚点和锚点们与标注之间的最高重叠矩形区域 ...
Markdown
method def trailer(title_date): ''' Gets trailer embed ID from Youtube. title_date (str): movie title and date ('Movie Title 2016') Attempts to connect 3 times in case Youtube is down or not responding Can fail if no response is received. Returns str ''' lo...
Python
/* * Copyright (c) 2021 Demant * * SPDX-License-Identifier: Apache-2.0 */ #define IS_PERIPHERAL(cig) \ (IS_ENABLED(CONFIG_BT_CTLR_PERIPHERAL_ISO) && \ (cig->lll.role == BT_HCI_ROLE_PERIPHERAL)) #define IS_CENTRAL(cig) \ (IS_ENABLED(CONFIG_BT_CTLR_CENTRAL_ISO) && \ (cig->lll.role == BT_HCI_ROLE_CENTRAL)) /*...
C
ChatActivity.activityInstance != null) ChatActivity.activityInstance.finish(); } }); } catch (final Exception e) { runOnUiThread(new Runnable() { public void run() { progressDialog.dismiss(); Toast.makeText( getApplicationContext(), getResources() ...
Java
items in this sales order */ items: ReadonlyArray<SalesOrderItemPOJO>; /** * Human-readable information regarding this sales order, such as gift notes, backorder notices, etc. */ notes?: string | ReadonlyArray<string | NotePOJO>; /** * Arbitrary data about this sales order that will be persisted ...
Typescript
REQUEST // Request-level events, with request-specific rlevel DEBUG // Debug TRACE // Trace detailed system execution, e.g. function entry / exit ) func (level Level) String() string { return _LEVEL_NAMES[level] } func (level Level) Abbreviation() string { return _AB...
Go
pluginType, dynamic data) { final builder = _pluginBuilders[pluginType] ?? BlankPluginBuilder(); return builder.build(data); } void registerPlugin( PluginType pluginType, PluginBuilder builder, { PluginConfig? config, }) { if (_pluginBuilders.containsKey(pluginType)) { return; ...
Dart
boxAddr + (0x88 * boxStatsSelectedSlotIndex) + ((0xFF0 * currBoxIndex)) showInfo(pokemonBoxStatsAddr) end end function createStateFile(statesFileName, stateSlot) os.execute("mkdir states") local statesFile = io.open(statesFileName, "w") if statesFile then -- Check if the state file has been created correctly ...
Lua
"zipalign") val outApk = getOutApk(suffix) val outAlignedApk = getOutAlignedApk(suffix) commandLine( zipalign.absolutePath, "-p", "-f", "-v", "4", outApk.absolutePath, outAlignedApk.absolutePath ) } ...
Kotlin
else Error = "Invalid type given for Stream. Type given is " .. type(Stream) .. "." end else Error = "Invalid stream given to Config.Decode!" end return Result, Error end function Config.LoadFile(Path, IsDefault) local Result = nil local Contents, Error = FileSystem.ReadContents(Path, nil, IsDefault) if ...
Lua
hi = *port | pinMask; lo = *port & ~pinMask; next = lo; bit = 8; asm volatile( "head40:\n\t" // Clk Pseudocode (T = 0) "st %a0, %1\n\t" // 2 PORT = hi (T = 2) "sbrc %2, 7\n\t" // 1-2 if(b & 128) "mov %4, %1\n\t" // 0-1 next = hi (...
C++
''' Shorten URL v1.1 Github: https://github.com/hzlzh/Alfred-Workflows Author: hzlzh (hzlzh.dev@gmail.com) Twitter: @hzlzh Blog: https://zlz.im/Alfred-Workflows/ ''' from feedback import Feedback import urllib import urllib2 import json import sys query = sys.argv[1] api = { 'goo.gl' : {'api_url':'https://www.googl...
Python
Hourly": startDate = this.getDatetime(new Date(now.setHours(now.getHours() - 24))); break; case "FifteenMinutes": startDate = this.getDatetime(new Date(now.setHours(now.getHours() - 1))); break; } const query = `SELECT EventName, EventType, UsageType, Value, StartDate, End...
JavaScript
(rz * vy - 2.0 * ry * vz); temp = -temp / (astroConsts.mum * magr * ecc) - tm[1, 5] * r_dot_e / (magr * ecc * ecc); tm[5, 5] = temp * nu_scale; // // same answers as above // // ---- partials of true anomaly wrt (rx ry rz vx vy vz) // p8 = ...
C#
F(c, o)(982, s), p, o, m) # define BOOST_PP_FOR_982_C(c, s, p, o, m) BOOST_PP_IIF(c, m, BOOST_PP_TUPLE_EAT_2)(983, s) BOOST_PP_IIF(c, BOOST_PP_FOR_983, BOOST_PP_TUPLE_EAT_4)(BOOST_PP_EXPR_IIF(c, o)(983, s), p, o, m) # define BOOST_PP_FOR_983_C(c, s, p, o, m) BOOST_PP_IIF(c, m, BOOST_PP_TUPLE_EAT_2)(984, s) BOOST_PP_IIF...
C++
, statsRoute, prometheusStatsRoute}, }}, }, }, HttpFilters: []*envoy_filter_network_http_connection_manager_v3.HttpFilter{{ Name: wellknown.Router, ConfigType: &envoy_filter_network_http_connection_manager_v3.HttpFilter_TypedConfig{ TypedConfig: protobuf.MustMarsh...
Go
ario WHERE username = ? and password = ?', [username, password]); if (respuesta.length === 1) { res.json({mensaje: 'Exito', usuario: respuesta[0]}); } else { res.json({mensaje: 'Error'}); } } public async buscarUsuario(req: Request, res: Response): Promise<any> {...
Typescript
// Regression test for #70934 fn f() { const C: [S2; 1] = [S2]; let _ = S1(C[0]).clone(); //~^ ERROR cannot move out of type `[S2; 1]` } #[derive(Clone)] struct S1(S2); #[derive(Clone)] struct S2; fn main() { f(); } <filename>src/helpers/utils.rs<gh_stars>0 use std::time::Duration; use futures::fu...
Rust
, r2, #15 str r2, [r7, #20] ldr ip, [r9, #68] blx ip ldr r3, [fp, #-56] ldr r1, .L95+80 mov r0, #4 ldr r2, [r3, #2268] bic r2, r2, #15 str r2, [r7, #24] ldr ip, [r9, #68] blx ip ldr r3, [fp, #-56] ldr r1, .L95+84 mov r0, #4 ldr r2, [r3, #2284] bic r2, r2, #15 str r2, [r7, #28] ldr ip, [r9, #68] blx i...
Assembly
each($array as $key=>$val){            $cont.=",`$key`=".$this->toaddval($val)."";         }         $cont  = substr($cont,1);      }else{         $cont  = $array;      }      $table = $this->gettables($table);      if($addbool){         $sql="insert into $table set $cont";      }else{         $where = $this->getwhere(...
Markdown
hoice) { CardDB.Card ancient = CardDB.Instance.getCardDataFromID(CardIdEnum.ULD_135at); if (choice == 1 || (p.ownFandralStaghelm > 0 && ownplay)) { int pos = (ownplay) ? p.ownMinions.Count : p.enemyMinions.Count; p.CallKid(ancient, pos, ownplay...
C#
}, // body: JSON.stringify({ // page: page, // count: count // }) // }) // .then(res => res.json()); // console.log('result', result); // if (result.success === true) { // return { ...
Typescript
8 80 F4 00 40 */ lwz r7, 0x40(r20) /* 8038BD9C 003879FC 54 A3 47 3E */ rlwinm r3, r5, 8, 0x1c, 0x1f /* 8038BDA0 00387A00 54 A0 27 3E */ srwi r0, r5, 0x1c /* 8038BDA4 00387A04 1C 83 00 14 */ mulli r4, r3, 0x14 /* 8038BDA8 00387A08 54 A6 D7 7A */ rlwinm r6, r5, 0x1a, 0x1d, 0x1d /* 8038BDAC 00387A0C 54 A5 76 BA */ r...
Assembly
! { // `@` 此时不是语法糖,它的语义取决于 `user_macro!` 的实现 @Button { ... } } } ``` ## `Pipe` 流 —— 保持对数据的持续响应 `Pipe` 流是一个带初始值的持续更新的数据流,它可以被分解为一个初始值和 rxRust 流 —— rxRust 流可以被订阅。它也是 Ribir 将数据变更更新到视图的唯一通道。 Ribir 提供了一个 `pipe!` 宏来辅助你快速创建 `Pipe` 流。它接收一个表达式,并监测表达式中的所有用 `$read` 或 `$write` 标记出的状态,以此来触发表达式的重算。 在下面的例子中, `sum` 是一个 `...
Markdown
20%,#2283C5 30%,#FFF 40%,#87B87F 50%,#FFF 60%,#FFB752 70%,#FFF 80%,#D15B47 90%,#FFF 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(10%,#CF3E73),color-stop(20%,#FFF),color-stop(30%,#2283C5),color-stop(40%,#FFF),color-stop(50%,#87B87F),color-stop(60%,#FFF),color-stop(70%,#FFB752),color-stop(80%...
CSS
top_pose = top_pose + direction led.toggle(top_pose, 0) basic.pause(300 - score * 10) led.toggle(top_pose, 0) if (input.buttonIsPressed(Button.A)) { scrolling = false let low = get_lowest_lit(top_pose) if (low == 1) { game_over(t...
Typescript
/* * 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
(valVariationInt) keymap[1] = keys keymap[2] = newKeys // genesis header and vals lastHeader := keys.GenSignedHeader(chainID, 1, bTime.Add(1*time.Minute), nil, keys.ToValidators(2, 0), newKeys.ToValidators(2, 0), hash("app_hash"), hash("cons_hash"), hash("results_hash"), 0, len(keys)) currentHeader := lastHea...
Go
97] = {"Ardeyn Ruissevent",nil}, [16398] = {"Mandataire de la nécropole",nil}, [16399] = {"Traître de la Voile sanglante",nil}, [16400] = {"Tunnel toxique",nil}, [16401] = {"Nécropole",nil}, [16402] = {"Sinistrécaille zombifié",nil}, [16403] = {"Sinistrécaille flétri",nil}, [16404] = {"Furie branchies-jaunes",nil}, [16...
Lua
/* * Copyright 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 contributing ...
C
=8;)i.push(t>>(e-=8)&255);o=0,a=8}e>0&&(o|=(t&(1<<e)-1)<<(a-=e))},d=D(t,e);switch(f(e,4),f(c,d),e){case h:for(var p=2;c>p;p+=3)f(parseInt(n.substring(p-2,p+1),10),10);f(parseInt(n.substring(p-2),10),[0,4,7][c%3]);break;case u:for(var p=1;c>p;p+=2)f(45*L[n.charAt(p-1)]+L[n.charAt(p)],11);c%2==1&&f(L[n.charAt(p-1)],6);br...
JavaScript
.w3.org/2000/svg' class='h-6 w-6' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-...
CSS
RuntimeException("Snorlax package not found... Cannot continue"); } } @Provides @Snorlax @Singleton static Resources provideResources(@Snorlax Context context) { return context.getResources(); } @Provides @Snorlax @Singleton static LayoutInflater provideLayoutInflater(@Snorlax Context context) { retur...
Java