content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
using GuiLabs.Canvas.DrawStyle;
using GuiLabs.Canvas.Renderer;
using System;
using System.Drawing;
using GuiLabs.Utils;
namespace GuiLabs.Canvas.DrawOperations
{
public abstract class AbstractDrawOperations
{
#region Viewport
private Rect mViewport = new Rect();
public Rect Viewport
{
get
{
return... | C# |
else
self.uiBinder.anim:ResetAniState("anim_main_main_loop", 0)
self.uiBinder.anim:Stop()
if stage == Panda.ZGame.EPathFindingStage.EMove then
self.uiBinder.anim:PlayOnce("anim_main_main_loop")
end
end
end
function MainuiView:createPathFindingProgressTimer()
self:clearPathFindingProgressTimer... | Lua |
教
中国恐怖组织
中华民国
中南海
中宣部
周恩来
周永康
周总理
朱德
朱容鸡
朱容基
朱熔基
朱镕基
朱总理
猪操
猪容基
主席
转法轮
转法轮
装屄
装逼
追查国际
子女任职名单
自焚
自杀手册
自杀指南
自制手枪
自治机关
宗教
总局
总理
作爱
坐台的
做爱
共产党
江泽民
胡锦涛
温家宝
严方军
屄毛
操逼毛
东突
骚货
法轮功
江泽民
胡锦涛
温家宝
urban-rivals
rivals
ur
ur
我日
UR
ur
性交
口交
UR
taobao
webgame.c | Lua |
()
TTT2NETTABLE[ply] = TTT2NETTABLE[ply] or {}
for i = 1, #players do
local p = players[i]
TTT2NETTABLE[ply][p] = { ROLE_NONE, TEAM_NONE }
end
end
-- Console commands
local function ttt_request_rolelist(plySyncTo)
-- Client requested a state update. Note that the client can only use ... | Lua |
int dash = range.indexOf("-");
int minMeat = StringUtilities.parseInt(range.substring(0, dash));
int maxMeat = StringUtilities.parseInt(range.substring(dash + 1));
return (minMeat + maxMeat) / 2;
}
return 0;
}
// EnumSets are mutable. Even so, we'll use this as a constant, rather
... | Java |
;
/** If the data cell should automatically get focus */
autofocus?: boolean;
/** Define the look for borders in the table types.DataGrid.GRID, types.DataGrid.NONE, etc. */
borderType?:
| DataGrid.types.border.GRID
| DataGrid.types.border.NONE
| DataGrid.types.border.HORIZONTAL
| DataGrid.types.... | Typescript |
))
frames_hi91 = decoder.parse(example_data_hi91)
print(f"Total frames parsed for HI91: {len(frames_hi91)}")
for i, frame in enumerate(frames_hi91):
hipnuc_parser.print_parsed_data(frame)
print("Input binary data length for HI92:", len(example_data_hi92))
frames_hi92 = decoder.parse(exa... | Python |
Pedal: Pedal Sensor Type error!', "pedal_type"];
break;
case 1: return ['Pedal: Designated Assist Level error!', "designated_assist"];
break;
case 2: return ['Pedal: Speed Limit error!', "speed_limit"];
break;
case 3: return ['Pedal: Current out of... | JavaScript |
uries"},
[28791] = {"Marissa Guetternel","Aubergiste"},
[28792] = {"Noggra","Fournitures générales"},
[28793] = {"Darmuk",nil},
[28794] = {"Kevin Tisseur","Fournitures d'artisanat"},
[28795] = {"Prophète de Quetz'lun épuisé",nil},
[28796] = {"Arlen Brillemartel","Forgeron"},
[28797] = {"Halay Tournecuivre","Fournitures... | Lua |
Axis() * moveZ));
}
//----------------------------------------
void ofxEasyCamArea::updateRotation(){
if (bApplyInertia) {
xRot *=drag;
yRot *=drag;
zRot *=drag;
if (ABS(xRot) <= minDifference && ABS(yRot) <= minDifference && ABS(zRot) <= minDifference) {
bApplyInertia = false;
bDoRotate = false;
... | C++ |
)
return d
class L_TV(nn.Module):
def __init__(self, TVLoss_weight=1):
super(L_TV, self).__init__()
self.TVLoss_weight = TVLoss_weight
def forward(self, x):
batch_size = x.size()[0]
h_x = x.size()[2]
w_x = x.size()[3]
count_h = (x.size()[2] - 1) * x.siz... | Python |
() {
if (mInstance == null) {
synchronized(MVUtils::class.java) {
if (mInstance == null) {
mInstance = MVUtils()
}
}
}
return mInstance
}
... | Kotlin |
ings in the format of 'HH:mm:ss'. If we fail to compare do to type
/// mismatch, a warning will be given and the condition will evaluate to false.
class GooglePrivacyDlpV2Condition {
/// Field within the record this condition is evaluated against.
///
/// Required.
GooglePrivacyDlpV2FieldId? field;
/// Opera... | Dart |
);
id_perm_fill(&mut sgt);
// Fallible insert
assert_eq!(
sgt.try_insert(usize::MAX, usize::MAX),
Err(SgError::StackCapacityExceeded)
);
}
#[should_panic(expected = "Stack-storage capacity exceeded!")]
#[test]
fn test_extend_panic() {
let mut sgt: SgTree<usize, usize, CAPACITY> = S... | Rust |
"""
Naval battle example from docopt
"""
from collections import OrderedDict
from clize import run, parser
def ship_new(name):
"""Create a new ship
name: The name to attribute to the ship
"""
return "Created ship {0}".format(name)
knots = parser.value_converter(float, name='KN')
def ship_move(s... | Python |
/*
Direct-digital synthesis
ADSR Dynamic Volume Envelope Demo
*/
// ------- Preamble -------- //
#include "adsr.h" /* Defines, includes, and init functions */
int main(void) {
// -------- Inits --------- //
uint16_t accumulator = 0;
uint8_t volume = 0;
uint16_t noteClock = 0;
uint16_t tu... | C |
if (!sender.hasPermission("buildercore.aliases")) {
sender.sendMessage(error)
return false
}
val degrees: Int = try {
strings[1].toInt()
} catch (var8: Exception) {
sender.sendMessage(error)
r... | Kotlin |
without key inside object */
RUN_TEST(lwjsonERRJSON, "{\"k\":False}"); /* False value must be all lowercase */
RUN_TEST(lwjsonERRJSON, "{\"k\":True}"); /* True value must be all lowercase */
RUN_TEST(lwjsonERRJSON, "{\"k\":nUll}"); /* Null value must be all lowercase */
RUN_TEST(lwjsonERRJSON, "{\"k\"... | C |
-> Option<String> {
match self.var_map.get(var) {
Some(&pos) => {
match self.values[pos].clone() {
ResultUnit::Val(val) => Some(val),
_ => None,
}
},
None => None,
}
}
}
#[derive(Clone, Debug)]
pub struct ResultCollection<'a> {
pub results: Vec<Result>,... | Rust |
his step|r
.complete 963,1 --Anaya's Pendant (1)
.unitscan Anaya Dawnrunner
.solo
step << !sod/Warrior/Rogue/Priest
#sticky
#optional
#label Anaya
.goto 1439,42.017,58.866,0 --NE spawn
.goto 1439,43.222,59.693,0 --NE spawn
.goto 1439,43.069,62.448,0 --SE spawn
.goto 1439,42.489,6... | Lua |
instanceof r.IMAGE_NOT_FOUND)return"Image not found";if(e instanceof r.IMAGE_NOT_VALID)return"Image not valid";if(e instanceof r.DRIVER_ALREADY_LINKED)return"Other doc is already linked with driver";if(e instanceof r.DL_ALREADY_UPDATED)return"No action required. Driver license is already linked to driver";if(e instanc... | JavaScript |
an.com/cloud/confluence/rest/#api-space-get
type AllSpacesQuery struct {
Expand []string
Favourite bool // Filter the results to the favourite spaces of the user specified by favouriteUserKey
FavouriteUserKey string // The userKey of the user, whose favourite spaces are used to filter the results ... | Go |
grid_size - 1.0f) * pts[quad[3]]) / grid_size,
(pts[quad[1]] + (grid_size - 1.0f) * pts[quad[2]]) / grid_size};
addQuad(quad_pts_6, alpha / 3, 2 * alpha / 3, clr);
List<Vector3> quad_pts_7 = new List<Vector3> {
(pts[quad[1]] + (grid_size - 1.0f) *... | C# |
_qt::QCoreApplication::instance
获取当前应用程序实例指针,然后将指针作为参数传入 KxApplication::GetWebExtensionMgr
获取 WebExtensionMgr,再作为参数传入 GetUrl。
分析一下 KxApplication::GetWebExtensionMgr
函数如何构造 WebExtensionMgr。
 / t2;
}
}
private static void p3(double x, double y, double w) {
x = t * (x + y);
y = t * (x + y);
z = (x + y) / t2;
}
private static void p0() {
e1[j] = e1[k];
e1[k] = e1[l];
e1[l] = e1[j];
}
private static void pout(int n, int j, int k, dou... | Java |
t needed // block for else
// and here you can continue examining the condition, block or elseBlock
const [x, plus, y] = condition.peek(3);
expect(x.token).to.equal("x"); // x
expect(plus.token).to.equal("+"); // +
expect(y.token).to.equal("y"); // y
didMatch = true;
});
expe... | Typescript |
}
private void P2pc_receiveServerEventbit(byte command, byte[] data)
{
count++;
//p2pc.Send(data);
}
private void timer1_Tick(object sender, EventArgs e)
{
label1.Invoke((EventHandler)delegate { label1.Text = count.ToString(); })... | C# |
Byte()));
// return aggregated.ToScalar();
// }
return SoftwareFallback(value);
static int SoftwareFallback(uint value)
{
const uint c1 = 0x_55555555u;
const uint c2 = 0x_33333333u;
const uint c3 = 0x_0F0F0F0Fu;
const uint c... | C# |
gram_bucket{le=\"0.5\"}"))
Expect(string(body)).To(ContainSubstring("cluster_manager_http_response_time_seconds_histogram_bucket{le=\"1\"}"))
Expect(string(body)).To(ContainSubstring("cluster_manager_http_response_time_seconds_histogram_bucket{le=\"2.5\"}"))
Expect(string(body)).To(ContainSubstring("cluster_ma... | Go |
理投诉,但法律、法规另有规定的,依照其规定。
鼓励投诉人和被投诉人平等协商,自行和解。
第十七条 市场监督管理部门可以委托消费者协会或者依法成立的其他调解组织等单位代为调解。
受委托单位在委托范围内以委托的市场监督管理部门名义进行调解,不得再委托其他组织或者个人。
第十八条 调解可以采取现场调解方式,也可以采取互联网、电话、音频、视频等非现场调解方式。
采取现场调解方式的,市场监督管理部门或者其委托单位应当提前告知投诉人和被投诉人调解的时间、地点、调解人员等。
第十九条 调解由市场监督管理部门或者其委托单位工作人员主持,并可以根据需要邀请有关人员协助。
调解人员是投诉人或者被投诉人的近亲属或者有其他利害关系,可能影响公... | Markdown |
argetDuration;
}
/**
* Set 视频片段目标时长,单位为秒。
<li>当 TargetDuration 不填或填0时,表示目标时长和 Duration 一致;</li>
<li>当 TargetDuration 取大于0的值时,将对视频片段做快进或慢放等处理,使得输出片段的时长等于 TargetDuration。</li>
* @param TargetDuration 视频片段目标时长,单位为秒。
<li>当 TargetDuration 不填或填0时,表示目标时长和 Duration 一致;</li>
<li>当 TargetDuration 取大于0的值时,将对视频片... | Java |
cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgZD0iTTEwIDZINmEyIDIgMCAwMC0yIDJ2MTBhMiAyIDAgMDAyIDJoMTBhMiAyIDAgMDAyLTJ2LTRNMTQgNGg2bTAgMHY2bTAtNkwxMCAxNCIgLz4KPC9zdmc+Cg==);-webkit-mask-size:100%;mask-size:100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.fi-fo-file-upload .filepond--file-action-bu... | CSS |
sNet-50/ResNet-101)。バッチ ディメンションも追加すると仮定します。これは、バックボーンへの入力が
画像に 3 つのカラー チャネル (RGB) があると仮定した場合の、形状 `(batch_size, 3, height, width)` のテンソル。 CNNのバックボーン
通常は `(batch_size, 2048, height/32, width/32)` の形状の、新しい低解像度の特徴マップを出力します。これは
次に、DETR の Transformer の隠れ次元 (デフォルトでは `256`) に一致するように投影されます。
`nn.Conv2D` レイヤー。これで、形状 `(batch_size,... | Markdown |
r {
color: $navbar-inverse-link-hover-color;
}
}
.btn-link {
color: $navbar-inverse-link-color;
&:hover,
&:focus {
color: $navbar-inverse-link-hover-color;
}
&[disabled],
fieldset[disabled] & {
&:hover,
&:focus {
color: $navbar-inverse-link-disabled-color... | CSS |
@ 0x21d628c
.thumb
Function_21d6290: @ 21d6290 :thumb
push {r3-r7,lr}
add sp, #-0x18
mov r5, r0
ldr r0, [pc, #0xcc] @ 0x21d6364, (=RAM_21bf6dc)
mov r7, r1
ldrb r0, [r0, #0x5]
cmp r0, #0x0
bne branch_21d62a6
mov r6, #0xd
mov r4, #0xf
b branch_21d62aa
@ 0x21d62a6
.t... | Assembly |
vation, shape)
.padding(start = 12.dp, top = 12.dp, bottom = 12.dp, end = 16.dp),
)
}
@Composable
private fun EpisodeListItemContentLayer(
playerEpisode: PlayerEpisode,
onEpisodeSelected: () -> Unit,
onInfoClicked: () -> Unit,
onEnqueueClicked: () -> Unit,
modifier: Modifier = Modif... | Kotlin |
PRESSED_PADDING)
);
YAP_DEFINE_STYLE(FButtonStyle, ButtonStyle_TimeSetting, FButtonStyle::GetDefault(),
.SetNormal(CORE_BOX_BRUSH(YAP_COMMON_BRUSH, YAP_COMMON_MARGIN, YapColor::LightGray))
.SetHovered(CORE_BOX_BRUSH(YAP_COMMON_BRUSH, YAP_COMMON_MARGIN, YapColor::White))
.SetPressed(CORE_BOX_BRUSH(YAP_COMMON_B... | C++ |
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
#[doc = "Field `CHANNEL14` writer - Select secure attribute"]
pub struct CHANNEL14_W<'a> {
w: &'a mut W,
}
impl<'a> CHANNEL14_W<'a> {
#[doc = r"Writes `variant` to the field"]
#[inline(always)]
pub fn variant(self, var... | Rust |
ascal(specs.info.title)} => ({\n`;
Object.entries(specs.paths).forEach(
([route, verbs]: [string, PathItemObject]) => {
Object.entries(verbs).forEach(
([verb, operation]: [string, OperationObject]) => {
if (['get', 'post', 'patch', 'put', 'delete'].includes(verb)) {
const call ... | Typescript |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*/
@media screen{html{background:#f4f4f4}}body{font-family:-apple-system,... | CSS |
ing
* errors. Those should basically never happen, but if they do happen, we
* want the error to point out the context that did that linear mapping
* fault, not the initial level 0 (basically, we got a bogus PGF or something
* like that). For userland errors on the linear mapping, there is no
* difference since th... | C |
name: 'Anwesend',
ccuConfig: 'nc',
topic: 'ReGaHSS/${Name}',
wires: [
['nh']
]
},
{
id: 'nc',
type: 'ccu-connection',
name: 'localhost',
host: 'localhost',
regaEnabled: true,
bcrfEnabled: false,
iprfEnabled: fal... | JavaScript |
n.ID.UnmarshalText([]byte(confJSON.ID)); err != nil {
return err
}
}
if confJSON.PrivateKey != "" {
key, err := hex.DecodeString(confJSON.PrivateKey)
if err != nil {
return err
}
privKey, err := crypto.ToECDSA(key)
if err != nil {
return err
}
n.PrivateKey = privKey
}
n.Name = confJSON.Na... | Go |
s provided but no story exists
st.markdown("""
### Ready to Create Your Story! ✨
Your API key is configured. Now:
1. **Customize your character name** in the sidebar
2. **Choose your preferred genre** (Fantasy, Sci-Fi, etc.)
3. **Set your story theme** (... | Python |
future_map(1:2, fn, .options = opts)
Output
hello
hello
[[1]]
[1] 1
[[2]]
[1] 2
---
Code
future_map(1:2, fn, .options = opts)
Output
[[1]]
[1] 1
[[2]]
[1] 2
# validates `stdout`
Code
(expect_error... | Markdown |
%rax
xorq %r13, %r11
xorq %rdx, %r13
addq %r12, %r14
addq %r11, %rsi
addq %r13, %r15
movabsq $-8247349341179448980, %rcx
addq %rbx, %rax
movq %r14, 664(%rsp)
addq %r15, %r14
leaq (%rsi,%rax), %rdx
addq %rcx, %r15
leaq (%r15,%rdx), %rcx
movabsq $7667772426219706969, %r15
addq 664(%rsp), %r15
rolq $11, %rc... | Assembly |
worden. Holt Trol'kalar."}, {"Holt Trol'kalar aus Trollbanes Grabmal in Stromgarde."}},
[646] = {"Trol'kalar", {"Das Licht verglüht langsam, das Schwert Trol'kalar, das sich in einer steinernen Scheide befindet, ist freigegeben."}, {"Bringt Trol'kalar zu Zengu nach Hammerfall."}},
[647] = {"MacKreels Fusel", {"Was hab ... | Lua |
using System.Collections.Generic;
using ET;
using UnityEngine;
namespace ET
{
public class SpritePool : MonoBehaviour
{
private const int DestoryTime = 20;
public static SpritePool Instance
{
get
{
if (_instance == null)
{
... | C# |
t<{
rule: string;
errorText?: string;
}>;
validate?: Event<void>;
resetValue?: Event<void>;
reset?: Event<void>;
resetErrors?: Event<void>;
};
};
export declare type AnyFields = {
[key: string]: Field<any>;
};
export declare type AnyFi... | Typescript |
er(events_new)))
except StopIteration:
node = node[0:-1]
stack.pop()
return mapping
def lexgraph_numbermap(G):
"""Return a mapping of states obtained when is performed
a lexicographical depth first search in automaton G. The output
is a dictionary that ... | Python |
[::192.9.5.5%interface]/ipng")
.s("http").h("[::192.9.5.5%interface]").p("/ipng").z();
test("http://[::FFFF:129.144.52.38]:80/index.html")
.s("http").h("[::FFFF:129.144.52.38]").n(80).p("/index.html").z();
test("http://[2010:836B:4179::836B:4179]")
.s("http").h("[20... | Java |
type: heading
level: 2
collapsed: true
description: ❗cssclass:fullwidth wide-dataview wide-table wide-callout wide-backlinks❗ (Adapted from https://github.com/efemkay @ Faiz Khuzaimah)
description.zh: ❗cssclass:fullwidth wide-dataview wide-table wide-callout wide-backlinks❗ 分别实现整页,dv表格 md表格 callout... | CSS |
danmaku_is_open)
mDanmakuSwitchTV.text = "弹幕开"
mMiniSendDanmakuIV.alpha = 1f
} else {
if (mDanmakuView.isShown) {
mDanmakuView.hide()
}
mDanmakuSwitchIV.setImageResource(R.drawable.bili_player_danmaku_is_clos... | Kotlin |
T/AXAHlrkqnUye7USu2kloVLNRlxMSWAL3YNCkgjDlNGKjJNQlFq9c7rgeHLqEU/roJqFmsVjwmHuncEofTQGld9n24aPQTOGUPsIB63+szBgtwF1YtVofAl8cujZw7ODjnYQeNV3bi1ExtIIVFnTy8URCRVkhLgIvnI8h8GrYI30USWhfLFLPGvcRpl+Gl3Ocfai2R0K3PLSkmNcwWS5nS3iJb+2qWxBVQ134QPnvFCbZVCOiGhflhE3zVP0zJnQtCXepC1dEbMtg36ScR7PcYDvEkxG9HN5T+2WEcyrhfm7Icc0D3rDPP4OPZnzMMG... | CSS |
turn toCompareWith == null ? false : ((this.BillOfMaterialsId == toCompareWith.BillOfMaterialsId));
}
#region Class Property Declarations
/// <summary>Gets the BillOfMaterialsId field. </summary>
public virtual System.Int32 BillOfMaterialsId
{
get { return _billOfMaterialsId; }
}
/// <summary>Ge... | C# |
astBuildDate = Convert.ToDateTime(lastBuildDate);
}
channel.link = GetText(item, "link");
channel.title = GetText(item, "title");
channel.Items = new List<RssItem>();
XmlNodeList items = item.SelectNodes("item");
if (items =... | C# |
collector = message.createReactionCollector(filter, {
time: this.paginationTimeout
})
collector.on('collect', (reaction, user) => {
if (user.bot) {
return
}
const name = reaction.emoji.name
if (name === '◀') {
this.prevPage(message).catch(err => {
errorHa... | Typescript |
s the byte[]
*
*/
public void loadEFImgLinearFixed(int recordNum, Message onLoaded) {
Message response = obtainMessage(EVENT_GET_RECORD_SIZE_IMG_DONE,
new LoadLinearFixedContext(IccConstants.EF_IMG, recordNum,
onLoaded));
mCi.iccIOForApp(COMMAND_GET... | Java |
{
this.name = name;
}
}
@Component({
selector: 'app-file-explorer',
templateUrl: './file-explorer.component.html',
styleUrls: ['./file-explorer.component.scss'],
})
export class FileExplorerComponent implements OnChanges {
@Input() rootFileNode: FileNode;
@Output() onFileSelect: EventEmitter<string> =... | Typescript |
_this._scriptQuery = opts
return _this
}
scriptScore(opts: ElasticScript): this {
const _this = this as any
_this._scriptScore = opts
return _this
}
}import { AvlTree, AvlTreeNode } from '..'
import { NodeValue } from '../node'
test('Node init', () => {
const node = new AvlTreeNode(5)
e... | Typescript |
# - Iterator는 연속적인 데이터의 스트림을 나타내는 객체이며 내부에 __next__ 메소드를 구현하고 있어,
# 빌트인 함수 next()를 통해 간접적으로 해당 메소드를 호출하여 순차적인 요소의 접근이 가능한 객체를 말한다
# 따라서 next()의 반복 호출은 데이터 스트림의 항목들을 순서대로 반환하게 된다
# - __iter__ 메소드가 구현되어, 빌트인 함수 iter()에게 해당 객체의 iterator를 반환하는 객체를 Iterable이라 부른다
l = [1, 2, 3, 4, 5]
l_iter = iter(l)
# l.__iter__()
# 해당 lis... | Python |
rWeapp } from './EasyStorageAdapterWeapp'
import { EasyStorageDriverBrowserLocalStorage, EasyStorageDriverBrowserSessionStorage } from './EasyStorageAdapterBrowser'
import { ii } from '../ii'
ii(function patchWX() {
const originalTaroGetStorage = Taro.getStorage
Object.defineProperties(Taro, {
getStorage: {
... | Typescript |
dows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.LayoutPanel.SetColumnSpan(this._comboBoxSize, 3);
this._comboBoxSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this._comboBoxSize.Items.AddRange(new object[] {
... | C# |
C0AD0 8012A780 2442FFF5 */ addiu $v0, $v0, -0xB
/* C0AD4 8012A784 2C420002 */ sltiu $v0, $v0, 0x2
/* C0AD8 8012A788 10400020 */ beqz $v0, .LPAL_8012A80C
/* C0ADC 8012A78C 00000000 */ nop
/* C0AE0 8012A790 93C20508 */ lbu $v0, 0x508($fp)
/* C0AE4 8012A794 2442FFFF */ addiu $v0, $v0, -... | Assembly |
23.8h}, [x0], #16
st1 {v22.8h}, [x6], #16
subs w3, w3, #8
st1 {v21.8h}, [x5], #16
st1 {v20.8h}, [x10], #16
b.le 8f
ld1 {v5.8h}, [x8], #16
b 2b
8:
subs w4, w4... | Assembly |
ode_states[buffer_index],
params.jpeg2k_streams[batch_id], decode_params, tile_id, 0,
&nvjpeg2k_out, params.stream[buffer_index]));
CHECK_CUDA(cudaEventRecord(pipeline_events[buffer_index], params.stream[buffer_index]));
buffer_in... | C++ |
vadd.i32 d16, d16, d17
subs r12, #16
vst1.32 {d16[0]}, [r11]! //psqdiff16x16
bne vaa_calc_sad_ssd_width_loop
sub r0, r0, r6 //jump to next 16 x width
sub r1, r1, r6 //jump to | Assembly |
3DF" d="M0 0h1718v1000H0z"/><path d="M148.903 824v-83.7c16.2-73.8 89.1-138.6 173.7-212.397 42.3-36.9 88.198-81 88.198-142.2 0-54.9-36-99-105.29-99-55.8 0-94.5 40.5-109.8 57.6l-66.6-88.198c61.2-53.1 117.9-78.3 203.4-78.3 111.6 0 216.9 63 216.9 192.6 0 108.898-69.3 158.397-145.8 227.697-32.39 29.7-96.29 82.8-104.39 119.7... | CSS |
Title</span>
</div>
)
}
```
Then, we decide that we want to have the `span` element to be editable independent of the Text user component we made earlier.
Your first instinct might be to just use the Text component directly:
```jsx {4}
const Hero = ({background}) => {
return (
<div style={{ background }... | Markdown |
sertion requires exactly 1 comparison values (you provided 3).")
this.fail(so(1, ShouldPanicWith, 1), shouldUseVoidNiladicFunction)
this.fail(so(func(i int) {}, ShouldPanicWith, "hi"), shouldUseVoidNiladicFunction)
this.fail(so(func() {}, ShouldPanicWith, "bye"), shouldHavePanicked)
this.fail(so(func() { panic("hi... | Go |
) {
for (size_t i = m_extruder_offsets.size(); i < m_result.extruders_count; ++i) {
m_extruder_offsets.emplace_back(DEFAULT_EXTRUDER_OFFSET);
}
}
// BBS
const ConfigOptionStrings* filament_colour = config.option<ConfigOptionStrings>("filament_colour");
if (filament_colour !=... | C++ |
},
reportedCPURequests: []resource.Quantity{resource.MustParse("1.0"), resource.MustParse("1.0"), resource.MustParse("1.0"), resource.MustParse("1.0"), resource.MustParse("1.0")},
recommendations: []timestampedRecommendation{},
}
tc.runTest(t)
}
func TestLegacyScaleDownIgnoresUnreadyPods(t *testing.T) {
tc ... | Go |
_FLAGS.MOBILE});
crouch.addFrame(player,0,"",folder + "/x-crouch-1.png",2);
crouch.addFrame(player,0,"",folder + "/x-crouch-0.png",2);
var jump_land = player.addAnimation(MISC_FLAGS.NONE,"jump land",0,["jump-land"],0,false);
jump_land.addFrameWithSound(player,1,"audio/misc/jump-land.zzz",0,"",folde... | JavaScript |
“洗稿”生意链,“人工+机器”的双轨“洗稿”模式,使诸多原创文章被“拆解拿走”。
- 564讨论 2596.5万阅读
1. [#年轻人如何远离猝死#](https://s.weibo.com/weibo?q=%23%E5%B9%B4%E8%BD%BB%E4%BA%BA%E5%A6%82%E4%BD%95%E8%BF%9C%E7%A6%BB%E7%8C%9D%E6%AD%BB%23)
- 《我国5516例尸解猝死病例流行特征分析》显示,影响猝死的主要因素是情绪激动(25.66%)和劳累(24.53%)。此外,临床发现很多猝死的人,都曾经历过高强度工作状态。熬夜的危害更为明显。
- 1.6万讨论 3.8亿阅读
1... | Markdown |
url;
factory ResponseModel.error(String? url, dynamic e) {
final model = ResponseModel<T>.empty();
model.code = 0;
model._url = url;
if (e is Error) {
model.message = e.toString();
} else if (e is DioError) {
model.message = e.message;
}
if (model.message?.isEmpty == true) {
... | Dart |
g<buswap2::BUSWAP2_SPEC>;
#[doc = "EBU Bus Write Access Parameter Register"]
pub mod buswap2;
#[doc = "BUSRCON3 register accessor: an alias for `Reg<BUSRCON3_SPEC>`"]
pub type BUSRCON3 = crate::Reg<busrcon3::BUSRCON3_SPEC>;
#[doc = "EBU Bus Configuration Register"]
pub mod busrcon3;
#[doc = "BUSRAP3 register accessor: ... | Rust |
$ANTLR end "rule__Operation__Group__7__Impl"
// $ANTLR start "rule__Operation__Group_4__0"
// D:\\git\\dslforge\\examples\\org.eclipse.xtext.example.domainmodel.web\\src-gen\\org\\eclipse\\xtext\\example\\domainmodel\\web\\contentassist\\antlr\\internal\\InternalDomainmodel.g:1790:1: rule__Operation__Group_4... | Java |
t = 809B0000
/* 002AC 809B53AC 860B0292 */ lh $t3, 0x0292($s0) ## 00000292
/* 002B0 809B53B0 E610026C */ swc1 $f16, 0x026C($s0) ## 0000026C
/* 002B4 809B53B4 C43261C4 */ lwc1 $f18, %lo(D_809B61C4)($at)
/* 002B8 809B53B8 E6000280 */ swc1 $f0, 0x0280($s0) ## 00000280
/* 002... | Assembly |
} finally {
conn.disconnect()
}
}
// 从本地文件读取 JSON
@Throws(IOException::class)
fun readJsonFromFile(filePath: String?): String {
val jsonContent = StringBuilder()
BufferedReader(
InputStreamReader(FileInputStream(filePath), StandardCharsets.UTF_8)
... | Kotlin |
}
if (fieldIndiv != null && battleData != null) {
addCount += countAnyTraits(battleData.getQuestIndividuality(), fieldIndiv);
}
if (vals.ParamAddMaxCount != null) {
addCount = min(addCount, vals.ParamAddMaxCount!);
}
addValue = addCount * vals.ParamAddValue!;
if (v... | Dart |
;-ms-flex:1;flex:1}.sub-menu .img img{width:20px;height:15px}.sub-menu .avatarName{border-right:1px solid #4a4a4a;-webkit-box-flex:1;-ms-flex:1;flex:1;padding:0 15px 0 0}.sub-menu .outLogin{cursor:pointer}.sub-menu:focus{outline:none}.sub-menu .right-menu-item{display:inline-block;padding:0 8px;height:100%;font-size:18... | CSS |
currentPage.findAll((node)=> node.name === "Frame Deadline Text");
console.log('countDeadlines', deadlines)
deadlines.forEach((node:TextNode) => {
const date = node.getPluginData(PLUGIN_DATE);
if (isPast(new Date(`${date}`))) {
pastDeadlines.push(date);
} else if (isToday(new Date(`${date}`))) {
... | Typescript |
);
this._cartItems = value;
this._cartTotalPrice = this._cartItems.reduce(
(acc, book: Book) => acc + (book.price || 0), 0
);
}
private readonly _sCartItems: Subject<Book[]> = new Subject();
public readonly cartItems$ = this._sCartItems.asObservable().pipe(
share... | Typescript |
<string, string>>
{
new KeyValuePair<string, string>("broadcaster_id", broadcasterId)
};
return TwitchPostGenericAsync<CreateChannelStreamSegmentResponse>("/schedule/segment", ApiVersion.Helix, JsonConvert.SerializeObject(payload), getParams, accessToken);
}
... | C# |
>::AccountId,
TokenIdOf<T>,
(ClassIdOf<T>, TokenIdOf<T>),
),
/// Successfully force transfer NFT
ForceTransferredNft(
<T as frame_system::Config>::AccountId,
<T as frame_system::Config>::AccountId,
TokenIdOf<T>,
(ClassIdOf<T>, TokenIdOf<T>),
),
/// Signed on NFT
SignedNft(TokenIdOf<T>, <T ... | Rust |
user %q specified as a distinct channel member, but no distinct channel declared with members: %v",
m.UserID,
m.ChannelMemberIDs,
)
}
}
return nil
}
var messageReservedFields = []string{
"tmp_id",
"app_pk",
"latest_reactions",
"own_reactions",
"reactions_count",
"reply_count",
"command",
"pk",
... | Go |
<int64> data;
"#;
let new = r#"
type BinaryTree<T> {
left: BinaryTree<T>,
right: BinaryTree<T>,
value: T,
value2: T,
}
export BinaryTree<int64> data;
"#;
let (insert_count_1, delete_count_1) = run_planner_migration_stats(old, new);
assert!(insert_count_1 > 0);
assert!(delete_count_1 ==... | Rust |
h.Abs(v - rv);
float err = (hErr + sErr + vErr) / 3;
totErr += err;
if (totErr > maxErr)
break;
}
}
return totErr / numPixels;
}
public static float[,] GetBitmapDensity(SKBitm... | C# |
import javax.swing.JLabel
import javax.swing.JPanel
import javax.swing.JTextField
// Insets
private const val TOP_INSET = 10
private const val BOTTOM_INSET = 0
private const val RIGHT_INSET = 10
// The texts should be aligned
private const val CHECKBOX_CHECK_AREA_WIDTH = 22
private const val CHECKBOX_LEFT_INSET = 15
... | Kotlin |
ing to
result.addCode(
"/*·%L·*/·%L",
input.parameter.name,
input.type.rawType().defaultPrimitiveValue(),
)
} else {
result.addCode("%N", (input as ParameterProperty).property.localName)
}
} else if (input !is ParameterOnly) {
... | Kotlin |
impl Scanner {
fn permute(&self, permute: &Permute) -> Scanner {
let points: Vec<_> = self.points.iter().map(|p| p.permute(permute)).collect();
Scanner { points }
}
fn find_permute(
&self,
other: &Scanner,
permutes: Vec<Permute>,
diff_freq: &mut DiffFreq,
... | Rust |
if (!dataKey && target.parentNode) {
return getDataKey(target.parentNode || {})
}
return dataKey;
};
const rightMouseCallback = (event:any) => {
if (event.which !== 3) {
return;
}
const target = event.target || {};
const transferKey = getDataKey(target || {});
const { bindFunc } = common.rightMous... | Typescript |
fc = FCI,
-- Enable to unlock Private DOs 3 and 4 -- but three wrong tries
-- will lock up the card! After that a factory reset is required.
-- prepare = unlock_private_dos("123456", "12345678"),
dos = DOs,
})
-- ------------------------------------------------------------------
function card.verify(pin, p1, p2)
... | Lua |
.mapFaces(dst), m.mapFaces(src), sizeof(TVFace) * m.getNumFaces());
m.setNumMapVerts(src, dstvrts.Count());
m.setNumMapFaces(src, dstfcs.Count());
memcpy(m.mapFaces(src), &dstfcs[0], sizeof(TVFace) * m.getNumFaces());
memcpy(m.mapVerts(src), &dstvrts[0], sizeof(Point3) * dstvrts.Count());
return tr... | C++ |
rBuilder::init_pointer(self.builder.get_pointer_field(0), 0)
}
pub fn has_threshold(&self) -> bool {
if self.builder.get_data_field::<u16>(0) != 2 { return false; }
!self.builder.get_pointer_field(0).is_null()
}
#[inline]
pub fn which(self) -> ::core::result::Result<WhichBuilder<'a,>, ::... | Rust |
kins.blueocean.rest.impl.pipeline.PipelineRunImpl",
"_links": {
"nodes": {
"_class": "io.jenkins.blueocean.rest.hal.Link",
"href": "/blue/rest/organizations/jenkins/pipelines/tfprdemo/branches/master/runs/3/nodes/"
},
"log": {
"... | JavaScript |
ated_image:"Imagem anotada"},ru={allow_recording_access:"Por favor, permita o acesso ao microfone para gravação.",audio:"Áudio",record_from_microphone:"Gravar do microfone",stop_recording:"Parar gravação",no_device_support:"Não é possível aceder a dispositivos de média. Certifique-se de que está a executar numa fonte s... | JavaScript |
000213
_02385134: .word DUNGEON_WINDOW_PARAMS_13
_02385138: .word DUNGEON_WINDOW_PARAMS_9
arm_func_end ov31_023838E4
arm_func_start ov31_0238513C
ov31_0238513C: ; 0x0238513C
stmdb sp!, {r4, r5, r6, r7, r8, sb, sl, lr}
mov r8, r0
mov r7, r1
mov r6, r2
bl ov29_022EBA84
mov r4, #0
mov r5, r0
mov sb, #3
mov sl,... | Assembly |
ensor由模板类**tensor**来管理基本的数据结构, 可以这样使用它
```c++
pointi<2> shape = {10, 20};
tensor<int, 2> cts(shape, runtime::cuda);
tensor<int, 2> ts(shape, runtime::host);
```
tensor可以通过模板参数来定义value_type和维度, 通过cuda/host来可以指定tensor的内存类型.
### lambda_tensor
lambda_tensor是一个函数式的tensor结构, 其有着很强的表达能力.
我们可以通过shape和"index->value"的函数来定义la... | Markdown |
from datetime import datetime, timezone
import os
import tweepy
from dotenv import load_dotenv
from playwright.sync_api import sync_playwright
# Take a screenshot of the page
with sync_playwright() as p:
browser = p.chromium.launch(headless=True)
page = browser.new_page()
page.goto("https://trendmine.pages... | Python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.