content
stringlengths
2
6.21k
label
stringclasses
16 values
foreground color.")),jke=H("button.separator",Ft(WX,.4),_("buttonSeparator","Button separator color.")),C0=H("button.background",{dark:"#0E639C",light:"#007ACC",hcDark:null,hcLight:"#0F4A85"},_("buttonBackground","Button background color.")),qke=H("button.hoverBackground",{dark:Xc(C0,.2),light:lm(C0,.2),hcDark:C0,hcLi...
JavaScript
/*- * Copyright (C) 2016 Cavium Inc. * All rights reserved. * * Developed by Semihalf. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * ...
Assembly
using Microsoft.Extensions.Logging; using CmlLib.Core; using CmlLib.Core.VersionMetadata; using CmlLib.Core.Installers; using Windows.System; using CmlLib.Core.VersionLoader; using CommunityToolkit.Mvvm.DependencyInjection; using CmlLib.Core.ProcessBuilder; using System.Diagnostics; namespace Emerald.CoreX; public cla...
C#
Metadata in the calculation. */ override fun equals(other: Any?): Boolean { if (this === other) return true if (javaClass != other?.javaClass) return false other as MethodNode if (owner != other.owner) return false if (name != other.name) return false if (descriptor != other.descriptor)...
Kotlin
# 创建agnostic-mask图像 mask_image = Image.fromarray(mask * 255) mask_image = mask_image.convert("RGB") mask_image = pil2tensor(mask_image) temp = (torch.clamp(mask_image, 0, 1.0) * 255.0).round().to(torch.int) temp = torch.bitwise_left_shift(temp[:,:,...
Python
t newrelic:index/nrqlAlertCondition:NrqlAlertCondition foo 538291:6789035:baseline * ``` * * // For `static` conditions * * ```sh * $ pulumi import newrelic:index/nrqlAlertCondition:NrqlAlertCondition foo 538291:6789035:static * ``` */ export class NrqlAlertCondition extends pulumi.CustomResource { /** ...
Typescript
ota() { return dsQuota; } /** Set this directory's quota * 设置目录的配额 * @param nsQuota Namespace quota to be set * @param dsQuota diskspace quota to be set * */ void setQuota(long newNsQuota, long newDsQuota) throws QuotaExceededException { nsQuota = newNsQu...
Java
vHue<T>) { self.into_components() } } impl<Wp: WhitePoint, T: FloatComponent, H: Into<LuvHue<T>>, A: Component> From<(T, T, H, A)> for Alpha<Lchuv<Wp, T>, A> { fn from(components: (T, T, H, A)) -> Self { Self::from_components(components) } } impl<Wp: WhitePoint, T: FloatComponent, A: C...
Rust
yaml" val outputYamlFileNameGroupB = "openapi-groupB.yaml" buildFile.writeText( """$baseBuildGradle bootRun { args = ["--spring.profiles.active=multiple-grouped-apis"] } openApi{ groupedApiMappings = ["http://localhost:8080/v3/api-docs.yaml/grou...
Kotlin
if (old_flags & DELAY_SLOT_CONDITIONAL) { gen_delayed_conditional_jump(&ctx); } else if (old_flags & DELAY_SLOT) { gen_op_clr_delay_slot(); gen_jump(&ctx); } else if (ctx.flags & BRANCH_EXCEPTION) { gen_jump_exception(&ctx); } else if ((ctx.flags & (BRANCH | BRANCH_CONDITIONAL)) == 0) { ...
C
("Success passed")) // .catch(() => console.log("Success failed")); // // tries = 0; // before = Date.now(); // await waitForTruthy(callback, { interval: 10, timeout: 10 }) // .then(() => console.log("Timeout test failed")) // .catch(() => console.log("Timeout test passed")); // // tries = 0; // b...
Typescript
List.add('active'); } }); this.multiselectOptions.addEventListener('click', (event) => { event.stopPropagation(); }); } private getOptionsValue(): AuctionStatus[] { const statuses: AuctionStatus[] = []; this.statusElements.forEach((element, inde...
Typescript
(dest, idxn, src, degs): n = degs.numel() w = src.size(1) assert n == src.size(0) and w == dest.size(1) assert type(src)==type(dest) and isinstance(degs, torch.cuda.LongTensor) and isinstance(idxn, torch.cuda.LongTensor) function, stream = get_kernel_func('avgpool_bw_kernel', avgpool_bw_kern...
Python
pub inclusion: Option<HashSet<&'a str>>, /// Source files to be excluded, to exclude nothing, set it to empty pub exclusion: HashSet<&'a str>, } impl<'a> SourceFilter<'a> { fn should_include_file(&self, filename: &str) -> bool { !self.exclusion.contains(filename) && self ...
Rust
t, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: left = av.Int() case reflect.String: left, _ = strconv.ParseInt(av.String(), 10, 64) } bv := reflect.ValueOf(b) switch bv.Kind() { case reflect.Array, reflect.Chan, reflect.Map, reflect.Slice: right = int64(bv.Len()) case reflect.Int, reflect.I...
Go
.short _0222DFD6 - _0222DD7E - 2 ; case 16 .short _0222E010 - _0222DD7E - 2 ; case 17 .short _0222E054 - _0222DD7E - 2 ; case 18 .short _0222E094 - _0222DD7E - 2 ; case 19 _0222DDA6: mov r0, #0x50 bl sub_02031588 mov r0, #2 bl SetSoftResetDisableMask add r0, r4, #0 bl ov71_02230B88 ldr r0, [r4, #0x4c] add r...
Assembly
use_latest_restorable_time); } #[allow(unused_mut)] let mut scope_1991 = writer.prefix("DBInstanceClass"); if let Some(var_1992) = &input.db_instance_class { scope_1991.string(var_1992); } #[allow(unused_mut)] let mut scope_1993 = writer.prefix("Port"); if let Some(var_1994) = &i...
Rust
11, LCD_DELAY, 120, 1, 0x29, LCD_DELAY, 120, 0 }; // GC9A01 const unsigned char ucGC9107InitList[]PROGMEM = { 1, 0xEF, 2, 0xEB, 0x14, 1, 0xFE, 1, 0xEF, 2, 0xEB, 0x14, 2, 0x84, 0x40, 2, 0x85, 0xff, 2, 0x86, 0xff, 2, 0x87, 0xff, 2, 0x88, 0x0a, 2, 0x89, 0x21, ...
C++
ils", ARCADE_BLUE); assets.set("ghost.3.color.normal.dress", ARCADE_ORANGE); assets.set("ghost.3.color.normal.eyeballs", ARCADE_WHITE); assets.set("ghost.3.color.normal.pupils", ARCADE_BLUE); assets.set("ghost.color.frightened.dress", ARCADE_BLUE); assets.set(...
Java
applicable law or agreed to in writing, software\\n * distributed under the License is distributed on an \\"AS IS\\" BASIS,\\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\\n * See the License for the specific language governing permissions and\\n * limitations under the License.\\n */\\n...
JavaScript
/* * File: indicator.mqtt.h * * Created on: 05 September 2023 * Author: Spencer Yan * * Description: the class of MQTT * * Copyright: © 2023, Seeed Studio */ #ifndef indicator_mqtt_H #define indicator_mqtt_H #include "nvs.h" #include "view_data.h" #include "config.h" #include "freertos/FreeRTOS.h" #incl...
C
phaistos.tparrows.tp-leftarrow:before { content: "\e82c"; margin-left:-2px; } .hephaistos.tparrows.tp-rightarrow:before { content: "\e82d"; margin-right:-2px; } /* BULLETS */ .hephaistos.tp-bullets { } .hephaistos.tp-bullets:before { content:" "; position:absolute; width:100%; height:100%; background:...
CSS
(10000000000)}}) _, _, contract, err := DeployTuple(auth, sim) if err != nil { t.Fatalf("deploy contract failed %v", err) } sim.Commit() check := func(a, b interface{}, errMsg string) { if !reflect.DeepEqual(a, b) { t.Fatal(errMsg) } } a := TupleS{ A: big.NewInt(1), B: ...
Go
nd "fuzz". Lastly, for filters, the "match" pattern type matches wildcard names, exact matches, and prefixed matches. In summary, the resource pattern type can be MATCH, LITERAL, or PREFIXED, with Kafka replying with UNKNOWN when you use one that does not exist. THE ENTITY PORTION: Entities are made up of a principal...
Go
true, weekdays : 'S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý'.split('_'), weekdaysShort : 'S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát'.split('_'), weekdaysMin : 'S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá'.split('_'), weekdaysParseExact : true, longDateFormat : { ...
JavaScript
+ IS_SELECTED); allButtons.item(1).simulate('click'); Y.Assert.isFalse(allButtons.item(0).hasClass(BUTTON_SELECTED), 'Button 1' + IS_SELECTED); Y.Assert.isFalse(allButtons.item(1).hasClass(BUTTON_SELECTED), 'Button 2' + IS_SELECTED); Y.Assert.isFalse(allButtons.item(2)...
JavaScript
:new().unwrap(); let client = Arc::new(test_client::new()); let p = Author { client: client.clone(), pool: Arc::new(Pool::new(Default::default(), ChainApi::new(client))), subscriptions: Subscriptions::new(runtime.executor()), }; let xt = uxt(AccountKeyring::Alice, 1).encode(); let h: H256 = blake2_256(&xt).i...
Rust
instead') // ignore: unused_element mixin AhoCorasickRef on ProviderRef<AhoCorasick> { /// The parameter `words` of this provider. List<String> get words; } class _AhoCorasickProviderElement extends ProviderElement<AhoCorasick> with AhoCorasickRef { _AhoCorasickProviderElement(super.provider); @override ...
Dart
/* popup panel */ --popup-cell-cname-ink: #0054d7; /* h260 S:100 Luv:40 */; --popup-cell-label-mixed-surface: #c29100; /* TODO: fix */ --popup-icon-x-ink: rgb(var(--red-60)); --popup-power-ink-rgb: var(--primary-50); /* horizontal line separator */ --hr-ink: var(--surface-2); /* clou...
CSS
content: "\ec55"; } .lni-500px::before { content: "\ec56"; } @charset "UTF-8";/*! * Bootstrap v5.3.0-alpha1 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-i...
CSS
ById(R.id.web_view_menu_right)) mWebViewToolbar = WeakReference(findViewById(R.id.web_view_toolbar)) mHeadContentFrameLayout = WeakReference(findViewById(R.id.fl_top_content)) } abstract fun getLayoutId(): Int abstract fun initView() }package com.peakmain.webview.utils import android.os.B...
Kotlin
img_id =file1[0].rsplit('.')[0] print(img_id) full_flow_1 = full_flow.detach().cpu().numpy() if save_npy: full_flow_1 = cv2.resize(full_flow_1, (1080, 1920)) np.save(osp.join(full_flow_dir, img_id + '.npy'), full_flow_1) depth = disps_est[-1][0, 0...
Python
their two letter country code (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) can be chosen, such as 'country: IN', as well as 'region: EU' which refers to the EU region. If there are too few data centers satisfying the policy, it will be rejected. - `type` (String) The type 'legac...
Markdown
out] def2f_ids array of ids to define */ /*----------------------------------------------------------------------------*/ void cs_cdo_sync_vol_def_at_faces(int n_defs, cs_xdef_t **defs, cs_lnum_t def2f...
C
initData); } public load(uid: Uid, count: number): void { } public loadRange(uidFirst: Uid, uidLast: Uid): void { } public getIterator(filter?: (item: Candlestick) => boolean): IDataIterator<Candlestick> { // return everything return this.dataStorage.getIterator(filter); ...
Typescript
Page number. */ /* BASE O DAS base address of page. */ /* $ Detailed_Input */ /* HANDLE is a file handle of an EK open for write access. */ /* SEGDSC is the descriptor of the segment for which to */ /* allocate a series of data pages. */ /* TYPE ...
C
auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:normal;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfo...
CSS
IC_ARMOUR: return ARMS_DEALER_ARMOUR; case IC_MEDKIT: return ARMS_DEALER_MEDKIT; case IC_KIT: return ARMS_DEALER_KIT; case IC_MISC: //switch on the type of item switch( usItem ) { case BEER: case WINE: case ALCOHOL: return( ARMS_DEALER_ALCOHOL ); case METALDETECTOR: ca...
C++
this party. // It might be different from the address field if authz is involved. signer string // signerAcc is the account that's signing for this party. // It might be different from the acc field if authz is involved. signerAcc sdk.AccAddress // canBeUsedBySpec indicates whether this party can be used to ful...
Go
let possible_rules = rules .iter() .filter(|(_, ranges)| ranges.iter().any(|range| range.contains(value))) .map(|(rule, _)| *rule) .collect::<HashSet<_>>(); i...
Rust
28, 12, 12, 12, 12, ZoneId.of("Europe/Kiev"))); HabitAssign additionalHabit = ModelUtils.getAdditionalHabitAssignForCurrentUser(); additionalHabit.setCreateDate(ZonedDateTime.of( 2040, 12, 28, 12, ...
Java
a>(): StFail<s, a> => mk_StateFail(Fun(s => none2())) let map_StFail = <s, a, b>(f: Fun<a, b>): Fun<StFail<s, a>, StFail<s, b>> => Fun((p: StFail<s, a>) => mk_StateFail(p.run.then(map_Option2(map_Pair(f, id<s>()))))) let join_StFail = <s, a>(): Fun<StFail<s, StFail<s, a>>, StFail<s, a>> => Fun((p: StFail<s, St...
Typescript
} else { bail!("ill-formed value, missing closing paren") } } else { bail!( "expected symbol in function to array conversion `{}`", input ) } } else { debug_a...
Rust
ine.CurrentSuggestionQuery; } /* code never run below */ return stateMachine.CurrentSuggestionQuery; } void Rehandle(string input) { lastInput = input; stateMachine.Reset(input); } } /// <summary> /// used to sav...
C#
static MethodChannelDeviceInfo get _platform { return DeviceInfoPlatform.instance as MethodChannelDeviceInfo; } /// This information does not change from call to call. Cache it. OhosDeviceInfo? _cachedOhosDeviceInfo; /// Information derived from `@ohos.deviceInfo`. /// /// https://developer.harmony...
Dart
import requests import json def analyze_pdf(pdf_url, question): """Analyze a PDF with a specific question""" url = "https://api.perplexity.ai/chat/completions" headers = {"Authorization": "Bearer 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"} payload = { "messages": [{ ...
Python
0x8, true, 0xfe4294621ed5654c) #define _m148 _SDK_MAGIC_PROPERTY(_SDK_ESCAPE(uint8_t), "_KTHREAD.AbOwnedEntryCount", ab_owned_entry_count, 0x1b38, 0x8, true, 0x6420585289509185) #define _m149 _SDK_MAGIC_PROPERTY(_SDK_ESCAPE(uint32_t), "_KTHREAD.ForegroundLossTime", foreground_loss_time, 0x1b40, 0x20, true, 0x163cd6883...
C++
ineTo(3.09566, 346.723); path_3.cubicTo(1.38592, 346.723, 0, 345.337, 0, 343.628); path_3.lineTo(0, 283.777); path_3.cubicTo(0, 282.067, 1.38593, 280.681, 3.09566, 280.681); path_3.lineTo(6.19141, 280.681); path_3.lineTo(6.19141, 346.723); path_3.close(); final paint_3_fill = Paint()..style...
Dart
/ step through rows in the block for (int i = 0; i < num; i++) { // compute the new reflector and save it in a row in 'A' computeHouseHolderRow(blockLength, A, gammas, i); double gamma = gammas[A.row0 + i]; // compute y computeY(blockLength, A, V, i, ...
Java
import streamlit as st def show_data_study(): st.title("Data 학습") st.write("여기에 데이터 학습에 대한 내용을 추가합니다.") st.write("예를 들어, 데이터셋을 로드하고, 전처리 과정을 설명할 수 있습니다.") # 데이터셋 로드 예시 # data = pd.read_csv('path_to_your_data.csv') # st.write(data.head())
Python
elseif list1 ~= "" and list2 == "" then mergedList = list1 elseif list1 ~= "" and list2 ~= "" then mergedList = list1 .. "," .. list2 end -- eliminate duplicate entries local tmp = {} local duplicates = {} for k in mergedList:gmatch("[^,]+") do if not duplicates[k] then tmp[#tmp + 1] = ...
Lua
Zhabi for higher values. if timer >= 576 then destination = 1 timer = timer - 576 waiting = 193 end -- Logic to manipulate cutscene results. if timer <= waiting then direction = 1 -- Ship arrived, switch dialog from "arrive" to "depart" else timer = timer - w...
Lua
assert_eq!(git_describe!("--always", "--dirty=-modified"), name); assert_eq!(git_version!(), name); } <reponame>Aswasa/owo-code //! No documentation right now because I cannot be bothered. I mean, *does* this //! really need any documentation, doesn't the README.md explain the 79 lines of //! code well enough, lol? Al...
Rust
"原动态", DYNAMIC_LINK(orig!!.did)), ) } DYNAMIC_TYPE_NONE, DYNAMIC_TYPE_WORD, DYNAMIC_TYPE_DRAW, DYNAMIC_TYPE_COMMON_VERTICAL, DYNAMIC_TYPE_COMMON_SQUARE, DYNAMIC_TYPE_UGC_SEASON, DYNAMIC_TYPE_UNKNOWN -> { ...
Kotlin
void UIElement::render(engine::core::Context& context) { if (!visible_) return; // 渲染子元素 for (const auto& child : children_) { if (child) child->render(context); } } void UIElement::addChild(std::unique_ptr<UIElement> child) { if (child) { child->setParent(this); // 设置父指针 ...
C++
t() local atk=0 for tc in aux.Next(g) do local catk=tc:GetTextAttack() atk=atk+(catk>=0 and catk or 0) end if e:GetLabel()==1 then e:SetLabel(0) local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_SINGLE) e1:SetCode(EFFECT_SET_ATTACK) e1:SetValue(atk) e1:SetReset(RESET_EVENT|RESET_DISABLE|RESET_T...
Lua
end append(s, "", {prefix="音频轨:", nl=o.nl .. o.nl, indent=""}) local track = mp.get_property_native("current-tracks/audio") if track then append(s, track["codec-desc"], {prefix_sep="", nl="", indent=""}) append(s, track["codec-profile"], {prefix="[", nl="", indent=" ", prefix_sep="", ...
Lua
["T"] = "Flucht aus dem Grab", }, [10888] = { ["D"] = "Ihr müsst vier Prüfungen bestehen, bevor Ihr von den Naaru als würdig genug erachtet werdet.$B$BEs bleibt nur noch eine übrig, $GSterblicher:Sterbliche;. Sammelt eine Armee und reist zu Magtheridons Kammer tief in der Höllenfeuerzitadelle. Kämpft Euch bis z...
Lua
eight) { layout->setContentsMargins( recordX, recordY - layoutHeight - Constant::RECTANGLE_PADDING, rootWindowRect.width - recordX - recordWidth, rootWindowRect.height - recordY + Constant::RECTANGLE_PADDING); } else { layou...
C++
#Academia media_peso = 0 media_altura = 0 soma_peso = 0 soma_altura = 0 qtdA = 0 qtdP = 0 #Maiores Características para salvar maior_altura = 0 menor_altura = 0 maior_peso = 0 menor_peso = 0 #Essa parte vai registrar o código do cliente com as maiores caracteristicas cod_maior_altura = "" cod_menor_altura = "" cod_ma...
Python
MARK(STOP PARSING) } token = _current; // MARK(MOVE TOKEN) _current = _current.next; // MARK(MAKE NODE) return new Option<mammouth.UnaryOperator>.Some( new mammouth.UnaryOperatorImpl.syntactic(token)); } bool isAssignmentOperator() { if(_current != null && _isCurrentOfKind(Toke...
Dart
514 3.514 0 0019 7.5c0 1.922 1.578 3.5 3.5 3.5S26 9.422 26 7.5 24.422 4 22.5 4zm0 2c.855 0 1.5.645 1.5 1.5S23.355 9 22.5 9 21 8.355 21 7.5 21.645 6 22.5 6zM9 9v2h8.594L14 14.594a1.995 1.995 0 000 2.812l2 2V24h2v-4.594c0-.527-.219-1.031-.594-1.406l-2-2L19 12.406a1.987 1.987 0 00.438-2.156C19.151 9.566 18.44 9 17.593 9zm...
Dart
. Aligned with RFC 8152, Section 7. */ @Serializable data class CoseKey( @CborLabel(1) val kty: Int, @CborLabel(2) @ByteString val kid: ByteArray? = null, @CborLabel(3) val alg: Int? = null, @CborLabel(4) val key_ops: List<Int>? = null, @CborLabel(5) @ByteString val `Base IV`: ByteArray? = null, ...
Kotlin
Quest.U10_20.SpikeTaskQuest.Spike_Upper_Track_Main) if table.contains({ -1, 3 }, stat) then return player:sendCancelMessage(RETURNVALUE_NOTPOSSIBLE) end local current = GHOST_DETECTOR_MAP[player:getGuid()] if not current then local levelZ = 8 + stat local random = Position(math.random(32171, 32352), math.ra...
Lua
using NUnit.Framework; using System; using System.Collections.Generic; using System.IO; using System.Text; using System.Xml.Serialization; using XMLSerializationInCsharp_v4; namespace XMLSerializationInCsharpTests { public class XMLSerializationUnitTest_v4 { string xml = @"<?xml version=""1.0"" encod...
C#
8D12, U+8D15, U+8D17-8D1A, U+8D1C, U+8D47, U+8D52, U+8D57, U+8D65, U+8D68-8D69; } @font-face { font-family: "IBM Plex Sans SC"; font-style: normal; font-weight: 400; src: local("IBM Plex Sans SC"), local("IBMPlexSansSC"), url("https://cdn.jsdelivr.net/npm/@ibm/plex-sans-sc@1.1.0/fonts/split/woff2/hinted/IBMPlex...
CSS
nterface i2) { if (i1.getModule() == i2.getModule()) return i1.getPort() - i2.getPort(); return i1.getModule() - i2.getModule(); } }); for(Interface iface : interfaces) { long hash = ((long)iface.getChassis() << 32) | (long)iface.getModule(); SlotViewWidget sv = slots.get(hash); if (s...
Java
: Option<u32>, pub r#type: String, } #[derive(Debug, Deserialize)] pub struct Albums { pub data: Vec<Album>, } pub struct AlbumService { client: Client, } impl AlbumService { pub fn new(client: &Client) -> Self { Self { client: client.clone(), } } pub async fn get(&self, id: &str) -> Resul...
Rust
inner { background-color: var(--paper-slider-knob-start-color, transparent); border: 2px solid var(--paper-slider-knob-start-border-color, var(--paper-grey-400)); } paper-ripple { color: var(--paper-slider-knob-color, var(--google-blue-700)); } </style> <div id="sliderContainer" clas...
JavaScript
")}:', textAlign: TextAlign.right, ).marginOnly(right: 10)), Expanded( child: TextField( controller: userController, decoration: InputDecoration( labelText: isMobile ? translate(...
Dart
{ appId_ = appId; setParameter("AppId", std::to_string(appId)); } long AllocatePodConfigRequest::getEnvId()const { return envId_; } void AllocatePodConfigRequest::setEnvId(long envId) { envId_ = envId; setParameter("EnvId", std::to_string(envId)); } /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. ...
C++
发送钉钉推送 if self.enable_dingtalk and self.dingtalk_webhook and self.dingtalk_secret: try: self.send_dingtalk_notification(tweet_data) except Exception as e: print(f"钉钉推送失败: {str(e)}") else: print(f"跳过重复推文: {tweet_id} -...
Python
.apache.org/documentation/latest/oversubscription/](http://mesos.apache.org/documentation/latest/oversubscription/) ### Persistent volumes(MESOS-1554) 持久化卷 尝试支持 Frameworks 提供创建磁盘持久化卷服务,这使得有状态服务例如 HDFS 以及 Cassandra 可以通过 Mesos 存储相关数据而不是像之前必须将数据存储在网络挂载的 EBS 卷或者将数据放置在其他位置使得磁盘资源不受管理。详情请参阅 [http://mesos.apache.org/document...
Markdown
'", "CG1'", 1), Triple("HG13'", "CG1'", 1), Triple("3HG2'", "CG2'", 1), Triple("HG23'", "CG2'", 1), Triple("3H'", "N'", 1), Triple("3HT'", "N'", 1), Triple("H3'", "N'", 1), Triple("HT3'", "N'", 1), ...
Kotlin
&C 60:13]]. of him unto whom much is given, much is required, [[Doctrine and Covenants/Doctrine and Covenants/Doctrine and Covenants 82#^verse-3|D&C 82:3]]. Saints to be equal, that every man may improve his talent and gain other talents, [[Doctrine and Covenants/Doctrine and Covenants/Doctrine and Covenants 82#^ve...
Markdown
ic const AVFilterPad pad_vaapi_inputs[] = { { .name = "default", .type = AVMEDIA_TYPE_VIDEO, .filter_frame = pad_vaapi_filter_frame, .config_props = &ff_vaapi_vpp_config_input, }, }; static const AVFilterPad pad_vaapi_outputs[] = { { .name = "default", .type ...
C
import streamlit as st def display_contact_us(): """ Displays a contact form for users to reach out. """ st.header(":mailbox: Get In Touch With Me!") contact_form = """ <form action="https://formsubmit.co/ajblogsprogramming@gmail.com.com" method="POST"> <input type="hidden" name="_cap...
Python
<a /// href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 /// Auto Scaling User Guide</i>. /// /// May throw [ResourceContentionFault]. /// /// Parameter [autoScalingGroupName] : ...
Dart
een.blit(settings_text, settings_text.get_rect(center=settings_button.center)) pygame.draw.rect(screen, (100,100,100), quit_button) pygame.draw.rect(screen, (255,0,0), quit_button, 2) quit_text = font.render("QUIT", True, (255,255,255)) screen.blit(quit_text, quit_text.get_rect(center=qu...
Python
rVBrpK * * To use, write HTML like the following: * * <p class="o-tooltip--left" data-tooltip="Hey">Short</p> */ .o-tooltip--left { position: relative; } .o-tooltip--left:after { opacity: 0; visibility: hidden; position: absolute; content: attr(data-tooltip); padding: .2em; font-size:...
CSS
()).map(|(haystack, regex)| { if haystack.is_none() | regex.is_none() { // regex is expensive => short-circuit if null return Result::Ok(false); }; let haystack = haystack.unwrap(); let regex = regex.unwrap(); let regex = if let Some(regex) = map.get(rege...
Rust
_group_ext = response['app_group_ext'] if 'app_security_ext' in response: self.app_security_ext = response['app_security_ext'] if 'encrypt_config_ext' in response: self.encrypt_config_ext = response['encrypt_config_ext'] if 'exterface_ext' in response: self.ex...
Python
id LeftOuterJoinWithOutermostRestriction() { // // select // order0_.Id as col_0_0_, // orderlines1_.Id as col_1_0_ // from // Orders order0_ // left outer join // OrderLines orderlines1_ // on order0_.Id=orderlines1_.OrderId // where // orderlines1_.Na...
C#
b'magic!', 2) == (None, 4) def test_embedded_fixedlist(): class Foo(PebblePacket): foo = Uint8() class ListOfFoo(PebblePacket): length = Uint8() foos = FixedList(Foo, length=length) class EmbeddedListOfFoo(PebblePacket): length = Uint8() list_of_foo = Embed(ListOf...
Python
ovsxbd))] pub unsafe fn _mm256_cvtepi8_epi32(a: i8x16) -> i32x8 { simd_cast::<::v64::i8x8, _>(simd_shuffle8(a, a, [0, 1, 2, 3, 4, 5, 6, 7])) } /// An i8x4 type is pretty useless, but we need it as an intermediate type in /// _mm256_cvtepi8_epi64. #[repr(simd)] #[allow(non_camel_case_types)] struct i8x4(i8, i8, i8,...
Rust
EFFECT.Mat = Material( "effects/select_dot" ) function EFFECT:Init( data ) local pos = data:GetOrigin() local att = data:GetAttachment() local ent = data:GetEntity() local nrml = data:GetNormal() self:SetRenderBounds( Vector( -8, -8, -8 ), Vector( 8, 8, 8 ) ) self:SetPos( pos ) -- This 0.01 is a hack.. to pr...
Lua
Syllable::Te => "b7", } .to_owned() } pub fn from_text(text: &str) -> Self { match text { //Natural "1" => Syllable::Do, "2" => Syllable::Re, "3" => Syllable::Mi, "4" => Syllable::Fa, "5" => Syllable::So...
Rust
return id; } private int id = -1; private final PropertyChangeSupport support; /** * Creates a new HOVerwaltung object. */ private HOVerwaltung() { support = new PropertyChangeSupport(this); } // -----------------Hilfsmethoden--------------------------------------------- public void addPropertyChange...
Java
SHAPE_SIZE / 256, tu = 0, tv = 0, r = p.r, g = p.g, b = p.b }) end return vertices end function get_star_triangles() return STAR_TRIANGLES end function get_star_geometry_mode() return "G_CULL_BOTH", "G_LIGHTING | G_TEXTURE_GEN" end function get_star_texture_scaling() ...
Lua
瑪瑞爾‧真心。"}}, [24800] = {"奪日者的勝利", nil, {"到達拉然紫羅蘭城塞,把復原的奎爾德拉交給大法師埃薩‧奪日者。"}}, [24801] = {"奪日者的勝利", nil, {"到達拉然紫羅蘭城塞,把復原的奎爾德拉交給大法師埃薩‧奪日者。"}}, [24802] = {"巫妖王之怒", nil, {"找到希瓦娜斯·風行者女士,逃離倒影大廳。"}}, [24803] = {"卡魯耶克釣魚大賽", nil, {"需要:"}}, [24804] = {"香水疑雲", nil, {"到暴風城找巡官史尼卜·凸栓回報。"}}, [24805] = {"香水疑雲", nil, {"到奧格瑪找警探史內卜·凸栓回報。"}}...
Lua
_activation_mut()?; frame.set_local(index, value); Ok(()) } else { Err(Error::NoCallFrame) } } } impl std::fmt::Debug for Stack { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { writeln!(f, "┌-------------------------┐")?; ...
Rust
[inline] #[cfg_attr(test, assert_instr(v128.not))] pub fn v128_not(a: v128) -> v128 { unsafe { transmute(simd_xor(a.as_i64x2(), i64x2(!0, !0))) } } /// Performs a bitwise and of the two input 128-bit vectors, returning the /// resulting vector. #[inline] #[cfg_attr(test, assert_instr(v128.and))] pub fn v128_and(a:...
Rust
be transmitted to backend, * during update invocations. * * @param field Name of field that was edited */ public changed(field: string) { if (this.changedValues.filter(x => x == field).length === 0) { this.changedValues.push(field); } } /** * Invoked when the user clicks the "Save"...
Typescript
x":"خانة إختيار","radio":"زر اختيار","textField":"مربع نص","textarea":"مساحة نصية","hiddenField":"إدراج حقل خفي","button":"زر ضغط","select":"اختار","imageButton":"زر صورة","notSet":"<بدون تحديد>","id":"الرقم","name":"إسم","langDir":"إتجاه النص","langDirLtr":"اليسار لليمين (LTR)","langDirRtl":"اليمين لليسار (RTL)","lang...
JavaScript
, r5 /* 8028F470 0028B0D0 38 63 B9 40 */ addi r3, r3, lbl_8051B940@l /* 8028F474 0028B0D4 7F C3 29 2E */ stwx r30, r3, r5 lbl_8028F478: /* 8028F478 0028B0D8 93 7E 00 0C */ stw r27, 0xc(r30) /* 8028F47C 0028B0DC 7F C3 F3 78 */ mr r3, r30 /* 8028F480 0028B0E0 93 9E 00 10 */ stw r28, 0x10(r30) /* 8028F484 0028B0E4 9...
Assembly
aming Tether {1218131, "NAMEPLATE"}, -- Burning Candles 426261, -- Ceaseless Flame -- Torchsnarl {426619, "SAY", "NAMEPLATE"}, -- One-Hand Headlock {1218117, "NAMEPLATE"}, -- Massive Stomp 426260, -- Pyro-pummel -- Skittering Darkness 422393, -- Suffocating Darkness -- Shuffling Horror {422541, "NAM...
Lua
meError() { private fun readResolve(): Any = InvalidCharacters } } // 컵 설정 관련 에러 sealed class SettingCupsError : MulKkamError() { data object InvalidCount : SettingCupsError() { private fun readResolve(): Any = InvalidCount } data object InvalidAmoun...
Kotlin
"*Required features: `\"Win32_Storage_OfflineFiles\"`*"] pub const OFFLINEFILES_SYNC_CONTROL_CR_KEEPREMOTE: u32 = 536870912u32; #[doc = "*Required features: `\"Win32_Storage_OfflineFiles\"`*"] pub const OFFLINEFILES_SYNC_CONTROL_CR_MASK: u32 = 4026531840u32; #[doc = "*Required features: `\"Win32_Storage_OfflineFiles\"`...
Rust
s)||void 0===r)&&r.Accept||n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===i.credentials,n.onerror=()=>{e(new Error(n.statusText))},n.onload=()=>{if(!a.signal.aborted)if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){let r=n.response;if("json"===i.type)try{r=JSON.parse(n....
JavaScript
9eIJstMziv:not(._1lBtgjjcxIeyuuL8yekm6r) { stroke-width: 0px; } ._1NBM7HHSr5iiWjw5V7n_Gr ._2ejw1WQ-HeHoNNrhVdgmEq ._2xzsHCp8IUJ83mtdjODbd6 { flex: 1 1 337px; display: flex; flex-direction: column; justify-content: center; } ._1NBM7HHSr5iiWjw5V7n_Gr ._2ejw1WQ-HeHoNNrhVdgmEq ._2xzsHCp8IUJ83mtdjODbd6 .dRN2...
CSS