content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
0.001};
const vector<float> k_data {10};
const vector<float> y1_data {0.01, 0.1, 1, 10, 100, 1000, 10000, 10000};
const vector<float> y2_data {100, 10, 1, 0.1, 0.01, 0.001, 0.0001, 0.0001};
for (Device *dev : devices) {
const Tensor x = dev->new_tensor_by_vector(Shape({2, 2}, 2), x_data);
co... | C++ |
2.77-2 3.46v-1.22c.61-.55 1-1.35 1-2.24a3 3 0 0 0-3-3a3 3 0 0 0-3 3c0 .89.39 1.69 1 2.24v1.22C7.8 11.77 7 10.5 7 9a4 4 0 0 1 4-4m0-2a6 6 0 0 1 6 6c0 1.7-.71 3.23-1.84 4.33l-1-.45A5.019 5.019 0 0 0 16 9a5 5 0 0 0-5-5a5 5 0 0 0-5 5c0 2.05 1.23 3.81 3 4.58v1.08C6.67 13.83 5 11.61 5 9a6 6 0 0 1 6-6Z"/>'},"gesture-pinch":{... | JavaScript |
Getting Started Dashboard Graphic
------------------------------------------------------------------------------
*/
$dashboarding-graphic-anim-time: 0.5s;
$dashboarding-bar-graph-anim: 0.15s;
.dashboarding-graphic--bg {
fill: $cf-grey-5;
}
.dashboarding-graphic--cell {
fill: $cf-grey-15;
transition: fill 0.2... | CSS |
.myranking_list>[class*=ranking-] .team_name{width:220px;padding-left:4px}.play_wrap .play_area .play_info .myranking_list>[class*=ranking-] .text_right{width:140px}.play_wrap .play_area .play_info .myranking_list>[class*=ranking-] .fc_tit{color:#999;font-size:12px;padding-left:8px}.play_wrap .play_area .play_info .my... | CSS |
bkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
tran... | CSS |
percent =
df.format(chapterIndex * 1.0f / chapterSize + 1.0f / chapterSize * (index + 1) / pageSize.toDouble())
if (percent == "100.0%" && (chapterIndex + 1 != chapterSize || index + 1 != pageSize)) {
percent = "99.9%"
}
return percent
}
... | Kotlin |
2 347.3l-32 13.5-115.4-110c-14.7 10-29.2 19.5-41.7 27.1l22.1 64.2-17.9 12.7-40.6-61-52.4-48.1 15.7-15.4 58 31.1c9.3-10.5 20.8-22.6 32.8-34.9L203 228.9l-68.8-99.8 18.8-28.9 8.9-4.8L265 207.8l4.9 4.5c19.4-18.8 33.8-32.4 33.8-32.4 7.7-6.5 21.5-2.9 30.7 7.9 9 10.5 10.6 24.7 2.7 31.3-1.8 1.3-15.5 11.4-35.3 25.6l4.5 7.3 94.9... | JavaScript |
ght-bg.gif);
}
/* line 860, ../../../ext-theme-neutral/sass/src/tab/Panel.scss */
.x-tab-default .x-tab-close-btn {
width: 11px;
height: 11px;
background-image: url(images/tab/tab-default-close.gif);
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);
opacity: 0.6;
}
/* line 870, ../../../ext-theme-... | CSS |
int: ecd197ef
signatures[0].signature: 6db5b9ff8e89c2103971550a485754286d1f782aa7fac17e2553bbaec9ab3969794d0fd5ba6d0b4575b9c75c1c464337fee1b4e5592eb77877b7a72487acb909''';
String expected =
"AAAAAgAAAABElb1HJqE7zxluTeVtwYvOk4Az0w3krAxnSuBE7NGX7wAAAGQAClykAAAAAQAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAA... | Dart |
。
- **新 `type` 的对象应该如何被创建和销毁?**
这涉及到构造函数和析构函数,以及内存分配函数和释放函数(`operator new,operator new[],operator delete,operator delete[]`);
- **对象的初始化和对象的赋值应该有什么样的差异?**
这涉及到你的构造函数和赋值操作符的行为,以及其中的差异。需要注意的是别混淆了”初始化“和”赋值“,因为这对应着不同的函数调用。
- **新 type 的对象如果被 passed by value(值传递)意味着什么?**
- **什么是新 type 的合法值?**
这决定了类需要维护的约束条件,也决定... | Markdown |
下は、特定の SLURM 環境に適合させるために必要な slurm スクリプト `launch.slurm` です。
```bash
#SBATCH --job-name=test-nodes # name
#SBATCH --nodes=2 # nodes
#SBATCH --ntasks-per-node=1 # crucial - only 1 task per dist per node!
#SBATCH --cpus-per-task=10 # number of cores per tasks
#SBATCH --gres=gpu... | Markdown |
/ add.s $f16, $f8, $f10
/* 142940 8019C8D0 10000005 */ b .L8019C8E8_ovl7
/* 142944 8019C8D4 E4500000 */ swc1 $f16, ($v0)
/* 142948 8019C8D8 C4520000 */ lwc1 $f18, ($v0)
.L8019C8DC_ovl7:
/* 14294C 8019C8DC C424DC5C */ lwc1 $f4, %lo(D_801CDC5C)($at)
/* 142950 8019C8E0 46049181 */ sub.s $f6, $f18, $f4
/* 142... | Assembly |
éroe caído",
[29763] = "Espaldares del campeón caído",
[29764] = "Espaldares del defensor caído",
[29765] = "Leotardos del héroe caído",
[29766] = "Leotardos del campeón caído",
[29767] = "Leotardos del defensor caído",
[29768] = "Corazón de hidra descomunal",
[29769] = "Resultados del diagnóstico",
[29770] = "Artefact... | Lua |
to your app's server configuration. By default, this is stored as `~/Library/Application\ Support/Claude/claude_desktop_config.json`.
```json
{
"mcpServers": {
"gdrive": {
"command": "uv",
"args": [
"--directory",
"[absolute-path-to-git-repo]",
"run",
"gmail",
... | Markdown |
#ifndef _DIVERTMSG_H
#define _DIVERTMSG_H
#include "F4vu.h"
#include "mission.h"
#include "FalcMesg.h"
#include "InvalidBufferException.h"
//==============================
// Defines
//==============================
#define DIVERT_NO_DIVERT 0
#define DIVERT_WAIT_FOR_REPLY 1
#define DIVERT_REPLY_NO 2
#define DIVERT_R... | C |
z */
uint32_t adiv;
if (CLOCK_BUSCLOCK > (ADC_MAX_CLK << 3)) {
#if KINETIS_HAVE_ADICLK_BUS_DIV_2
/* Some CPUs, e.g. MK60D10, MKW22D5, provide an additional divide by two
* divider for the bus clock as CFG1[ADICLK] = 0b01
*/
adiv = ADC_CFG1_ADIV(3) | ADC_CFG1_ADICLK(1);
#else
... | C |
--------------------------------------------
--
-- Register/Unregister new ad type
--
---------------------------------------------------------------------------------
function GAC_RegisterAdtype(adtype, serializeInfo, onMessage)
if SerializeAd[adtype] then
return false, "adtype("..command..") already registered";
... | Lua |
harmony export */ Toaster: () => (/* binding */ Toaster)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"(app-pages-browser)/../../../../../../../../node_modules/.pnpm/next@15.0.0-rc.0_@babel+core@7.24.4_@opent... | JavaScript |
ha-touch/default/core/_layout.scss */
.x-layout-box {
display: -webkit-box;
}
/* line 296, /Users/jamieavins/git/SDK/touch/resources/themes/stylesheets/sencha-touch/default/core/_layout.scss */
.x-layout-box.x-horizontal {
-webkit-box-orient: horizontal !important;
}
/* line 298, /Users/jamieavins/git/SDK/touch/res... | CSS |
Recently = 4490,
/// <summary>
/// track_have_killed_recently
/// </summary>
TrackHaveKilledRecently = 4491,
/// <summary>
/// number_of_times_have_been_hit_recently
/// </summary>
NumberOfTimesHaveBeenHitRecently = 4492,
/// <summary>
/// track_have_been_hit_recently
/// </summary>
TrackHave... | C# |
nt i = 0; i < 4; i++)
{
p.drawACard(CardDB.cardNameEN.unknown, ownplay, true);
}
p.triggerCardsChanged(true);
newHand = new List<Handmanager.Handcard>(p.owncards);
}
public override void onTurnEndsTrigger(Playfield p, Minion triggerEffectM... | C# |
usage, err := r.fullyQualifiedName(&s, p.Type)
if err != nil {
return err
}
isConst := false
if attribute := p.Attributes.Take("const"); attribute != nil {
isConst = true
}
testValue := 1.0
if attribute := p.Attributes.Take("test_value"); attribute != nil {
switch v := attribute.Values[0].(type... | Go |
- Valkurm Dunes
[ 290] = { params = 33999, huntId = 207 },
[ 546] = { params = 52432, huntId = 208 },
[ 802] = { params = 52433, huntId = 209 },
[1058] = { params = 68818, huntId = 210 },
-- Pashhow Marshlands
[ 298] = { params = 35027, huntId = 211 },
[ 554]... | Lua |
patchEvent(new CustomEvent<GamepadButtonEventDetail>('gamepadbuttondown', {
bubbles: true,
composed: true,
cancelable: true,
detail: { button: buttonName }
}));
}
if (wasButtonDown && !isButtonDown) {
GamepadHandler.#buttonsPressed[buttonName] = false;
window.dispatchEvent(new CustomEvent... | Typescript |
#0 @ is port configured?
cmpne \rv, #0
bne 100f @ already configured
/* Configure the UART offset from the phys/virt base */
#ifdef CONFIG_DEBUG_ZOOM_UART
ldr \rp, =ZOOM_UART_BASE
str \rp, [\tmp, #0] @ omap_uart_phys
ldr \rp, =ZOOM_UART_VIRT
str \rp, [\tmp, #4] @ omap_uart_virt
mov \rp, #(UART_LS... | Assembly |
}
};
export const getLocationById = async (
locationId: string
): Promise<Location | never> => {
try {
const repository = getRepository(Location);
const result = await repository.findOne({ id: locationId });
if (!result) {
throw new Error("The location doesn't exist");
} else {
return result;
}
} ... | Typescript |
e is truly replaced
tie(found, value) = the_dict.get(the_key, the_hash);
BOOST_CHECK(found && value == the_value);
// delete stored value
BOOST_CHECK(the_dict.del(the_key, the_hash) == true);
BOOST_CHECK(the_dict.del(the_key, the_hash) == false);
// check that all the dummy values are in
BOO... | C++ |
[[TMP59:%.*]] = getelementptr inbounds [9 x ptr], ptr [[DOTOFFLOAD_MAPPERS4]], i32 0, i32 4
// CHECK3-NEXT: store ptr null, ptr [[TMP59]], align 4
// CHECK3-NEXT: [[TMP60:%.*]] = getelementptr inbounds [9 x ptr], ptr [[DOTOFFLOAD_BASEPTRS2]], i32 0, i32 5
// CHECK3-NEXT: store i32 5, ptr [[TMP60]], align 4... | C++ |
DEF(0xFFA91104,aDCFMGR_0)
DEF(0xFFA9110C,DcfMgrFuncs)
DEF(0xFFA911A8,aDcfDcfmgrexecu)
DEF(0xFFA911D8,aDcfDcfmgrexe_0)
DEF(0xFFA91208,DcfMgrExecuteJob)
DEF(0xFFA912C0,aThis_5)
DEF(0xFFA912C8,a__DcfmgrDcfm_0)
DEF(0xFFA912E0,aDcfDcfmgr_crea)
DEF(0xFFA912FC,aDcfCreatedcf_0)
DEF(0xFFA9132C,aDcfCreatedcf_1)
DEF(0xFFA9135C,a... | Assembly |
aunchSinglePlugin(pluginId)
}
}
} catch (e: Throwable) {
Timber.Forest.tag(TAG).e(e, "启动或重启插件 [$pluginId] 期间发生严重错误。")
if (context.loadedPlugins.value.containsKey(pluginId)) {
unloadPlugin(pluginId)
}
false
}
... | Kotlin |
/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
type TxGaugeVec struct {
current *prometheus.GaugeVec
mtx sync.Mutex
newMetricVal func() *prometheus.GaugeVec
tx *prometheus.GaugeVec
}
// NewTxGaugeVec is a prometheus.GaugeVec that allows to start atomic metri... | Go |
atic_uniforms++;
}
pipeline.bind_uniform( "u_MaterialStatic", material_static_uniforms[ idx ] );
}
if( skinned || gpu_material == NULL ) {
pipeline.bind_uniform( "u_MaterialDynamic", UploadMaterialDynamicUniforms( color ) );
}
if( gpu_material != NULL ) {
// instanced material
gpu_material->color = colo... | C++ |
ring GetSerializerName(MethodInfo _, object[] values)
{
return values[0].GetType().Name;
}
[DataTestMethod]
[DynamicData(nameof(GetTestSerializers), DynamicDataSourceType.Method, DynamicDataDisplayName = nameof(GetSerializerName))]
public async Task GetSetCache(ICacheSerializer cacheSerializer)
{
awa... | C# |
volumetesting.GetTestVolumePluginMgr(t)
asw := NewActualStateOfWorld(volumePluginMgr)
volumeName := v1.UniqueVolumeName("volume-name")
nodeName := types.NodeName("node-name")
// Act
volumeNodeComboExists := asw.IsVolumeAttachedToNode(volumeName, nodeName)
// Assert
if volumeNodeComboExists {
t.Fatalf("%q/%q ... | Go |
terManagerMockRecorder) DroppedDisk(arg0, arg1 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DroppedDisk", reflect.TypeOf((*MockClusterManager)(nil).DroppedDisk), arg0, arg1)
}
// GetConfig mocks base method.
func (m *MockClusterManager) GetConfig(arg0 con... | Go |
干坛子 乾罈子|干坞 乾塢|干城 干城|干堂婶 乾堂嬸|干塘 乾塘|干大事 幹大事|干头 幹頭|干女 乾女|干女儿 乾女兒|干女友 幹女友|干女同事 幹女同事|干女婿 乾女婿|干女教师 幹女教師|干奴才 乾奴才|干她 幹她|干好 幹好|干妈 乾媽|干妹 乾妹|干妹妹 乾妹妹|干姊 乾姊|干姊姊 乾姊姊|干姐 乾姐|干姜 乾薑|干姬松茸 乾姬松茸|干娘 乾孃|干子 乾子|干季 乾季|干宅 乾宅|干完 幹完|干家 幹家|干将 干將|干将莫邪 干將莫邪|干就干 幹就幹|干尸 乾屍|干尽 幹盡|干尽一坛 乾盡一罈|干尽一壺 乾盡一壺|干尽一杯 乾盡一杯|干尽一碗 乾盡一碗|干屎橛 乾屎橛|干巴 乾巴|干巴巴 乾巴巴|干巴巴的 乾巴巴的|干布... | JavaScript |
info.setRegUser(user);
info.setUpdateDate(now);
info.setUpdateUser(user);
em.persist(info);
ModifyNotifyRelation notifyModifier = new ModifyNotifyRelation();
// 通知情報の登録
if (info.getNotifyRelationList() != null && info.getNotifyRelationList().size() > 0) {
for (NotifyRelationInfo notifyRelatio... | Java |
it according to the update document.
pub fn find_one_and_update(
&self,
filter: Document,
mut update: Document,
upsert_data: Option<MinimalFacilityData>,
) -> mongodb::Result<Option<Document>> {
let upsert = upsert_data.is_some();
if let Some(facility_info) = up... | Rust |
}
}
func makeDynamicProvisionerStorageClass(name string, mode *storagev1.VolumeBindingMode, allowedTopologies []v1.TopologySelectorTerm) *storagev1.StorageClass {
return &storagev1.StorageClass{
ObjectMeta: metav1.ObjectMeta{
Name: name,
},
Provisioner: provisionerPluginName,
VolumeBindingMode: mode,... | Go |
namespace MassTransit.Tests;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Internals;
using MassTransit.Testing;
using Microsoft.Extensions.DependencyInjection;
using NUnit.Framework;
using TestFramework;
using TestFramework.Messages;
[TestFixture]
[Category("... | C# |
ion as a
// convenience:
const teardown = context[teardownProperty].bind(context);
// Add our new helper to the testing context. The helper is
// generated by a factory method that receives the context,
// the teardown function and the interface name... | Typescript |
6;},_0x54f5(_0x321ea9,_0x367548);};var body=JSON[_0xa16d32(0x7e)]($request[_0xa16d32(0x86)]);body={'receiptData':_0xa16d32(0x7d),'bundleId':_0xa16d32(0x8e),'token':_0xa16d32(0x85),'chargingPlatform':_0xa16d32(0x84)},$done({'body':JSON[_0xa16d32(0x81)](body)});var version_ = 'jsjiami.com.v7';
/*
脚本引用https://raw.githubus... | JavaScript |
["name"] = "亡灵哨兵";
};
[7926] = {
["objective"] = "到暗月马戏团的场地里去,将免费券交给吉瓦斯·格里加特。";
["name"] = "暗月马戏团";
};
[7942] = {
["objective"] = "The description of this quest is missing";
["name"] = "更多的瑟银零件";
};
[1998] = {
["objective"] = "杀掉芬维克·萨托斯,把他的头颅交给幽暗城盗贼区的米奈特·卡加德。";
["name"] = "芬维... | Lua |
uanzengService wuziJuanzengService;//物资捐赠
@Autowired
private WuziLiuyanService wuziLiuyanService;//物资留言
@Autowired
private WuziRukuService wuziRukuService;//物资入库
@Autowired
private WuziYuyueService wuziYuyueService;//物资申请
@Autowired
private YuangongService yuangongService;//员工
@Autow... | Java |
21.252-3.035.672A7.142 7.142 0 0137.02 43a7.135 7.135 0 01-2.955-.648 7.318 7.318 0 00-3.035-.672 7.372 7.372 0 00-3.045.672 7.102 7.102 0 01-2.951.648 7.114 7.114 0 01-2.949-.648 7.401 7.401 0 00-3.046-.672c-1.08 0-2.12.252-3.035.672a7.14 7.14 0 01-2.956.648 7.163 7.163 0 01-2.955-.648 7.316 7.316 0 00-3.036-.672 7.35... | Dart |
//
// Generated by class-dump 3.5 (64 bit).
//
// class-dump is Copyright (C) 1997-1998, 2000-2001, 2004-2013 by Steve Nygard.
//
#import "CDStructures.h"
#import "DVTGenericButtonViewController-Protocol.h"
@class DVTObservingToken, NSToolbarItem;
@interface IDEToolbarStopButtonViewController : DVTGenericBut... | C |
!table.display_frees;
},
Event::KeyDown { keycode: Some(Keycode::H), ..} => {
table.hint();
},
Event::KeyDown { keycode: Some(Keycode::Z), ..} => {
table.undo();
},
... | Rust |
# Set up axes.
ax.grid(which = 'major', axis = 'both', linestyle = '-', color = 'k', linewidth = 2, zorder = 1)
ax.set_xticks(np.arange(-0.5, self.track.shape[1] , 1));
ax.set_xticklabels([])
ax.set_yticks(np.arange(-0.5, self.track.shape[0], 1));
ax.set_yticklabels([])
... | Python |
ng='hi-IN'] .ms-fontWeight-light-hover:hover,
*[lang='hi-IN'] .ms-fontWeight-semilight,
*[lang='hi-IN'] .ms-fontWeight-semilight-hover:hover,
*[lang='hi-IN'] .ms-fontWeight-regular,
*[lang='hi-IN'] .ms-fontWeight-regular-hover:hover,
*[lang='hi-IN'] .ms-fontWeight-semibold,
*[lang='hi-IN'] .ms-fontWeight-semibold-hover... | CSS |
(100) + 100),
new MyRow(new DateTime(2017, 9, 29), random.nextInt(100) + 100),
new MyRow(new DateTime(2017, 9, 30), random.nextInt(100) + 100),
new MyRow(new DateTime(2017, 10, 01), random.nextInt(100) + 100),
new MyRow(new DateTime(2017, 10, 02), random.nextInt(100) + 100),
new MyRow(new ... | Dart |
_desc *desc = &codec_desc[codec_data->codec_idx];
const pjmedia_frame_ext *input_ = (const pjmedia_frame_ext*) input;
pj_assert(input && input->type == PJMEDIA_FRAME_TYPE_EXTENDED);
if (desc->pack != NULL) {
desc->pack(codec_data, input_, output_buf_len, output);
} else {
if (input_->subframe_cnt ==... | C |
R);if(null!==n){i_=n;return}if(null!==(t=t.sibling)){i_=t;return}i_=t=e}while(null!==t);0===iA&&(iA=5)}function us(e,t){do{var n=function(e,t){switch(rf(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oo(r3),ee(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case... | JavaScript |
:n<=4?"Prosím zadejte ještě další "+e(n,!0)+" znaky":"Prosím zadejte ještě dalších "+n+" znaků"},loadingMore:function(){return"Načítají se další výsledky…"},maximumSelected:function(t){var n=t.maximum;return n==1?"Můžete zvolit jen jednu položku":n<=4?"Můžete zvolit maximálně "+e(n,!1)+" položky":"Můžete zvolit maximál... | JavaScript |
e.minimum + (savedValue.maximum - savedValue.minimum) / sliderWidth * (mouseX - startPoint)).toInt().coerceIn(savedValue.minimum, savedValue.maximum))
//
// val currLength = Fonts.font40.getStringWidth("${savedValue.get()}${savedValue.suffix}")
// Fonts.font40.drawString(value.name, x + 10F, y + 10F - Fon... | Kotlin |
: 10px;
}
#u182_text {
border-width: 0px;
position: absolute;
left: 0px;
top: 0px;
width: 0px;
visibility: hidden;
word-wrap: break-word;
}
#u183_div {
border-width: 0px;
position: absolute;
left: 0px;
top: 0px;
width: 300px;
height: 24px;
background: inherit;
background-color: rgba(255,... | CSS |
函数的参数。
*
*/
export enum TDialogQuitCodePatch {
/**
* 对话框被强行关闭或不关心关闭原因。
*
*/
NONE = DIALOG_QUIT_NONE(),
/**
* 点击“OK”按钮关闭。
*
*/
OK = DIALOG_QUIT_OK(),
/**
* 点击“YES”按钮关闭。
*
*/
YES = DIALOG_QUIT_YES(),
/**
* 点击“CANCEL”按钮关闭。
*
*/
CANCEL = DIALOG_QUIT_CANCEL(),
/**
... | Typescript |
new DescendingSubMapEntryIterator(absHighest(), absLowFence());
}
}
public Set<Map.Entry<K,V>> entrySet() {
EntrySetView es = entrySetView;
return (es != null) ? es : (entrySetView = new DescendingEntrySetView());
}
TreeMap.Entry<K,V> subLowest() ... | Java |
lone, Hash, Eq, PartialEq, Deserialize, Serialize)]
pub enum SuzunaAdType {
ShopNobori,
TownNobori,
Chindon,
NewsPaper,
BunBunMaruPaper,
AdPaper,
}
impl SuzunaAdType {
pub fn from_str(s: &str) -> Self {
match s {
"ShopNobori" => Self::ShopNobori,
"TownNobori"... | Rust |
(
text = buttonText,
color = Color.White,
fontSize = 14.sp
)
}
}
}
@Composable
@Preview
fun RecordingButtonPreview() {
var isConnected by remember { mutableStateOf(true) }
var isThinking by remember { mutableStateOf(false) }
Column(
... | Kotlin |
;
return null;
}
}
return appCacheDir;
}
/**
* delete directory
*/
public static boolean deleteFiles(File root) {
File[] files = root.listFiles();
if (files != null) {
for (File f : files) {
if (!f.isDirectory... | Java |
,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z', // jshint ignore:line
nextIcon: 'path://M18.6,50.8l22.5-22.5c0.2-0.2,0.3-0.4,0.3-0.7c0-0.3-0.1-0.5-0.3-0.7L18.7,4.4c-0.1-0.1-0.2-0.3-0.2-0.5 c0-0.4,0.3-0.8,0.8-0.8c0.2,0,0.5,0.1,0.6,0.3l23.5,23.5l0,0c0.2,0.2,... | JavaScript |
x2 = x2.unsqueeze(0)
return x2
else:
raise ValueError(f'Unknown modalities: {modalities}')
def build_vision_projector(config, delay_load=False, **kwargs):
projector_type = getattr(config, 'mm_projector_type', 'linear')
if projector_type == 'linear':
return nn.L... | Python |
resumably die?',
'selftext_urls.url': ['http://apod.nasa.gov/apod/image/1201/freeflyer_nasa_3000.jpg'],
'subreddit': 'askscience',
'title': 'Few questions about this space walk photograph.',
'title_urls.url': []}
```
이제 각 하위 필드는 `answers` 접두사(prefix)로 표시된 대로 별도의 열이 되고, `text` 필드는 이제 리스트가 되었습니다.
각 문장을 개별적으로 토큰화하는 ... | Markdown |
.exportFormats.map((l,u)=>I.createElement("option",{key:u,value:u},l.name))))),t?I.createElement("div",null,t):I.createElement("div",null,n&&I.createElement(I.Fragment,null,r!==null&&I.createElement(IO,{plugin:e,formatIndex:r,templateData:n}),I.createElement("div",{className:"zt-json-viewer__data"},I.createElement(Sg,{... | JavaScript |
.Uint(1), true, true},
{"team observer no team", test.UserTeamObserverTeam1, nil, true, true},
{"team observer team 0", test.UserTeamObserverTeam1, ptr.Uint(0), true, true},
{"team observer team", test.UserTeamObserverTeam1, ptr.Uint(1), true, true},
{"team observer other team", test.UserTeamObserverTeam2, ptr.... | Go |
Gehrels
// Last updated version of proj: 5.0.0
// Original copyright notice:
// 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 ri... | C++ |
return error;
}
}
if (auto *arg = args.getLastArg(OPT_repl_language)) {
auto *arg_value = arg->getValue();
m_option_data.m_repl_lang =
SBLanguageRuntime::GetLanguageTypeFromString(arg_value);
if (m_option_data.m_repl_lang == eLanguageTypeUnknown) {
error.SetErrorStringWithForma... | C++ |
his.queryString.fields.split(",").join(" ");
this.query = this.query.select(fields);
} else {
this.query = this.query.select("-__v");
}
return this;
}
paginate() {
const page = this.queryString.page * 1 || 1;
const limit = this.queryString.limit * 1 || 100;
... | Typescript |
_WHITE);
drawForecast();
drawTime();
drawBattery();
drawWifiQuality();
drawButtons();
drawDivLines();
drawMiscText();
gfx.commit();
};
window.setInterval(renderLoop, 1000);
renderLoop();
function getValue(key: string) {
let value: any = ''
switch (globalConfig.storageType) {
cas... | Typescript |
AF07C31A6C * __this, const RuntimeMethod* method);
// System.Int32 UnityEngine.Object::GetInstanceID()
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Object_GetInstanceID_m33A817CEE904B3362C8BAAF02DB45976575CBEF4 (Object_tAE11E5E46CD5C37C9F3E8950C00CD8B45666A2D0 * __this, const RuntimeMethod* method);
// UnityEngine.LightS... | C++ |
心 eval 和 apply
整个 `eval` 和 `apply` 的过程直接看代码实现就可以了,这里可以看到 `eval` 的过程就是接受一个表达式 exp 和一个环境变量 env ,根据表达式类型的不同进行分别处理。
``` scheme
(define (eval exp env)
(cond ((self-evaluating? exp) exp) ; 基本表达式
((variable? exp) (lookup-variable-value exp env)) ; 特殊形式
((quoted? exp) (text-of-quotation... | Markdown |
workActor->AddAction(action);
AddActiveActor(workActor);
if (g_soundManager)
{
sint32 visiblePlayer = g_selected_item->GetVisiblePlayer();
if ((visiblePlayer == workActor->GetPlayerNum()) ||
(workActor->GetUnitVisibility() & (1 << visiblePlayer)))
{
g_soundManager->AddSound(SOUNDTYPE_SFX, workAc... | C++ |
heat sheet: Meaningful Link Texts
- 2025-09-01 2 Accessibility and 3 HTML cheat sheets
- 2025-09-03 2 React cheat sheets and 9 JavaScript method cheat sheets
### Fixed
- 2025-08-29 Updated CSS cheat sheets: border and box-shadow
---
## [1.0.0] - 2025-07-22
### Added
- First public release of SheetDeck 🎉
- 40+ HT... | Markdown |
5&wx_lazy=1 "")
缓冲区漏洞千千种,这次遇到实验才来讲一讲我想明白的题目
**利用栈溢出漏洞破解口令**
C语言
源码:
```
#include<stdio.h>
#include<string.h>
#define PASSWORD "1234567"
int verify_password(char* password)
{
int authenticated=0xEEEEEEEE;
char buffer[8];
printf("My stack looks like:\n%p\n%p\n%p\n%p\n%p\n%p\n%p\n%p\n%p\n\n");
authen... | Markdown |
// src/engine/world_chunk.h:219:0
link_internal counted_string
ToStringPrefixless(world_chunk_mesh_index Type)
{
counted_string Result = {};
switch (Type)
{
case MeshIndex_Lod0: { Result = CSz("Lod0"); } break;
case MeshIndex_Lod1: { Result = CSz("Lod1"); } break;
case MeshIndex_Lod2: { Result = ... | C |
n", func(t *testing.T) {
check(t, types.EncodingTypeJSON, constants.EncodingTypeJSON)
})
t.Run("thriftrw", func(t *testing.T) {
check(t, types.EncodingTypeThriftRW, constants.EncodingTypeThriftRW)
})
})
t.Run("other known encodings panic to internal", func(t *testing.T) {
for _, encoding := ran... | Go |
}.pgs #newspecial,.pgs #newspecialtmp,.pgs #post_reply,.pgs #post_replytmp{float:left;margin-right:5px;}.pg{float:right;}.pg,.pgb{line-height:26px;}.pg a,.pg strong,.pgb a,.pg label{float:left;display:inline;margin-left:4px;padding:0 8px;height:26px;border:1px solid;border-color:#DDD;background-color:#FFF;background-re... | CSS |
import argparse
import glob
import os.path
from lada.deepmosaics.models import loadmodel
from lada.deepmosaics.inference import restore_video_frames
from lada.lib.video_utils import read_video_frames, get_video_meta_data, write_frames_to_video_file
def validate(in_dir, out_dir, gpu_id, model_path):
model = loadmod... | Python |
入網路資源(包括JavaScript文件)
webSettings.allowFileAccess = true
webSettings.allowContentAccess = true
// 允許混合內容(HTTPS頁面載入HTTP資源)
webSettings.mixedContentMode = WebSettings.MIXED_CONTENT_COMPATIBILITY_MODE
// 禁用圖片載入(但保持JavaScript和其他資源載入)
// we... | Kotlin |
`child` unless the
/// `show_mask` flag is set. In this case the mask widget is
/// displayed and the input to the `child` is supressed.
///
/// The default mask widget is a simple [Spinner] displayed in the
/// center.
pub fn new(child: impl Widget<T> + 'static) -> Self {
let mask = Al... | Rust |
, 2498, 130, 5, 2},
PollingPlace{3, "VIC", "Aston", 197, 1, "Rowville", 2963, "Current", "Rowville Primary School", "Paratea Dr", "", "", "ROWVILLE", "VIC", 3178, "Primary School", "Paratea Dr", "ROWVILLE", "", "", "Entrance to polling place: Main door to School Gym. Entrance to school grounds: Main gate from Paratea... | Go |
dev->bypass_clnts = devm_kcalloc(&pdev->dev,
cxip_dev->bypass_clnt_cnt,
sizeof(*cxip_dev->bypass_clnts), GFP_KERNEL);
if (!cxip_dev->bypass_clnts)
return -ENOMEM;
ret = of_property_read_u32_array(np, "qcom,bypass-client-list",
cxip_dev->bypass_clnts, cxip_dev->bypass_clnt_cnt);
if (ret) {
dev_dbg(&pde... | C |
the 11 bit representation of their
@ values, and toggling bit 10 in the U and V tables.
@
@ For the green case we calculate 4*G (thus effectively using 10 bits for the
@ valid range) truncate to 12 bits. We toggle bit 11 in the Y table.
@ Theorarm library
@ Copyright (C) 2009 Robin Watts for Pinknoise Productions Ltd... | Assembly |
ASS': 'rest_framework_simplejwt.models.TokenUser',
'JTI_CLAIM': 'jti',
'SLIDING_TOKEN_REFRESH_EXP_CLAIM': 'refresh_exp',
'SLIDING_TOKEN_LIFETIME': timedelta(minutes=5),
'SLIDING_TOKEN_REFRESH_LIFETIME': timedelta(days=1),
}
JAZZMIN_SETTINGS = {
'site_title': 'Admin Panel',
'site_header': 'A... | Python |
expr = expr:gsub(
"\\(['\"])",
function (c)
return string.format("\\%03d", string.byte(c))
end)
local curstring
local curendstr
-- Remove (finished and unfinished) literal strings
while true do
local idx1, _, equals = expr:find("%[(=*)%[")
... | Lua |
,
"verse_number": 6,
"content":
"Say, ]O Prophet,˺ “I am only a man like you, ]but˺ it has been revealed to me that your God is only One God. So take the Straight Way towards Him, and seek His forgiveness. And woe to the polytheists—"
},
{
"surah_number": 41,
"verse_number": 7,
"content"... | Dart |
attributes":{
"displayName":"成员管理密钥",
"name":"para8",
"required":"true",
"type":"datetime"
}
},
{
"attributes":{
"displayName":"应用管理密钥",
"name":"para9",
"required":"tru... | Java |
crc_counter_ff+ 1'b1;
if(crc_counter_ff == 4'b0111)
state_ff <= IDLE;
end
READ:
begin
crc_ff <= 8'b0;
state_ff <= IDLE;
end
endcase
end
end
assign crc_o = crc_ff;
endmodule
```
Следующим шагом является написан... | Markdown |
- var(--range-thumb-height))) var(--range-fill-light);
background-repeat: no-repeat;
}
/* Input Thumb */
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
height: var(--range-thumb-height);
width: var(--range-thumb-height);
border-radius: 50%;
background: var(--range-fill-dark);
box-shadow... | CSS |
lIds;
TaoListenerDb** mpListeners;
int mListenerCnt;
int mMaxNumListeners;
TaoListenerDb* mpToneListeners[MAX_NUM_TONE_LISTENERS];
int mToneListenerCnt;
int mMe... | C |
Wine',#9a435d;
$c: 'Venom Dart',#01ff01;
$c: 'Venomous Green',#66ff22;
$c: 'Venus',#eed053;
$c: 'Venus Mist',#5f606e;
$c: 'Venus Slipper Orchid',#df73ff;
$c: 'Veranda Gold',#af9968;
$c: 'Verde',#7fb383;
$c: 'Vermicelle',#dabe82;
$c: 'Vermillion',#da3b1f;
$c: 'Verminal',#55cc11;
$c: 'Very Berry',#b73275;
$c: 'Vibrant B... | CSS |
L:
lda #$30
sta PACTL
lda #$F0
sta PORTA
lda #$34
sta PACTL
lda #JOY_ERR_OK
.assert JOY_ERR_OK = 0, error
tax
; rts ; Run into UNINSTALL instead
; ----------------------------------------------... | Assembly |
get(), form);
}
QGroupBox *Window::createAdamGroup(){
Adam* descent = dynamic_cast<Adam*> (plot_area->adam->descent.get());
QFormLayout *form = new QFormLayout;
form->addRow(new QLabel(QStringLiteral("Learning Rate:")),
createLearningRateBox(descent));
form->addRow(new QLabel(QString... | C++ |
",
"sillock":"幼绿鳕",
"sillocks":"(sillock 的复数) 幼绿鳕",
"sillographer":"n. 讽刺文学作家",
"sillometer":"航速表, 测速计",
"sillon":"n. (Sillon)人名;(法)西永",
"sillonneur":"[医] 三页眼刀",
"sills":"n. 窗台(板)( sill的复数形式 ); 门槛; 侵入火成岩席; 平巷底",
"sillsite":"杂锡石",
"sillver":"n. 银",
"silly":"a. 愚蠢的, 糊涂的",
"silly billy":"n. <口>傻瓜, 蠢货",
"silly season":"(新闻... | Typescript |
artup_system(setup)
.run();
}
/// Deriving reflect on a struct will implement the `Reflect` and `Struct` traits
#[derive(Reflect)]
pub struct A {
x: usize,
y: Vec<u32>,
z: HashMap<String, f32>,
}
/// Deriving reflect on a unit struct will implement `Reflect` and `Struct` traits
#[derive(Reflect)]
... | Rust |
pixel-ratio: 1.5), all and (min-device-pixel-ratio: 1.5){#page-upgrade .section-api{background-image:url(/assets/pro/ic-app-api@2x-5092157ba1d05ede1b017cec7e38db5c.png);background-size:100% auto}}#page-upgrade .section-api h4{width:160px;height:40px;line-height:40px;text-align:center;color:#2CB3CC;font-family:Monaco, m... | CSS |
including adding support for [HIP-31](https://hips.hedera.com/hip/hip-31) expected token decimals. The Rosetta unified Docker image saw functionality added to automatically restore the database using a database snapshot on initial startup.
### Breaking Changes
As part of HIP-329 CREATE2, we renamed the existing `sol... | Markdown |
nThreads: Int = 0): EventLoopGroup =
MultiThreadIoEventLoopGroup(nThreads, createIoHandlerFactory())
/**
* Creates a server bootstrap using the parent and child event loop groups with
* a configuration that closely resembles the values found in the client.
*/
public fun createServerBoots... | Kotlin |
else
{
R=pow(n,(q-1)/3);
inv=TRUE;
}
V=pow(W,q);
forever
{
if (!inv) t=(R*R*R)/n;
else t=(R*R*R)*n;
for (i=0;;i++ )
{
if (t==1) break;
t=t*t*t;
}
if (i==0)
{
if (!inv) return R;
... | C++ |
(kExampleRSAKeyDER)));
EXPECT_TRUE(ParsePrivateKey(EVP_PKEY_DSA, kExampleDSAKeyDER,
sizeof(kExampleDSAKeyDER)));
EXPECT_TRUE(ParsePrivateKey(EVP_PKEY_RSA, kExampleRSAKeyPKCS8,
sizeof(kExampleRSAKeyPKCS8)));
EXPECT_TRUE(
ParsePrivateKey(EVP_PKEY_EC,... | C++ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.