content stringlengths 2 6.21k | label stringclasses 16
values |
|---|---|
searchPane div.dataTables_scrollHead{display:none}div.dtsp-searchPane div.dataTables_scrollBody{padding:2px;border:2px #f0f0f0 solid;border-radius:4px}div.dtsp-searchPane div.dataTables_scrollBody:hover{border:2px solid #cfcfcf !important}div.dtsp-searchPane div.dataTables_scrollBody table tbody tr span.badge{float:rig... | CSS |
es.AddAuthorization();
builder.Services.AddHttpClient("TokenApiClient", client =>
{
client.BaseAddress = new Uri("https://localhost:5055/");
});
builder.Services.AddCarter();
//builder.Services.AddRazorPages();
var app = builder.Build();
// HTTP request
if (app.Environment.IsDevelopment())
{
app.UseDevelop... | C# |
22F22F]KjKKj2F22F
' + %#'##5325#'53#5##5372+55# K
+ +
JJ*-++
+55++
@
`@@ i 75!3#7'#537'77'7+++'Z++&&&)?
&?'&& ! ' - 3 '657'#47'#47'#527'#52?'65'63"'63""ke=*++85BVD6... | HTML |
] = "Jambières lamellaires lourdes",
[10245] = "Espauliers lamellaires lourds",
[10246] = "Gilet de maître",
[10247] = "Bottes de maître",
[10248] = "Brassards de maître",
[10249] = "Cape de maître",
[10250] = "Chapeau de maître",
[10251] = "Gants de maître",
[10252] = "Jambières de maître",
[10253] = "Mantelet de maît... | Lua |
prog << c;
for (auto iter : component.first)
{
if (iter.second == 'X')
prog << H(m_qlist[iter.first]);
else if (iter.second == 'Y')
prog << RX(m_qlist[iter.first], PI / 2);
}
m_machine->directlyRun(prog);
double expectation = 0;
auto temp = dyn... | C++ |
8.7-1.2 12.2L211 510.7s7.4 6.8 17.3-.8l198-163.9c4-3.2 4.4-8.7 .7-12.2zm54.5-83.4L226.7 2.5c-1.5-1.2-8-5.5-16.3 1.1L3.6 165.7c-4.2 3.2-4.8 8.7-1.2 12.2l42.3 41.7 171.7 165.1c3.7 3.5 10.1 3.7 14.3 .4l50.2-38.8-.3-.3 7.7-6c4.2-3.2 4.6-8.7 .9-12.2l-57.1-54.4c-3.6-3.5-10-3.7-14.2-.5l-.1 .1c-4.2 3.2-10.5 3.1-14.2-.4L109 18... | JavaScript |
ge_properties", lambda x, y: True)
monkeypatch.setattr(image_verify.Cosign, "verify", lambda *args, **kwargs: True)
diff_needed = image_verify.diff_needed(".")
assert diff_needed == {
"tag": mock_old_img_json["Tag"],
"commit_sha": mock_old_img_json["Commit"],
"digest": mock_old_img_j... | Python |
("ch.el = {:?}", ch.el);
let mut y = vec![0.0; 3];
let b = vec![-4.0, 2.0, 4.0];
let res = ch.solve(&b, &mut y);
assert!(res.is_ok());
println!("y = {:?}", y);
assert!((y[0] + 1.0).abs() < 1e-5);
assert!((y[1] - 2.0).abs() < 1e-5);
assert!((y[2] - 3.0).abs... | Rust |
itID, err := downstreamRepository.Commit(downstreamTreeID, "refs/heads/main", "Initial commit\n", false)
require.Nil(t, err)
err = downstreamRepository.SetSymbolicReference("HEAD", "refs/heads/main")
require.Nil(t, err)
downstreamRepository.RestoreWorktree(t)
tmpDir2 := t.TempDir()
upstreamRepository := ... | Go |
/*space=(a: Enum.b, b: false)*/
case (a: Enum.b, b: false):
print('(b, false)');
break;
/*space=(a: Enum.a, b: true)*/
case (a: Enum.a, b: true):
print('(a, true)');
break;
/*space=(a: Enum.b, b: true)*/
case (a: Enum.b, b: true):
print('(b, true)');
break;
/*... | Dart |
/*
* MIB group interface - ipfwacc.h
* IP accounting through firewall rules
*/
#ifndef _MIBGROUP_IPFWACC_H
#define _MIBGROUP_IPFWACC_H
/*
* we use header_simple_table from the util_funcs module
*/
config_require(util_funcs/header_simple_table);
/*
* add the mib we implement to the list of default mib... | C |
License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
//
#ifndef DBUSPROXYGIO_HH
#define DBUSPROXYGIO_HH
#include <glib.h>
#include <gio/gio.h>
class DBusProxy
{
private:
GDBusProxy *proxy{nullptr};
GError *error{nullptr};
GDBusProxyFlags flags{G_DBUS_PROXY_FLAGS_NONE};
public:
... | C++ |
get_cursor_image_reply)
}
/// Advances a `xcb_xfixes_region_iterator_t` iterator by 1 element.
#[inline]
pub unsafe fn xcb_xfixes_region_next(&self, i: *mut xcb_xfixes_region_iterator_t) {
sym!(self, xcb_xfixes_region_next)(i)
}
/// Returns `true` iff the symbol `xcb_xfixes_region_next... | Rust |
c_tentacleB3",
"c_leftarmA",
"c_leftforearmA",
"c_lefttoebase",
"c_leftfinger1_jnt",
"c_leftfinger2_jnt",
"c_tentacleD2",
"c_tentacleD3",
"c_smallTentacleC1",
"c_smallTentacleC2",
},
},
},
hit_zone_ragdoll_actors = {
[hit_zone_names.head] = {
"j_head",
"j_neck1",
},
... | Lua |
D,$01BA,$01B7,$01B4,$01B1,$1AE
dc.w $01AB,$01A8,$01A5,$01A2,$019F,$019D,$019A,$197
dc.w $0194,$0192,$018F,$018D,$018A,$0187,$0185,$183
dc.w $0180,$017E,$017B,$0179,$0177,$0175,$0172,$170
dc.w $016E,$016C,$016A,$0167,$0165,$0163,$0161,$15F
dc.w $015D,$015B,$0159,$0157,$0155,$0154,$0152,$150
dc.w $014E,$014C,$014A,... | Assembly |
umber for the "center_y" field.</summary>
public const int CenterYFieldNumber = 4;
private float centerY_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public float CenterY {
get { return centerY_; }
set {
centerY_ = value;
}
}
/// <summary>Field number fo... | C# |
|goto Thousand Needles 44.05,37.34 < 15 |walk
Follow the path |goto Thousand Needles 44.24,35.60 < 10 |walk
Follow the path |goto Thousand Needles 43.46,35.28 < 10 |walk
Continue following the path |goto Thousand Needles 42.06,34.68 < 10 |walk
click Ancient Brazier##20807
|tip Inside the cave.
|tip Clear all enemies as... | Lua |
appVersion) >=2 && typeof(PopupMenu_Invoke) == 'function') PopupMenu_Invoke(e,'','Changing voices using DECtalk Software in-line commands','idh_nt_apps_to_change_voices_using_voice_control_commands.htm','Comma Pause [:comma]','idh_ref_1_comma_pause_comma.htm','DECtalk Software In-Line Commands: Overview','idh_ref_1_dec... | HTML |
_, tc := range cases {
t.Run(tc.desc, func(t *testing.T) {
defer func() {
cleanupFiles(t, []string{"cert.pem", "key.pem"})
}()
sdkCall := sdkMock.On("IssueFromCSR", mock.Anything, mock.Anything, mock.Anything, mock.Anything, mock.Anything).Return(tc.cert, tc.sdkErr)
out := executeCommand(t, rootCmd, ... | Go |
Units of Least Precision) floating point representations.
/// Differing signs are always unequal with this method, and zeroes are only
/// equal to zeroes. Use approx_eq() from the ApproxEq trait if that is more
/// appropriate.
#[inline]
fn approx_ne_ulps(&self, other: &Self, ulps: <Self::Flt as Ul... | Rust |
particles.push([i,j,tx,ty])
}
}
}
}
}
function generateFrame(sourceImage,particleMap,progress){
var frame = [];
for (var j=0;j<64;j++){
for (var i=0;i<128;i++){
frame.push(sourceImage[i+128*j]);
}
}
for (var cIndex=0;cIndex<particleMap.length;c... | HTML |
.remove(value)
}
/**
* 清空全部数据
*/
fun clear(clear: Boolean = true) {
if (clear) items.clear()
}
/**
* 循环处理
*/
fun forEach(action: (T) -> Unit) {
items.forEach(action)
}
/**
* 循环处理
*/
fun newForEach(action: (T) -> Unit) {
val new... | Kotlin |
in <a href="//en.wikipedia.org/wiki/Pacific_Time_Zone" title="Pacific Time Zone">Pacific Time</a>.</small></td>
</tr>
</table>
<ul>
<li><b>Reference:</b><sup id="cite_ref-CFDW_1-0" class="reference"><a href="#cite_note-CFDW-1"><span>[</span>1<span>]</span></a></sup></li>
</ul>
<h2><span class="mw-headline" id="Team_pl... | HTML |
(1_h);
zero = b_.Constant(0_h);
},
[&](const core::type::I32*) {
one = b_.Constant(1_i);
zero = b_.Constant(0_i);
},
[&](const core::type::U32*) {
one = b_.Constant(1_u);
... | C++ |
NGOING
description = buildString {
if (!isCompleted) append(updates).append("\n\n")
append(root.selectFirst(Evaluator.Class("contents__txt-catch"))!!.ownText()).append("\n\n")
append(root.selectFirst(Evaluator.Class("contents__txt--desc"))!!.ownText())
}
}
ov... | Kotlin |
自己id
--读取指定好友的聊天内容
function XChatManager.ReadSpecifyFriendsChatContent(friendId)
local key = string.format(ChatRecordTag, friendId, XPlayer.Id)
if CS.UnityEngine.PlayerPrefs.HasKey(key) then
local chatRecord = CS.UnityEngine.PlayerPrefs.GetString(key)
local msgTab = stri... | Lua |
cpg_handle,
guarantee.to_c(),
&c_iovec, 1)
};
if res == ffi::CS_OK {
Ok(())
} else {
Err(CsError::from_c(res))
}
}
/// Type of iteration for [CpgIterStart]
#[derive(Copy, Clone)]
pub enum CpgIterType
{
NameOnly = 1,
OneGroup = 2,
All = 3,
}
// Iterator based on info... | Rust |
aisa", "パイサ")
.put("Bhutanese ngultrum", "ニュルタム|ブータン・ニュルタム|ブータンニュルタム")
.put("Chetrum", "チェルタム")
.put("Bolivian boliviano", "ボリビアーノ")
.put("Bosnia and Herzegovina convertible mark", "兌換マルク")
.put("Botswana pula", "ボツワナ・プラ|ボツワナプラ|プラ")
.put("Thebe", "テベ")
.put("Brazi... | Java |
</sub>,
g<sub>3b</sub>, P<sub>b</sub> and Q<sub>b</sub>:
<ol>
<li>Check that c2 = SHA256(3, g<sub>1</sub><sup>D2</sup>
g<sub>2b</sub><sup>c2</sup>).</li>
<li>Check that c3 = SHA256(4, g<sub>1</sub><sup>D3</sup>
g<sub>3b</sub><sup>c3</sup>).</li>
<li>Check that cP = SHA256(5, g<sub>3</sub><sup>D5</sup>
P<sub>b</sub>... | HTML |
fip_port := strings.Split(line_array[2], ":")
fip := convertIp(fip_port[0])
fport := hexToDec(fip_port[1])
state := STATE[line_array[3]]
uid := getUser(line_array[7])
pid := findPid(line_array[9])
exe := getProcessExe(pid)
name := getProcessName(exe)
p := Process{uid, name, pid, exe, state, ip, port,... | Go |
'
},
'c 1.0.0': {},
'c 2.0.0': {},
'c 3.0.0': {},
'c 4.0.0': {},
'c 5.0.0': {},
}, result: {
'myapp from root': '0.0.0',
'a': '1.0.0',
'b': '1.0.0',
'c': '5.0.0'
}, maxTries: 2);
// Similar to the above two tests but where there is no solution. It should
// fail in this ... | Dart |
var model = _repository[id];
patch.ApplyTo(model);
_repository[id] = model;
model.Id = id;
return model;
}
[HttpPatch]
[Route("{id}/validate")]
[Consumes(JsonMergePatchDocument.ContentType)]
public T PatchWithModelValidation(int id, [FromBody] JsonMergePatchDocument<T> patch)
{
if (!ModelSta... | C# |
Last(list.size - 1))
}
}
}
}
data class LoadingLocationEvent(val location: String) : Event()
data class LoadLocationFailedEvent(val location: String, val error: Throwable) : Event()
}package org.intelligence.asm
import org.objectweb.asm.tree.ClassNode
// construct a cl... | Kotlin |
.. ["1, 2, 3", "A, B, C, D, E"], padding=True, return_tensors="pt"
... ).to("cuda")
>>> generated_ids = model.generate(**model_inputs)
>>> tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
'1, 2, 3, 4, 5, 6,'
```
## Further resources
オートリグレッシブ生成プロセスは比較的簡単ですが、LLMを最大限に活用することは多くの要素が絡むため、挑戦的な試みとなります。... | Markdown |
; ok {
region = v
} else {
region = gs.FenceByID(loopID)
// testing the found loop is actually inside the rect
// (since we are using only one large cover it may be outside)
if rect.Contains(region.Loop.RectBound()) {
fences[loopID] = region
}
}
}
}
}
var res []*regio... | Go |
ion Entry
.LSCIE0:
.long 0xffffffff # CIE Identifier Tag
.byte 0x1 # CIE Version
.ascii "\0" # CIE Augmentation
.uleb128 0x1 # CIE Code Alignment Factor
.sleb128 -4 # CIE Data Alignment Factor
.byte 0x8 # CIE RA Column
.byte 0xc # DW_CFA_def_cfa
.uleb128 0x4
.uleb128 0x4
.byte 0x88 # DW_CFA_offset, column 0x8... | Assembly |
sample command
*/
#define CMD1_XSUM 0x008F
#define CMD2_XSUM 0x008B
#define CMD3_XSUM 0x0088
#define CMD4_XSUM 0x008E
/*
** Optional command data values
*/
#define CMD2_ARG 1
#define CMD3_ARG 1
/*
** Command packet segment flags and sequence counter
** - 2 bits of segment flags (0xC000 = ... | C |
Interrupt is enable */
if (__HAL_WWDG_GET_IT_SOURCE(hwwdg, WWDG_IT_EWI) != RESET)
{
/* Check if WWDG Early Wakeup Interrupt occurred */
if (__HAL_WWDG_GET_FLAG(hwwdg, WWDG_FLAG_EWIF) != RESET)
{
/* Clear the WWDG Early Wakeup flag */
__HAL_WWDG_CLEAR_FLAG(hwwdg, WWDG_FLAG_EWIF);
#if (USE_H... | C |
eturn instance;
}
public override string ToString()
{
return string.Format("{0} {1} {2} {3} {4} {5}", UncompressedSize, HeaderSize, ChunkSize, ChunkCount, Unknown0C, CompressedSize);
}
public void SetZlibPreset()
{
HeaderSize = 32;
Ch... | C# |
rseg->is_persistent());
ut_d(const ulint old_page = rseg->page_no);
buf_block_t* rblock = trx_rseg_header_create(
purge_sys.truncate.current,
rseg->id, sys_header, &mtr);
ut_ad(rblock);
rseg->page_no = rblock
? rblock->page.id.page_no() : FIL_NULL;
ut_ad(old_page == rseg->page_no);
/* Be... | C++ |
会和他/她共进晚餐,你想问他/她什么问题?” |
| 养成好习惯 | 如何养成良好的生活习惯?请列出五种你认为有用的方法,并说明具体操作步骤。 ... | Markdown |
max_str_width`]: #method.max_str_width
fn max_str_width_nocr(s: &str, max_width: u32) -> (u32, &str);
/// Measures a sequence of spaces in a line with a determinate maximum width.
///
/// Returns the width of the spaces that fit into the given space and the number of spaces that
/// fit.
fn max... | Rust |
f vecpatch1xnPtr0
%undef vecpatch1xnPtr1
;; begin epilog ;;
pop r12
COMPV_YASM_UNSHADOW_ARGS
mov rsp, rbp
pop rbp
ret
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; arg(0) -> COMPV_ALIGNED(SSE) const compv_float32_t* xPtr
; arg(1) -> COMPV_ALIGNED(SSE) const compv_float32_t* yPtr
; arg(2) ... | Assembly |
y1:t.top,x2:t.right,y2:t.bottom};const h=o.stretchX||[[0,l]],f=o.stretchY||[[0,c]],p=(t,e)=>t+e[1]-e[0],d=h.reduce(p,0),m=f.reduce(p,0),g=l-d,y=c-m;let v=0,x=d,_=0,b=m,w=0,T=g,k=0,A=y;if(o.content&&n){const e=o.content,r=e[2]-e[0],n=e[3]-e[1];(o.textFitWidth||o.textFitHeight)&&(u=du(t)),v=_h(h,0,e[0]),_=_h(f,0,e[1]),x=... | HTML |
aq.com/news/1840808763.shtml" title="E安全">正文</a></div>
<div class="inner">
<h1 style="font-size:25px;font-weight:bold;line-height:32px;">韩国国家情报机构曾干预2012年总统大选</h1>
<ul class="lab">
<li><a href="https://www.easyaq.com/samesource/hackernews.shtml" title="E安全资讯来源-hackernews">
<img src="https://cd... | HTML |
01', '', '', '', '', '', '', '', '', ''},
{'26005', '', '', '50001', '进行核心构建100次', '100', '1001', '', '', '', '', '', '', '', '', ''},
{'26006', '', '', '50001', '进行核心构建300次', '300', '1001', '', '', '', '', '', '', '', '', ''},
{'26007', '', '', '50001', '进行核心构建500次', '500', '1001', '', '', '', '', '', '', '', '', ''},... | Lua |
suggestion.
if (colorsXml.existsSync()) {
utils.printStatus(
'Updating colors.xml with color for adaptive icon background',
);
await updateColorsFile(colorsXml, backgroundConfig);
} else {
utils.printStatus('No colors.xml file found in your Android project');
utils.printStatus(
'Cre... | Dart |
N8 => {
let mode = cmd - RS_OP_COPY_N1_N1;
let offset_len = 1 << (mode / 4) as usize;
let len_len = 1 << (mode % 4) as usize;
let offset = read_varint!(offset_len, "copy offset");
let len = read_varint!(len_len, "copy length");
... | Rust |
line": F171A,
"robot-industrial": F0B46,
"robot-love": F16A5,
"robot-love-outline": F16A6,
"robot-mower": F11F7,
"robot-mower-outline": F11F3,
"robot-off": F16A7,
"robot-off-outline": F167B,
"robot-outline": F167A,
"robot-vacuum": F070D,
"robot-vacuum-variant": F0908,
"rocket": F0463,
"rocket-la... | CSS |
�用select方法都需要重新设置这3个集合的内容。
3. 当有事件触发select方法返回,需要遍历集合才能找到就绪的文件描述符,例如传1024个读事件,只有一个读事件发生,需要遍历1024个才能找到这一个。
4. 同样在内核级别,每次需要遍历集合查看有哪些事件发生,效率低下。
poll函数对select函数做了一些改进
```
poll(struct pollfd *fds, int nfds, int timeout)
struct pollfd {
int fd;
short events;
short revents;
}
```
poll函数需要传一个pollfd结构数组,其中fd表示文件描述符,events表... | Markdown |
x = indicatorThicknessPx / 2, y = indicatorThicknessPx / 2
),
topLeft = scrollbarPositionWithoutInsets,
size = scrollbarSizeWithoutInsets,
alpha = scrollbarAlpha
)
}
}
}
data class ScrollBarConfig(
val ind... | Kotlin |
tt := range tests {
t.Run(tt.name, func(t *testing.T) {
results, err := zoro.Search(hibikeonlinestream.SearchOptions{
Query: tt.query,
Dub: tt.dubbed,
})
if !assert.NoError(t, err) {
t.FailNow()
}
assert.NotEmpty(t, results)
for _, r := range results {
assert.NotEmpty(t, r.ID, ... | Go |
val XMPP_RECONNECTION_FAILED = "xmpp-reconnection-failed"
internal const val XMPP_PING_FAILED = "xmpp-ping-failed"
internal const val XMPP_CLOSED = "xmpp-closed"
internal const val XMPP_CLOSED_ON_ERROR = "xmpp-closed-on-error"
// A recording session was stopped because XMPP disconnected.
internal const val STOPPED_ON... | Kotlin |
.footer-left-T1wwIy{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:6px}.hint-pin-popover-5R1wmk footer .footer-left-T1wwIy .extension-gq0Jif{width:20px}.hint-pin-popover-5R1wmk footer .btn-0yHuJZ{cursor:pointer;user-select:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transpare... | HTML |
it.Event.Raw = log
return true
default:
return false
}
}
select {
case log := <-it.logs:
it.Event = new(KeeperRegistrarMockRegistrationApproved)
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
it.fail = err
return false
}
it.Event.Raw = log
return true
case err ... | Go |
ry>
[JsonStringEnumMemberName("notice")]
Notice,
/// <summary>Warning conditions that don't represent an error but indicate potential issues.</summary>
[JsonStringEnumMemberName("warning")]
Warning,
/// <summary>Error conditions that should be addressed but don't require immediate action.</sum... | C# |
责将字符打印到窗口中。
(终端模拟器的显示原理就不在这里展开了,这里认为键盘按键形成一列字节流、向显示器输出字节流后便打印到屏幕上)
linux中为什么要提出伪终端这个概念呢?shell等命令行程序不可以直接从显示器和键盘读取数据吗?为了同屏运行多个终端模拟器、并实现远程登录,还真不能让bash直接跨过伪终端这一层。在操作系统的一大思想——虚拟化的指导下,为多个终端模拟器、远程用户分配多个虚拟的终端是有必要的。上图中的shell使用的slave端就是一个虚拟化的终端。master端是模拟用户一端的交互。之所以称为虚拟化的终端,它除了转发数据流外,还要有点终端的样子。
### 3. 作为终端的伪终端
最为一个虚拟的终端,每一个... | Markdown |
v class="col docItemCol_Xiwq"><div class="docItemContainer_JFP9"><article><nav class="theme-doc-breadcrumbs breadcrumbsContainer_tVzI" aria-label="Breadcrumbs"><ul class="breadcrumbs" itemscope="" itemtype="https://schema.org/BreadcrumbList"><li class="breadcrumbs__item"><a aria-label="Home page" class="breadcrumbs__li... | HTML |
.6 393.2 148.8V148.8zM512 256C512 397.4 397.4 512 256 512C114.6 512 0 397.4 0 256C0 114.6 114.6 0 256 0C397.4 0 512 114.6 512 256zM256 48C141.1 48 48 141.1 48 256C48 370.9 141.1 464 256 464C370.9 464 464 370.9 464 256C464 141.1 370.9 48 256 48z"],
"face-laugh": [512, 512, ["laugh"], "f599", "M130.7 313.9C126.5 300.... | JavaScript |
ms.put("1.2.840.10045.4.3.3", ECDSA_SHA384);
oidAlgorithms.put("1.2.840.10045.4.3.4", ECDSA_SHA512);
oidAlgorithms.put("0.4.0.127.0.7.1.1.4.1.6", ECDSA_RIPEMD160);
/*
* id-ecdsa-with-sha3-256 {joint-iso-itu-t(2) country(16) us(840) organization(1) gov(101) csor(3)
* nistAlgori... | Java |
6 & 0xFF, h1 >>> 24 & 0xFF, h2 & 0xFF, h2 >> 8 & 0xFF, h2 >> 16 & 0xFF, h2 >>> 24 & 0xFF, h3 & 0xFF, h3 >> 8 & 0xFF, h3 >> 16 & 0xFF, h3 >>> 24 & 0xFF]);
}
;// ./src/core/dataset_reader.js
function decodeString(str) {
try {
return stringToUTF8String(str);
} catch (ex) {
warn(`UTF-8 decoding failed: "$... | JavaScript |
e,.btn-warning.dropdown-toggle:hover{-webkit-box-shadow:0 2px 0 #6e5f0d;-moz-box-shadow:0 2px 0 #6e5f0d;box-shadow:0 2px 0 #6e5f0d;}
.btn-danger.dropdown-toggle,.btn-danger.dropdown-toggle:hover{-webkit-box-shadow:0 2px 0 #9f1411;-moz-box-shadow:0 2px 0 #9f1411;box-shadow:0 2px 0 #9f1411;}
.btn-success.dropdown-toggle,... | CSS |
{ 0x3fffe6f0, cmb(cc_t0) },
// tire trace, beetle adventure racing. Added by Gonetz
// (t1-t0)*t0+t1, (cmb-t0)*shade+t1 **INC**
{ 0x41124410, cmb(cc__t0_inter_t1_using_t0__mul_shade) },
// Paper Mario. Added by Gonetz
// (t0-t1)*t0+t1 **INC**
{ 0x41214121, cmb(cc_t1_inter_t0_using_t0) }... | C++ |
bezierPatch: BezierPatchBase<ColorRGBa>, subdivisions: Int = 32) {
bezierPatchDrawer.drawBezierPatches(context, drawStyle, listOf(bezierPatch), subdivisions)
}
@JvmName("bezierPatchesRGBa")
fun Drawer.bezierPatches(bezierPatch: List<BezierPatchBase<ColorRGBa>>, subdivisions: Int = 32) {
bezierPatchDrawer.drawB... | Kotlin |
16h352a16 16 0 0 0 16-16v-32a16 16 0 0 0-16-16z\"\n },\n \"child\": []\n }\n ]\n })(props);\n}\n_c630 = FaChessKnight;\n;\nfunction FaChessPawn(props) {\n return (0,_lib_index_mjs__WEBPACK_IMPORTED_MODULE_0__.GenIcon)({\n \"tag\": \"svg\",\n \"attr\": ... | JavaScript |
f02ac2c3"> 1135</a></span>  <span class="keyword">using</span> <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html">LayoutC</a> = <a class="code" href="classcutlass_1_1layout_1_1RowMajor.html">layout::RowMajor</a>;</div><div class="line"><a name="l01136"></a><span class="lineno"><a class="line" href="st... | HTML |
max-width: 1170px;
}
}
@media (min-width:576px) and (max-width:991px) {
.rent_solution_container .col-md-4.col-sm-6 {
float: left;
width: 50%;
}
}/*!
* Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT ... | CSS |
"""
Creates an IC for the particle splitting test.
This test creates a single heavy particle, that should
split into 16 counterparts, surrounded by a grid of
16 * 16 * 16 particles.
"""
import numpy as np
import unyt
from swiftsimio import Writer
NUMBER_OF_PARTICLES = 16 # in 1D
TOTAL_NUMBER_OF_PARTICLES = NUMBER_... | Python |
4_14209/"],"target":"/jksj/jksj04_14209"},{"title":"健康数据 - 流感监测周报","source":["www.chinacdc.cn/jksj/jksj04_14249/"],"target":"/jksj/jksj04_14249"},{"title":"健康数据 - 全国急性呼吸道传染病哨点监测情况","source":["www.chinacdc.cn/jksj/jksj04_14275/"],"target":"/jksj/jksj04_14275"},{"title":"健康数据 - 健康报告","source":["www.chinacdc.cn/jksj/jksj0... | Markdown |
or3( 0, 0, 0 );
_this.separation = 10;
if ( parameters && parameters.separation !== undefined ) _this.separation = parameters.separation;
var SCREEN_WIDTH = window.innerWidth;
var SCREEN_HEIGHT = window.innerHeight;
var HALF_WIDTH = SCREEN_WIDTH / 2;
this.setSize = fu... | JavaScript |
return this.playerName;
}
public playerGetSocketId() : any {
return this.playerSocketId
}
}
// --------------------- Game -----------------------
// --------------------------------------------------
export class Game {
private gameLayout : Tile[][];
private gameBoard : Board;
private gameCharac... | Typescript |
DpaMg.value : this.u225N3DpaMg,
u226N3DhaMg:
data.u226N3DhaMg.present ? data.u226N3DhaMg.value : this.u226N3DhaMg,
valineMg: data.valineMg.present ? data.valineMg.value : this.valineMg,
vitaminAIuIu: data.vitaminAIuIu.present
? data.vitaminAIuIu.value
: this.vitaminAIuIu,... | Dart |
/* Iterator for grouping a number while scanning it forward.
Copyright (C) 2022-2024 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published b... | C |
World/pre_huitongkuang_collection_001_01.prefab"] = -1919,
[650480] = -1920,
["\233\151\170\231\161\157\231\159\179\239\188\136\229\186\159\229\188\131\239\188\137"] = -1921,
["FieldItem/World/pre_shanxiaoshi_collection_001.prefab"] = -1922,
[650500] = -1923,
["\229\176\143\233\186\166\239\188\136\229\186\159... | Lua |
x40, 0x8f, 0x25, 0x81, 0x34, 0x4e, 0x3e, 0x9d, 0xcd, 0x4a, 0xe4, 0x80, 0x0f, 0x21, 0xaa, 0x87, 0x95, 0x05, 0xd0, 0x0d, 0x19, 0xc8, 0x66, 0x54, 0x8c, 0xc7, 0x35, 0x52, 0xea, 0xad, 0x01, 0x80, 0x3c, 0xa9, 0x91, 0x49, 0x8d, 0x7c, 0xab, 0x13, 0x7d, 0x94, 0xd6, 0x0a, 0xf7, 0xbe, 0x31, 0x88, 0x3d, 0x90, 0xb2, 0x9b, 0x7c, 0xd... | HTML |
nction() {
// need to check to see if the model has been updated, use mvc.equals.
var clean = equals(ctrl.originalModel, ctrl.model);
console.log("the seach is changing, model is clean? "+clean);
if(!clean && (ctrl.get('groupTyped') !== ctrl.get('group'))){
// use a dijit.dialog for th... | HTML |
I32RemU = 0x70
I32And = 0x71
I32Or = 0x72
I32Xor = 0x73
I32Shl = 0x74
I32ShrS = 0x75
I32ShrU = 0x76
I32Rotl = 0x77
I32Rotr = 0x78
I64Clz = 0x79
I64Ctz = 0x7a
I64Popcnt = 0x7b
I64Add = 0x7c
I64Sub = 0x7d
I64Mul = 0x7e
I64DivS = 0x7f... | Go |
std::time::Duration::from_millis(100));
let (c, r) = { (self.0.mock_cwnd, self.0.mock_rate) };
self.0.load_primitives(
libccp::Primitives::default()
.with_packets_acked(0)
.with_rtt_sample_us(2)
.with_bytes_acked(ACKED_PRIMITIVE)
... | Rust |
dErr = errInsufficientBalanceForGas
}
tx, err := types.NewTransactionWithMap(txType, valueMap)
assert.Equal(t, nil, err)
err = tx.SignWithKeys(signer, testAcc.Keys)
assert.Equal(t, nil, err)
tx.SignFeePayerWithKeys(signer, reservoir.Keys)
assert.Equal(t, nil, err)
receipt, err := app... | Go |
true;
}
if(!(obj instanceof Object)) {
return false;
}
const other: Option<any> = <Option<any>>obj;
return Objects.equals(this.value, other.value);
}
}interface IDB {
[key: string]: IObjectId[];
}
export interface IObjectId {
id: string;
}
const Data: IDB = {
'Boards': [],
'Column... | Typescript |
ds.arrow, self.x, self.y, 0, self.dir, 1, 12, 1)
end
function Arrow:collidePlayer(pl)
if pl.x-5.5 > self.x or pl.x+5.5 < self.x
or pl.y+2 > self.y or pl.y+20 < self.y then
return false
else
return true
end
end
---------------------------------------------------
-- Trigger : Enemy
-----------------------------... | Lua |
ession(keyContent, keyOffset, true);
}
if (iteratorMatch[2]) {
const indexContent = iteratorMatch[2].trim();
if (indexContent) {
result.index = createAliasExpression(
indexContent,
exp.indexOf(
indexContent,
result.key ? keyOffset... | JavaScript |
#160; <a class="el" href="group__usb__charger__4p.html#gga6fef264a63160af980725f7a2cdff9dca207190b892be35f163ee8ba599026c7f">AM_HAL_USB_CHARGER_SET_REF_VOL_TO_2P35</a> = 0x2
, <br />
  <a class="el" href="group__usb__charger__4p.html#gga6fef264a63160af980725f7a2cdff9dca00dfd79d258e9c1d80babc2361b3b9c0">A... | HTML |
nst a hardware Cortex-M0 to make sure it's actually up to spec?
*/
// String representation of ops for use in debug output
const OPCODES: &'static [&'static str] = &[
"SXTB <Rd>,<Rm> T1",
"SXTH <Rd>,<Rm> T1",
"UXTB <Rd>,<Rm> T1",
"UXTH <Rd>,<Rm> T1",
];
// Simple constant for number of opcodes tested... | Rust |
ce = chipmunk.getSpace();
mSpace.resizeActiveHash(30f, 1000);
mSpace.resizeStaticHash(30f, 1000);
mSpace.setIterations(10);
mSpace.setGravity(0, -100);
Body staticBody = Body.make(Float.MAX_VALUE, Float.MAX_VALUE);
// add borders except for top
Shape shape = Segment.make(staticBody, -s.widt... | Java |
event.xmotion.x;
mMouseMvY = event.xmotion.y;
break;
}
case Expose: {
break;
}
case ConfigureNotify: {
ResizeScene(event.xconfigure.width, event.xconfigure.height);
break;
}
case ClientMessage: {
if (event.xcl... | C++ |
c2','images/content_r2_c2_f2.gif','images/content_r2_c2_f3.gif',1);" onClick="MM_nbGroup('down','navbar1','content_r2_c2','images/content_r2_c2_f3.gif',1);"><img name="content_r2_c2" src="images/content_r2_c2.gif" width="117" height="32" border="0" alt="JVCL Home"></a></td>
<td rowspan="28"><img name="content_r2_c7"... | HTML |
体现 |
|----------------|--------------------------------------------------------------------------|-------------------------------------------|
| 汽车设计 | 用虚拟原型替代物理模型,设计师通过MR头显查看、修改汽车外观/内饰;用数字孪生模拟碰撞测试。 | 缩短设计周期,降低原型制作成本 |
| 零售 | 虚拟展厅中,用户可自定义家具颜色、汽车配置,实时查看虚拟效果(如“把... | Markdown |
c.currPages.SeekToRow(skip); err != nil {
return true, err
}
c.curr.Skip(skip)
}
}*/
for c.currPage == nil {
pg, err := c.currPages.ReadPage()
if pg == nil || err != nil {
// No more pages in this column chunk,
// cleanup and exit.
if err == io.EOF {
err = nil
}
... | Go |
{d0,d1}, [r1,:128]!
vld1.64 {d2,d3}, [r2,:128], r5
vld1.64 {d4,d5}, [r3,:128]!
vld1.64 {d6,d7}, [r4,:128], r5
1: subs lr, lr, #4
vmul.f32 d22, d0, d4
vrev64.32 q3, q3
vmul.f32 d23, d1, d5
vr... | Assembly |
的表达式的值是 `false` ,右边的表达式会被直接短路掉,不会进行运算。
> 逻辑或运算符 `|` 和短路或运算符 `||` 的差别也是如此。
### `Math.round(11.5)` 等于多少?`Math.round(-11.5)` 等于多少?
`Math.round(11.5)` 的返回值是 `12` ,`Math.round(-11.5)` 的返回值是 `-11`。四舍五入的原理是在参数上加 `0.5` 然后进行下取整。
### switch是否能作用在 byte 上,是否能作用在 long 上,是否能作用在 String 上?
在 Java 5 以前, `switch(expr)` 中, `expr` 只能... | Markdown |
Key";
secretKey = "secretKey";
endpoint = String.format("http://%s:%d", localStackContainer.getContainerIpAddress(), 4566);
catalogProperties.put(PaimonCatalogPropertiesMetadata.GRAVITINO_CATALOG_BACKEND, TYPE);
catalogProperties.put(PaimonCatalogPropertiesMetadata.WAREHOUSE, WAREHOUSE);
catalogPro... | Java |
proc.SetMessageBoard(message.NewMessageBoard())
_, cancel := context.WithCancel(context.Background())
//args := make([]*plan.Expr, 0, 2)
//args = append(args, &plan.Expr{
// Typ: plan.Type{
// Id: int32(ts[0].Oid),
// },
// Expr: &plan.Expr_Col{
// Col: &plan.ColRef{
// RelPos: 0,
// ColPos: 0,
// },
... | Go |
o_tuple.hpp</a></span>>
#include <<span class="RenoLink"><a href="boost_exception_errinfo_file_name_hpp.html">boost/exception/errinfo_file_name.hpp</a></span>>
#include <<span class="RenoLink"><a href="boost_exception_errinfo_api_function_hpp.html">boost/exception/errinfo_api_function.hpp</a></span>>
#in... | HTML |
// Empty list as requested
codeSnippet = listOf(
CodeLine(
number = 10,
content = "val unsecureCode = performOperation()"
),
CodeLine(
number = 11,
content = "processData(unsecure... | Kotlin |
dismiss="modal">Close</button>
{% if user.is_authenticated %}
<button type="submit" class="btn btn-primary">Use Session Authentication</button>
{% endif %}
</div>
</form>
</div>
</div>
</div>
{% extends "./base.html" %}
{% block template %}
<h1>Veja suas tasks</h1>
{% if tasks %}
{... | HTML |
b/6a54e3085f4ea2f7edc346a2c257cb5d8a4bcca2/Article%202%20-%20Mech%20Agents/graphical%20abstract1.png)
The application constructs a network of LLM-powered AI agents that autonomously create models and simulate problems in solid mechanics and fluid dynamics with minimal human input. The framwork consists of a team of co... | Markdown |
import openai
import json
# 读取 OpenAI API Key
from utils import config_manager
config_manager = config_manager.ConfigManager()
api_key = config_manager.get_api_key("openai")
# 初始化 OpenAI 客户端
client = openai.OpenAI(api_key=api_key)
# 替换为你的微调模型 ID
fine_tuned_model = "ft:gpt-4o-2024-08-06:personal:balanced:B3kEd6za"
#... | Python |
const arr1 = freeze(arr);
const arr2 = mutate(arr1, [undefined, 111, undefined, 333]);
expect(JSON.stringify(arr2)).toEqual("[0,111,2,333]");
expect(Object.isFrozen(arr2)).toBe(true);
expect(() => {
Object(arr2)[1] = 1111;
}).toThrow();
expect(() => {
Object(arr2).p... | Typescript |
ell.e-stackedheadercell, .e-grid.e-rtl.e-default.e-verticallines tr th:last-child, .e-grid.e-rtl.e-default.e-verticallines .e-gridheader th.e-grouptopleftcell, .e-grid.e-rtl.e-default.e-verticallines .e-gridheader th.e-grouptopleftcell.e-lastgrouptopleftcell, .e-grid.e-rtl.e-default.e-bothlines .e-gridheader .e-headerc... | CSS |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.