content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
ain 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 express or implied.
// See the License for ... | Rust |
Role(page, role);
result.setSuccess(true);
result.setResult(pageList);
return result;
}
/**
* 分页列表查询【租户角色,做租户隔离】
* @param role
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@RequestMapping(value = "/listByTenant", method = RequestMethod.GET)
public Result<IPage<SysRole>> listByTe... | Java |
resolve();
} else {
cb().then(() => {
resolve();
}).catch((err) => {
reject(err);
});
}
});
};import { EnfolderedSummaryData } from './index';
interface DataParameters {
id: string;
name: string;
type: CompendiumDocumentType;
parent?: PackFolderPF2e | n... | Typescript |
2 + x4 * (ATAN_AT4 + x4 * (ATAN_AT6 + x4 * (ATAN_AT8 + x4 * ATAN_AT10)))));
double s2 = x4 * (ATAN_AT1 + x4 * (ATAN_AT3 + x4 * (ATAN_AT5 + x4 * (ATAN_AT7 + x4 * ATAN_AT9))));
double result = ATAN_HI3 - ((x * (s1 + s2) - ATAN_LO3) - x);
return negateResult ? -result : resu... | Java |
{
return exec.Command("kubectl", []string{"config", "get-contexts", "-o", "name"}...)
}
mc.getKubectlCmd = func(args []string, context string, namespace string) Cmd {
return exec.Command("kubectl", getLocalArgs(args, context, namespace)...)
}
cmd := &cobra.Command{
Use: "mc [flags] -- [kubectl command]",
... | Go |
-- test cases for `cp.is`
local test = require("cp.test")
local languageID = require("cp.i18n.languageID")
local localeID = require("cp.i18n.localeID")
local pack = table.pack
local parse, forCode, forParts, forLocaleID = languageID.parse, languageID.forCode, languageID.forParts, langu... | Lua |
4
tst.w (StopAtZero,sp)
bne.b 1f
tst.l d1
bne.b 2f
tst.l d2
bne.b 2f
bsr AddSilenceStereoB
bra 7f
0: /* .next_sampleZ */
add.w d6,d4
subx.l d5,d3
1: /* .first_sampleZ */
move.w (0,a0,d3.l*4),a3 /* sign extend */
move.w (2,a0,d3.l*4),a4 /* sign extend */
tst.l a5
bgt.b 5f
beq.b 6f
tst.l a3
bge.b 7... | Assembly |
case 11
.short _021D78EE - _021D7626 - 2 ; case 12
.short _021D7916 - _021D7626 - 2 ; case 13
.short _021D7964 - _021D7626 - 2 ; case 14
.short _021D7A32 - _021D7626 - 2 ; case 15
.short _021D7B0E - _021D7626 - 2 ; case 16
.short _021D7B1C - _021D7626 - 2 ; case 17
.short _021D7B3E - _021D7626 - 2 ; case 18
_021... | Assembly |
("Http rpc address: {:?}", self.get_http_address());
info!("TCP rpc address: {:?}", self.get_tcp_address());
info!("Websocket rpc address: {:?}", self.get_ws_address());
info!("Ipc file path: {:?}", self.get_ipc_file());
Ok(())
}
}
<reponame>pearzl/proc_getter
// > 5.2.19. /proc/me... | Rust |
// src/engine/serdes.cpp:426:0
link_internal bonsai_type_info
TypeInfo(world_update_op_shape_params_cylinder *Ignored)
{
bonsai_type_info Result = {};
Result.Name = CSz("world_update_op_shape_params_cylinder");
Result.Version = 0 ;
/* type.map(member) */
/* { */
/* { */
/* member_info Member = {... | C |
private/gen_certs.sh` to generate a CA and key pairs.
rocket::build().mount("/", routes![hello, mutual])
}
// Multiples of 3 or 5
fn problem_1(ceil: u32) {
let mut sum: u32 = 0;
for x in (3..ceil).step_by(3) {
sum += x;
}
for y in (5..ceil).step_by(5) {
sum += if y % 15 == 0 { 0 } el... | Rust |
iciary,
)
})
}
/// Burn NFT token
#[pallet::weight(T::WeightInfo::burn())]
#[transactional]
pub fn burn(
origin: OriginFor<T>,
#[pallet::compact] class_id: T::ClassId,
#[pallet::compact] token_id: T::TokenId,
#[pallet::compact] quantity: T::Quantity,
) -> DispatchResult {
let owner = ... | Rust |
_21 > var_22) ? (new short[var_20])[var_21] : (short)3904907750551380992L);
var_18 = false;
{
var_18 = "aoy".startsWith("ia", 18060804);
if (true)
{
final short var_27 = 4832;
}
else
{
var_18 = (var_1... | Java |
T_32 start, enum Dim axis)
{
for (UINT_32 i = start; i < m_numBits;)
{
UINT_32 m = m_eq[i].Filter(f, co, 0, axis);
if (m == 0)
{
for (UINT_32 j = i; j < m_numBits - 1; j++)
{
m_eq[j] = m_eq[j + 1];
}
m_numBits--;
}
... | C++ |
index }}</td>
<td class="col-2"><a href="{{ url_for('user_view', unique_id=tguser.unique_id) }}">{{ tguser.username }}</a></td>
<td class="col-2">{{ tguser.first_name }}</td>
<td class="col-2">{{ tguser.last_name }}</td>
<td class="col-2">{{ tguser.role.title }}</td>
<td class="col-2">{{ t... | HTML |
K) -> resample(48K) -> RV1126 speaker(48K)
- RV1126 mic(48K) -> resample(44.1K) -> RV1126 USB(44.1K) -> PC(44.1K)
### UAC 采样率的设置
配置在json文件中的采样率等配置,只是创建UAC录/放音的默认设置,当UAC驱动支持多采样率时,UAC驱动会上报PC/TV/Remote device打开USB声卡的采样率到uac_app,uac_app会调用librockit的接口,设置录/放音采样率。
对于RV1126录音流程(usb_recode_speaker_playback.json), 当Ubuntu PC... | Markdown |
YPE_MOBILE_HIPRI,
ConnectivityManager.TYPE_MOBILE_MMS,
ConnectivityManager.TYPE_MOBILE_SUPL
)
internal val known2GSubtypes = listOf(
TelephonyManager.NETWORK_TYPE_GPRS,
TelephonyManager.NETWORK_TYPE_EDGE,
TelephonyManager.NETWORK_TYPE_CDMA,
... | Kotlin |
les to version control state.
```sh
$ git reset --hard
```
Or unstage changes and then revert files to version control state.
```sh
git reset
git checkout .
```
Note `reset HEAD` is implied.
You can also target a branch or commit.
```sh
$ git reset --hard HEAD~
```
```sh
$ git reset --hard origin/main
```
# Del... | Markdown |
padding-top: 3px;
}
silverpeas-pdc-filter .filters {
display: inline-block;
}
silverpeas-pdc-filter .filters .field {
clear: none;
display: inline-block;
text-align: center;
}
silverpeas-pdc-filter .filters .field .champs select {
width: 150px;
border-color: #B9B9B9;
}
silverpeas-pdc-filter .filters .... | CSS |
atsuki('5','s')
n "But I'm still going to make you read mine."
elseif cl == 672 then
n "There's a reason."
elseif cl == 673 then
updateNatsuki('5','x')
n "I really wish I didn't have to do this..."
elseif cl == 674 then
n "But unfortunately I don't have much of a choice."
elseif cl == 675 then
updat... | Lua |
FileExtension != 'png' && bitrateString != null) ...['-b:v', bitrateString],
if (bitrateString != null && isVideoOutput) ...[
'-minrate', bitrateString,
'-maxrate', bitrateString,
],
if (outputFileExtension == 'webm') ...[
if (copyStreams && soundSource == null) ...[
'-aco... | Dart |
.plain.Output(2, fmt.Sprintln(v...))
}
}
func (lg *logger) Fatal(v ...interface{}) {
if lg.logType&flags == 0 {
return
}
if colors {
lg.colored.Output(2, fmt.Sprint(v...))
} else {
lg.plain.Output(2, fmt.Sprint(v...))
}
os.Exit(1)
}
func (lg *logger) Fatalf(format string, v ...interface{}) {
if lg.logT... | Go |
di id quaerat rerum
molestias aspernatur obcaecati soluta, quas magni inventore numquam
deleniti vero deserunt quis. Blanditiis, quasi suscipit?
</p>
</div>
</section>
<!-- Сетка товаров -->
<section id="products" class="products">
<h2>Наши товары</h2... | HTML |
self.com.write_read(self.address, &[reg as u8], &mut data)?;
Ok(data[0])
}
fn read_byte(&mut self, reg: u8) -> Result<u8, E> {
let mut data: [u8; 1] = [0];
self.com.write_read(self.address, &[reg], &mut data)?;
Ok(data[0])
}
fn read_6bytes(&mut self, reg: Register) -> R... | Rust |
(function()
IEex_DisableCodeProtection()
--------------------------------------------------------------------
-- Fix crash involving sound system not properly clearing invalid --
-- sounds from various internal lists when they are destructed --
-----------------------------------------------------------------... | Lua |
newLevels = [...abilityLevels.levels];
newLevels[0] = {
...(abilityLevels.levels[0] || {
strength: 0,
charisma: 0,
constitution: 0,
dexterity: 0,
intelligence: 0,
wisdom: 0
}),
[key]: abili... | Typescript |
if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then
return;
end
local ability_item_usage_generic = dofile( GetScriptDirectory().."/ability_item_usage_generic" )
local utils = require(GetScriptDirectory() .. "/util")
local mutils = re... | Lua |
function love.load()
sprites = {}
sprites.background = love.graphics.newImage('sprites/background.png')
sprites.bullet = love.graphics.newImage('sprites/bullet.png')
sprites.player = love.graphics.newImage('sprites/player.png')
sprites.zombie = love.graphics.newImage('sprites/zombie.png')
playe... | Lua |
[stmt::Stmt]) {
for statement in statements {
self.resolve_stmt(statement);
}
}
fn resolve_stmt(&mut self, statement: &stmt::Stmt) {
statement.accept(self)
}
fn resolve_expr(&mut self, expr: &crate::expr::Expr) {
expr.accept(self)
}
fn begin_scope(&... | Rust |
break;
}
case 7: // Move
{
from.Target = new MoveTarget(focus);
this.Resend(from, info);
break;
}
case 8: // Kick
{
... | C# |
呃
峻
荐
栽
嚎
汁
傍
秃
磕
禀
珑
坎
邵
萌
窄
阮
蹈
碑
婶
煤
寓
栈
滞
倘
杭
暇
狈
峡
侣
芦
蔓
蒸
禄
胀
醋
淌
伞
姊
钩
衍
妾
嘎
蜀
蝴
萝
莽
弩
祷
稚
圳
徽
衙
咸
陋
奢
罐
霄
毙
汝
敞
暮
嘘
灼
澜
姗
倪
挫
咪
钧
捣
燥
泳
眶
乙
澈
焕
酬
筷
宵
缚
揪
蚁
喇
丞
拎
棠
咙
梭
哧
棺
璇
瀚
肝
敛
剂
疤
渔
嗔
沮
廖
虏
皓
勋
恕
虐
虞
综
瘾
驴
晒
卦
迦
陀
窥
堕
哆
葡
帖
垫
屡
鹅
蛛
盲
碟
狞
囚
诊
揽
裴
捞
吏
铮
萄
盏
霆
喔
贷
勿
吭
淘
辟
蔑
淹
麒
喽
栗
绷
惚
桓
坊
桩
嗽
履
璐
菩
巢
畜
兀
樊
锡
... | Lua |
якщо ви знаєте образ, який хочете створити. Змініть команду, щоб відображати лише параметри встановлення Rocky Linux:
```bash
lxc image list images: | grep rocky
```
Це відкриває набагато більш керований список:
```bash
| rockylinux/8 (3 more) | 0ed2f148f7c6 | yes | Rockylinux 8 amd64 (2022080... | Markdown |
from textual.app import App, ComposeResult
from textual.widgets import Label
class LabelApp(App):
def compose(self) -> ComposeResult:
yield Label("Hello, world!")
if __name__ == "__main__":
app = LabelApp()
app.run()
| Python |
@keyframes dot-collision-after {
0%, 50%, 75%, 100% {
transform: translateX(0);
}
25% {
transform: translateX(15px);
}
}
/**
* ==============================================
* Dot Carousel
* ==============================================
*/
.dot-carousel {
position: relative;
le... | CSS |
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <http://www.g... | C++ |
ght:500}.kt-mycart .kt-mycart__footer .kt-mycart__section .kt-mycart__subtitel span:not(:first-child):not(:last-child){padding:0.4rem 0}.kt-mycart .kt-mycart__footer .kt-mycart__section .kt-mycart__subtitel span:last-child{font-size:1.1rem;font-weight:600}.kt-mycart .kt-mycart__footer .kt-mycart__section .kt-mycart__pr... | CSS |
=8)
]
schema = CollectionSchema(fields, "hello_milvus is the simplest demo to introduce the APIs")
hello_milvus = Collection("hello_milvus", schema)
```
- 在创建好的 Collection 中插入向量:
```Python
import random
entities = [
[i for i in range(3000)], # field pk
[float(random.randrange(-20, -10)) for _ in range(3000)],... | Markdown |
x04e2, 0x04e2,
0x04e2, 0x04e2, 0x04e2, 0x04e2, 0x04e2, 0x04e2, 0x04e2, 0x04e2,
0x04e2, 0x04e2, 0x04e2, 0x04e2, 0x04e2, 0x04e2, 0x04e2, 0x04e2,
0x04e2, 0x04e2, 0x04e2, 0x04e2, 0x04e2, 0x04fd, 0x04fd, 0x04fd,
0x04fd, 0x04fd, 0x04fd, 0x04fd, 0x04fd, 0x04fd, 0x04fd, 0x04fd,
// Entry 200 - 23F
0x04fd, 0x04... | Go |
Color::genMap(TCODColor* map, int nbKey, TCODColor const* keyColor, int const* keyIndex) {
for (int segment = 0; segment < nbKey - 1; ++segment) {
int idxStart = keyIndex[segment];
int idxEnd = keyIndex[segment + 1];
for (int idx = idxStart; idx <= idxEnd; ++idx) {
map[idx] = TCODColor::lerp(
... | C++ |
&ixid=eyJhcHBfaWQiOjU4MjM5fQ"
},
"color": "#340925",
"width": 1969,
"height": 2953
},
{
"urls": {
"raw": "https://images.unsplash.com/photo-1550947176-5fe5e0746a8f?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjU4MjM5fQ",
"fu... | Kotlin |
/en-US/docs/Thunderbird/Thunderbird_Automated_Testing">Test automatisé</a></dt>
<dd>Détails des installations de test automatisées de Thunderbird</dd>
<dt><a href="/en-US/docs/Thunderbird/Thunderbird_in_the_Enterprise">Thunderbird dans l'entreprise</a></dt>
<dd>Aide au déploiement de Thunderbird dan... | HTML |
# coding: utf-8
"""
OpenAPI UniBee
This is UniBee api server, For this sample, you can use the api key `EUXAgwv3Vcr1PFWt2SgBumMHXn3ImBqM` to test the authorization filters
The version of the OpenAPI document:
Generated by OpenAPI Generator (https://openapi-generator.tech)
Do not edit the class ... | Python |
= setup();
const prevLockedFn = result.current.lockedFn;
rerender();
expect(result.current.lockedFn).toEqual(prevLockedFn);
act(() => {
result.current.updateTag(); // 更新之后tag发生变化,导致persistFn发生变化,从而lockedFn发生变化
});
expect(result.current.lockedFn).not.toEqual(prevLockedFn);
});
});
impo... | Typescript |
Run tool “version” (or “listmodels”) to verify
- Alternatively, we already added an entry named "EXAI-WS" to mcp-config.augmentcode.json. In Augment, select the MCP server profile "EXAI-WS" if your UI lists profiles from this file.
Step C — (Optional) Connect Auggie CLI
- Use the same command/args/cwd/env as above f... | Markdown |
String] representation
/// of the base32.
static String encodeHexString(String b32hex,
{Encoding encoding = Encoding.standardRFC4648}) {
return encode(_hexDecode(b32hex), encoding: encoding);
}
/// Takes in a [utf8string], converts the string to a byte list
/// and runs a normal encode() on it. Ret... | Dart |
#ifndef _BATTLE_ITEM_H_
#define _BATTLE_ITEM_H_
//--------------------------------------------------------------
// ʧ ةë
//--------------------------------------------------------------
//
void ITEM_useRecovery_Battle( int charaindex, int toindex, int itemindex );
void ITEM_useStatusChange_Battle( int charaind... | C |
//
// The MIT License (MIT)
//
// Copyright (c) 2024 Advanced Micro Devices, Inc.,
// Fatalist Development AB (Avalanche Studio Group),
// and Miguel Petersen.
//
// All Rights Reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documenta... | C |
.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergovernmental organisation nor
*... | C++ |
i-dessous). Le pic est plus évident au cours de la finale, aux alentours de 23 h, avec un trafic DNS supérieur de 18 % à celui du samedi précédent (et de 50 % par rapport à celui de la veille). La différence s'avère plus subtile pendant les demi-finales, mais on peut constater un accroissement du trafic d'environ 6 % a... | HTML |
de id="relaxing-the-same-origin-restriction:dom-document-domain"><a href="#dom-document-domain">document.domain</a></code>セッターの使用を避ける。これは、同一生成元ポリシーが提供するセキュリティ保護を損なうものである。これは共有ホスティングを使用している場合に特に顕著である。たとえば、信頼できないサードパーティが同じIPアドレスだが異なるポートで HTTP サーバーをホストできる場合、<code id="relaxing-the-same-origin-restriction:dom-document-domai... | HTML |
def generate_trajectory():
return PolynomialTrajectory.order_3_trajectory(
initial, final, TimeInterval(start=0.0, end=2.0)
)
elif order == ORDER_5:
initial = BoundaryCondition(position=0.0, velocity=0.0, acceleration=0.0)
final... | Python |
// return true means consumed, else default link handler will take it
val previewLinkHandler:(link:String)->Boolean = { link ->
if(FsUtils.maybeIsRelativePath(link)) {
val previewNavStack = previewNavStack.value
runBlocking {
val previewingFileFullPath = previewNa... | Kotlin |
- Initialize numvfs to totalvfs
ee2e5a594f9e4d3796eda972f3b46e52342aea04cbae8e5eac9b2dd6ff37b067
```
The previous commands create the required SR-IOV docker network, subnet, `vlanid`,
and physical interface.
3. Start containers and test their connectivity:
```
$ sudo docker run --runtime=kata-runt... | Markdown |
/*****************************************************************************
Title : displayvm.c
Author : Stewart Weiss
Created on : March 19, 2024
Description/ : Displays its own virtual memory addresses.
Purpose : To show where various types of symbols are in virtual mem
Us... | C |
ue;
};
if let Some(cap) = re.captures(input.as_str()) {
let vars: Vec<&str> = cap
.iter()
.map(|c| c.map(|c| c.as_str()).unwrap_or_default())
.collect();
... | Rust |
extension is allowed', () => {
const input = 'testFile';
const result = isAllowedExtension(input);
expect(result).toBe(true);
});
it('File with .JS extension is allowed', () => {
const input = 'testFile.js';
const result = isAllowedExtension(input);
exp... | Typescript |
c4440"><i class="fa fa-star" aria-hidden="true"></i></a></div><div class="margin-down-15">Don't let them take you hostage - be prepared by open source backups</div><div id="desc2-4440" class="collapse in" style=""><div class="row"><div class="speakers-list"><p class="session-speakers session-speakers-item"><img on... | HTML |
:= aexpr.Op()
if op == token.SHL || op == token.SHR {
var count uint64
if yuntyped {
if yt == ConstNil {
return aexpr, append(errs, ErrBadConstConversion{y, yt, uintType})
} else {
c, moreErrs := promoteConstToTyped(yc, constValue(y.Const()), uintType, y)
yy := reflect.Value(c)
if yy.IsValid... | Go |
from conch.analysis.pitch.reaper import ReaperPitchTrackFunction
from statistics import mean
import librosa
import shutil
import pytest
from conch.analysis.segments import FileSegment, SignalSegment
def test_pitch_reaper(noise_path, y_path, reaperpath):
reaper_path = shutil.which("reaper")
if reaper_path is ... | Python |
iner joiner = new StringJoiner(", ", "with ", "");
for (Holder holder : holders) {
joiner.add(holder.queryRewriter.cteName(holder.cteTableName) + " as (" + holder.sql + ")");
holder.queryResolver.getColumns().forEach(f -> {
String fieldFullName = SqlUtils.getFieldFullName(holder.queryRewriter.c... | Java |
� ولا يزال كل من المبلغ والمتلقي مخفيين ، مما يقلل من الضرر الذي يلحق بخصوصية جميع الأطراف. </ p>\n\n<p> هذا لا يعني أن توقيع الحلقة المكسورة غير مهم. أي بيانات وصفية مسربة سيئة ، ولديها القدرة على الكشف عن معلومات أكثر مما نعتقد ، خاصة عند استخدامها بالاقتران مع البيانات الوصفية الأخرى. لذلك نحن نبذل قصارى جهدنا للتأك... | Dart |
get rangeTitleTextStyle =>
_rangeTitleTextStyle ??
BrnDefaultConfigUtils.defaultSelectionConfig.rangeTitleTextStyle;
BrnTextStyle get hintTextStyle =>
_hintTextStyle ??
BrnDefaultConfigUtils.defaultSelectionConfig.hintTextStyle;
BrnTextStyle get inputTextStyle =>
_inputTextStyle ??
... | Dart |
上门向被害家属认错赔罪;有的在生产大忙季节,主动给遗属耙田、插秧等。从而消除了隔阂,达到了新的团结。
</p>
<p>
鉴于“文化大革命”酿成如此严重的悲剧。为了全面地、彻底地否定“文化大革命”,巩固处理“文革”遗留问题的成果,促进安定团结的政治局面,以达到教育我们广大干部和群众。特别是教育我们的子孙后代,使他们牢记这个深刻的教训,再不重演“文化大革命”的历史悲剧。我们编写了这本《“文革”大事记》。
</p>
<p>
在编写过程中,我们本着从实际出发,按照历史唯物主义的观点,“不唯上,要唯实”,真实地记载着文化大革命期间我县发生的重大事件。
</p>
<p>
中共龙州县委整党领导小组办公室1... | HTML |
_mphf(v)
}
}
quickcheck! {
fn check_u32(v: HashSet<u32>) -> bool {
check_mphf(v)
}
}
quickcheck! {
fn check_isize(v: HashSet<isize>) -> bool {
check_mphf(v)
}
}
quickcheck! {
fn check_u64(v: HashSet<u64>) -> bool {
... | Rust |
var total = pageIDs.Count();
progress.SetMaximum(total);
var count = 0;
foreach (var pageID in pageIDs.Where(e => e != anchorPage.PageId))
{
if (token.IsCancellationRequested)
{
logger.WriteLine($"{nameof(LinkReferencesCommand)} cancelled at {count} of {total} pages");
break;
}
... | C# |
"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" ... | HTML |
using System.IO;
using System.IO.Compression;
using System.Linq;
// Taken from https://stackoverflow.com/questions/15133626/creating-directories-in-a-ziparchive-c-sharp-net-4-5
namespace ChromeDllInjectorBuildZipper {
public static class ZipArchiveExtension {
public static void CreateEntryFromAny(this ZipArchive a... | C# |
4-btn-inner {
padding-bottom: 36px;
}
/* line 477, ../../../ext-theme-neutral/sass/src/button/Button.scss */
.x4-btn-default-toolbar-large-icon-text-bottom .x4-btn-icon-el {
height: 32px;
top: auto;
}
/* line 485, ../../../ext-theme-neutral/sass/src/button/Button.scss */
.x4-ie6 .x4-btn-default-toolbar-large-icon... | CSS |
ion = self.To;
}
}
else
{
// 计算位置插值
float amount = moveTime * 1f / self.NeedTime;
if (amount > 0)
{
float3 newPos = math.lerp(self.StartPos, self.Ne... | C# |
LL_DIV >> 16;
P0.L = PLL_DIV & 0xFFFF;
R2 = W[P0] (Z);
// Plant CSEL and SSEL
R0 <<= 16;
R0.L = (4 << 8) | 2; // 2 bits, at posn 4
R1 <<= 16;
R1.L = 4; // 4 bits, at posn 0
R2 = DEPOSIT(R2, R0);
#if defined(__WORKAROUND_DREG_COMP_LATENCY)
// Work around anomaly 05-00-0209 which affects the DEPOSIT
... | Assembly |
: newPlayer.imageUrl },
timestamp: Date.now(),
footer: { text: user.id },
}),
);
} catch (err) {
logger.error(err);
return message.say(ErrorEmbed(err.message));
}
}
}
function pluck<T, K extends keyof T>(o: T, names: K[]): T[K][] {
return names.map(n => o[n])
... | Typescript |
,
target_start: f64, target_end: f64
) -> Option<f64> {
let source_length = (source_end - source_start).abs();
if source_length == 0.0 { return None; }
let target_length = (target_end - target_start).abs();
Some(target_length / source_length)
}
fn is_fibonacci_ratio(ratio: f64, tolerance: f64)... | Markdown |
USER = 'user'
}
import axios from 'axios'
const url = process.env.API_URL
export interface ITimetable {
opening: string
closing: string
}
export interface ITimetables {
open?: boolean
timetables?: ITimetable[]
error?: string
}
export async function get(date: string, id: string): Promise<ITimetables> {
c... | Typescript |
64(%rsp)
vmovdqa IV0, 80(%rsp)
vmovdqa IV0, 96(%rsp)
vmovdqa IV0, 112(%rsp)
movq %r12, %rsp
popq %r15
popq %r14
popq %r13
popq %r12
movl $0, RET
ret
.cfi_endproc
.size CRYPT_AES_CTR_Encrypt, .-CRYPT_AES_CTR_Encrypt
#endif | Assembly |
set 4, e
set 4, h
set 4, l
set 5, a
set 5, b
set 5, c
set 5, d
set 5, e
set 5, h
set 5, l
set 6, a
set 6, b
set 6, c
set 6, d
set 6, e
set 6, h
set 6, l
set 7, a
set 7, b
set 7, c
set 7, d
set 7, e
set 7, h
set 7, l
sla (hl)
sla (ix+5)
sla (iy+5)
sla a
sla b
sla c
sla d
sla e
sla h
sla ... | Assembly |
adding:4px;margin:0px}.GeoGebraFrame .propertiesPanel .gwt-ToggleButton img{opacity:.54}.GeoGebraFrame .propertiesPanel .gwt-ToggleButton:hover img{opacity:1}.GeoGebraFrame .propertiesPanel .BackgroundColorPanel .gwt-RadioButton input[type=radio]{margin-right:10px}.GeoGebraFrame .propertiesPanel .BackgroundColorPanel .... | HTML |
('hide');
plotLeaf.classList.add('hidden');
}
plotToggle.onclick = hidePlot;
plotLeaf.onclick = showPlot;
plotMaxBtn.onclick = () => {
plotWrap.classList.toggle('max');
plotWrap.classList.toggle('smol');
setTimeout(() => {
//resizeCanvas();
//drawPoints();
}, 260); // wait for tra... | HTML |
x1_option_none">option::none</a>()
}
}
</code></pre>
</details>
<a id="0x1_coin_burn"></a>
## Function `burn`
Burn <code><a href="coin.md#0x1_coin">coin</a></code> with capability.
The capability <code>_cap</code> should be passed as a reference to <code><a href="coin.md#0x1_coin_BurnCapability">BurnCapabilit... | Markdown |
Name: "email_address_arn",
Description: "The identifier of the email address",
RequiredForImport: true,
})
opts = opts.WithAttributeNameMap(map[string]string{
"description": "Description",
"display_name": "DisplayName",
"email_address": "EmailAddress",
"email_addr... | Go |
//---------------------------------------------------------------------------
// Greengage Database
// Copyright (C) 2015 Pivotal Inc.
//
// @filename:
// CDXLScalarMinMax.h
//
// @doc:
// Class for representing DXL MinMax operator
//---------------------------------------------------------------------------
#ifndef... | C |
should now be getting notifications, scanning for more!\n");
} else {
printf("Failed to connect, starting scan\n");
}
NimBLEDevice::getScan()->start(scanTimeMs, false, true);
}
}
}
/*
AudioFileSourceFS
Input "file" to be used by AudioGenerator
Co... | C++ |
\x3c/a> section for details about the selectors.\x3c/p>\n<p><code>key\x3c/code> Optionally filters the returned values. If keys is set to <code>ALL\x3c/code> (default) it will return the scroll size as dictionary, otherwise it will just return the single value selected by the key.\x3c/p>\n<p>See <a href=\"#Assertions\"... | HTML |
n class="defaultC">ê</span><span>ê</span></div><div><span class="defaultC">ë</span><span>ë</span></div><div><span class="defaultC">ì</span><span>ì</span></div><div><span class="defaultC">í</span><span>í</span></div><div><span class="defaultC">î</span><span>î</span></div... | HTML |
r2Di(buffer, array);
} else if (format == RT_FORMAT_UNSIGNED_INT) {
std::vector<std::vector<uint>> array;
array.resize(bsize.y);
for (int j = 0; j < bsize.y; j++) {
array.at(j).resize(bsize.x);
for (int i = 0; i < bsize.x; i++) {
array.at(j).at(i) = 0;... | C++ |
~.q#integer_sequence.uieui?0?ui?0?~.pqrn0r#__base.n1?1?#shared_ptr.n2~uL~r#__base.n1?1?#shared_ptr.n2~uL~ virtual
[bits 32]
; std::__variant_detail::__visitation::__base::__make_dispatch<LambdaClosure2__ppEmbed_cpp__e1e322b3&, __base<std::__variant_detail::_Trait=1, shared_ptr<Token>, unsigned long long>&, __ba... | Assembly |
ABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
#include <iostream>
#include <chronoUtils.hpp>
#include <thread>
#include <utility>
#include <clocale>
... | C++ |
t data = String::from_str("ประเทศไทย中");
let s: String = data.as_slice().chars().collect();
assert_eq!(data, s);
}
#[test]
fn test_into_bytes() {
let data = String::from_str("asdf");
let buf = data.into_bytes();
assert_eq!(b"asdf", buf.as_slice());
}
#[test]... | Rust |
hat is NOT at even index
while (evenIndex < n && nums[evenIndex] % 2 == 0) {
evenIndex += 2
}
// Find the first odd number that is NOT at odd index
while (oddIndex < n && nums[oddIndex] % 2 != 0) {
oddIndex += 2
}
// We need to check if it's still... | Markdown |
://ip:port/xxx
*/
fun reqPublishStream(
roomId: String,
publishStreamUrl: String,
success: (() -> Unit)? = null,
failure: ((code: Int, reason: String) -> Unit)? = null
) {
//{"roomId":"123", "publishStreamUrl":"webrtc://192.168.1.1:1990/live/livestream"}
val ... | Kotlin |
要目的是确保在任何给定时间,只有一个线程能够执行与特定对象相关联的临界区代码。Monitor 是通过对象头(Object Header)和内置锁(Intrinsic Lock)来实现的,在 JVM 中 Monitor 的具体实现是 ObjectMonitor
- **接下来说一下,重量级锁的抢占流程(了解一下整体的流程就行,这点的代码都已经是 JVM 层面的了,比较底层):**
1、当线程准备要抢占重量级锁时,会创建一个 ObjectMonitor (JVM 代码中的 ObjectMonitor)的对象,里边有两个队列 EntryList、WaitSet
 马尔科姆·格拉德威尔</td><td>简体PDF(扫描版)</td><td>2015-11-04</td><td><a href="https://goo.gl/0DZarh" target="_blank" rel="nofollow">简介</a></td></tr></table><br /><h3>◇社会学 / (其它)</h3><br /><table border="1" cellpadding="0" ... | HTML |
sva { h: 0., s: 0., v, a };
}
let s = delta / cmax;
let mut h = if r >= cmax { 0. + (g-b) / delta }
else if g >= cmax { 2. + (b-r) / delta }
else { 4. + (r-g) / delta };
if h < 0. {
h += 6.;
}
Hsva { h, s, v, a }
... | Rust |
88.jpg" alt="18.jpg" src="http://img.4hou.com/wp-content/themes/4houv2/img/lazy.gif" data-original="/uploads/20170712/1499846705167188.jpg"/><noscript><img title="1499846705167188.jpg" alt="18.jpg" src="/uploads/20170712/1499846705167188.jpg"/></noscript></p>
<p>现在如果发生OOB访问,我们的bounds_access回调将被触发。 将LuaQEMU中的观察点接收地址,长度和... | HTML |
BUTE_LOCATION_NAME, LOCALITY_BLOOD_ISLAND);
// location haven't changed and recon was not requested. The mapping was not evaluated.
assertDummyAccountAttribute(RESOURCE_DUMMY_CUSTOM_FUNCTION_CRIMSON_NAME, ACCOUNT_GUYBRUSH_DUMMY_USERNAME.toUpperCase(),
DummyResourceContoller.DUMMY_ACCOUNT... | Java |
buffer: The buffer to grab a reference for, may be NULL
*
* Returns the pointer to the buffer that was passed into the function.
*/
struct iio_buffer *iio_buffer_get(struct iio_buffer *buffer)
{
if (buffer)
kref_get(&buffer->ref);
return buffer;
}
EXPORT_SYMBOL_GPL(iio_buffer_get);
/**
* iio_buffer_put() - Re... | C |
entTaskFlag()
return
}
util.EnsureSkeleton()
setCurrentTaskFlag(args[0])
}
package commands
import (
"fmt"
"ret/config"
"ret/theme"
"ret/util"
)
func init() {
Commands = append(Commands, Command{
Name: "category",
Emoji: "😼",
Func: Category,
Help: CategoryHelp,
Arguments: []Argument{
{
... | Go |
stp x1, x2, [sp, #-32]!
stp x3, x4, [sp, #16]
cfi_adjust_cfa_offset (32)
cfi_rel_offset (x1, 0)
cfi_rel_offset (x2, 8)
cfi_rel_offset (x3, 16)
cfi_rel_offset (x4, 24)
mrs x4, tpidr_el0
ldr PTR_REG (1), [x0,#TLSDESC_ARG]
ldr PTR_REG (0), [x4,#TCBHEAD_DTV]
ldr PTR_REG (3), [x1,#TLSDESC_GEN_COUNT]
ldr PTR_RE... | Assembly |
* @param bounds 窗口位置和大小,默认为 Rectangle(100, 100, 320, 180)。
* 格式:Rectangle(x, y, width, height)
* @param updateBounds 窗口位置或大小变化时的回调函数,用于保存窗口状态。
* 当用户拖拽移动或调整窗口大小时会自动调用
* @param onPlayingStateChanged 播放状态变化回调函数,用于向外部同步播放状态。
* 参数:isPlaying - true表示播放中,false表示已暂停
* @param initialPla... | Kotlin |
("Part Type");
// if(pItem) pItem->m_crColor = m_Parts[nPart].m_Type;
pItem = m_LPCPart.GetPropItem("Texture File");
if(pItem)
{
CN3Texture* pTex = pPart->Tex();
if(pTex) pItem->m_curValue = pTex->FileName().c_str();
else pItem->m_curValue = "";
}
}
// 붙이는 오브젝트(무기, 장신구 등...) 정보 표시
int ... | C++ |
Keys))) {
throw new RuntimeException("got "+allKeys + ", expected " + fullKeys);
}
// Test containsKey()
for (String key : fullKeys) {
if (!rb.containsKey(key)) {
throw new RuntimeException("rb doesn't contain: " + key);
}
}
fo... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.