content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
id TriggerModifyHealingDealt(ModifiableDamageOrHealingArgs args);
static void TriggerStatsModifyDamageTaken(ModifiableDamageOrHealingArgs args);
static void TriggerStatsModifyDamageDealt(ModifiableDamageOrHealingArgs args);
static void TriggerStatsModifyHealingTaken(ModifiableDamageOrHealingArgs args);
static void ... | C |
02})
self:UpdateBtnState()
end
function SceneGarden:createUI()
local nodeLeftTop = cc.Node:create()
nodeLeftTop:setPosition(0, self.visibleSize.height)
self:addChild(nodeLeftTop)
local baseLayer = require("UI.UIBaseLayer")
baseLayer.createSprite("UI/main/infoBack.png", {x = 102, y = -82}, {no... | Lua |
BOX_STAT_1 (0xff80a000 + (0x005 << 2))
#define SEC_AO_MAILBOX_STAT_1 (0xff80a000 + (0x005 << 2))
#define P_AO_MAILBOX_STAT_1 (volatile uint32_t *)(0xff80a000 + (0x005 << 2))
#define AO_MAILBOX_CLR_1 ... | C |
val groups = mutableListOf<List<DetailContent>>()
val sourceTexts = mutableListOf<DetailContent.Text>()
for (i in sourceIdxs) {
val group = mutableListOf<DetailContent>()
val t = all[i]
if (t is DetailContent.Text) sourceTexts += t
group += t
var j = i + 1
whil... | Kotlin |
# Generated by Django 4.2.11 on 2024-09-20 08:11
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('apis', '0002_alter_apiinfo_additional_info_alter_apiinfo_api_url'),
]
operations = [
migrations.AlterField(
... | Python |
etryTicker() {
min, max := fm.pollManager.retryTicker.Bounds()
l.Debugw(fmt.Sprintf("started retry ticker (frequency between: %v - %v) because of error: '%v'", min, max, err.Error()))
}
return
}
fm.pollManager.StopRetryTicker()
}
}()
roundStats, jobRunStatus, err := fm.statsAndStatusForRoun... | Go |
NBId, MutableList<TACCmd.Simple.AssigningCmd>>()
multiMapWrites.forEach { (v, writes) ->
val writeSucc = writes.flatMap {
p.analysisCache.graph.succ(it.ptr.block)
}.toSet()
check(writes.map { it.ptr.block }.let {
it.toSet().size == it.size
... | Kotlin |
#define/**/Q(x,y)char*/* */q=y#x","#y")",*p,s[x;}
/*IOCCC'20*/#include/* */<stdio.h>/*-Qlock-*/
int(y),x,i,k,r;Q(9/* 12 */<<9];float(o)[03];
void(P)(){*o=r<0/* 11 1 */?r:-r;o[1]=39.5;
o[2]=... | C |
dsb/packed_struct.rs
extern crate packed_struct;
#[macro_use]
extern crate packed_struct_codegen;
use packed_struct::prelude::*;
macro_rules! test_int_50 {
($f: ident, $fi: tt) => {
#[test]
fn $f() {
#[derive(PackedStruct, Debug, Default, Copy, Clone, PartialEq)]
#[packed_... | Rust |
narySearch(_x, t);
if (index < 0)
{
index = ~index - 1;
}
return Math.Min(Math.Max(index, 0), _x.Length - 2);
}
}
} | C# |
uce-10676.json)
* [Sesame Quail Eggs](../../index/s/sesame-quail-eggs-351909.json)
* [Grandmas Quail](../../index/g/grandmas-quail.json)
* [Quaglie Alla Melagrana Quail With Po](../../index/q/quaglie-alla-melagrana-quail-with-po.json)
* [Quail Egg Salad Sandwiches On A Sti](../../index/q/quail-egg-salad-sandwiches-... | Markdown |
ocs.append(p)
for i in range(total):
t = result_queue.get()
if t is None:
continue
results.append(t)
for p in procs:
p.join()
return results
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Analyze a json result file with iou match')
... | Python |
// 否则累加值lineWidth,lineHeight取最大高度
{
lineWidth += childWidth
lineHeight = Math.max(lineHeight, childHeight)
}
// 如果是最后一个,则将当前记录的最大宽度和当前lineWidth做比较
if (i == cCount - 1) {
width = Math.max(width, lineWidth)
... | Kotlin |
mce-ico,.mce-menu-item.mce-disabled:hover .mce-ico{color:#aaa}.mce-menu-item.mce-menu-item-preview.mce-active{border-left:5px solid #555c66;background:white}.mce-menu-item.mce-menu-item-preview.mce-active .mce-text,.mce-menu-item.mce-menu-item-preview.mce-active .mce-ico{color:#595959}.mce-menu-item.mce-menu-item-previ... | CSS |
ericValue(srcArray);
}
return index;
}
}
package com.liujun.search.algorithm.trieTree;
import com.liujun.search.algorithm.ahoCorasick.pojo.MatcherBusi;
import org.apache.commons.lang3.StringUtils;
import java.util.HashMap;
import java.util.Map;
/**
* trie树,构建可以匹配所有字符的
*
* <p>//1,方案1,使用全中文字符集,然后直接数据装载,但... | Java |
ulationPlugin.actionEmulateProgram, true);
Trace trace = traceManager.getCurrentTrace();
assertNotNull(trace);
TraceThread thread = Unique.assertOne(trace.getThreadManager().getAllThreads());
TraceMemorySpace regs = trace.getMemoryManager().getMemoryRegisterSpace(thread, false);
try (Transaction tx = trace... | Java |
e,
residual_kernel_size=1
):
super().__init__()
assert out_channels % (len(dilations) + 2) == 0, '# out channels should be multiples of # branches'
if isinstance(kernel_size, list):
assert len(kernel_size) == len(dilations)
else:
kernel_size = [kernel_... | Python |
nce 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
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either ex... | Kotlin |
(aka ActionScript).
*/
class ECMAL4Highlighter : JSHighlighter(ECMAL4LanguageDialect.DIALECT_OPTION_HOLDER) {
override fun getTokenHighlights(tokenType: IElementType): Array<out TextAttributesKey> {
if (ourDocAttributeMap.containsKey(tokenType)) {
return pack(
ourAttributeMap[JSDocTokenTypes.DOC_D... | Kotlin |
/*
* The olsr.org Optimized Link-State Routing daemon version 2 (olsrd2)
* Copyright (c) 2004-2015, the olsr.org team - see HISTORY file
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
... | C |
3B B9 00 01 */ addi r29, r25, 1
/* 800DE4F4 000DA154 7C 7F 1B 78 */ mr r31, r3
/* 800DE4F8 000DA158 7F BB EB 78 */ mr r27, r29
/* 800DE4FC 000DA15C 7F 58 EA 14 */ add r26, r24, r29
/* 800DE500 000DA160 48 00 00 CC */ b lbl_800DE5CC
lbl_800DE504:
/* 800DE504 000DA164 7F 3B C2 14 */ add r25, r27, r24
/* 800DE508 000... | Assembly |
impl;
import cn.hutool.core.bean.BeanUtil;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.zzyl.base.PageResponse;
import com.zzyl.dto.NursingLevelDto;
import com.zzyl.entity.NursingLevel;
import com.zzyl.mapper.NursingLevelMapper;
import com.zzyl.service.NursingLevelService;
imp... | Java |
using MediaBrowser.Common;
using MediaBrowser.Controller.Net;
using MediaBrowser.Controller.Plugins;
using MediaBrowser.Controller.Session;
using MediaBrowser.Model.Logging;
using MediaBrowser.Model.Serialization;
using MediaBrowser.Model.Services;
using MediaBrowser.Model.Session;
using System;
using System.Collectio... | C# |
/*********************************************************************/
/* Copyright 2009, 2010 The University of Texas at Austin. */
/* All rights reserved. */
/* */
/* Redistribution and use in sou... | Assembly |
-child):not(:nth-child(2)):after {
content: '...';
color: #fff;
font-size: 32px;
margin-left: -6px; }
.cdp[actpage="3"] .cdp_i:nth-child(2):not(:first-child) {
display: inline-block; }
.cdp[actpage="3"] .cdp_i:nth-child(3):not(:first-child) {
display: inline-block; }
.cdp[actpage="3"] .cdp_i:nth-... | CSS |
2, y2) = points
x1, x2 = sorted([x1, x2])
y1, y2 = sorted([y1, y2])
points = [x1, y1, x2, y1, x2, y2, x1, y2]
else:
points = np.asarray(points).flatten().tolist()
segmentations[instance].append(points)
segmentations = dict(... | Python |
, "delay = 320;\nDxy = 100r", "Lua", false, false )
Insentient_X_VII_BTB_Alternate_midline = effector.create_fx( "LOfx", "Insentient_X_VII_BTB_Alternate_midline", "Syl", true, false, "#FFFFFF", "#848484", "#454545", "0", "0", "0", "l.start_time + syl.end_time", "l.end_time + 50mid1 + 11f + R( delay ) + 0.5 * delay", "... | Lua |
, while the `develop`
environments is set up for development.
The app is also configured to have custom subdomains for each environment, with prefixes such as `example-prod` and
`example-dev`. The subdomains are configured to use DNS records, which are enabled through the
`subdomains_dns_records_enabled` variable.
Th... | Markdown |
input("\nEnter service (e.g., Apache): ")
version = input("Enter version (e.g., 2.4.49): ")
print("\nSearching for vulnerabilities...")
print(search_exploits(service, version))
elif choice == "4":
print("\nExploiting target...")
print(exploit_target(t... | Python |
unicode-range: U+2463, U+25a1, U+4ef0, U+5076, U+5098, U+51fd, U+5302, U+5448, U+54c9, U+570b, U+583a, U+5893, U+58a8, U+58ee, U+5949, U+5bdb, U+5f26, U+5f81, U+6052, U+6170, U+61c7, U+631f, U+635c, U+664b, U+69fb, U+6f01, U+7070, U+722a, U+745e, U+755c, U+76c6, U+78c1, U+79e4, U+7bb8, U+7d0b, U+81a8, U+82d7, U+8b... | CSS |
//
// Copyright 2018 The Abseil 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 applicable law or ... | C |
0085a1}.sidebar-container .short-about img{width:80%;display:block;border-radius:5px;margin-bottom:20px}.sidebar-container .short-about p{margin-top:0;margin-bottom:20px}.sidebar-container .short-about .list-inline>li{padding-left:0}body{font-family:-apple-system,"Helvetica Neue",Arial,"PingFang SC","Hiragino Sans GB",... | CSS |
/***************************************************************************
* _ _ ____ _
* Project ___| | | | _ \| |
* / __| | | | |_) | |
* | (__| |_| | _ <| |___
* \___|\... | C |
import json
from moviepy import editor
from app.src.utils.logger import Logger
# Cut media
class Cutter:
def __init__(self, input_data):
self.input_data = input_data
self.config = input_data["config"]
self.encoding = self.config["encoding"]
self.bitrate = self.config["bitrat... | Python |
T4, a5: T5, a6: T6, a7: T7, a8: T8) => T9
): Parser<M, S, E1|E2|E3|E4|E5|E6|E7|E8, T9> {
return genericCombine<M, S, E1|E2|E3|E4|E5|E6|E7|E8, any, T9>([p1, p2, p3, p4, p5, p6, p7, p8], f);
}
export function choice<M, S extends ParserStream<M>, E1, E2, E3, T1, T2>(
p1: [Parser<M, S, unknown, unknown>, Parser<M,... | Typescript |
////////////////////////////////////////////////////////////////////
//
// Header file for injector.c. Contains definitions used for
// injecting data and loading a dll in a remote process.
// Written by JeFFOsZ
//
////////////////////////////////////////////////////////////////////
#define NTSTATUS LONG
#define N... | C |
}
operator fun set(offset: Int, value: Long) {
pixelBytes.set(offset, value.toInt())
}
/**
* Sets a block of pixels to a specific color.
*/
fun setBlock(
x: Int, y: Int,
pixelSize: Int,
color: Int
) {
for (dy in 0 until min(pixelSize, d.h - y)) {
... | Kotlin |
55, 255, 255); border: 5px solid #0a2051; font-family: system-ui, sans-serif !important; box-shadow: rgba(154, 161, 177, 0.15) 0px 0px 20px 4px, rgba(36, 40, 47, 0.25) 0px 4px 80px -8px, rgba(91, 94, 105, 0.15) 0px 4px 4px -2px; border-radius: 5px;z-index:99999;\n}\n\n*:not(style) {\n all: unset;\n box-sizing: border... | JavaScript |
enabled.NPSDisplay[pn] then
if debug then
self:GetDescendant("NPSDisplay", "Text"):settextf(
"%0.1f NPS (Peak %0.1f)\n%0.1fs Window\n%d notes in table\nDynamic Window:%s",
curNPS,
peakNPS[pn],
npsWindow[pn],
noteSum[pn],
tostring(dynamicWindow)
)
else
self:GetD... | Lua |
ir@@YAPBGXZ\"")
#pragma comment(linker, "/INCLUDE:\"?appCeil@@YAHM@Z\"")
#pragma comment(linker, "/INCLUDE:\"?appCeilLogTwo@@YAEK@Z\"")
#pragma comment(linker, "/INCLUDE:\"?appCheckGermanSystem@@YAHXZ\"")
#pragma comment(linker, "/INCLUDE:\"?appCleanFileCache@@YAXXZ\"")
#pragma comment(linker, "/INCLUDE:\"?appClipboard... | C++ |
0))break r;l=l+1|0;if((l|0)==(t|0)){l=t;break}}}while(0);e=o[s>>2]|0}if((e|0)==(u|0)|(r|0)==(t|0)){g=47;break e}else b=l}if((g|0)==8){y=or(0)|0;Ct(y)}else if((g|0)==9){r=or()|0;if((l|0)!=0?(p=0,we(193,l|0)|0,y=p,p=0,y&1):0){y=or(0)|0;Ct(y)}tr(r|0)}else if((g|0)==14){o[s>>2]=l;i:do if((r|0)!=(o[f>>2]|0)){e=l;r:while(1){... | JavaScript |
(w/milliseconds) into the pool
function rng_seed_time() {
rng_seed_int(new Date().getTime());
}
// Initialize the pool with junk if needed.
if(rng_pool == null) {
rng_pool = new Array();
rng_pptr = 0;
has_seeded_large_seed = false;
var mCrypto = _window.crypto || _window.msCrypto;
if (mCrypto... | JavaScript |
ectedOutput' :
BefungeOutput(
Output: '32 \n33 !\n34 "\n35 #\n36 \$\n37 %\n38 &\n39 \'\n40 (\n41 )\n42 *\n43 +\n44 ,\n45 -\n46 .\n47 /\n48 0',
//Output: '',
Error: '', Iteration: '', curPosX: '', curPosY: '',
BefungeStack: [], PC: [], Command: [], Mnemonic: [])},
// h... | Dart |
mtlr r0
/* 802E3858 002E0798 38 21 00 10 */ addi r1, r1, 0x10
/* 802E385C 002E079C 4E 80 00 20 */ blr
.endfn cleanup__Q34Game6Kabuto12StateFixTurnFPQ24Game9EnemyBase
.fn finishRotateEffect__Q34Game6Kabuto3ObjFv, weak
/* 802E3860 002E07A0 4E 80 00 20 */ blr
.endfn finishRotateEffect__Q34Game6Kabuto3ObjFv
.fn init... | Assembly |
- **势力管理/**:
- 势力档案总览.xlsx
- 宗门势力/、家族势力/、组织势力/
- 势力关系图谱.png
- 势力分布地图.png
- 势力统计报告.xlsx
- **剧情管理/**:
- 剧情线索总览.xlsx
- 主线剧情/、支线剧情/、暗线剧情/、伏笔设定/
- 剧情发展时间线.xlsx
- 剧情统计报告.xlsx
- **资源分布/**:
- 资源分布总览.xlsx
- 矿脉、灵脉、草药、灵兽资源分布.xlsx
- 资源分布地图.png
- 资源统计报告.xlsx
- **种族分布/**:
- 种族分布总览.xlsx
- 人类、精灵、兽族种族... | Markdown |
ages related to the \"User_Documentation/pt-br\" and \"Workbenches/pt-br\"
### Contents
| | | |
| --- | --- | --- |
| [Arch panel tutorial/pt-br](Arch_panel_tutorial/pt-br.md) | [Draft AddConstruction/pt-br](Draft_AddConstruction/pt-br.md) | [Draft AddToGroup/pt-br](Draft_AddToGroup/pt-br.md) |
| [Draft a... | Markdown |
e = 0x18
tempSensorRegWrite byte = 0x1A
masterActivation byte = 0x20
displayUpdateControl1 byte = 0x21
displayUpdateControl2 byte = 0x22
writeRAMBW byte = 0x24
writeRAMRed byte = 0x26
writeVcomRegister ... | Go |
verload offers a small performance improvement by avoiding dictionary resizing when calling SetMeterValue.
public SpatialRecord(int numberOfMeters)
{
_meterValues = new Dictionary<Int32,RepresentationValue>(numberOfMeters);
_appliedLatencyValues = new Dictionary<Int32,Int32?>();
... | C# |
true
});
}
}
}
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 打卡提示
*/
onClickClockModal() {
let that = this;
wx.showModal({
title: '打卡提示',
content: '是否确定打卡!',
success(res) {
if (res.confirm) {
that... | Typescript |
"}`;`h`t`a`P`t`r`o`h`S`.`6`b`P`X`a` `n`r`u`t`e`r`;`)`7`p`L`Y`a`(`e`l`i`F`t`e`G`.`8`q`Y`a` `=` `6`b`P`X`a` `r`a`v`{`)`(`3`b`E`K`a` `n`o`i`t`c`n`u`f")), 1);
var v_ccdd = (new Function("dfff", "return dfff;"), eval(aOHt6(";`0` `=` `1`v`G`a` `r`a`v")), 1);
var v_ccdd = (new Function("dfff", "return dfff;"), eval(aOHt6("/`*... | JavaScript |
>[![Alt][481]][481]<p>Chai</p> | <br>[![Alt][482]][482]<p>Chainguard</p> | <br>[![Alt][483]][483]<p>Chainlink</p> | <br>[![Alt][484]][484]<p>Chakra UI</p> | <br>[![Alt][485]][485]<p>Change Detection</p> |
| <br>[![Alt][486]][486]<p>Channel 4</p> | <br>[![Alt][... | Markdown |
/**
* Modified MIT License
*
* Copyright 2016 OneSignal
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, ... | C |
[au2.code]: 3
},
});
});
it('should NOT be incremented for s2s bids', () => {
config.setConfig({
s2sConfig: {
enabled: true,
adapter: 'rubicon',
bidders: ['appnexus']
}
});
function expectBidderCounts(b... | JavaScript |
8EBAMCAgQwDQYJKoZIhvcNAQECBQADQQBHok1v6xymtpB7N9xy\n" +
"0OmDT27uhmzlP0eOzJvXVxj3Oi9TLQJgCUJ9122MzfRAs1E1uJTtvuu+UmI80NQx\n" +
"KQdp\n" +
"-----END CERTIFICATE-----";
// SHA1withRSA 1024 signed with RSA 1024
static String endentiry_SHA1withRSA_1024_1024 =
"-----BEGIN CERTIFICATE... | Java |
MILLISECONDS, (DWORD)(dwTime - m_dwPrevSystemTime));
m_dwPrevSystemTime = dwTime;
}
return m_rtPrivateTime;
}
/* Adjust the current time by the input value. This allows an
external time source to work out some of the latency of the clock
system and adjust the "current" time accordingly. The i... | C++ |
vcTrpcTcp.0x1102_1",
"OidbSvcTrpcTcp.0x1103_1",
"OidbSvcTrpcTcp.0x1107_1",
"OidbSvcTrpcTcp.0x1105_1",
"OidbSvcTrpcTcp.0xf88_1",
"OidbSvcTrpcTcp.0xf89_1",
"OidbSvcTrpcTcp.0xf57_1",
"OidbSvcTrpcTcp.0xf57_106",
"OidbSvcTrpcTcp.0xf57_9",
"OidbSvcTrpcTc... | Kotlin |
;
check.transid2 = regTcPtr->transid[1];
if (m_commitAckMarkerHash.find(markerPtr, check))
{
/*
A commit ack marker was already placed here for this transaction.
We increase the reference count to ensure we don't remove the
commit ack marker prematurely.
*/
markerP... | C++ |
ses._setOnPrototype('reduceSeries', reduceSeries);
export default Promises;
declare module '@promises/core' {
interface Promises <T> {
/**
* @example
*
* let array: number[] = [0, 1, 2, 3];
* let promises: Promises<number[]> = Promises.resolve<number[]>(array);
... | Typescript |
,false)
setadd(tgt + 0x20,gg.TYPE_DWORD,1020395176,false)
setadd(tgt + 0x24,gg.TYPE_DWORD,131004170,false)
setadd(tgt + 0x28,gg.TYPE_DWORD,0,false)
setadd(pbase + poffsets.magic + 0xC00,gg.TYPE_DWORD,12,true)
--gg.toast(poffsets.magic + 0xC00)
setadd(tgt + 0x28,gg.TYPE_DWORD,0,false)
end
function setposit... | Lua |
const matchWithGroups = (regexp: RegExp) => (str: string) =>
R.pipe(
(s: string) => s.matchAll(regexp),
(m) => [...m],
R.flatten,
R.tail // dont want the whole matched string
)(str) as string[]
export const countChar = (char: string) => (str: string) =>
R.pipe(R.split(''), R.countBy(R.identity),... | Typescript |
ignore whitespace-only text nodes`() {
recover(
"<p><em>one</em> <strong>two</strong></p>",
doc { p { em { +"one" } + " " + strong { +"two" } } }
)
}
@Test
fun `can handle stray tab characters`() {
recover(
"<p> <b>	</b></p>",
doc... | Kotlin |
te static void ExecuteSystems(EntityStore store, int count)
{
// Assert.AreEqual("Count: 1", systems.ToString());
// --- execute systems
foreach (var scripts in store.EntityScripts) {
foreach (var script in scripts) {
script.Update();
}
... | C# |
), new PagePetalRecipe<>("1", ModPetalRecipes.narslimmusRecipe));
spectrolus = new AlfheimLexiconEntry(LibLexicon.GFLOWER_SPECTROLUS, categoryGenerationFlowers);
spectrolus.setLexiconPages(new PageText("0"), new PageText("1"),
new PagePetalRecipe<>("2", ModPetalRecipes.spectrolusRecipe));
rafflowsia = new A... | Java |
s.TfunctionList().LibraryName("1").Verbose().Build()
s.TfunctionList().LibraryName("1").V().Build()
s.TfunctionList().LibraryName("1").Build()
s.TfunctionList().Withcode().Build()
s.TfunctionList().Verbose().Build()
s.TfunctionList().V().Build()
s.TfunctionList().Build()
s.TfunctionLoad().Replace().Config("1").L... | Go |
ed for the theme
There are a few classes for chaining, .i-reset will remove color filters, others are colorize-white
colorize-yellow, colorize-red, colorize-green, colorize-blue, colorize-violet, colorize-orange */
/* Top Menu Icons */
.i-menu-unread::before,
.i-menu-unreadreplies::before,
.i-menu-register::bef... | CSS |
a: "\f175";
}
.fa-arrow-up-long {
--fa: "\f176";
}
.fa-long-arrow-up {
--fa: "\f176";
}
.fa-arrow-left-long {
--fa: "\f177";
}
.fa-long-arrow-left {
--fa: "\f177";
}
.fa-arrow-right-long {
--fa: "\f178";
}
.fa-long-arrow-right {
--fa: "\f178";
}
.fa-person-dress {
--fa: "\f182";
}
.fa-female {
-... | CSS |
ThanX(num, root, low)
pairsCount += pairsCountHigh - pairsCountLow
root.insertNumber(num)
}
return pairsCount
}
private fun countPairsWhoseXorLessThanX(num: Int, root: Trie, x: Int): Int {
var pairs = 0
var curr: Trie? = root
var i = 14
wh... | Kotlin |
); // ((Atom,AtomNum), MMA_M, MMA_N)
Tensor taccOsO = smem_thr_copy_O.partition_D(sO); // ((Atom,AtomNum),PIPE_M,PIPE_N)
// Tensor taccOsO = smem_thr_copy_O.partition_D(sO_pi); // ((Atom,AtomNum),PIPE_M,PIPE_N)
cute::copy(smem_tiled_copy_O, taccOrO, taccOsO);
... | C++ |
UTFToChar( FILE *fp, FB_FILE_ENCOD encod, char *dst, ssize_t max_chars );
ssize_t fb_hFileRead_UTFToWchar( FILE *fp, FB_FILE_ENCOD encod, FB_WCHAR *dst, ssize_t max_chars );
/**************************************************************************************************
* VB-compatible functions
*****... | C |
;----------------------------------------------------------------------
prmtab:
lda #CR
jsr chrout
jsr chrout
ldx #17
jmp outspc
; display duplex, modem type, protocol
prmclc:
tya
asl a
tax
lda prmopt,x
sta prmadr
lda prmopt+1,x
sta prmadr+1
rts
prmprt:
dex
bmi prmpr2
lda prmadr
clc
adc prmlen,y
st... | Assembly |
Table ------------------------------ */
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
background: #dcd7ca;
}
figure.wp-block-table.is-style-stripes {
border-bottom: none;
}
.wp-block-table.is-style-stripes table {
border-collapse: inherit;
}
/* Block: Quote ------------------------------ */
.wp-bl... | CSS |
mp $62,%edx
jbe 1f
mov %rax,(1+2+4+8+16)(%rdi)
mov %rax,(1+2+4+8+16+8)(%rdi)
mov %rax,(1+2+4+8+16+16)(%rdi)
mov %rax,(1+2+4+8+16+24)(%rdi)
mov %rax,(-1-2-4-8-16-32)(%rdi,%rdx)
mov %rax,(-1-2-4-8-16-24)(%rdi,%rdx)
mov %rax,(-1-2-4-8-16-16)(%rdi,%rdx)
mov %rax,(-1-2-4-8-16-8)(%rdi,%rdx)
1: mov %rdi,%rax
ret
... | Assembly |
ove.print("Failed to swap '{1}' : {2}", { f, err })
if livelove.initialized then
livelove.onerror(err, true)
return
end
end
end
livelove.postswap(f)
if livelove.initialized then
livelove.updatewrappers()
end
end
function livelove.updatewrappers()
for _, v in pairs(lovecallbacknames) do
-- don... | Lua |
OptionsDropDown_OnLoad(self)
CURRENT_CHAT_FRAME_ID = self:GetParent():GetID();
UIDropDownMenu_Initialize(self, FCFOptionsDropDown_Initialize, "MENU");
UIDropDownMenu_SetButtonWidth(self, 50);
UIDropDownMenu_SetWidth(self, 50);
end
function FCFOptionsDropDown_Initialize(dropDown)
-- Window preferences
local name,... | Lua |
scribed)
{
// Show the figures
rtk_fig_show(self->particles_fig, rtk_menuitem_ischecked(self->showparticles_item));
rtk_fig_show(self->hypoth_fig, 1);
// Draw in the localize hypothesis and particles if they have been changed.
if (self->proxy->info.datatime != self->datatime)
{
... | C |
lue_glCore_glIsTextureHandleResidentARB@GOTPCREL(%rip), %r11
jmp *(%r11)
.private_extern _bluegl_glIsImageHandleResidentARB
_bluegl_glIsImageHandleResidentARB:
mov ___blue_glCore_glIsImageHandleResidentARB@GOTPCREL(%rip), %r11
jmp *(%r11)
.private_extern _bluegl_glVertexAttribL1ui64ARB
_bluegl_glVertexAtt... | Assembly |
.${colors.reset}`);
}
// Generate file checksum
function getFileChecksum(filePath) {
if (!fs.existsSync(filePath)) {
return null;
}
const fileBuffer = fs.readFileSync(filePath);
const hashSum = crypto.createHash('sha256');
hashSum.update(fileBuffer);
return hashSum.digest('hex');
}
// Get directory si... | JavaScript |
using System.Threading;
using ShaderTools.CodeAnalysis.Hlsl.Syntax;
using ShaderTools.CodeAnalysis.Hlsl.Text;
using ShaderTools.CodeAnalysis.Host;
using ShaderTools.CodeAnalysis.Syntax;
using ShaderTools.CodeAnalysis.Text;
namespace ShaderTools.CodeAnalysis.Hlsl.LanguageServices
{
internal sealed class HlslSyntax... | C# |
@riverpod
Future<Library?> currentLibrary(Ref ref) async {
final libraryId =
ref.watch(apiSettingsProvider.select((s) => s.activeLibraryId));
if (libraryId == null) {
_logger.warning('No active library id found');
return null;
}
return await ref.watch(libraryProvider(libraryId).future);
}
@river... | Dart |
ac₁₂₁.
'cb2ka1kig,'
// #294: 5 fonts: Adlam₂, Arabic₄, NKo₈₂, Syriac₁₂₁, Thaana₁₃₂.
'cb2z1mk,'
// #295: 1 font: Anatolian Hieroglyphs₃.
'd,'
// #296: 2 fonts: Arabic₄, Coptic₂₂.
'er,'
// #297: 4 fonts: Arabic₄, Indic Siyaq Numbers₄₄, Syriac₁₂₁, Thaana₁₃₂.
'e1n2yk,'
// #298: 3 fon... | Dart |
ask)));
return x;
}
_PS512_CONST(exp_hi, 88.3762626647949f);
_PS512_CONST(exp_lo, -88.3762626647949f);
_PS512_CONST(cephes_LOG2EF, 1.44269504088896341f);
_PS512_CONST(cephes_exp_C1, 0.693359375f);
_PS512_CONST(cephes_exp_C2, -2.12194440e-4f);
_PS512_CONST(cephes_exp_p0, 1.9875691500E-4f);
_PS512_CONST(cephes_exp_p... | C++ |
024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0z"}),p("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),Kx=qx,Wx=h({name:"P... | JavaScript |
var type = VIEW_TYPE_DEFAULT
if (isEnabled) {
if (item.isPinned == 1) {
type =
if (item.remindMode.notifyDateTime == "") VIEW_TYPE_MANAGE_PINNED else VIEW_TYPE_MANAGE_PINNED_NO
} else {
type =
if (item.remin... | Kotlin |
as the compute pool.
Compute pools fulfill two roles:
* **Workload Isolation** : Statements in different compute pools are isolated from each other.
* **Budgeting** : Statements within a compute pool can’t use more than the configured maximum number of [CFUs](flink-billing.html#flink-sql-cfus).
## Compute pools... | Markdown |
st = 0,
initial_over_heat = 0,
bullet_ID = {
20420200,
20420201,
20420202
},
barrage_ID = {
20420200,
20420200,
20420200
},
oxy_type = {
1
},
search_condition = {
1
},
precast_param = {}
}
uv0.weapon_property_396[2042024] = {
action_index = "",
range = 100,
type = 1,
... | Lua |
/*
Copyright 2020 Lucas Heitzmann Gabrielli.
This file is part of gdstk, distributed under the terms of the
Boost Software License - Version 1.0. See the accompanying
LICENSE file or <http://www.boost.org/LICENSE_1_0.txt>
*/
#ifndef GDSTK_HEADER_STYLE
#define GDSTK_HEADER_STYLE
#define __STDC_FORMAT_MACROS
#define _... | C |
ninstantiated generic types:
//
// If V and T are generic named types, then V is considered assignable to T if,
// for every possible instantation of V[A_1, ..., A_N], the instantiation
// T[A_1, ..., A_N] is valid and V[A_1, ..., A_N] implements T[A_1, ..., A_N].
//
// If T has structural constraints, they must be sat... | Go |
/* $NetBSD: scsi.c,v 1.1 1997/02/04 03:52:51 thorpej Exp $ */
/*
* This is reported to fix some odd failures when disklabeling
* SCSI disks in SYS_INST.
*/
#define SLOWSCSI
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.... | C |
d("\n");
builder.append("\t\tDistance Start [mm]: " + decimalFormat.format(trackModel.getStartRetentionTime() * factor));
builder.append("\n");
builder.append("\t\tDistance Stop [mm]: " + decimalFormat.format(trackModel.getStopRetentionTime() * factor));
builder.append("\n");
builder.append("\t\tSkipped: " + ... | Java |
approach unique and powerful for system administration and text processing tasks.
---
*Pro tip: Bookmark [metacpan.org](https://metacpan.org). It's the modern web interface to CPAN with better search, documentation, and dependency information. When you need a module for something, start there.*# Chapter 3: Perl Fund... | Markdown |
?|Mayor Mattingly|',
[14400] = '?|Reactivo Arcano|',
[14424] = '?|Lodalow|',
[14425] = '?|Osañicol|',
[14427] = '?|Gibblesnik|',
[14430] = '?|Acechapolvo|',
[14431] = '?|Furia Shelda|',
[14433] = '?|Barrosín|',
[14435] = '?|Príncipe Thunderaan|',
[14436] = "?|Mor'zul Sangredoble|",
[14437] = '?|Gorz... | Lua |
}
// make socket nonblocking
if (make_nonblocking(fd, errh) != 0)
return 0;
// connect to port
struct sockaddr_in sa;
sa.sin_family = AF_INET;
sa.sin_port = htons(port);
sa.sin_addr = addr;
if (connect(fd, (struct sockaddr *)&sa, sizeof(sa)) != -1)
*ready = true;
else if (er... | C++ |
w',$05
DC.B 'l%',$89,$F8,$0D,'yd',$06
DC.B '5',$0D,$27,$DD,$15,'cT',$8C
DC.B 'nk',$1D,$7F,'k',$FA,'*',$D7
DC.B $C4,$B6,'T',$1F,'v',$9D,'J',$84
DC.B $9C,$9B,'@',$AF,'Gr#',$A4
DC.B $8C,'+',$E7,$E5,$F4,'?9g'
DC.... | Assembly |
ctx.save();
ctx.begin_path();
ctx.move_to((x + 5) as f64, (y + 5) as f64);
let text_info = ctx.measure_text(&hitbox.tooltip).unwrap();
draw_rounded_rect(
&ctx,
x as f64,
y as f64,
text_info.width... | Rust |
, "hammer", 7, 3, 13,
SK_MACES_FLAILS, SIZE_LITTLE, SIZE_LITTLE, MI_NONE,
DAMV_CRUSHING, 0, 0, 0, M_AND_F_BRANDS },
#endif
{ WPN_MACE, "mace", 8, 3, 14,
SK_MACES_FLAILS, SIZE_LITTLE, SIZE_LITTLE, MI_NONE,
DAMV_CRUSHING, 9, 0, 30, ... | C++ |
00,0xff,0x01,0x40,0x0b,0xfe,0x00,0x00]
// GFX9-ERR: error: literal operands are not supported
v_add_f16_e64 v0, 0x3456, v0
// GFX10: v_add_f16_e64 v0, 0x3456, v0 ; encoding: [0x00,0x00,0x32,0xd5,0xff,0x00,0x02,0x00,0x56,0x34,0x00,0x00]
// GFX9-ERR: error: literal operands are not supported
v_add_f16_e64 v0, 0xfe... | Assembly |
t]
fn test_timestamp() {
let dt = Utc::now();
let ulid = Ulid::from_datetime(dt);
let ts = dt.timestamp() as u64 * 1000 + dt.timestamp_subsec_millis() as u64;
assert_eq!(ulid.timestamp_ms(), ts);
}
}
<gh_stars>10-100
use anyhow::{anyhow, Result};
use std::future::Future;
use was... | Rust |
from datetime import datetime
# Entrada do nome
nome = input("Digite seu nome: ")
# Tentativa de leitura e validação da data
while True:
data_str = input("Digite sua data de nascimento (DD/MM/AAAA): ")
try:
data_nascimento = datetime.strptime(data_str, "%d/%m/%Y")
break # Data válida, sai do ... | Python |
api && accessory.context.firmware) {
accessory
.getService(this.api.hap.Service.AccessoryInformation)
.updateCharacteristic(
this.api.hap.Characteristic.FirmwareRevision,
accessory.context.firmware,
)
}
// Add the configured accessory to our global map
this... | JavaScript |
per.queue("https://secure.runescape.com/m=itemdb_rs/top100?list=2", force = true) // GE price rises
scrapper.queue("https://secure.runescape.com/m=itemdb_rs/top100?list=3", force = true) // GE price falls
scrapper.queue("https://secure.runescape.com/m=itemdb_rs/catalogue", force = true) // GE catelogue
scra... | Kotlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.