content
stringlengths
2
6.21k
label
stringclasses
16 values
_$result = _$v ?? _$IsolateExit._(); replace(_$result); return _$result; } } class _$IsolateStart extends IsolateStart { factory _$IsolateStart([void Function(IsolateStartBuilder)? updates]) => (IsolateStartBuilder()..update(updates))._build(); _$IsolateStart._() : super._(); @override Isolat...
Dart
param onExit The code to execute when the text field is exited * @returns The key handler that can be added to the input handler stack */ export function createKeyPatternFieldKeyHandler( textField: ITextField, onExit?: () => void ): IKeyEventListener { // Keep track of whether anything was pressed so far,...
Typescript
your-username DOCKER_PASSWORD=your-token # Opcjonalne - produkcyjne API keys PROD_OPENAI_API_KEY=sk-your-key PROD_SUPABASE_URL=https://your-supabase.co PROD_SUPABASE_ANON_KEY=your-key # Powiadomienia (opcjonalne) SLACK_WEBHOOK_URL=https://hooks.slack.com/your-webhook TEAMS_WEBHOOK_URL=https://your-teams-webhook ``` ...
Markdown
age: u8, } struct Unit; struct Pair(i32, f32); struct Point { x: f32, y: f32 } #[allow(dead_code)] struct Rectangle { top_left: Point, bottom_right: Point } pub fn structures (){ let name="peter"; let age=27; let pete...
Rust
nop sw $v0, 0($v1) la $v0, .Lpayload # Set new address to table lw $v0, 0($v0) nop sw $v0, 0($a0) li $a0, 0x80 # Move existing exception vector li $a2, 0x90 # jump to prepend patch jal .Lcopymem li $a1, 16 la $a0, .Lexceptpatch # Patch the exception vector for li $a2, 0x80 ...
Assembly
weight: bold; color: #555; } .report-field { margin-top: 8px; display: flex; line-height: 28px; } .report-row { margin: 10px 0 2px 18px; } .report-field-name { color: #888; flex: 0 0 128px; text-align: right; padding: 0 6px; white-space: pre; } .report-field-value { flex:...
CSS
u53ef\u4ee5\u63a8\u8350\u7ed9QQ/MSN\u4e0a\u7684\u597d\u53cb\u4e86\uff01")):window.prompt("\u60a8\u4f7f\u7528\u7684\u662f\u975eIE\u6838\u5fc3\u6d4f\u89c8\u5668\uff0c\u8bf7\u6309\u4e0b Ctrl+C \u590d\u5236\u4ee3\u7801\u5230\u526a\u8d34\u677f",document.title+" "+(e.bdUrl||n.getPageUrl()))})},c=function(){window.print()},h=...
JavaScript
source code is governed by a // BSD-style license that can be found in the LICENSE file. import 'dart:html'; import 'dart:async'; final output = querySelector('#output'); final pre = PreElement(); Future printDailyNewsDigest() async { try { final news = await gatherNewsReports(); pre.appendText(news); }...
Dart
[173192] = "Brasier puissant", [173193] = "Brasier puissant", [173194] = "Brasier puissant", [173195] = "Brasier puissant", [173196] = "Brasier puissant", [173197] = "Brasier puissant", [173198] = "Brasier puissant", [173199] = "Brasier puissant", [173200] = "Brasier puissant", [173201] = "Brasier pui...
Lua
_el, list_el_t *new_el) { /* Set the next pointer of the new element to next_el. We do * this regardless of the state of the list. */ new_el->list_next = next_el; /* Set reverse pointers. */ if (next_el == 0) { /* There is no next elememnt. We are inserting at the tail. */ new_el->list_prev = list->tail; ...
C
lesheets/sencha-touch/default/widgets/_form.scss */ .x-form-fieldset-title .x-innerhtml { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* line 604, /Users/jamieavins/git/SDK/touch/resources/themes/stylesheets/sencha-touch/default/widgets/_form.scss */ .x-form-fieldset-instructions { text-s...
CSS
['headers'], isNull); expect(profile.requestData.headers, isNull); profile.requestData.headersListValues = { 'fruit': ['apple', 'banana', 'grape'], 'content-length': ['0'], }; expect( requestData['headers'], { 'fruit': ['apple', 'banana', 'grape'], 'content-leng...
Dart
x] #AVX512-FP16,AVX512VL BROADCAST_EN vgetexpph xmm6, XMMWORD PTR [ecx+2032] #AVX512-FP16,AVX512VL Disp8(7f) vgetexpph xmm6{k7}{z}, WORD BCST [edx-256] #AVX512-FP16,AVX512VL BROADCAST_EN Disp8(80) MASK_ENABLING ZEROCTL vgetexpph ymm6{k7}, YMMWORD PTR [esp+esi*8+0x10000000] #AVX512-FP16,AVX512VL MASK_ENABLING vg...
Assembly
emarks>The result does not include <see cref="ulong.MaxValue"/></remarks> protected ulong NextUInt64() => NextUInt64(this.Rnd); /// <summary>Return a random 64-bit positive integer X, such that <see langword="0"/> &lt;= X &lt; <see cref="ulong.MaxValue"/></summary> /// <remarks>The result does not include <see c...
C#
lBar:AddSeparator() toolBar:AddTool(ID_FIND, "Find", wx.wxArtProvider.GetBitmap(wx.wxART_FIND, wx.wxART_MENU, toolBmpSize), "Find text") toolBar:AddTool(ID_REPLACE, "Replace", wx.wxArtProvider.GetBitmap(wx.wxART_FIND_AND_REPLACE, wx.wxART_MENU, toolBmpSize), "Find and replace text") toolBar:Realize() -- --------...
Lua
import pandas as pd def Squeeze_Momentum_Indicator(data: pd.Series, period: int = 20, MA: pd.Series = None) -> pd.Series: """ Calculates the Squeeze Momentum Indicator from the given data. The Squeeze Momentum Indicator helps identify periods of low volatility and high volatility contraction, which are of...
Python
# 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 agreed to in writing, software # d...
Python
authentication as inside your infrastructure, your company is responsible for the security and access controls. If the software is deployed in our `Managed Cloud`, there are 2 methods for authenticating with us, you only need to use one: 1. Custom authorization header named `X-CoinAPI-Key` with the API Key 2. Quer...
Go
#include <stdio.h> // for fprintf, stderr #include "vrpn_Keyboard.h" #include "vrpn_Shared.h" // for timeval, vrpn_gettimeofday class VRPN_API vrpn_Connection; #ifdef _WIN32 #pragma comment (lib, "user32.lib") #endif vrpn_Keyboard::vrpn_Keyboard (const char * name, vrpn_Connection...
C
--[[ @module tcp_ssl_ca_receiver @summary tcp_ssl_ca client socket数据接收应用功能模块 @version 1.0 @date 2025.07.01 @author 朱天华 @usage 本文件为tcp_ssl_ca client socket数据接收应用功能模块,核心业务逻辑为: 从内核读取接收到的数据,然后将数据发送给其他应用功能模块做进一步处理; 本文件的对外接口有2个: 1、tcp_ssl_ca_receiver.proc(socket_client):数据接收应用逻辑处理入口,在tcp_ssl_ca_main.lua中调用; 2、sys.publ...
Lua
${app.domain}/users/2`); ctx.response.body = { hello: 'nancy' }; ctx.response.status = 200; } else { ctx.response.body = { msg: 'anonymity' }; } await next(); }); (client as any) .get('/users/1') .then(res => { expect(res).toEqual({ status...
Typescript
transitions occur at 2am or 3am wall time, /// which is always 1am UTC. /// 2009 fall transition: October 25th /// 2010 spring transition: March 28th /// 2010 fall transition: October 31st /// 2011 spring transition: March 27th Future main() async { await TimeMachine.initialize(); await setup(); await runTests()...
Dart
e # 翻译器可能会自动补个越界的公式标记 if var[vid][-1].get_text() and unicodedata.category(var[vid][-1].get_text()[0]) in ["Lm", "Mn", "Sk"]: # 文字修饰符 mod = var[vid][-1].width else: # 加载文字 ch = new[ptr] fcur_ = None ...
Python
') OP_28(0x009B, 0x02, 0x0040) OP_28(0x009B, 0x01, 0x0080) CameraMove(520, 0, 114520, 0) OP_67(0, 8000, -10000, 0) CameraSetDistance(2600, 0) OP_6C(315000, 0) OP_6E(262, 0) ChrSetPos(0x0000, 520, 0, 114520, 135) ChrSetPos(0x0001, 520, 0, 114520, 135) ChrSetPos(0x0002, 520, 0, 11...
Python
时,可以将更多组件添加到工具箱中。 看下这个SSH示例: ssh/init.sls: ```yaml openssh-client: pkg.installed /etc/ssh/ssh_config: file.managed: - user: root - group: root - mode: 644 - source: salt://ssh/ssh_config - require: - pkg: openssh-client ``` ssh/server.sls: ```yaml include: - ssh openssh-server: pkg...
Markdown
>(效果最多叠加<color=#FFC432>5</color>层)', '', '塔纳托斯形态时,每击败一名敌方单位,使自身造成的<color=#FFC432>伤害+12%</color>(效果最多叠加<color=#FFC432>5</color>层)', '', '5', 'test_icon_1', '', ''}, {'322204', '', '无尽寂静', '塔纳托斯形态时,每击败一名敌方单位,使自身造成的<color=#FFC432>伤害+16%</color>(效果最多叠加<color=#FFC432>5</color>层)', '', '塔纳托斯形态时,每击败一名敌方单位,使自身造成的<color=#FFC432...
Lua
color: #777; font-size: 12px; text-align: right; vertical-align: bottom; transition: opacity 250ms ease-in-out; } .GridItem.odd:focus::-webkit-input-placeholder { opacity: 0.4; } /*Selected Grid Items*/ .GridItem.selected { background: rgba(103, 230, 220, 0.02); outline: 1px solid rgba(255...
CSS
sugar = sugar or {} if castle and not sugar.castle_print then sugar.castle_print = print end local castle_print = sugar.castle_print local logfile local function start_log(file_name) file_name = file_name or "log.txt" logfile = love.filesystem.newFile(file_name, "w") end local function end_log() logfile:...
Lua
_llvm_ref(constant, ctx)), LLVMOpcode::LLVMTrunc => Constant::Trunc(Trunc::from_llvm_ref(constant, ctx)), LLVMOpcode::LLVMZExt => Constant::ZExt(ZExt::from_llvm_ref(constant, ctx)), LLVMOpcode::LLVMSExt => Constant::SExt(SExt::from_llvm_ref(constant, ctx)), ...
Rust
VirtioWinCmReaderRoleBinding(hco) expectedLabels := expectedRoleBinding.Labels expectedRoleBinding.Labels = nil cl := commontestutils.InitClient([]client.Object{hco, expectedRoleBinding}) handler, _ := NewVirtioWinCmReaderRoleBindingHandler(testLogger, cl, commontestutils.GetScheme(), hco) res := handl...
Go
(keywords) != 0: res_damage += "【" + "+".join(keywords) + "】" if bonus != 0: res_damage += f"+{bonus}" return res_damage def parse_defense_string(defense: str) -> str: """ Parses the defense string, returning the defense value. Note that DEX, INS, MIG, WLP in this case refer to th...
Python
git@hf.co:Qwen/Qwen2.5-VL-7B-Instruct-AWQ ``` #### 2. 下载docker,启动容器 ``` shell docker pull sophgo/tpuc_dev:latest # myname1234 is just an example, you can set your own name docker run --privileged --name myname1234 -v $PWD:/workspace -it sophgo/tpuc_dev:latest ``` 后文假定环境都在docker的`/workspace`目录。 #### 2. 下载`TPU-MLIR`...
Markdown
-28-28s-28 12.5-28 28 12.5 28 28 28 28-12.5 28-28zM192 428c0-15.5-12.5-28-28-28s-28 12.5-28 28 12.5 28 28 28 28-12.5 28-28zm0-66.2c0-15.5-12.5-28-28-28s-28 12.5-28 28 12.5 28 28 28 28-12.5 28-28zm0-66.2c0-15.5-12.5-28-28-28s-28 12.5-28 28 12.5 28 28 28 28-12.5 28-28zM264 428c0-15.5-12.5-28-28-28s-28 12.5-28 28 12.5 28 ...
CSS
|| localPath != null)) { final fileUrl = downloadUrl ?? localPath!; final file = await _downloadExportFile( fileName, fileUrl, downloadsPath, ); if (file != null && await file.exists()) { successfulDownloads++; results...
Dart
t3, 0x20(t0) // TAP_CONTROL_1_ADDRESS sw t3, 0x24(t0) // TAP_CONTROL_2_ADDRESS sw t3, 0x28(t0) // TAP_CONTROL_3_ADDRESS li t1, 0x00000010 // Running the test 8 times sw t1, 0x0068(t0) // PERF_COMP_ADDR_1_ADDRESS li t1, 0xfa5de83f // 4 Row Address Bits, 4 Column Address Bits, 2 BA bits sw t1, 0x002c(t0) ...
Assembly
avoided for "simple" symmetric encryption const val KEY_DERIVATION_COST = 8 const val KEY_ID_COST = 6 } } package io.oversec.one.crypto.sym import android.annotation.SuppressLint import android.content.Context import android.util.Log import com.google.protobuf.ByteString import com.google.protob...
Kotlin
*/ lwz r3, 0x164(r30) /* 801F41D4 001EFE34 A0 03 00 00 */ lhz r0, 0(r3) /* 801F41D8 001EFE38 54 00 05 AC */ rlwinm r0, r0, 0, 0x16, 0x16 /* 801F41DC 001EFE3C 2C 00 02 00 */ cmpwi r0, 0x200 /* 801F41E0 001EFE40 40 82 00 10 */ bne lbl_801F41F0 /* 801F41E4 001EFE44 A0 15 00 DC */ lhz r0, 0xdc(r21) /* 801F41E8 001EFE4...
Assembly
"""Test case for adding an overlay component defined in the rxconfig.""" from collections.abc import Generator import pytest from selenium.webdriver.common.by import By from reflex.testing import AppHarness, WebDriver def ExtraOverlay(): import reflex as rx def index(): return rx.vstack( ...
Python
�符 // 注意 SW字幕组 有两种 // SW字幕组 [SWSUB][7月新番][继母的拖油瓶是我的前女友\継母の連れ子が元カノだった][004][GB_JP][AVC][1080P][网盘][无修正] 約1條評論 // 银色子弹字幕组 [银色子弹字幕组][名侦探柯南][第1052集 少年侦探团的试胆冒险][简繁日多语MKV][1080P] 約4條評論 } private fun splitTags(tagOrTags: String): Sequence<String> { return sequenceOf(tagOrTags) // ...
Kotlin
build-id=0x%x", buildinfo)) } else if *flagHostBuildid == "none" { argv = append(argv, "-Wl,--build-id=none") } } // On Windows, given -o foo, GCC will append ".exe" to produce // "foo.exe". We have decided that we want to honor the -o // option. To make this work, we append a '.' so that GCC // will deci...
Go
_image.width; x++) { if(x<width) { int r,g,b,rgb; int alpha = 128; rgb = _bswap(*lptr); r = (rgb >> 22) & 0x3ff; g = (rgb >> 12) & 0x3ff; b = (rgb >> 2) & 0x3ff; r = (r * alpha + dpxc_image.pixel_data[x*3 + yy*dpxc_image.width*3 + 0]*4*(256-a...
C
returnData.setData("") } }package io.legado.app.help import com.jayway.jsonpath.JsonPath import io.legado.app.constant.AppConst import io.legado.app.constant.BookType import io.legado.app.data.entities.BookSource import io.legado.app.data.entities.rule.* import io.legado.app.exception.NoStackTraceException import ...
Kotlin
ipOrg iPM2_5 igNH ipNH igS ipS igNO ipNO ) // simpleDryDepIndices provides array indices for use with package simpledrydep. func simpleDryDepIndices() (simpledrydep.SOx, simpledrydep.NH3, simpledrydep.NOx, simpledrydep.VOC, simpledrydep.PM25) { return simpledrydep.SOx{igS}, simpledrydep.NH3{igNH}, simpledryde...
Go
*/ fun createOnDvd(): TmdbDiscover = TmdbDiscover.Movie( sortBy = TmdbDiscoverMovieSortBy.RELEASE_DATE, withReleaseTypes = TmdbDiscoverFilter(items = setOf(TmdbReleaseType.PHYSICAL)), ) /** * e. g. discover/movie?page=1&release_date.lte=2021-05-08&language=de&...
Kotlin
N\\Radicioni\\Esercitazione 3\\Centroidi di Rocchio con scelta dei NEG più raffinata (2)-fit_trasform_migliore- i synsets di WN\\c_sci_crypt.txt', 'w') as f: str = json.dumps(c_sci_crypt) f.write(str) with open('C:\\Users\\miky9\\PycharmProjects\\pythonProject\\Progetti TLN\\Radicioni\\Esercitazione 3\\Centroi...
Python
dija", "nbStudies:two": "%s študiji", "nbStudies:few": "%s študije", "nbStudies:other": "%s študij", "moreThanNbRatedGames:one": "≥ %s rangirana partija", "moreThanNbRatedGames:two": "≥ %s rangirani partiji", "moreThanNbRatedGames:few": "≥ %s rangirane partije", "moreThanNbRatedGames:other": "≥ %s rangira...
JavaScript
// {1127, 371} public void test5057() { check( // "Integrate[Sqrt[d*x]*(a^2 + 2*a*b*x^2 + b^2*x^4)^p, x]", // "(2*(d*x)^(3/2)*(a^2 + 2*a*b*x^2 + b^2*x^4)^p*Hypergeometric2F1[3/4, -2*p, 7/4, -((b*x^2)/a)])/(3*d*(1 + (b*x^2)/a)^(2*p))", // 1127, 371); } // {1127, 371} public void test...
Java
pub frame_index: i32, pub mat_frame_index: i32, } #[repr(C)] #[derive(Copy, Clone)] pub struct Sequence { // TODO } #[repr(C)] #[derive(Copy, Clone)] pub struct Trigger { state: u32, pos: f32, } #[repr(C)] #[vtable(TsShapeVtable)] #[inherits(ResourceInstance)] pub struct TsShape { pub nodes: Tool...
Rust
import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import numpy as np # 1 df = pd.read_csv("medical_examination.csv") # 2 df["BMI"] = df["weight"]/( df["height"]/100)**2 df["overweight"] = (df["BMI"] > 25).astype("int") df.drop("BMI", axis=1, inplace=True) # 3 df["cholesterol"] = (df["cholestero...
Python
.optimize_pools_async(optimized_pool_config).await?; Ok(()) } async fn optimize_memory_defragmentation_async(&mut self) -> Result<(), Self::Error> { // 1. 分析内存碎片 let fragmentation_analysis = self.analyze_memory_fragmentation_async().await?; // 2. 计算碎片整理策略 ...
Markdown
.apache.commons.io.FileUtils import java.io.File import java.nio.file.Path import java.nio.file.Paths import java.time.Instant import java.time.ZoneId import java.time.ZonedDateTime import kotlin.io.path.exists /** * A users local dun repo (~/dub) can get large over time. If left for a number of years it can waste gi...
Kotlin
("Decrypting result: "); decryptor.Decrypt(encryptedMatrix, plainResult); Console.WriteLine("Done"); var podResult = new List<UInt64>(); crtbuilder.Decompose(plainResult, podResult); Console.WriteLine("Result plaintext matrix:"); PrintMatrix(podR...
C#
return '${_androidResFolder}drawable-v21/'; } String get androidV21LaunchBackgroundFile { return '${androidV21DrawableFolder}launch_background.xml'; } String get androidNightV21DrawableFolder { return '${_androidResFolder}drawable-night-v21/'; } String get androidV21LaunchDarkBackgroundFile { ...
Dart
put("boolean_1", "false"); data7.put("decimal_1", "2000000000.0"); data7.put("date_1", String.valueOf(System.currentTimeMillis())); data7.put("double_1", "2.0"); data7.put("float_1", "2.0"); data7.put("integer_1", "2"); data7.put("inet_1", "'127.0.01.01'"); data7....
Java
ll private var currZoom: Table? = null private var currView: RecipeView? = null private var _currentSelect: RecipeItem<*>? = null var currentSelect: RecipeItem<*>? get() = _currentSelect set(content) { if (currentSelect == content) return val old = currentSelect _currentSelect = cont...
Kotlin
nil { return nil, getErr } for _, message := range crossMessages { txHistoryInfos = append(txHistoryInfos, getTxHistoryInfoFromCrossMessage(message)) } return txHistoryInfos, nil }) if err != nil { log.Error("failed to get L2 claimable withdrawals by address", "address", address, "error", err) retu...
Go
testing.T) { f64InputFrac := immutable.Some([]float64{2.5}) f64Input := immutable.Some([]float64{2.0}) getFloat64NillableArray := func(v NormalValue) immutable.Option[[]float64] { f, _ := v.Float64NillableArray(); return f } v := NewNormalFloat64NillableArray(f64InputFrac) assert.Equal(t, f64InputFrac, getFloat6...
Go
// This file is generated from a similarly-named Perl script in the BoringSSL // source tree. Do not edit by hand. #if defined(__i386__) #if defined(BORINGSSL_PREFIX) #include <boringssl_prefix_symbols_asm.h> #endif .text .globl _sha512_block_data_order .private_extern _sha512_block_data_order .align 4 _sha512_block_d...
Assembly
right{ -webkit-box-flex:1; -webkit-flex:1; -ms-flex:1; position:relative; top:-4px; flex:1; } aside.main-sidebar ul.main-menu .submenu.submenu--system section.section--2col .submenu__content .submenu__content-right .brand-name{ display:inline-block; width:100%; padding-bottom:7px; color:...
CSS
name_space, ros::Publisher samples_pub) { visualization_msgs::MarkerArray point_array; // point_array.markers.resize(MAX_POINTS); // point_array.markers.clear(); for (int i = 0; i < (int) points.size(); i++) { visualization_msgs::Marker sphere; sphere.header.f...
C++
_counter() - start_time) / 60} min Epoch Time: {(time.perf_counter() - tmp_time) / 60:.3} min # training Total Loss: {total_losses} RMSDs Loss: {rmsd_losss} Mdntr Loss: {mdntrue_losses} # validation Total Loss: {val_total_losses} RMSDs Loss: {val_rmsd_losses} Mdntr Loss: {val_mdntrue_losses} ''' ...
Python
00E9C60) /* 11970C 8017229C 00042080 */ sll $a0, $a0, 2 /* 119710 801722A0 00A4C821 */ addu $t9, $a1, $a0 /* 119714 801722A4 8F2A0000 */ lw $t2, ($t9) /* 119718 801722A8 00240821 */ addu $at, $at, $a0 /* 11971C 801722AC AC2A9C60 */ sw $t2, %lo(D_800E9C60)($at) /* 119720 801722B0 8C6B0000 */ lw $t3, ($v1)...
Assembly
}, ---|fE }, ---|fE }; --[[ Evaluates `val`. ]] ---@param val any ---@param ... any ---@return any local function eval(val, ...) ---|fS if type(val) ~= "function" then return val; else local can_call, new_val = pcall(val, ...); if can_call and new_val ~= nil then return new_val; end end ---|fE...
Lua
(Command command) { using (_metrics.MeasureCommandExecution()) { try { _lock.EnterWriteLock(); return command.ExecuteImpl(_model); } finally { _lock...
C#
любные комбайны", ["vjbase.menu.npc.options.togglefriendlyplayer"] = "Дружелюбные игроки", ["vjbase.menu.npc.options.togglefriendlyzombie"] = "Дружелюбные зомби", ["vjbase.menu.npc.options.togglefriendlyvj"] = "Дружелюбный VJ Base", ["vjbase.menu.npc.options.label2"] = "Все NPC VJ будут союзниками!", ["vjbase.menu...
Lua
ak; case MemberName.DeferredSortFlags: m_deferredSortFlags = reader.ReadListOfPrimitives<bool>(); break; case MemberName.DeferredSort: m_deferredSort = reader.ReadBoolean(); break; default: Global.Tracer.Assert(condition: false); break; } } } public void ResolveRefe...
C#
erAllocation{ Spec: allocationv1.GameServerAllocationSpec{ Selectors: []allocationv1.GameServerSelector{ {LabelSelector: fleetSelector}, }, Counters: map[string]allocationv1.CounterAction{ "games": { Capacity: &negativeOne, }}}}, wantGsaErr: true, }, // Note: a gameser...
Go
, 131, 207)', TRANSP_BLUE: 'rgba(0, 131, 207, 0.25)', GREEN: 'rgb(14, 167, 0)', TRANSP_GREEN: 'rgb(14, 167, 0, 0.25)', ORANGE: 'rgb(245, 78, 0)' }; type VisibleDialog = { id: string }; type DestroyedDialog = {}; type Dialog = VisibleDialog | DestroyedDialog; function closeDialog(dialog: Dialog) { // この段階ではDi...
Typescript
opts[k] = v else end end if opts.root then done_3f = true else local parent = dirname(curdir) if (parent == curdir) then done_3f = true else curdir = parent end end end local applied = {} for opt, va...
Lua
tt.h), myBatt.w, math.floor(wgt.cellPercent / 100 * myBatt.h), CUSTOM_COLOR) -- draw right text section if wgt.isDataAvailable then lcd.setColor(CUSTOM_COLOR, wgt.options.Color) else lcd.setColor(CUSTOM_COLOR, GREY) end lcd.drawText(wgt.zone.x + wgt.zone.w, wgt.zone.y + myBatt.y, wgt.cellPercent .. "...
Lua
} log.Debugf("respA2: %v", respA) // test get current bp, should only be myself chiefBPNodeID, err := GetCurrentBP() if err != nil { t.Fatal(err) } log.Debugf("current chief bp is: %v", chiefBPNodeID) // set another random node as block producer randomNode := proto.NodeID("00000000011a34cb8142780f692a4097d8...
Go
Token(){ return localStorage.getItem('id_token'); } getUserDetails(){ let user =JSON.parse(localStorage.getItem('user')); return user; } loggedIn(){ var token = this.getToken(); if(token) return true; return false; } logOut(){ localStorage.removeItem('id_token'); local...
Typescript
放方案,以满足用户对于美观与舒适的需求。 | | 电影推荐 | 给定用户的电影评分记录和喜好,请推荐五部符合用户口味的电影。 | | 菜品生成 | 给定一个主题,请生成三道符合主题的菜品名与配料。 ...
Markdown
/* Copyright (C) 2014, The University of Texas at Austin This file is part of libflame and is available under the 3-Clause BSD license, which can be found in the LICENSE file at the top-level directory, or at http://opensource.org/licenses/BSD-3-Clause */ #include "FLAME.h" extern fla_gemm_t* fla_...
C
} .sidebar-link div{ font-family: Roboto, Arial; font-size: 10px; margin-top: 6px; } .channel-profile-img { border-radius: 50%; } .thumbnail-row { margin-bottom: 8px; position: relative; } .thumbnail { width: 100%; } .video-time { background-color: black; color: white; ...
CSS
SigmaProp => sigma_prop_nested_expr(depth), _ => todo!("nested expr is not implemented for type: {:?}", tpe), } .boxed() } fn int_non_nested_expr() -> BoxedStrategy<Expr> { prop_oneof![Just(GlobalVars::Height.into()),].boxed() } fn constant(tpe: &SType) -> BoxedStra...
Rust
nt += 1 reports = [] if bracketLayer.LSB == mainLayer.LSB: reports.append(u"✅ LSB in sync") else: reports.append(u"⛔️ LSB diverging") if bracketLayer.RSB == mainLayer.RSB: reports.append(u"✅ RSB in sync") else: reports.append(u"⛔️ RSB diverging") if bracketLayer.width == main...
Python
modelDef; args = gameLocal.FindEntityDefDict( classname, false ); if ( !args ) { return vec3_origin; } modelDef = ANIM_GetModelDefFromEntityDef( args ); if ( !modelDef ) { return vec3_origin; } return modelDef->GetVisualOffset(); } /* ===================== idGameEdit::ANIM_GetModelFromName ==============...
C++
``` $ gcloud app deploy --verbosity debug DEBUG: Running [gcloud.app.deploy] with arguments: [--verbosity: "debug"] DEBUG: API endpoint: [https://appengine.googleapis.com/], API version: [v1] Services to deploy:<Paste> ... Updating service [default] (this may take several minutes)...failed. DEBUG: (gcloud.app.deploy)...
Markdown
ansfer select 24:"] DMA1TSEL_24 = 24, #[doc = "25: DMA channel 1 transfer select 25:"] DMA1TSEL_25 = 25, #[doc = "26: DMA channel 1 transfer select 26:"] DMA1TSEL_26 = 26, #[doc = "27: DMA channel 1 transfer select 27:"] DMA1TSEL_27 = 27, #[doc = "28: DMA channel 1 transfer select 28:"] ...
Rust
const status = challenge?.getChallengeStatus(); expect(status).toEqual(ChallengeStatus.CORRECT); const challengeType = challenge?.getChallengeType(); expect(challengeType).toEqual(ChallengeType.MULTIPLE); }); test("test update challenge component", async()=>{ const mdFileProcessor = new MdFileProcessor(data)...
Typescript
js";import{b as H,z as we,y as ye,a as be,ao as ke,d as xe,e as Ie}from"./app-dbd4b5f0.js";import"./vendor-6c6d1442.js";const Ce={style:{display:"inline-block"},viewBox:"0 0 24 24",width:"1em",height:"1em"};function Re(t,a){return _(),w("svg",Ce,a[0]||(a[0]=[r("g",{fill:"currentColor"},[r("path",{d:"M12 1.932l9 3.375V1...
JavaScript
req.method.toLocaleLowerCase()]; if (!apiHttpMethod) return res.status(400).send({ msg: `http method ${req.method} unsupported` }); const method = apiHttpMethod[req.params.method]; if (!method) return res.status(400).send({ msg: "invalid api method" }); try { let id; if (method.access & ApiAccess.TOKEN)...
Typescript
; let size = match rows { 0 => 0, _ => offsets.at(rows - 1) as usize, }; let inner = ColumnData::load_data::<ArcColumnWrapper, _>(reader, type_name, size, tz)?; Ok(ArrayColumnData { inner, offsets }) } } impl ColumnData for ArrayColumnData { fn sql_type...
Rust
c30 -> 806c0c34 @62824__63841 ; 806c0c34 -> 806c0c38 @62876 ; 806c0c38 -> 806c0c3c @63032 ; 806c0c3c -> 806c0c40 @63099 ; 806c0c40 -> 806c0c44 @63200 ; 806c0c44 -> 806c0c48 @63201__63846 ; 806c0c48 -> 806c0c4c @63202__63847 ; 806c0c4c -> 806c0c50 @63203 ; 806c0c50 -> 806c0c54 @63204 ; 806c0c54 -> 806c0c58 @63205 ; 806c...
Assembly
b944) By [matthewdavidbrozik](https://medium.com/@matthewdavidbrozik) - **LIKES: 79** - **2023-03-15 - PAID** - [Don’t Let a Data Breach Ruin Your Life: Proven Tips for Staying Safe Online](https://medium.com/@nik.kraljevic/dont-let-a-data-breach-ruin-your-life-proven-tips-for-staying-safe-online-7b4d1d5a1301) By [...
Markdown
*/ class CommandWithSessionTest : AllCategoriesKMongoBaseTest<Friend>() { lateinit var session: ClientSession @Before fun setup() { session = mongoClient.startSession() } @After fun tearDown() { session.close() } @Test fun canRunACommand() { val r = data...
Kotlin
o", "full", "line", NULL}; FILE *f = tofile(L); int op = luaL_checkoption(L, 2, NULL, modenames); lua_Integer sz = luaL_optinteger(L, 3, LUAL_BUFFERSIZE); int res = setvbuf(f, NULL, mode[op], (size_t)sz); return luaL_fileresult(L, res == 0, NULL); } static int io_flush (lua_State *L) { return luaL_filere...
C
chPhase::Ended, _ => unreachable!() }; Some(Event::Touch(Touch { phase: phase, location: (event_data.event_x, event_data.event_y), id: event_data.detail as u64, })) } _...
Rust
=vec128#11,<out0=vec128#9,<dummy=vec128#10 # asm 2: cg >c=$13,<out0=$11,<dummy=$12 cg $13,$11,$12 # qhasm: int32323232 out0 += dummy # asm 1: a >out0=vec128#9,<out0=vec128#9,<dummy=vec128#10 # asm 2: a >out0=$11,<out0=$11,<dummy=$12 a $11,$11,$12 # qhasm: dummy = c << (8 * 4) # asm 1: shlqbyi >dummy=vec128#10,<c=vec1...
Assembly
(t, err) }) }) t.Run("Invalid", func(t *testing.T) { originalTx := chain.Btc.Tx t.Cleanup(func() { chain.Btc.Tx = originalTx }) toWallet := fundedWallet(t, client, boltzrpc.Currency_BTC) tests := []struct { desc string txMocker txMocker error string }{ {"LessValue", lessValueTxPr...
Go
, size_t len) { if (mwifi_is_connected()) { mwifi_data_type_t data_type = {0x0}; if (mwifi_write(NULL, &data_type, data, len, true) == MDF_OK) return true; } else { return true; } return false; } size_t WiFiMeshNode::receive(char *buffer, size_t size, int timeout) { if (mwifi_is_connected...
C++
해주세요.', // Put the voice-only part of the label in the span. unavailable: '%1<span class="cke_accessibility">, 사용불가</span>', // Keyboard keys translations used for creating shortcuts descriptions in tooltips, context menus and ARIA labels. keyboard: { 8: '백스페이스', 13: '엔터', 16: '시프트', 17: '컨트롤', ...
JavaScript
Event::Key(KeyEvent{code: KeyCode::Char($ch), modifiers: $mod}) }; } const HELP_TEXT: &str = "Controls: wasd : move space : toggle gridpoint e : frame advance f : playback xx : clear qq : quit h : show/hide this help lmb : draw rmb : erase Game of Life rules: minus/equals '-=' : adjust 'li...
Rust
all; -o-transition: all; transition: all; -webkit-transition-duration: 300ms; transition-duration: 300ms; } .fg-line:not([class*=has-]):after { background: #2196f3; } .fg-line.input-toggled:after { width: 100%; } .fg-line.readonly .form-control { color: #9d9d9d; background: transparent; } .fg-line....
CSS
/* * Copyright (C) 2004 Matthew Wilcox <matthew@wil.cx> * Copyright (C) 2004 Intel Corp. * * This code is released under the GNU General Public License version 2. */ /* * mmconfig.c - Low-level direct PCI config space access via MMCONFIG */ #include <linux/pci.h> #include <linux/init.h> #include "pci.h" /* Th...
C
ly have caused // 1 handler to trigger after the debouncing period. time.Sleep(interval * 2) assert.Equal(t, int32(1), atomic.LoadInt32(&timesHandled), "Wrong number of handled calls") cancel() } func TestDebounce_MultipleHandlerInvocation(t *testing.T) { eventsChan := make(chan interface{}, 100) ctx, cancel := ...
Go
#!/usr/bin/env python3 """ 🚀 FLOWSTATE-AI SIMPLE SYSTEM STARTUP ⚡ Get the core AI agents operational immediately 🎯 Mission: Launch Project Manager, Communication Hub, and CRM Pipeline """ import os import sys import subprocess import time import signal from pathlib import Path # Set up the project root PROJECT_ROOT...
Python
set_display_mode(display_mode).sdl_error()?; window.set_fullscreen(fullscreen).sdl_error()?; let mut canvas = window.into_canvas().accelerated().present_vsync().build()?; canvas.set_blend_mode(BlendMode::Blend); video.text_input().start(); // video.text_input().set_rect(TODO); ...
Rust
H", LIEF::assembly::aarch64::OPCODE::BFMAXNM_VG4_4Z2Z_H) .value("BFMAXNM_VG4_4ZZ_H", LIEF::assembly::aarch64::OPCODE::BFMAXNM_VG4_4ZZ_H) .value("BFMAXNM_ZPmZZ", LIEF::assembly::aarch64::OPCODE::BFMAXNM_ZPmZZ) .value("BFMAX_VG2_2Z2Z_H", LIEF::assembly::aarch64::OPCODE::BFMAX_VG2_2Z2Z_H) .value("BFMAX_VG2_2ZZ_H",...
C++