content
stringlengths
2
6.21k
label
stringclasses
16 values
# author: Bartlomiej "furas" Burek (https://blog.furas.pl) # date: 2021.05.31 # # title: Python telegram bot create/modify variable from input # url: https://stackoverflow.com/questions/67766468/python-telegram-bot-create-modify-variable-from-input/67766651#67766651 import os from telegram.ext import Updater, Command...
Python
{ -4, 0, 0, 0, 0, 0, 0, 0, -64 }; long val_4 = val_2 + 2; byte res_4[] = { -4, 1, 0, 0, 0, 0, 0, 0, -64 }; long val_5 = -2; byte res_5[] = { -4, -2, -1, -1, -1, -1, -1, -1, -1 }; long val_6 = -1; byte res_6[] = { -4, -1, -1, -1, -1, -1, -1, -1, -1 }; long val...
Java
tent: center; } .content { &__title { line-height: 32px; } &__desc { color: mat.m2-get-color-from-palette(gio.$mat-dove-palette, 'darker40'); margin-bottom: 0; } } } } code { background-color: inherit; margin: 0; } .code-area { background-color: ma...
CSS
} override fun drawFront( batch: SpriteBatch, card: Card, sprites: SpriteSet, position: Vector2 ) { batch.draw(sprites.card, position.x, position.y) batch.draw(sprites.face[card], position.x + FACE_...
Kotlin
1.13.13.1.1.2.cmml" xref="A3.E45.m1.13.13.1.1.2"><times id="A3.E45.m1.13.13.1.1.2.3.cmml" xref="A3.E45.m1.13.13.1.1.2.3"></times><apply id="A3.E45.m1.13.13.1.1.2.4.cmml" xref="A3.E45.m1.13.13.1.1.2.4"><divide id="A3.E45.m1.13.13.1.1.2.4.1.cmml" xref="A3.E45.m1.13.13.1.1.2.4"></divide><partialdiff id="A3.E45.m1.13.13.1....
HTML
.text .file 1 "inserted_by_delocate.c" .loc 1 1 0 BORINGSSL_bcm_text_start: .text .Lfoo_local_target: foo: # WAS addis 22,2,bar@toc@ha # WAS ld 0,bar@toc@l(22) addi 1, 1, -288 mflr 0 std 0, -8(1) std 3, -16(1) bl .Lbcm_loadtoc_bar std 3, -24(1) ld 3, -8(1) mtlr 3 ld 0, -24(1) ld 3, -16(1) addi 1, 1, 288 ad...
Assembly
/*! * \copy * Copyright (c) 2013, Cisco Systems * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above co...
Assembly
if (scope != null) return scope } if (parent is KtClassBody) { val classDescriptor = bindingContext[BindingContext.CLASS, parent.getParent()] as? ClassDescriptorWithResolutionScopes if (classDescriptor != null) { return classDescriptor.scopeForMemberD...
Kotlin
s: true }; module.exports = (env = "development") => [ // For this example we have 3 configs in a single file // In practice you probably would have separate config // maybe even separate repos for each build. // For Module Federation there is not compile-time dependency // between the builds. // Each one can ha...
Markdown
.AddChild(secureTextInput) maxLenTextInput := widget.NewTextInput( widget.TextInputOpts.WidgetOpts( widget.WidgetOpts.LayoutData(widget.RowLayoutData{ Position: widget.RowLayoutPositionCenter, Stretch: true, MaxWidth: 400, }), ), widget.TextInputOpts.Placeholder("Max length (5) Textbox"), ...
Go
dio.com/v2/track"; const STATUS_OK: u16 = 200; const STATUS_PARTIAL_CONTENT: u16 = 206; const STATUS_REQUEST_TIMEOUT: u16 = 408; const STATUS_TOO_MANY_REQUESTS: u16 = 429; const STATUS_APPLICATION_INACTIVE: u16 = 439; // Quota const STATUS_INTERNAL_SERVER_ERROR: u16 = 500; const STATUS_SERVICE_UNAVAILABLE: u16 = 503; ...
Rust
=[2, 2, 2, 2], replace_stride_with_dilation=_replace_stride_with_dilation) resnet34 = ResNet(block=BasicBlock, layers=[3, 4, 6, 3], replace_stride_with_dilation=None) resnet50 = ResNet(block=Bottleneck, layers=[3, 4, 6, 3], replace_stride_with_dilation=_replace_stride_with_dilation) resnets = { # "R...
Python
} } .qUC7CMjMsTZ6hJp-K99l_ ._30H7nI9nrbbFe3nWWeSb3n ._2geomi2LHj8WSROPCLZvFQ { display: flex; flex-direction: row; font-size: clamp(40px, 5.3vw, 137px); line-height: 1.1; text-align: left; font-weight: 800; color: #fff; box-sizing: border-box; } .qUC7CMjMsTZ6hJp-K99l_ ._30H7nI9nrbbFe3nWWeSb3n ._2...
CSS
State.Gateway(CoreR.drawable.flag_ch), ConnectIntentIconState.Profile(R.drawable.flag_fastest, false, ProfileIcon.Icon1, ProfileColor.Color1), ConnectIntentIconState.Profile(R.drawable.flag_fastest, true, ProfileIcon.Icon5, ProfileColor.Color1), ConnectIntentIconState.Profile(CoreR.drawable.flag...
Kotlin
"""Plotting routine for use with the mandelbrot set Ole Nielsen, SUT 2003 """ def plot(A, kmax=None): """Plot matrix A as an RGB image using the Python Imaging Library and Tkinter A is converted to an RGB image using PIL and saved to disk Then it is displayed using PhotoImage A m...
Python
age(), ); } } class MyHomePage extends StatelessWidget { const MyHomePage({super.key}); @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar( title: const Text("Integration test runner"), ), body: const Center( child: Column( mainAxi...
Dart
out; } /** * Performs Singular-Value Decomposition on a given matrix. The * number of rows of the matrix must be greater than or equal to * the number of columns. * * <p> When the routine completes, the product U*diag(W)*V^T * will be equal to the input matrix A. U will be colu...
Java
e(); mSearchResults = new Hashtable<>(); mSearchesCompleted = new HashSet<>(); mWaitingForIsbn = false; mCancelledFlg = false; mAuthor = author; mTitle = title; mIsbn = isbn; mHasIsbn = mIsbn != null && mIsbn.trim().length() > 0 && IsbnUtils.isValid(mIsbn); mFetchThumbnail = fetchThumbnail; // X...
Java
c, writeJSONSync } from 'fs-extra'; export type Solution = Map< string, | { impact: undefined; oldVersion: string } | { impact: Impact; oldVersion: string; newVersion: string; constraints: { impact: Impact; reason: string }[]; pkgJSONPath: string; } >; class Plan { #constrain...
Typescript
2), await buscarId(3)] ); const result = await finished; console.info(result); const p1 = await buscarId(2); console.info(p1); const p2 = await buscarId(3); console.info(p2); } catch (err) { console.error("-------------", err); } ...
Typescript
_neon); p.pu[LUMA_4x4].copy_pp = PFX(blockcopy_pp_4x4_neon); p.pu[LUMA_4x8].copy_pp = PFX(blockcopy_pp_4x8_neon); p.pu[LUMA_4x16].copy_pp = PFX(blockcopy_pp_4x16_neon); p.pu[LUMA_16x4].copy_pp = PFX(blockcopy_pp_16x4_neon); p.pu[LUMA_16x8].copy_pp = PFX(blockcopy_pp_16x8_n...
C++
Players.toList() }; } factory MafiaGameField.fromMap(Map<String, dynamic> map) { final players = List<MafiaGamePlayer>.from( map['players'].map((p) => MafiaGamePlayer.fromMap(p)), ); return MafiaGameField._(players) .._rounds.addAll( List<MafiaGameRound>.from( map['ro...
Dart
obtain pointers to the fonts under Windows. </blockquote> The null-terminated C string specified by the fifth argument is drawn from left to right in the specified color. (See <A HREF="#gdImageStringUp">gdImageStringUp</A> for a way of drawing vertical text. See also <A HREF="#gdImageStringFT">gdImageStringFT</A> for ...
HTML
WUHQG-HUIDKUXQJVEHULFKW>,>XUOBIXOO>/>KWWSV/}}ZZZ.UHILQHU\29.FRP}GH-GH}2021}08}10621699}ZROI-FXW-KDDUWUHQG-HUIDKUXQJVEHULFKW>,>VLWH>/>GH>,>ODEHO>/>_HDXW\>,>GLVSOD\BQDPH>/>jLW GLHVHP WUHQG\ yX003FHP{tROI `XWyX003F}HP{ IüKOH LFK PLFK ZLH HLQ jRGHO DXV GHQ 70HUQ.>,>RSHQHUBLPDJHV>/x:>W\SH>/>16[9>,>ODEHO>/>16/9>,>DOWBWLWOH>/...
HTML
) then timeRemaining.m = floor(timeStamp / 60) timeStamp = (timeStamp - (timeRemaining.m * 60)) end -- add remaining seconds timeRemaining.s = timeStamp return timeRemaining end function SkillsPlusFu:TRADE_SKILL_UPDATE() local numSkills = GetNumTradeSkills() for i=1, numSkills do...
Lua
Ꮖ ᏚᎦᏚᏛᎢᎢᏂᏙᏂᏍᏯᎠᏲᎳᏂᎢᏏ" + "ᎵᏱᎤᏍᏗ ᎤᎦᏚᏛᎢ ᎾᎿ ᎠᏍᎦᏯᎢᏅᏗᎾᏈᏗᏏ ᏴᏫᏯ ᎠᎺᏉ ᎢᎬᎾᏕᏅᎢᎳᎩᎢᎴᏂᏧᏁᏍᏓᎸᎯᎢᏔᎵᏨᎵᏏᏣᎺᎢᎧᏦᏓᏂᏣ" + "ᏩᏂᏏᎨᏂᏯᎩᎵᏣᎢᏍᎧᎹᏉᏗᎠᏂᎧᎵᏆᏘᎪᎼᎳᏍᎤᏓᏅᏘ ᎨᏘᏏ ᎠᎴ ᏁᏪᏏᏧᏴᏢ ᎪᎵᎠᏧᎦᏃᏮ ᎪᎵᎠᎫᏪᎢᏘᎨᎢᎹᏂ ᏚᎦ" + "ᏚᏛᎢᎧᏎᎧᏍᏕᏂᎴᎣᏍᎴᏆᎾᏂᎤᏓᏅᏘ ᎷᏏᏯᎵᎦᏗᏂᏍᏓᏂᏍᎵ ᎳᏂᎧᎳᏈᎵᏯᎴᏐᏙᎵᏗᏪᏂᎠᎸᎧᏎᏋᎩᎳᏘᏫᎠᎵᏈᏯᎼᎶᎪᎹᎾ" + "ᎪᎹᎵᏙᏫᎠᎼᏂᏔᏁᎦᎶᎤᏓᏅᏘ ᏡᏡᎹᏓᎦᏍᎧᎵᎹᏌᎵ ᏚᎦᏚᏛᎢᎹᏎᏙᏂᏯᎹᎵᎹᏯᎹᎵᎹᏂᎪᎵᎠᎹᎧᎣ (ᎤᏓᏤᎵᏓ ᏧᏂᎸᏫᏍ" + ...
Go
"usage_in_usermode": 10000000 }, "system_cpu_usage": 24052599550000000, "throttling_data": {} }, "read": "2016-02-24T11:42:27.472459608-05:00" }`, name) stat.Body = io.NopCloser(strings.NewReader(jsonStat)) return stat } func testStats() *container.StatsResponse { stats := &container...
Go
=Ru(e),t===null)throw Error(ae(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(i===null)break;var a=i.alternate;if(a===null){if(n=i.return,n!==null){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return DP(i),e;if(a===n)return DP(i),t;a=a.sibling}throw Error(ae(188))}if(r.return!==n....
HTML
ret, nil } // Copyright 2021 The BoringSSL Authors // // 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 applicab...
Go
(RAMPZ) elpm r23,Z #elif defined(__AVR_HAVE_LPMX__) lpm r23,Z #elif defined(__AVR_TINY__) ld r23,Z #else lpm mov r23,r0 #endif inc r30 eor r14,r20 eor r15,r21 eor r24,r22 eor r25,r23 mov r0,r2 and r0,r10 eor r6,r0 mov r0,r3 and r0,r11 eor r7,r0 mov r0,r4 and r0,r12 eor r8,r0 mov r0,r5 and r0,r13 e...
Assembly
per.NewTestFs(files) logger := newAppTestLogger() r := remote.NewRemote(logger, testfs.Cwd, testfs.ToFileSystem()) var buf bytes.Buffer loaderLogger := helmexec.NewLogger(&buf, "debug") return &desiredStateLoader{ env: env, namespace: "namespace", logger: loaderLogger, fs: testfs.ToFileSyst...
Go
need_i) { T lim = (4 * v * v + 10) / (8 * x); lim *= lim; lim *= lim; lim /= 24; if((lim < tools::epsilon<T>() * 10) && (x > 100)) { // x is huge compared to v, CF1 may be very slow // to converge so use asymptotic expansion for large // x cas...
C++
String(), lines); } else if (operation is RestoreFootprintOperation) { _addLine('$prefix.ext.v', '0', lines); } } static _addSorobanAddressCredentials(XdrSorobanAddressCredentials credentials, List<String> lines, String prefix) { _addSCAddress(credentials.address, lines, '$prefix.address');...
Dart
ery.Count() } ); }, cancellationToken ); // return first group var result = groups.FirstOrDefault(); if ( result == null ) return new PagedCollection<...
C#
提取方法的表现更好: * **对象识别**:此 CNN 特征提取器可以成功地对其他类别不可见的数据集执行分类任务。 * **域适应**:这是当训练和测试数据来自不同的分布,而标签和类别数相同时。 不同的域可以考虑使用不同的设备或在不同的设置和环境条件下捕获的图像。 具有 CNN 功能的线性分类器可以在不同域中成功地将具有相同语义信息的图像聚类,而 SURF 功能则可以针对特定领域的特征进行过拟合。 * **精细分类**:这是我们要在同一高级类中的子类之间进行分类的时候。 例如,我们可以对鸟类进行分类。 尽管没有对细粒度数据进行训练,但 CNN 功能以及逻辑回归功能的表现优于基线方法。 * **场景识别**:在这里,...
Markdown
normal:3rem;--logo-text--normal:2.2rem;--logo-icon--large:90px;--logo-text--large:65px;align-items:center;display:flex}.excalidraw .ExcalidrawLogo svg{flex:0 0 auto}.excalidraw .ExcalidrawLogo .ExcalidrawLogo-icon{color:var(--color-logo-icon);width:auto}.excalidraw .ExcalidrawLogo .ExcalidrawLogo-text{color:var(--color...
CSS
ok.title, book.editor.name.orElseValue('No editor'), // This is an important thing to test, because book.editor may be // NULL, in which case book.editor.booksEditedBy is a subquery // that should return no rows, but if there are rows where the // editor is NU...
Dart
дают управляющие биты и биты состояния для данной страницы. В каталоге страниц адрес страничного блока представляет собой адрес таблицы страниц второго уровня. В таблице страниц второго уровня адрес страничного блока - это адрес страницы, которая содержит команды или данные.</p> <h5>5.3.4.2 Бит присутствия</h5> <p>Бит ...
HTML
size(); VarExprent var = new VarExprent(varindex, vartype == null ? exprent.getExprType() : vartype, varProcessor); var.setStack(true); exprlist.add(new AssignmentExprent(var, exprent, null)); stack.push(var.copy()); } private void insertByOffsetEx(int offset, ExpressionStack stack, List<Exprent> ...
Java
DialogShowEffect * @author wx * @DateTime 2018-03-16T10:31:56+0800 * @access protected */ protected onDialogShowEffect(): void; } } /** * Created by wxlan on 2017/8/29. */ declare namespace gamelib.alert { /** * @class AlertUi * 游戏通用提示框。资源是用的ui.common.Art_...
Typescript
<body> <a href="javascript: history.go(-1)">Back to the previous page</a> <div> </div> <div style="width: 720px; text-align: center; color: #ff0000; font-weight: bold; font-size: 1em;"> <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_s...
HTML
akfast-Pizza-Featured-150x150.jpg 150w, https://wearenotmartha.com/wp-content/uploads/Naan-Breakfast-Pizza-Featured.jpg 1200w" sizes="(max-width: 500px) 100vw, 500px" data-jpibfi-post-excerpt="" data-jpibfi-post-url="https://wearenotmartha.com/naan-breakfast-pizza/" data-jpibfi-post-title="Naan Breakfast Pizza" data-jp...
HTML
end request, then the new thread is returned with the dispatcher // database locked. Otherwise, NULL is returned with the dispatcher // database unlocked. FAST_ENABLE_INTERRUPTS add rpT1 = PbQuantumEnd, rPrcb ;; ld4 rT1 = [rpT1] // get quantu...
Assembly
"><small>Top</small></a></p> <H3> SPK Type 18 </H3><P><BR><BR> A new SPK type (Type 18) has been added. This incorporates ESA/ESOC model for a spacecraft ephemeris. <P> <BR><BR> <A NAME="CK Type 5"></A> <p align="right"><a href="#top"><small>Top</small></a></p> <H3> CK Type 5 </H3><P><BR><BR> A new CK type (...
HTML
modify the destinationCity and departingCity fields in the state", () => { mutations.setCities(store.state, this.cities); expect(store.state.departingCity).toEqual(this.cities[0]); expect(store.state.destinationCity).toEqual(this.cities[1]); }); }); }); describe("dispatch...
Typescript
on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package main import ( "context" "fmt" "log" "os" "github.com/cloudwego/eino-ext/components/retriever/dify"...
Go
font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } .bootstrapiso .visible { visibility: visible !important; } .bootstrapiso .invisible { visibility: hidden !important; } @media print { .bootstrapiso *, .bootstrapiso *::before, .bootstrapiso *::after { t...
CSS
using System; using System.Reactive.Concurrency; using System.Reactive.Subjects; namespace Reactive.Bindings.Notifiers; /// <summary> /// Notify value on provided scheduler. /// </summary> public class ScheduledNotifier<T> : IObservable<T>, IProgress<T> { readonly IScheduler scheduler; readonly Subject<T> tr...
C#
/* * Fallback for sync aes(ctr) in contexts where kernel mode NEON * is not allowed * * Copyright (C) 2017 Linaro Ltd <ard.biesheuvel@linaro.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free S...
C
this. I’m setting this boundary clearly so you know where I stand. **中文:** 如果你这么做,我一定会生气。我很明确地设定这个界限,希望你清楚我的立场。 **Dialogue:** "Crystal clear—I respect your boundary." “一清二楚——我尊重你的界限。” #### 15. Humorous **English:** Do that and I’ll be madder than a cat in a bath! Just save us both the trouble and don’t...
Markdown
80 01 00 34 */ lwz r0, 0x34(r1) /* 8035D244 0035A184 CB E1 00 20 */ lfd f31, 0x20(r1) /* 8035D248 0035A188 83 E1 00 1C */ lwz r31, 0x1c(r1) /* 8035D24C 0035A18C 83 C1 00 18 */ lwz r30, 0x18(r1) /* 8035D250 0035A190 83 A1 00 14 */ lwz r29, 0x14(r1) /* 8035D254 0035A194 83 81 00 10 */ lwz r28, 0x10(r1) /* 8035D258 0...
Assembly
nager.update_state(chat_id=tg_chat.id, state=States.two_fa) except BadRequest: text = f"Log in code invalid or expired. Please send a valid login code." error_count += 1 else: text = f"S...
Python
blob_ref).unwrap(); //! assert_eq!(metadata.filename, "test_file.txt"); //! assert_eq!(metadata.mime_type, "text/plain"); //! ``` mod error; mod models; mod utils; pub use error::{Error, Result}; pub use models::{BlobMetadata, BlobRef, BlobStore}; pub use sha2::Digest as Sha2Digest; /* * Copyright (c) 2012-2020 MIRA...
Rust
rica/Phoenix", "Arizona"); TIMEZONE_ID_TO_INAT_TIMEZONE.put("America/Regina", "Saskatchewan"); TIMEZONE_ID_TO_INAT_TIMEZONE.put("America/Santiago", "Santiago"); TIMEZONE_ID_TO_INAT_TIMEZONE.put("America/Sao_Paulo", "Brasilia"); TIMEZONE_ID_TO_INAT_TIMEZONE.put("America/St_Johns", "Newfou...
Java
json['preset'] != null ? new Preset.fromJson(json['preset']) : null; } Map<String, dynamic> toJson() { final Map<String, dynamic> data = new Map<String, dynamic>(); data['id'] = this.id; data['name'] = this.name; data['register_link'] = this.registerLink; data['push_service_url'] = pushService...
Dart
} @include mappy-bp(lap-small) { margin-top: 0; } } &:last-of-type { margin-right: 0; .c-primary-nav__link { @include var(background-color, nav-cta-background); @include var(color, nav-cta-text); border-bottom: none; // States &:hover { border-bottom: none; text-decoration: unde...
CSS
,133,255)}.cell-ed-c .cell-ed{position:absolute;left:0;top:0}.cell-ed-c .cell-ed input{outline:none;padding-left:5px;border:1px solid rgb(188,164,255);outline:1px solid rgb(149,111,238);background-color:#fff;padding-top:0;padding-bottom:0;height:100%}.cell-ed-c.s2{background-color:#fff;border-radius:7px}.qtable>tbody>t...
CSS
TypeId::of::<Array>() { panic!("Cannot register indexer for arrays."); } #[cfg(not(feature = "no_object"))] if TypeId::of::<T>() == TypeId::of::<Map>() { panic!("Cannot register indexer for object maps."); } if TypeId::of::<T>() == TypeId::of::<String>() ...
Rust
te_reset(&mtctx->serial, mtctx->seqPool, params, mtctx->targetSectionSize, dict, dictSize, dictContentType)) return ERROR(memory_allocation); return 0; } /* ZSTDMT_writeLastEmptyBlock() * Write a single empty block with an end-of-frame to finish a frame. * Job must be cr...
C++
actor) { Enabled = enabled; SourceFactor = srcFactor; DestinationFactor = dstFactor; } /// <summary> /// Blend disabled (opaque rendering). /// </summary> public static BlendState Opaque() { return new BlendState(false, BlendFactor...
C#
class Solution: def goodTriplets(self, nums1: List[int], nums2: List[int]) -> int: n = len(nums1) # Map each number to its index in nums2 – so we know their "real" position pos = [0] * n for i, val in enumerate(nums2): pos[val] = i # Convert nums1 into the 'mapp...
Python
_COMMAND_UPDATE_CLIENT_PROPLIST, PA_COMMAND_REMOVE_RECORD_STREAM_PROPLIST, PA_COMMAND_REMOVE_PLAYBACK_STREAM_PROPLIST, PA_COMMAND_REMOVE_CLIENT_PROPLIST, /* SERVER->CLIENT */ PA_COMMAND_STARTED, /* Supported since protocol v14 (0.9.12) */ PA_COMMAND_EXTENSION, /* Supported since proto...
C
} .poll-container .progress-box:nth-child(1){ filter: hue-rotate(200deg); } .poll-container .progress-box:nth-child(2){ filter: hue-rotate(150deg); } .poll-container .progress-box:nth-child(3){ filter: hue-rotate(250deg); } .poll-container .progress-box:nth-child(4){ filter: hue-rotate(100deg); } ...
CSS
UE_VIOLET by lazy { rgb(0.541176, 0.168627, 0.886275) } val ColorRGBa.Companion.BROWN by lazy { rgb(0.647059, 0.164706, 0.164706) } val ColorRGBa.Companion.BURLY_WOOD by lazy { rgb(0.870588, 0.721569, 0.529412) } val ColorRGBa.Companion.CADET_BLUE by lazy { rgb(0.372549, 0.619608, 0.627451) } val ColorRGBa.Companion.CH...
Kotlin
verride fun preload() { game.load.image("phaser", "assets/sprites/phaser2.png") // Load your Pixi filters (the key you give them doesn"t matter, but make sure it"s unique) game.load.script("filter1", "https://cdn.rawgit.com/photonstorm/phaser/master/filters/pixi/RGBSplitFilter.js") } override ...
Kotlin
a // BSD-style license that can be found in the LICENSE file. /// Declares miscellaneous utility functions and constants for type flow /// analysis. library vm.transformations.type_flow.utils; import 'dart:io'; import 'package:collection/collection.dart' show IterableExtension; import 'package:kernel/ast.dart'; imp...
Dart
c.883-.498 1.369-1.196 1.369-1.966s-.487-1.468-1.369-1.967zm-.526 3.003-11.543 6.516c-1.238.699-3.556.7-4.794 0L2.359 10.265c-.524-.296-.824-.674-.824-1.036 0-.363.3-.74.824-1.037l11.543-6.516c.619-.35 1.493-.55 2.396-.55.904 0 1.778.201 2.397.55l11.543 6.516c.524.296.825.674.825 1.037.001.362-.299.74-.824 1.036z"/><pa...
Dart
line"> <tt id="link-0" class="py-name" targets="Variable IDAscope.idascope.core.PatternManager.PatternManager.signatures=IDAscope.idascope.core.PatternManager.PatternManager-class.html#signatures"><a title="IDAscope.idascope.core.PatternManager.PatternManager.signatures" class="py-name" href="#" onclick="return docl...
HTML
style, pixelSize); } /** * Zoom the window to the rectangle given the two points (x1,y1) * and (x2,y2), which must be greater than (x1,y1). */ public void zoomRectangle(int x1, int y1, int x2, int y2) { if (x2 > x1 && y2 > y1) { winSizeX = getWidth(); winSizeY = getHeight(); int wi...
Java
(10)); } // Check that our block decoder agrees ptxed on a (likely) empty trace; #[test] fn test_block_iterator2() { let tracer = PerfPTThreadTracer::default(); trace_and_check_blocks(tracer, || test_helpers::work_loop(0)); } // Check that our block decoder deals with traces in...
Rust
nse for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <sysdep.h> /* Some systems mi...
Assembly
ug"]) expect( extractPotentialDataSlugsFromTransform("256972 multiplyBy 2") ).toStrictEqual(["256972"]) }) it("returns undefined for inputs that are not transforms", () => { expect( extractPotentialDataSlugsFromTransform( "some-string pretending-to...
Typescript
span> <span class="preprocessor">#define</span> <a machinegenerated="true" href="index.html#//apple_ref/c/macro/LS_LOG_INFO" logicalPath="//apple_ref/c/cl/LS_LOG_INFO //apple_ref/c/tdef/LS_LOG_INFO //apple_ref/c/tag/LS_LOG_INFO //apple_ref/c/struct/LS_LOG_INFO //apple_ref/c/intf/LS_LOG_INFO //apple_ref/c/econst/LS_LO...
HTML
version. ~ ~ This program is distributed in the hope that it will be useful, ~ but WITHOUT ANY WARRANTY; without even the implied warranty of ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ~ GNU Affero General Public License for more details. ~ ~ You should have received a copy of the GN...
HTML
: "\e1a4"; } .dcon-shopping-bag:before { content: "\e1a5"; } .dcon-shopping-cart:before { content: "\e1a6"; } .dcon-shuffle:before { content: "\e1a7"; } .dcon-skull:before { content: "\e1a8"; } .dcon-social-500px:before { content: "\e1a9"; } .dcon-social-adobe:before { content: "\e1aa"; } .dcon-social-amazo...
CSS
etTz(double z) { t.setZ(z); } public void setRotate(double x, double y, double z) { rx.setAngle(x); ry.setAngle(y); rz.setAngle(z); } public void setRotateX(double x) { rx.setAngle(x); } public void setRotateY(double y) { ry.setAngle(y); } public void setRotateZ(double z) { rz.setAngle(z); } public void s...
Java
6.17 32.14 9.06 40 2.89 8.82 14.6 26.46 27.1 26.46H407a187.3 187.3 0 0 1-17.34 20.09Zm25.77 34.49A15.24 15.24 0 1 1 368 398.08h.44a15.23 15.23 0 0 1 14.8 15.24Zm-225.62-.68a15.24 15.24 0 1 1-15.25-15.25h.45a15.25 15.25 0 0 1 14.75 15.25Zm-88.1-178.49 32.83-14.6a13.88 13.88 0 0 0 7.06-18.33L102.69 186h26.56v119.73h-53.6...
CSS
# Log every 10 steps verbose=True, device=args.device, autocast_dtype=t.bfloat16, # Speed up training with mixed precision normalize_activations=args.normalize_activations, normalization_steps=args.normalization_steps, use_wandb_multiprocess=not args.no_wandb_multiproc...
Python
# -*- coding: utf-8 -*- # # Copyright 2022 Google LLC. 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
nclude it.</p> <p>The division of impact can be seen on Twitter too. <a href="https://osf.io/preprints/socarxiv/9ve3x/">In my own research,</a> I analyzed the impact of a Twitter user as a function of the number of their followers, testing if the impact per follower decreases with the number of followers. If we sum up ...
HTML
buf = d.(*dataBuffer) } buf.data = b[:n] dataBufferPools[i].Put(buf) return } } debug("data is not eligible for buffer pools: %v", size) } var dataBufferSizes = [...]int{ 0, // For buffer container only 1 << 10, 2 << 10, 4 << 10, 8 << 10, } var dataBufferPools = [len(dataBufferSizes)]sync.Pool{...
Go
(Ov,(t=>{Ne(t).hide(),e.c(Bd,uu)})))})).on(Ov,(t=>{if(Mx||Fx.w()<=Bx)return;let e=Ne(t),n=e.n();Lt(e,t)||(e.c(Bd,uu),n.c(id,uu))})),Wk++,l===vx&&(l=He(e.ss(e.lastIndexOf("/")+1))),c===vx&&(c=wc);let d=zb+"psc"+Wk,m=vt(wc,wc,Pi(t,qn(),Wk)+dC)+l,v=l+c;t.a(Os,d),t.a(Af,m),ik.figures.add(m,d,v)}function r(t,e,n,a){let i=t....
HTML
pre></td> <td>A function for converting a <code class="computeroutput">tm</code> struct to a <code class="computeroutput">date</code> object. The fields: <code class="computeroutput">tm_wday </code>, <code class="computeroutput">tm_yday </code>, <code class="computeroutput">tm_hour</code>, <code class="computeroutput">...
HTML
x3, x4, [x2,#48] stp x5, x6, [x2,#64] stp x7, x8, [x2,#80] ldp x3, x4, [x2,#96] ldp x11, x12, [x0,#96] ldp x13, x14, [x1,#96] // x9 = 2 - x9 neg x9, x9 add x9,
Assembly
07812,27.320999145507812)"><path fill="rgb(9,9,9)" fill-opacity="1" d=" M-15.638999938964844,-18.156999588012695 C-15.638999938964844,-18.156999588012695 -14.654000282287598,-18.961999893188477 -14.654000282287598,-18.961999893188477 C-4.7170000076293945,-27.070999145507812 10.04800033569336,-25.576000213623047 18.1569...
HTML
/// Level: 1 /// Rank: Rare /// </summary> QuestWintergraspStructureKill = 31244, /// <summary> /// Level: 1 /// </summary> InvisibleOozeStalker = 31245, /// <summary> /// Level: 1 /// </summary> DNDIcecrownAirshipCannonExplosionBunny = 31246, /// <summary> /// Title: Cold Weather Flying Train...
C#
S OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. //----------------------------------------------------------------------------- ...
C#
return } firstBufferBeforeSorting := (*members)[0].buffer slices.SortFunc(*members, objectMember.Compare) firstBufferAfterSorting := (*members)[0].buffer // Append the reordered members to a new buffer, // then copy the reordered members back over the original members. // Avoid swapping in place sinc...
Go
from enum import Enum class UserType(Enum): RIDER = "RIDER" DRIVER = "DRIVER" class VehicleType(Enum): AUTO = "AUTO" # (short for Auto-rickshaw in ride apps like Ola/Uber) → a 3-wheeler vehicle, cheaper, for short city trips, usually seats 2–3 passengers. SEDAN = "SEDAN" # A 4-door passenger car w...
Python
e(adev); *cpu_addr = bit_pos + adev->seq64.cpu_base_addr; return 0; } /** * amdgpu_seq64_free - Free the given 64 bit memory * * @adev: amdgpu_device pointer * @va: gpu start address to be freed * * Free the given 64 bit memory from seq64 pool. */ void amdgpu_seq64_free(struct amdgpu_device *adev, u64 va) { ...
C
ear)":{"buff":1116339,"uu":111391,"c5":0},"\u2605 Skeleton Knife | Ultraviolet (Factory New)":{"buff":1116340,"uu":0,"c5":0},"\u2605 Nomad Knife | Rust Coat (Well-Worn)":{"buff":1116341,"uu":111435,"c5":0},"\u2605 Nomad Knife | Marble Fade (Minimal Wear)":{"buff":1116342,"uu":111440,"c5":0},"\u2605 Paracord Knife | Dam...
JavaScript
.toList(); await prefs.setStringList('v2ray_configs', configsJson); } Future<List<V2RayConfig>> loadConfigs() async { final prefs = await SharedPreferences.getInstance(); final List<String>? configsJson = prefs.getStringList('v2ray_configs'); if (configsJson == null) return []; return confi...
Dart
.5) == (v == 1))/length(v) } apply(row, 2, prediction.accuracy, sv) </code></pre> <pre><code>## lambda= 4.3011 12345678910cvl= -23.3911 ## lambda= 6.959325 12345678910cvl= -28.97013 ## lambda= 2.658226 12345678910cvl= -17.95161 ## lambda= 1.642874 12345678910...
HTML
he zero value for that field. </li> <li>A literal may omit the element list; such a literal evaluates to the zero value for its type. </li> <li>It is an error to specify an element for a non-exported field of a struct belonging to a different package. </li> </ul> <p> Given the declarations </p> <pre> ty...
HTML
" ├─ IndexedTableAccess(YK2GW)\n" + " │ ├─ index: [YK2GW.id]\n" + " │ ├─ static: [{[NULL, ∞)}]\n" + " │ ├─ colSet: (1-30)\n" + " │ ├─ tableId: 1\n" + " │ └─ Table\n" + " │ ├─ name: YK2GW\n" + " ...
Go
= null; this.offscreenCanvas = null; this.offscreenCanvasCtx = null; this.destoryed = true; } /** * 拉取视频数据 */ async _fetchData() { if (!this.buffer) { // console.time(); // 当页面url未定义时采用localhost代替 const base = window.location.ur...
JavaScript
post { *zoom: 1; padding-top: 12px; } h2.label-topic_post:after { content: ""; display: block; clear: both; } h2.label-topic_post .label-topic_post-msgid { display: inline-block; padding-top: 5px; } .post-list-heading-button { float: right; display: inline-block; *display: inline; *zoom: 1; marg...
CSS
com/microsoft/microsoft-ui-xaml/blob/3b4ee2bd3de498e27517e82cf840acd000970ffc/src/dxaml/xcp/tools/XCPTypesAutoGen/Modules/Controls/RichEditBox.cs#L296 - [x] 输入模式支持 Overtype Mode 模式 - 按下 Insert 键可切换为插入或替换覆盖模式 - [ ] WPF 平台 - [ ] 重新设计 RunProperty 字符属性 - [x] 添加获取默认的 WPF 的 RunProperty 类型 - [x] 替换 WPF...
Markdown
//Original:/proj/frio/dv/testcases/core/c_compi2opp_pr_add_i7_p/c_compi2opp_pr_add_i7_p.dsp // Spec Reference: compi2opp pregs += imm7 positive # mach: bfin .include "testutils.inc" start INIT_P_REGS 0; imm32 fp, 0x00000000; P1 += 1; P2 += 2; P3 += 3; P4 += 4; P5 += 5; FP += 7; CHECKREG p1, 0x00000001; ...
Assembly
es_id->ForkNum, res_id->BlkNum); rdma_mg->Deallocate_Local_RDMA_Slot(pa_mr.addr, DSMEngine::PageArray); rdma_mg->Deallocate_Local_RDMA_Slot(pida_mr.addr, DSMEngine::PageIDArray); std::chrono::steady_clock::time_point end = std::chrono::steady_clock::now(); std::chrono::steady_clock::dura...
C++