content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
cd reveal.js
```
6. Install dependencies
```sh
$ npm install
```
7. Serve the presentation and monitor source files for changes
```sh
$ grunt serve
```
8. Open <http://localhost:8000> to view your presentation
You can change the port by using `grunt serve --port 8001`.
### Folder Structur... | Markdown |
me lastAccessTime;
_CacheItem(this.data)
: createdTime = DateTime.now(),
lastAccessTime = DateTime.now();
bool get isExpired {
return DateTime.now().difference(createdTime) > VideoCacheManager._cacheExpiration;
}
void updateAccessTime() {
lastAccessTime = DateTime.now();
}
Dur... | Dart |
nil)
}
// Copyright 2021 Google LLC
//
// 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 agree... | Go |
},
trailing: Tooltip(
message: "reset sharing dir to default: ${getDefaultDir()}",
child: IconButton(
onPressed: () {
setState(() {
rootDir = getDefaultDir();
});
println("reset sharing dir ... | Dart |
4:5
str r1, [r0, #0x300]
ldr r1, =0x11110111 @ UART[3210]: MMC[3210]
str r1, [r0, #0x310]
/* Set Lock Time */
ldr r1, =0x2cf @ Locktime : 30us
str r1, [r0, #0x000] @ S5PC110_APLL_LOCK
ldr r1, =0xe10 @ Locktime : 0xe10 = 3600
str r1, [r0, #0x008] @ S5PC110_MPLL_LOCK
str r1, [r0, #0x010] @ S5PC110_EPLL... | Assembly |
ile True:
self.ui.clear_screen()
submenu_options = [
"💰 Modifier les prix",
"➕ Ajouter des plats au menu",
"➖ Retirer des plats du menu",
"📊 Analyser la rentabilité par plat",
"🍽️ Créer un menu du jour",
... | Python |
// Begin extensions outside HQ, offset diagonally from storage
let extensions = fillExtensionsRecursive(terrain, cm, [storagePos], count);
if (extensions.length < count) throw new Error('Not enough room to fill extensions')
extensions.forEach(pos => roomBlock.structures.push(new PlannedStructure(pos... | Typescript |
defaultKey: action.key,
tabs: [
...temp1,
],
};
case UPDATETAB:
let temp2 = state.tabs.slice(0);
for (let item of temp2) {
if (item.key === action.key) {
item.title = actio... | Typescript |
public static ReactivePower? FromMegavoltampereReactive(double? MegavoltampereReactive)
{
if (MegavoltampereReactive is null)
return null;
return new ReactivePower((double)MegavoltampereReactive, ReactivePowerUnit.MegavoltampereReactive);
}
/// <summary>
/// Get Reac... | C# |
0f;
}
this.mixValue = mixValue;
int mix_r = (int) (mixColor.getRed() * mixValue);
int mix_g = (int) (mixColor.getGreen() * mixValue);
int mix_b = (int) (mixColor.getBlue() * mixValue);
// Since we use only lookup tables to apply the filter, this filte... | Java |
.isNotEmpty()
}
/** Returns paths to [traits] in scope of [modPath] */
private fun ImportContext.getTraitsPathsInMod(modPath: ModUsePath, traits: Set<ModPath>): List<ItemUsePath> =
modPath.mod.visibleItems
.flatMap { (name, perNs) ->
perNs.types
.filter { checkVisibility(it, mod... | Kotlin |
this._initialPose = value;
}
get thetaDiff(): number {
return this._thetaDiff;
}
set thetaDiff(value: number) {
this._thetaDiff = value;
}
handleKeyEvent(e: JQuery.KeyDownEvent) {
if (this.selected) {
e.stopImmediatePropagation();
let k... | Typescript |
_product_t::<G::Fr>(&f, &r1cs_circuit.CR);
let aO = vector_matrix_product_t::<G::Fr>(&f, &r1cs_circuit.CO);
let input = Assignment {
aL: aL,
aR: aR,
aO: aO,
s: r1_statement,
w: witness,
};
// create generators
// n_max... | Rust |
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Unity.VisualScripting
{
public class FontCollection
{
public FontCollection(Func<FontVariant, Font> load)
{
if (load == null)
{
throw new ArgumentNullException(nameof(load));
... | C# |
add r1, r1, r5, lsl #5
mov r5, lr, lsl #3
add r3, r4, r3, lsl #5
ldrh r0, [r5, ip]
ldrh r1, [r5, r1]
ldrh r2, [r5, r2]
ldrh r3, [r5, r3]
bl ov13_02227C28
ldmia sp!, {r3, r4, r5, r6, r7, pc}
_022379A8:
add r6, r6, #1
cmp r6, #4
add r7, r7, #8
blo _02237908
mov r0, #1
bl ov13_02241694
cmp r0, #0
beq _0223... | Assembly |
it's a [Map], null otherwise.
// ignore: prefer_constructors_over_static_methods
static IoK8sApiCoreV1EphemeralVolumeSource? fromJson(dynamic value) {
if (value is Map) {
final json = value.cast<String, dynamic>();
// Ensure that the map contains the required keys.
// Note 1: the values aren'... | Dart |
0
} else {
(*pi).y = ((*pi).y as libc::c_uint)
.wrapping_add((*pi).dy.wrapping_sub((*pi).y.wrapping_rem((*pi).dy)))
as OPJ_UINT32 as OPJ_UINT32;
current_block = 7245201122033322888;
break;
}
current_block = 980989089337379490;... | Rust |
ory_buf_t buf;
spdlog::details::fmt_helper::pad3(n, buf);
REQUIRE(to_string_view(buf) == expected);
}
void test_pad6(std::size_t n, const char *expected) {
memory_buf_t buf;
spdlog::details::fmt_helper::pad6(n, buf);
REQUIRE(to_string_view(buf) == expected);
}
void test_pad9(std::size_t n, const... | C++ |
dim:SQ_RSRC_IMG_2D
// GFX11: [0x04,0x04,0x08,0xf1,0xfc,0xff,0x02,0x0c]
image_sample_b_cl v[5:6], v[1:5], s[8:15], s[12:15] dmask:0x4 dim:SQ_RSRC_IMG_CUBE tfe
// GFX11: [0x0c,0x04,0x08,0xf1,0x01,0x05,0x22,0x0c]
image_sample_b_cl v[254:255], v[251:255], s[8:15], s[12:15] dmask:0x4 dim:SQ_RSRC_IMG_CUBE tfe
// GFX11: [0x... | Assembly |
signature_sha256 = headers.get('X-Hub-Signature-256', '').split('=')[1]
generated_sha1 = hmac.new(
app_secret_key.encode('utf-8'),
data,
hashlib.sha1
).hexdigest()
generated_sha256 = hmac.new(
app_secret_key.encode('utf-8'),
data,
hashlib.sha256
).hexdi... | Python |
Y> a, A<A<Null>>? b) {
A<Y>? c;
A<A<Null>>? d;
}
void method2<Y extends String>(D<Y> a, D<String>? b) {
D<Y>? c;
D<String>? d;
}
}
class C {
factory C.redirect(A<A<Null>>? a) = C.internal;
factory C.fact(A<A<Null>>? a) {
A<A<Null>>? b;
D<String>? c;
return new C.internal(a);
}... | Dart |
毒,此次,360安全团队首次发现了在Android系统中通过感染方式隐藏自身恶意代码的木马病毒——长老木马之四。
**0x00 长老四之前世今生**<br>
去年11月份,360安全团队截获了恶意手机木马“长老三代”,详细剖析挖掘了长老木马的整个有机生态链。并从传播源头开始进行强力打击,致使猖狂一时的长老木马迅速地消声灭迹。近期360安全团队发现改头换面的新版长老木马又“重出江湖”。
分析后发现,木马与“长老三代”有紧密的关系,在长老木马三代“疯狂崛起”时,以其子模块的形式存在,功能有限,而且也不具备对抗安全软件的能力,因此,我们将其命名为“长老四代”。
长老木马三代核心主体模块debuggerd与此子模块耦合度非常高。... | Markdown |
VelRatio2 > 0.9) and referenceWheelsGrounded and vData.vehicle.clutch > 0.999 and (not driftingProbably or getPredictedRPM(vData.localHVelLen, vData, vData.perfData:getDrivetrainRatio(vData.vehicle.gear + 1)) > gearData[vData.vehicle.gear + 1].gearStartRPM)
end
local canShiftDown = false
if vDa... | Lua |
; Initializing the 80 column firmware needs the ROM switched
; in, otherwise it would copy the F8 ROM to the LC (@ $CEF4)
bit $C082
; Call 80 column firmware with ctrl-char code
jsr $C300
; Switch in LC bank 2 for R/O
bit $C080
; Switch in alternat... | Assembly |
', '[TREE](ROOT (S_e (NP_e (EX_e There)) (VP_h (NP (NP (DT_h एक) (NN_e limit)) (PP_h (NP (NN_h धारणा)))) (VBZ_h है))))\n', '[CM]There एक सीमा perception है\n', '[TREE](ROOT (S_e (NP_e (EX_e There)) (VP_h (NP (NP (DT_h एक) (NN_h सीमा)) (PP_h (NP (NN_e perception)))) (VBZ_h है))))\n', '[CM]There एक सीमा to है\n', '[TREE]... | Markdown |
mousePressed = true;
p.mouseDragging = false;
switch (e.which) {
case 1:
p.mouseButton = p.LEFT;
break;
case 2:
p.mouseButton = p.CENTER;
break;
case 3:
p.mouseButton = p.RIGHT;
break;
}
p.mouseDown = tru... | JavaScript |
Ghostlands,56.49,68.12,30,0
.goto Ghostlands,57.70,67.55,30,0
>>Kill |cRXP_ENEMY_Sentinel Infiltrators|r. Loot them for the |cRXP_LOOT_Controlling Orb|r
.collect 23191,1,9169,1 --Collect Crystal Controlling Orb (x1)
.mob Sentinel Infiltrator
step
.goto Ghostlands,58.18,65.14
>>Click the |cRXP_PICK_... | Lua |
NoError(t, err)
assert.NotEqual(t, id, newID)
newID, err = client.RerunWorkflowFromEvent(ctx, id, 0, api.WithRerunNewInstanceID("helloworld"))
require.NoError(t, err)
_, err = client.WaitForOrchestrationCompletion(ctx, id)
require.NoError(t, err)
assert.NotEqual(t, "helloworld", newID)
_, err = client.RerunWor... | Go |
if (
in_registeredHandlers.collectionInsert ||
in_registeredHandlers.collectionModify ||
in_registeredHandlers.collectionRemove
) {
if (invokeContext.containerType === "array") {
_invokeArrayCallbacks(invokeContext, in_registeredHandlers);
} else {
_invokeNodePropertyCallbacks(invokeContext, i... | Typescript |
.query.sparqldl.model.QueryAtomFactory.NotKnownAtom;
import static openllet.query.sparqldl.model.QueryAtomFactory.PropertyValueAtom;
import static openllet.query.sparqldl.model.QueryAtomFactory.SubClassOfAtom;
import static openllet.query.sparqldl.model.QueryAtomFactory.TypeAtom;
import static org.junit.Assert.assertEq... | Java |
rl();
m_pControl->m_pOwner = this;
// More control creation stuff
DWORD dwMiscStatus = 0;
m_pUnk->GetMiscStatus(DVASPECT_CONTENT, &dwMiscStatus);
IOleClientSite* pOleClientSite = NULL;
m_pControl->QueryInterface(IID_IOleClientSite, (LPVOID*) &pOleClientSite);
CSafeRelease<IOleClientSite> Ref... | C++ |
桸惜烯焁焈淅渓唽菥傒鄎焟焬犀晰晳翕翖舾粞稀睎惁腊锡皙裼煕厀徯蒠溪嵠僖熙熈熄榽蜥緆餏覡豨瘜磎](jin|jing)[品姘娦嬪拼榀泵瀕獱琕砏穦苹蘋貧頻频馪嚬娉嫔拚朩汖涄牝玭矉礗聘薲蠙贫顰颦驞乒冯凴坪娉屛帡幈慿枰]'},
{'51877', '習chair', '習chair'},
{'51878', '习chair', '习chair'},
{'51879', '當委副書記', '當委副書記'},
{'51880', '當委副書记', '當委副書记'},
{'51881', '鬧歡拉單', '鬧歡拉單'},
{'51882', '闹欢拉单', '闹欢拉单'},
{'51883', '中國駐美大使館', '中國駐美大使館'},
{'518... | Lua |
csv"), network.getLinks());
for (Link link : network.getLinks().values()) {
Feature ft = features.get(link.getId());
if (roadTypes != null && !roadTypes.isEmpty() && !roadTypes.contains(ft.highwayType()))
continue;
if (junctionTypes != null && !junctionTypes.isEmpty() && !junctionTypes.contains(ft.jun... | Java |
��더기",nil},
[72755] = {"롤로의 보물",nil},
[72761] = {"바람깃털 둥지지기",nil},
[72762] = {"화려한 바람깃털",nil},
[72763] = {"새끼 거대거북",nil},
[72764] = {"거대거북",nil},
[72765] = {"덩치 큰 거대거북",nil},
[72766] = {"고대 가시집게 게",nil},
[72767] = {"비취안개 춤꾼",nil},
[72769] = {"비취불꽃의 영혼",nil},
[72770] = {"코르크론 암흑선견자",nil},
[72771] = {"축축한 동굴괴물",nil},
[72... | Lua |
adderItemType.series: false,
FladderItemType.video: false
},
sortingOption:
$enumDecodeNullable(_$SortingOptionsEnumMap, json['sortingOption']) ??
SortingOptions.sortName,
sortOrder:
$enumDecodeNullable(_$SortingOrderEnumMap, json['sortOrder']) ??
... | Dart |
sleep(5);
} catch (InterruptedException e) { }
}
pixels = image.pixels;
width = image.width;
height = image.height;
}
public void pause() {
play = false;
}
*/
public void run() {
//System.out.println("entering thread");
while (Thread.currentThread() == runner) {
//S... | Java |
_list = qt.built_ins('dma')
```
打印如下信息:
DMA择时策略
策略参数:
s, int, 短均线周期
l, int, 长均线周期
d, int, DMA周期
信号类型:
PS型:百分比买卖交易信号
信号规则:
在下面情况下产生买入信号:
1, DMA在AMA上方时,多头区间,即DMA线自下而上穿越AMA线后,输出为1
2, DMA在AMA下方时,空头区间,即DMA线自上而下穿越AMA线后,输出为0
3, DMA与股价发生背离时的交叉信号,... | Markdown |
�码分析---YYCache][75]
4. [iOS 源码解析:YYCache (YYDiskCache)][76]
5. [从 YYCache 源码 Get 到如何设计一个优秀的缓存][77]
- [YYImage][78] — 功能强大的 iOS 图像框架。
- [YYWebImage][79] — 高性能的 iOS 异步图像加载框架,参考:
1. [读码笔记-YYWebImage源码 (一) - YYWebImageManager][80]
2. [读码笔记-YYWebImage源码 (二) -YYWebImageOperation][81]
- [YYText][82] — 功能强大的 iOS 富文本框架。参考:[... | Markdown |
}
}
fun removeSource(sourceFile: AbsoluteFile) {
val sourceRelative = sourceFile.relative()
// All generated files that claim this source file as a source.
val generated = tables.getGeneratedFiles(sourceRelative)
for (gen in generated.toList()) {
tables.deleteSourceGeneratedPair(sourceF... | Kotlin |
al Cure', 'Regenerator'],
attack: 55,
classfication: 'Coral Pokémon',
defense: 95,
hp: 65,
japaneseName: 'Sunnygoサニーゴ',
name: 'Corsola',
id: 222,
generation: 2,
isLegendary: false,
types: ['water', 'rock'],
},
{
abilities: ['Hustle', 'Sniper', 'Moody'],
attack: 65,
... | Typescript |
file size added to the test suite?",
expectSize)
}
if actualHash != expectedHash {
return fmt.Errorf("MD5 hash is incorrect for file %s with size %d. Expected: `%s`; Actual: `%s`",
fpath, expectSize, expectedHash, actualHash)
}
return nil
}
// Delete `fpath` to save some disk space on host. Delete errors... | Go |
dcli kubewebhookcrd.Interface) {
// Try creating a house.
h := &buildingv1.House{
ObjectMeta: metav1.ObjectMeta{
Name: fmt.Sprintf("test-%d", time.Now().UnixNano()),
Namespace: "default",
Labels: map[string]string{
"city": "Bilbo",
"bathrooms": "2",
},
}... | Go |